/* cryptiq — mise en page en cases, inspirée des pages produit sombres */

:root {
  --bg: #111111;
  --bg-2: #161616;
  --panel: #181818;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ececec;
  --muted: #9a9a9a;
  --dim: #666666;
  --accent: #7cffb2;
  --blue: #7cc4ff;
  --violet: #b59cff;
  --red: #ff8a8a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--accent); background: rgba(124, 255, 178, 0.08); border: 1px solid rgba(124, 255, 178, 0.14); padding: 0.1em 0.4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { color: var(--muted); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-inline { width: 16px; height: 16px; vertical-align: -3px; margin-left: 6px; }

.container { width: min(1120px, 100% - 40px); margin: 0 auto; }

.skip { position: absolute; left: 12px; top: -60px; padding: 8px 12px; background: var(--accent); color: #0b1a12; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 17, 17, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.brand:hover { transform: scale(1.02); }
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-links a:hover { color: var(--text); transform: translateY(-2px); }
.nav-actions { margin-left: 0; display: flex; align-items: center; gap: 10px; }
.nav-vt { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.nav-vt:hover { color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; background: none; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.site-header.open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 0.94rem; border: 1px solid transparent; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.button-large { padding: 14px 24px; font-size: 1rem; }
.button-primary { background: var(--accent); color: #0b1a12; }
.button-primary:hover { background: #9dffc6; }
.button-outline { border-color: var(--line-2); color: var(--text); }
.button-outline:hover { border-color: var(--accent); color: var(--accent); }
.button-block { width: 100%; margin-top: auto; }

/* ---------- Titres ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
h1 span, h2 span { color: var(--muted); }

.mini-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 80px; }
.hero-description { font-size: 1.12rem; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-facts > div { padding: 18px 20px; background: var(--bg-2); }
.hero-facts > div + div { border-left: 1px solid var(--line); }
.hero-facts strong { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-facts span { font-size: 0.82rem; color: var(--muted); }

/* Carte d'application */
.app-card { border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.window-dots { display: inline-flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; display: block; }
.app-card-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 8px; }
.app-card-title h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 4px; }
.icon-badge { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: var(--accent); background: rgba(124, 255, 178, 0.08); border: 1px solid rgba(124, 255, 178, 0.22); }
.icon-badge .icon { width: 20px; height: 20px; }

.flow { display: flex; align-items: center; gap: 8px; padding: 18px 22px; }
.flow-node { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 0.85rem; color: var(--text); white-space: nowrap; }
.flow-node .icon { width: 16px; height: 16px; }
.flow-accent { border-color: rgba(124, 255, 178, 0.4); color: var(--accent); }
.flow-line { flex: 1; min-width: 12px; height: 1px; background: var(--line-2); }

.status-list { list-style: none; border-top: 1px solid var(--line); }
.status-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: none; }
.status-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); }
.status-icon .icon { width: 17px; height: 17px; }
.status-list b { display: block; font-size: 0.95rem; }
.status-list small { color: var(--muted); font-size: 0.82rem; }
.status-list em { font-style: normal; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--accent); border: 1px solid rgba(124, 255, 178, 0.3); border-radius: 999px; padding: 3px 9px; }

/* ---------- Sections ---------- */
.section { padding-top: 110px; padding-bottom: 10px; }
.section-heading { max-width: 640px; margin-bottom: 48px; }
.section-heading p:not(.eyebrow) { margin-top: 18px; font-size: 1.02rem; }

/* Cases de fonctions */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.feature-card:hover { border-color: rgba(124, 255, 178, 0.28); transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(124, 255, 178, 0.15); }
.feature-number { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.feature-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: rgba(124, 255, 178, 0.08); border: 1px solid rgba(124, 255, 178, 0.22); margin-bottom: 20px; }
.feature-card:nth-child(2) .feature-symbol, .feature-card:nth-child(5) .feature-symbol { color: var(--blue); background: rgba(124, 196, 255, 0.08); border-color: rgba(124, 196, 255, 0.22); }
.feature-card:nth-child(3) .feature-symbol, .feature-card:nth-child(6) .feature-symbol { color: var(--violet); background: rgba(181, 156, 255, 0.08); border-color: rgba(181, 156, 255, 0.22); }
.feature-card p { font-size: 0.94rem; margin-bottom: 18px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; }

/* Sécurité */
.defense-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.defense-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: flex; flex-direction: column; gap: 6px; }
.defense-card .icon-badge { margin-bottom: 14px; }
.defense-card .mini-label { margin-bottom: 4px; }
.defense-card h3 { margin-bottom: 4px; }
.defense-card p { font-size: 0.95rem; }

/* Tableau */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-2); }
.compare-table th, .compare-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.compare-table thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: var(--panel); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th { width: 260px; font-weight: 600; }
.compare-table td { color: var(--muted); }

/* Onglets */
.tabs-card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: #131313; }
.tab { background: none; border: none; color: var(--muted); font: inherit; font-size: 0.93rem; padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.tab-panel { padding: 32px; }
.pane { display: none; }
.pane.on { display: block; }
.pane h3 { font-size: 1.35rem; }
.pane > p { max-width: 36em; margin-bottom: 22px; }
.pane-list { display: grid; gap: 10px; }
.pl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--mono); font-size: 0.86rem; color: var(--text); background: rgba(255, 255, 255, 0.02); }
.pl em { margin-left: auto; font-style: normal; color: var(--dim); font-size: 0.78rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-g { background: var(--accent); }
.dot-b { background: var(--blue); }
.dot-v { background: var(--violet); }
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); border-radius: 999px; }

/* SFTP */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split-lead { font-size: 1.02rem; margin-bottom: 26px; }
.checks { list-style: none; display: grid; gap: 14px; margin-bottom: 4px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.95rem; }
.checks .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #0b1a12; background: var(--accent); stroke-width: 2.4; }
.term { padding: 24px 26px; font-family: var(--mono); font-size: 0.88rem; line-height: 1.75; color: #cfcfcf; white-space: pre-wrap; overflow-x: auto; background: #0d0d0d; }
.ok { color: var(--accent); }
.split .app-card { border-radius: var(--radius); }

/* Limites */
.never-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.never-list li { padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 1.02rem; background: var(--bg-2); }
.never-list s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* Versions */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 420px; margin: 0 auto; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }
.tier-card .icon-badge { margin-bottom: 20px; }
.tier-hi { border-color: rgba(124, 255, 178, 0.35); background: radial-gradient(420px 200px at 50% 0%, rgba(124, 255, 178, 0.08), transparent 70%), var(--bg-2); }
.badge { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 0.7rem; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #0b1a12; }
.tier-name { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; color: var(--text); }
.tier-desc { font-size: 0.94rem; margin-bottom: 20px; }
.tier-card .checks { margin-bottom: 28px; font-size: 0.93rem; }
.tier-card .checks .icon { width: 16px; height: 16px; }

/* Étapes */
.steps { list-style: none; display: grid; gap: 12px; }
.step-card { display: grid; grid-template-columns: 52px 1fr 42px; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-family: var(--mono); font-weight: 700; color: #0b1a12; background: var(--accent); }
.step-card p { font-size: 0.94rem; margin: 0; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--dim); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-bottom: 20px; font-size: 0.97rem; }

/* Appel final */
.closing { margin-top: 120px; margin-bottom: 110px; padding: 80px 32px; text-align: center; border: 1px solid rgba(124, 255, 178, 0.2); border-radius: 28px; background: radial-gradient(640px 260px at 50% 0%, rgba(124, 255, 178, 0.1), transparent 70%), var(--bg-2); }
.closing-mark { font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; color: var(--text); }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.closing h2 span { color: var(--muted); }
.closing p { margin-bottom: 30px; font-size: 1.05rem; }

/* Pied */
.footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-identity { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-identity p { font-size: 0.94rem; max-width: 20em; }
.footer-note { font-family: var(--mono); font-size: 0.76rem; color: var(--dim); }
.footer-column { display: flex; flex-direction: column; gap: 12px; }
.footer-column h2 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.footer-column a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s; }
.footer-column a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }
.footer-wordmark { text-align: center; font-weight: 800; font-size: clamp(4rem, 15vw, 11rem); letter-spacing: -0.04em; line-height: 0.8; color: rgba(255, 255, 255, 0.04); padding-bottom: 20px; user-select: none; }
.footer-wordmark span { color: rgba(124, 255, 178, 0.08); }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; max-width: 100%; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu-toggle { display: block; }
  .nav-actions { margin-left: 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1120px); }
  .nav-actions .button { padding: 9px 14px; font-size: 0.86rem; }
  .nav-vt { display: none; }
  .hero-actions .button:last-child { display: none; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div + div { border-left: none; border-top: 1px solid var(--line); }
  .feature-grid, .tier-grid, .defense-grid, .never-list { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .compare-table tbody th { width: auto; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
  .tab-panel { padding: 22px; }
  .step-card { grid-template-columns: 44px 1fr; }
  .step-card .icon-badge { display: none; }
  .flow { flex-wrap: wrap; }
  .flow-line { display: none; }
  .closing { padding: 56px 22px; }
  .footer-main { grid-template-columns: 1fr; }
  .term { font-size: 0.8rem; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ==========================================================================
   Ajouts : barre de navigation pleine, animations, lignes pointillées
   ========================================================================== */

/* Barre de navigation : fond plein et ombre */
.site-header {
  background: #181818;
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9);
}

/* Apparition des cases au défilement (seulement si JS actif) */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise 0.8s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Cases : reflet qui passe au survol */
.feature-card, .defense-card, .tier-card, .step-card, .profile-card { overflow: hidden; }
.feature-card::after, .defense-card::after, .tier-card::after, .step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(124, 255, 178, 0.07) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.feature-card:hover::after, .defense-card:hover::after, .tier-card:hover::after, .step-card:hover::after {
  transform: translateX(120%);
  transition: transform 0.9s var(--ease);
}
.defense-card, .step-card, .tier-card { position: relative; transition: border-color 0.25s, transform 0.25s; }
.defense-card:hover, .step-card:hover, .tier-card:hover { border-color: rgba(124, 255, 178, 0.28); transform: translateY(-3px); }
.defense-card .icon-badge, .feature-symbol, .tier-card .icon-badge, .step-n { transition: transform 0.4s var(--ease); }
.feature-card:hover .feature-symbol, .defense-card:hover .icon-badge, .tier-card:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }
.step-card:hover .step-n { transform: scale(1.08); }
.feature-card:hover .feature-number { color: var(--accent); }
.feature-number { transition: color 0.25s; }

/* Pointillés animés */
.flow-line {
  height: 2px;
  min-width: 18px;
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  opacity: 0.75;
  animation: dashes 0.9s linear infinite;
}
@keyframes dashes { to { background-position: 24px 0; } }

.status-list li { border-bottom: 1px dashed var(--line-2); }

.status-list li:hover .status-icon { color: var(--accent); border-color: rgba(124, 255, 178, 0.4); }
.status-icon { transition: color 0.25s, border-color 0.25s; }

.flow-accent { animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 rgba(124, 255, 178, 0); }
  50% { box-shadow: 0 0 18px -4px rgba(124, 255, 178, 0.45); }
}

.status-dot { animation: ping 2s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.6); }
  100% { box-shadow: 0 0 0 9px rgba(124, 255, 178, 0); }
}

.tier-card .checks li { transition: transform 0.25s; }
.tier-card:hover .checks li { transform: translateX(3px); }

.never-list li { transition: border-color 0.3s, color 0.3s; }
.never-list li:hover { border-color: rgba(255, 138, 138, 0.35); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; animation: none; }
  .flow-line, .flow-accent, .status-dot { animation: none; }
  .feature-card:hover::after, .defense-card:hover::after { transition: none; }
}

/* ==========================================================================
   v4 : barre de navigation pleine, animations, livre blanc
   ========================================================================== */

/* Barre de navigation : fond visible, bordure, ombre au défilement */
.site-header { background: #1b1b1b; border-bottom: 1px solid rgba(255, 255, 255, 0.14); transition: box-shadow 0.3s, background 0.3s; }
.site-header.scrolled { background: #1f1f1f; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.95); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* Barre de lecture */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet)); transform-origin: left; transform: scaleX(0); }

/* Animation des boutons */
.button { position: relative; overflow: hidden; }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.button:hover::after { transform: translateX(120%); }
.button:hover { transform: translateY(-2px); }
.button { transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }

/* Titres : ligne pointillée animée sous les étiquettes */
.eyebrow::after { content: ""; width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); background-size: 14px 2px; animation: dashes 0.9s linear infinite; opacity: 0.8; }
@keyframes dashes { to { background-position: 14px 0; } }

/* Hero : entrée échelonnée (sans JS) */
.hero-copy > *, .hero-art { animation: rise 0.9s var(--ease) backwards; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.3s; }
.hero-copy > :nth-child(4) { animation-delay: 0.42s; }
.hero-copy > :nth-child(5) { animation-delay: 0.52s; }
.hero-art { animation-delay: 0.35s; }
.status-dot { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(124, 255, 178, 0); } }

/* Pointillés : lignes qui défilent et points qui circulent dans le flux */
.flow-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dashes-x 0.9s linear infinite; }
.flow-line::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: travel 2.2s linear infinite; }
.flow-line:nth-of-type(2)::after { animation-delay: 1.1s; }
@keyframes dashes-x { to { background-position: 24px 0; } }
@keyframes travel { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.status-list li { border-bottom: 1px dashed var(--line-2); }
.status-list li:hover .status-icon { color: var(--accent); border-color: rgba(124, 255, 178, 0.45); }
.status-icon { transition: color 0.25s, border-color 0.25s; }

/* Compteurs et chiffres */
.hero-facts strong { font-variant-numeric: tabular-nums; }

/* Cases : léger décalage au survol et icône qui tourne */
.feature-card:hover .feature-symbol, .defense-card:hover .icon-badge, .tier-card:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }
.feature-symbol, .icon-badge { transition: transform 0.4s var(--ease); }
.tier-card .checks li { transition: transform 0.25s; }
.tier-card:hover .checks li { transform: translateX(3px); }

/* Lignes de tableau qui s'éclairent au survol */
.compare-table tbody tr { transition: background 0.25s; }
.compare-table tbody tr:hover { background: rgba(124, 255, 178, 0.04); }

/* FAQ et onglets */

.js .reveal.in { opacity: 1; }
.faq-list details[open] p { animation: rise 0.45s var(--ease) backwards; }
.pane.on { animation: rise 0.5s var(--ease) backwards; }

/* Pied : mot géant qui respire */
.footer-wordmark { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { letter-spacing: -0.04em; } 50% { letter-spacing: 0.01em; } }

/* Listes de la page */
.plain { list-style: none; }
.plain li { padding: 8px 0 8px 22px; position: relative; color: var(--muted); }
.plain li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 2px; background: var(--dim); }
.wp-list { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.wp-list li { position: relative; padding-left: 26px; color: var(--muted); }
.wp-list li::before { content: "›"; position: absolute; left: 4px; top: -2px; color: var(--accent); font-size: 1.2rem; }
.wp-list strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Livre blanc
   ========================================================================== */
.wp { padding-bottom: 40px; max-width: 880px; }
.wp-hero { padding-top: 72px; padding-bottom: 36px; }
.wp-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.wp-lead { font-size: 1.08rem; max-width: 40em; margin-bottom: 30px; }
.wp-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wp-toc a { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 0.92rem; transition: border-color 0.25s, color 0.25s, transform 0.25s; }
.wp-toc a:hover { border-color: rgba(124, 255, 178, 0.4); color: var(--accent); transform: translateX(4px); }

.wp-section { padding-top: 64px; padding-bottom: 8px; border-top: 1px dashed var(--line-2); margin-top: 56px; }
.wp-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 16px; }
.wp-section h3 { margin: 26px 0 12px; }
.wp-section > p { margin-bottom: 12px; }
.wp-no { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 10px; }
.wp-note { font-size: 0.92rem; margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.wp section code, .wp code { word-break: break-word; }

.diagram { margin: 28px 0 8px; padding: 22px; border: 1px solid var(--line-2); border-radius: 18px; background: #0e0e0e; overflow: hidden; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { margin-top: 14px; font-size: 0.86rem; color: var(--dim); }
.diagram .box { fill: #171717; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; }
.diagram .box-accent { fill: rgba(124, 255, 178, 0.08); stroke: rgba(124, 255, 178, 0.45); }
.diagram .box-title { fill: #ececec; font-size: 16px; font-weight: 700; font-family: var(--sans); }
.diagram .box-text { fill: #9a9a9a; font-size: 13px; font-family: var(--mono); }
.diagram .link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 9; animation: flowx 1s linear infinite; }
.diagram .link-2 { stroke: var(--blue); }
.diagram .link-label { fill: var(--accent); font-size: 12.5px; font-family: var(--mono); }
.diagram .link-label-2 { fill: var(--blue); font-size: 12.5px; font-family: var(--mono); }
.diagram .packet { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.diagram .packet-b, .diagram .packet-2 { fill: var(--blue); filter: drop-shadow(0 0 6px var(--blue)); }
.diagram .rail { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; stroke-dasharray: 4 8; animation: flowx 1.4s linear infinite; }
.diagram .step circle { fill: #171717; stroke: var(--accent); stroke-width: 1.6; }
.diagram .step text { fill: var(--accent); font-size: 15px; font-weight: 700; font-family: var(--mono); }
.diagram .step .step-t { fill: #ececec; font-size: 14px; font-weight: 700; font-family: var(--sans); }
.diagram .step .step-s { fill: #8e8e8e; font-size: 12px; font-family: var(--sans); }
.diagram .step-warn circle { stroke: var(--red); }
.diagram .step-warn text { fill: var(--red); }
.diagram .file { fill: var(--blue); }
.diagram .step, .diagram .box, .diagram .box-title, .diagram .box-text { transform-box: fill-box; }
@keyframes flowx { to { stroke-dashoffset: -32; } }

.threat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.threat { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.threat h3 { margin-top: 0; }
.threat-ok { border-color: rgba(124, 255, 178, 0.3); }
.threat-ok h3 { color: var(--accent); }
.threat-ko { border-color: rgba(255, 138, 138, 0.3); }
.threat-ko h3 { color: var(--red); }

.callout { margin-top: 18px; padding: 24px 26px; border-radius: 16px; border: 1px solid rgba(255, 138, 138, 0.3); border-left: 3px solid var(--red); background: rgba(255, 138, 138, 0.04); }
.callout p { margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

/* Schémas : animation d'entrée des étapes */
.diagram .step { animation: rise 0.6s var(--ease) backwards; }
.diagram .step:nth-of-type(2) { animation-delay: 0.1s; }
.diagram .step:nth-of-type(3) { animation-delay: 0.2s; }
.diagram .step:nth-of-type(4) { animation-delay: 0.3s; }
.diagram .step:nth-of-type(5) { animation-delay: 0.4s; }

/* Lignes du SFTP qui apparaissent une à une */
.term .ln { display: block; opacity: 0; animation: lineIn 0.45s ease forwards; animation-delay: calc(var(--i) * 0.35s + 0.3s); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.term .ln { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { .term .ln { opacity: 1; animation: none; } }

@media (max-width: 640px) {
  .wp-toc, .threat-grid { grid-template-columns: 1fr; }
  .diagram { padding: 12px; }
  .diagram .box-text { font-size: 16px; }
}

/* ==========================================================================
   v5 : fond à pointillés, barre de navigation bleue, menu déroulant
   ========================================================================== */

/* Pointillés en fond, sur tout le site */
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.55;
  animation: dotdrift 16s linear infinite;
}
@keyframes dotdrift { to { background-position: 22px 22px; } }

/* Barre de navigation bleue, à pointillés */
.site-header {
  background: linear-gradient(180deg, #13307a 0%, #0c1f57 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.35;
  pointer-events: none;
}
.site-header > * { position: relative; }
.site-header.scrolled { background: linear-gradient(180deg, #13307a 0%, #0c1f57 100%); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9); }

.brand { color: #fff; font-weight: 800; }
.brand-dot { color: var(--accent); }

.nav-links { gap: 26px; }
.nav-links > a, .nav-trigger {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.92;
}
.nav-links > a:hover, .nav-trigger:hover, .nav-drop:focus-within .nav-trigger { opacity: 1; text-decoration: none; }
.nav-links > a[aria-current="page"] { color: var(--accent); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.nav-drop:hover .chev, .nav-drop:focus-within .chev { transform: rotate(180deg); }

.nav-drop { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 230px;
  padding: 8px;
  border-radius: 12px;
  background: #0c1f57;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #fff; font-size: 0.92rem; font-weight: 500; }
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.nav-links > a::after { bottom: -6px; background: var(--accent); }

@media (max-width: 960px) {
  .nav-links { background: #0c1f57; }
  .nav-drop { width: 100%; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 1rem; }
  .nav-menu { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav-menu a { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
  .nav-menu a:hover { background: none; }
  .chev { display: none; }
}
.logo { width: 36px; height: 36px; display: block; border-radius: 8px; }
.footer-identity .brand .logo { width: 44px; height: 44px; }

/* ==========================================================================
   v6 : barre de navigation flottante, comme la capture
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border: 0; box-shadow: none; padding: 14px 0; }
.site-header::before { display: none; }
.site-header.scrolled { background: transparent; box-shadow: none; }

.nav {
  height: 60px;
  padding: 0 10px 0 14px;
  gap: 18px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; }
.brand .logo { width: 40px; height: 40px; border-radius: 9px; }
.brand-text { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }

.nav-links { gap: 26px; margin-left: 18px; }
.nav-links > a, .nav-trigger {
  color: #a8a8a8; font-size: 0.92rem; font-weight: 500; background: none; border: 0;
  font-family: inherit; cursor: pointer; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; opacity: 1;
}
.nav-links > a:hover, .nav-trigger:hover, .nav-drop:focus-within .nav-trigger { color: #fff; text-decoration: none; }
.nav-links > a[aria-current="page"] { color: #fff; }
.nav-links > a::after { display: none; }
.chev { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.8; }

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-ghost { color: #d6d6d6; font-size: 0.92rem; font-weight: 500; padding: 9px 14px; border-radius: 999px; }
.nav-ghost:hover { color: #fff; text-decoration: none; }
.site-header .button { padding: 9px 18px; font-size: 0.9rem; border-radius: 999px; }
.site-header .button .icon-inline { width: 14px; height: 14px; margin-left: 4px; }

.menu-toggle { margin-left: auto; border-radius: 999px; }

.nav-drop { position: relative; }

@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; margin: 0; padding: 10px 18px 16px;
    flex-direction: column; gap: 0; background: #141414; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links > a, .nav-trigger { width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 1rem; }
  .nav-drop { width: 100%; }
  .mega { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-col { border-right: 0; padding: 12px 0 6px 12px; }
  .mega-col h3 { margin-top: 8px; }
  .mega-link { margin: 0; padding: 10px 0; }
  .mega-foot { padding: 14px 12px; border-top: 0; }
  .mega-foot nav { flex-direction: column; gap: 12px; }
  .chev { display: none; }
  .nav-actions .nav-ghost { display: none; }
  .nav { position: relative; }
  .site-header.open .nav { border-radius: 26px; }
}

/* ==========================================================================
   v7 : menus déroulants larges, bannière, logos
   ========================================================================== */
.nav { position: relative; }
.nav-drop { position: relative; }

.mega {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  z-index: 60;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}
.nav-drop:hover .mega, .nav-drop:focus-within .mega { display: block; }
.nav-drop:hover .chev, .nav-drop:focus-within .chev { transform: rotate(180deg); }

.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-col { padding: 28px 28px 22px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.mega-col:last-child { border-right: 0; }
.mega-col h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #6f6f6f; margin: 0 0 12px; }

.mega-link { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 12px 12px; margin: 0 -12px; border-radius: 12px; transition: background 0.2s; }
.mega-link:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.mega-link .icon { width: 18px; height: 18px; margin-top: 2px; color: #e6e6e6; }
.mega-link b { display: block; color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.mega-link small { display: block; color: #8c8c8c; font-size: 0.84rem; line-height: 1.45; }

.mega-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 16px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9rem; }
.mega-foot b { color: #fff; font-weight: 600; }
.mega-foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.mega-foot a { color: #a3a3a3; }
.mega-foot a:hover { color: #fff; text-decoration: none; }

/* Logo : fond noir par défaut, version transparente pour les bannières */
.brand .logo { width: 36px; height: 36px; border-radius: 9px; }

/* Bannière d'accueil */
.banner { display: flex; align-items: center; gap: 44px; padding-top: 56px; padding-bottom: 0; }
.banner-logo { width: 132px; height: 132px; flex: none; }
.banner-text { border-left: 1px dashed rgba(255, 255, 255, 0.22); padding-left: 44px; }
.banner-title { font-family: var(--mono); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; color: #f4f4f4; }
.banner-sub { font-family: var(--mono); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.9rem); color: var(--accent); margin: 14px 0 12px; letter-spacing: -0.01em; }
.banner-desc { color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.banner > * { animation: rise 0.9s var(--ease) backwards; }
.banner-text { animation-delay: 0.15s !important; }
.hero { padding-top: 56px; }

@media (max-width: 640px) {
  .banner { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 36px; }
  .banner-logo { width: 96px; height: 96px; }
  .banner-text { padding-left: 22px; }
}
