/* Mise en avant de la protection : bulles autour du téléphone, chiffres clés, chiffrement, comparaison. */

/* bulles qui flottent autour du téléphone du haut */
.hero-art { position: relative; }
.chip {
  position: absolute; z-index: 2; white-space: nowrap; font-size: 13px; font-weight: 600;
  background: rgba(16, 19, 31, .88); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: drift 6s ease-in-out infinite;
}
.chip b { color: var(--mint); }
.chip.c1 { top: 1%; left: 2%; }
.chip.c2 { top: 64%; right: -4%; animation-delay: -2s; }
.chip.c3 { bottom: -3%; left: 4%; animation-delay: -4s; }
@keyframes drift { 50% { transform: translateY(-8px); } }
@media (max-width: 860px) { .chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; background: linear-gradient(90deg, var(--peri), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }
section.tight { padding: 8px 0 56px; }

/* un dessin, un coffre (assets/vaults.js) */
.vaults { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--layer); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 760px) { .vaults { grid-template-columns: minmax(0, 1fr); } }
.vt-game { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vt-board { fill: #161b36; stroke: rgba(157, 184, 255, .35); stroke-width: .8; stroke-linejoin: round; }
.vt-tile { fill: #2a3150; transition: fill .25s, filter .25s; }
.vt-tile.on { filter: drop-shadow(0 0 2.5px rgba(255, 255, 255, .55)); }
.vt-pat .vt-tile.on { fill: var(--vc); }
.vt-msg { min-height: 40px; text-align: center; color: var(--muted); font-size: 14px; opacity: 0; transition: opacity .4s; }
.vt-msg.on { opacity: 1; }
.vt-side { position: relative; min-height: 250px; }
.vt-idle { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; opacity: 0; transition: opacity .4s; }
.vt-idle.on { opacity: 1; }
.vt-card { position: absolute; inset: 0; border-radius: 16px; padding: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--vc) 14%, #141828), #141828 60%);
  border: 1px solid color-mix(in srgb, var(--vc) 45%, transparent); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s, transform .45s; }
.vt-card.on { opacity: 1; transform: none; }
.vt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vt-pat svg { display: block; }
.vt-ttl { flex: 1; min-width: 0; }
.vt-ttl b { display: block; font-size: 17px; }
.vt-ttl small { color: var(--muted); }
.vt-key { font-size: 12px; font-weight: 600; color: var(--vc); background: color-mix(in srgb, var(--vc) 14%, transparent); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.vt-body.photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.vt-body.photos i { aspect-ratio: .8; border-radius: 10px; }
@media (max-width: 760px) { .vt-body.photos { grid-template-columns: repeat(3, 1fr); } .vt-body.photos i { aspect-ratio: 1.4; } }
.vt-item { padding: 10px 12px; margin-bottom: 7px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.vt-item b { font-size: 10px; background: #4a2f3a; color: #ff9ec7; padding: 2px 5px; border-radius: 5px; margin-right: 4px; }
@media (max-width: 760px) { .vt-side { min-height: 270px; } }

/* la chaîne de protection */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; counter-reset: k; }
@media (max-width: 900px) { .chain { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chain { grid-template-columns: 1fr; } }
.link { position: relative; background: var(--layer); border: 1px solid var(--line); border-radius: 16px; padding: 18px; animation: lit 8s infinite; }
.link:nth-child(2) { animation-delay: 2s; }
.link:nth-child(3) { animation-delay: 4s; }
.link:nth-child(4) { animation-delay: 6s; }
@keyframes lit { 0%, 22% { border-color: rgba(127, 224, 200, .6); box-shadow: 0 0 0 3px rgba(127, 224, 200, .08); } 30%, 100% { border-color: var(--line); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .link { animation: none; } }
.link .ico { margin-bottom: 10px; }
.link h3 { margin: 0 0 4px; font-size: 16px; }
.link p { margin: 0; color: var(--muted); font-size: 14px; }

/* comparaison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--layer); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--surface); font-size: 14px; color: var(--muted); }
.compare thead th.us { color: var(--text); }
.compare td.us { background: rgba(127, 224, 200, .05); }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--mint); font-weight: 700; }
.no { color: #ff8a80; font-weight: 700; }
@media (max-width: 560px) { .compare { font-size: 13px; } .compare th, .compare td { padding: 10px 8px; } }

/* comparatif avec d'autres coffres */
.vs-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--layer); -webkit-overflow-scrolling: touch; }
.vs { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.vs th, .vs td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }
.vs thead th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; vertical-align: bottom; }
.vs th[scope="row"], .vs thead th:first-child { text-align: left; color: var(--text); font-weight: 500; position: sticky; left: 0; background: var(--layer); min-width: 210px; z-index: 1; }
.vs thead th:first-child { background: var(--surface); }
.vs .us { background: rgba(127, 224, 200, .08); box-shadow: inset 2px 0 0 rgba(127, 224, 200, .45), inset -2px 0 0 rgba(127, 224, 200, .45); }
.vs thead th.us { color: var(--text); font-size: 15px; }
.vs thead th.us img { width: 28px; display: block; margin: 0 auto 4px; }
.vs .yes { color: var(--mint); font-weight: 700; font-size: 16px; }
.vs .no { color: #ff8a80; font-weight: 700; font-size: 16px; }
.vs .na { color: var(--muted); }
.vs-legend { color: var(--muted); font-size: 13px; margin: 12px 0 4px; }
.vs-note { color: var(--muted); font-size: 12px; opacity: .8; margin: 0; max-width: 820px; }

/* sauvegarde et récupération (assets/backup.js) */
.backup { position: relative; display: grid; grid-template-columns: 1fr 200px 1fr; gap: 20px; align-items: end; background: var(--layer); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 820px) { .backup { grid-template-columns: minmax(0, 1fr); } .bk-fly { display: none; } }
.bk-phone { justify-self: center; width: 100%; max-width: 270px; }
.bk-cap { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.bk-screen { position: relative; min-height: 400px; border-radius: 26px; padding: 18px 16px; background: linear-gradient(180deg, #0e1020, #141a33); border: 6px solid #232a45; }
.bk-title { font-weight: 700; font-size: 15px; }
.bk-sub { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.bk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bk-grid i { aspect-ratio: 1; border-radius: 8px; }
.bk-btn { margin-top: 14px; text-align: center; background: var(--peri); color: #0b1533; font-weight: 700; border-radius: 12px; padding: 9px 0; transition: transform .15s; }
.bk-btn.press { transform: scale(.93); }
.bk-file { margin-top: 12px; padding: 9px 10px; border-radius: 10px; background: rgba(127, 224, 200, .1); border: 1px solid rgba(127, 224, 200, .35); font-size: 11.5px; word-break: break-all; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.bk-file small { display: block; color: var(--mint); margin-top: 2px; }
.backup.bk-s1 .bk-a .bk-file { opacity: 1; transform: none; }
.backup.bk-s2 .bk-a .bk-file { opacity: .35; }
.bk-b .bk-file { margin: 4px 0 12px; opacity: 0; }
.backup.bk-s3 .bk-b .bk-file { opacity: 1; transform: none; }
.bk-mid { display: flex; flex-direction: column; gap: 8px; }
.bk-dest { text-align: center; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; transition: border-color .3s, background .3s, transform .3s; }
.bk-dest.on { border-color: rgba(127, 224, 200, .6); background: rgba(127, 224, 200, .08); transform: scale(1.04); }
.bk-stays { text-align: center; color: var(--mint); font-size: 12px; font-weight: 600; margin-top: 4px; }
.bk-fly { position: absolute; left: 28%; top: 50%; z-index: 3; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #10282a; border: 1px solid rgba(127, 224, 200, .5); color: var(--mint); opacity: 0; pointer-events: none;
  transition: left 2.2s cubic-bezier(.4, .1, .3, 1), opacity .3s; }
.backup.bk-s2 .bk-fly { opacity: 1; left: 64%; }
.backup.bk-s3 .bk-fly { opacity: 0; }
.bk-line { display: flex; flex-wrap: wrap; gap: 3px 4px; margin-bottom: 7px; min-height: 22px; }
.bk-word { font-size: 10.5px; padding: 3px 7px; white-space: nowrap; border-radius: 999px; background: rgba(157, 184, 255, .12); color: var(--text); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }
.bk-word.on { opacity: 1; transform: none; }
.bk-ok { margin-top: 10px; text-align: center; padding: 9px; border-radius: 12px; background: rgba(127, 224, 200, .14); color: var(--mint); font-weight: 700; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.backup.bk-s4 .bk-ok { opacity: 1; transform: none; }

/* histoire secrète expliquée */
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.story .card b { color: var(--text); }
.formula { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 15px; }
.formula span { padding: 7px 12px; border-radius: 999px; background: var(--layer2); border: 1px solid var(--line); }
.formula span.k { background: rgba(157, 184, 255, .12); border-color: rgba(157, 184, 255, .35); }
.formula em { font-style: normal; color: var(--muted); }

/* bandeau vers le comparatif */
.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; background: linear-gradient(90deg, rgba(127, 224, 200, .1), rgba(157, 184, 255, .08)); border: 1px solid rgba(127, 224, 200, .3); border-radius: var(--radius); padding: 22px 26px; }
.teaser p { margin: 0; font-size: 18px; font-weight: 600; max-width: 640px; }
.teaser p small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.vs-back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; font-size: 14px; }
.vs-back:hover { color: var(--text); }
