/* OptiLag — site. Même langage que l'appli : sombre et mat, un seul accent indigo,
   couleurs d'état sobres. */

:root {
  color-scheme: dark;
  --chrome: #07080a;
  --bg: #08090c;
  --bg-alt: #0b0d11;
  --surface: #111318;
  --surface-2: #161920;
  --surface-3: #1d2028;
  --surface-4: #252933;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.16);
  --text: #eceef3;
  --text-2: #a3a8b5;
  --text-3: #6c7282;
  --accent: #7c88ff;
  --accent-strong: #6974f7;
  --accent-text: #a9b1ff;
  --accent-soft: rgba(124, 136, 255, 0.14);
  --accent-line: rgba(124, 136, 255, 0.38);
  --on-accent: #0b0d11;
  --good: #3fcf8e;
  --good-soft: rgba(63, 207, 142, 0.12);
  --warn: #f0b54a;
  --warn-soft: rgba(240, 181, 74, 0.12);
  --bad: #f06a6e;
  --bad-soft: rgba(240, 106, 110, 0.12);
  --info: #62a9ff;
  --info-soft: rgba(98, 169, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-pop: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.4);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1180px;
  --gutter: 24px;
  --entete: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
b, strong { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--text); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-3); border-radius: 6px; padding: 2px 7px; color: var(--text-2); }
h1, h2, h3 { color: var(--text); font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h2 { text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.conteneur { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.conteneur-etroit { max-width: calc(820px + var(--gutter) * 2); }

.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.evitement:focus { top: 12px; color: var(--on-accent); }

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
  user-select: none;
}
.btn .i { width: 17px; height: 17px; stroke-width: 2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px rgba(124, 136, 255, 0.22); }
.btn-primary:hover { background: #8d97ff; color: var(--on-accent); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-3); color: var(--text); }
.btn-danger { background: var(--bad-soft); border-color: rgba(240, 106, 110, 0.35); color: #ff9a9d; }
.btn-danger:hover { background: rgba(240, 106, 110, 0.2); color: #ffb4b6; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn-bloc { width: 100%; }
.btn[disabled], .btn.chargement { opacity: 0.6; pointer-events: none; }
.btn.chargement::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: tourne 0.7s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-ok { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-neutre { background: var(--surface-3); color: var(--text-2); }
.badge-pro { background: linear-gradient(135deg, rgba(124, 136, 255, 0.22), rgba(63, 207, 142, 0.16)); color: var(--text); border: 1px solid var(--accent-line); }
.badge .i { width: 14px; height: 14px; }

.point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.point-ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }

/* ------------------------------------------------------------------ en-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--entete);
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.entete.defile { border-bottom-color: var(--line); background: rgba(8, 9, 12, 0.88); }
.entete-in { height: 100%; display: flex; align-items: center; gap: 28px; }

.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; font-family: var(--font-display); }
.marque:hover { color: var(--text); }
.marque img { width: 28px; height: 28px; }

.menu { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.menu > a { color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color 0.15s, background 0.15s; }
.menu > a:hover { color: var(--text); background: var(--surface-2); }
.menu-compte { display: none; }

.entete-actions { display: flex; align-items: center; gap: 10px; }
.lien-discret { color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 8px 10px; }
.lien-discret:hover { color: var(--text); }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; margin-left: -4px; }
.compte-lien { padding-left: 10px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); place-items: center; }
.burger .i { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding: 76px 0 0; overflow: hidden; isolation: isolate; }
.hero-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(124, 136, 255, 0.16), transparent 70%),
    radial-gradient(40% 30% at 85% 30%, rgba(63, 207, 142, 0.05), transparent 70%);
}
.hero-fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 55% at 50% 15%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 15%, #000 30%, transparent 75%);
}
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(22, 25, 32, 0.7);
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 28px;
  transition: border-color 0.15s, color 0.15s;
}
.pastille:hover { border-color: var(--accent-line); color: var(--text); }
.pastille-tag { background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12.5px; }
.pastille .i { width: 15px; height: 15px; }

.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.degrade { background: linear-gradient(100deg, #b6bdff 0%, var(--accent) 45%, #5fd4a8 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 24px; max-width: 640px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-confiance { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 14px; color: var(--text-3); }
.hero-confiance li { display: inline-flex; align-items: center; gap: 8px; }
.hero-confiance .i { width: 16px; height: 16px; color: var(--text-2); }

.hero-visuel { position: relative; margin-top: 64px; }
.fenetre {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--chrome);
  box-shadow: var(--shadow-pop);
}
.fenetre-hero {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  box-shadow: 0 -10px 80px rgba(124, 136, 255, 0.14), var(--shadow-pop);
  mask-image: linear-gradient(#000 72%, transparent);
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
}

.flottant {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(22, 25, 32, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px;
  line-height: 1.35;
  animation: flotte 7s ease-in-out infinite;
}
.flottant strong { display: block; font-size: 14px; }
.flottant span { color: var(--text-3); }
.flottant-a { left: max(var(--gutter), calc(50% - 640px)); bottom: 22%; }
.flottant-b { right: max(var(--gutter), calc(50% - 640px)); top: 33%; animation-delay: -3.5s; }
.flottant-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.flottant-ic-ok { background: var(--good-soft); color: var(--good); }
.flottant-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text) !important; font-weight: 600; font-size: 13px; }
.flottant-btn .i { width: 14px; height: 14px; }
@keyframes flotte { 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------------ chiffres */

.chiffres { border-block: 1px solid var(--line); background: var(--bg-alt); position: relative; }
.chiffres-grille { display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffre { padding: 34px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.chiffre:first-child { border-left: 0; }
.chiffre strong { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.chiffre span { font-size: 14.5px; color: var(--text-3); line-height: 1.45; }

/* ------------------------------------------------------------------ sections */

.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.titre-section { text-align: center; max-width: 760px; margin: 0 auto 64px; display: flex; flex-direction: column; align-items: center; }
.surtitre { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 16px; }
.surtitre .i { width: 16px; height: 16px; }
.titre-section h2, .bloc-texte h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.lead { margin-top: 18px; font-size: 17.5px; line-height: 1.65; color: var(--text-2); }

/* comparatif */
.comparatif { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.comparatif-col { border-radius: var(--radius); padding: 30px 32px; border: 1px solid var(--line); background: var(--surface); }
.comparatif-col h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 20px; }
.comparatif-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comparatif-col li { position: relative; padding-left: 30px; line-height: 1.55; }
.comparatif-col li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.comparatif-eux { color: var(--text-3); }
.comparatif-eux h3 { color: var(--text-2); }
.comparatif-eux h3 .i { color: var(--bad); }
.comparatif-eux li::before { background-color: var(--bad-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f06a6e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.comparatif-nous { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(124, 136, 255, 0.08), var(--surface) 60%); }
.comparatif-nous li::before { background-color: var(--good-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.etape { position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.etape-num { position: absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.etape-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 22px; }
.etape-ic .i { width: 22px; height: 22px; }
.etape h3 { font-size: 20px; margin-bottom: 10px; }
.etape p { line-height: 1.6; }

/* blocs texte + visuel */
.bloc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
.bloc-inverse .bloc-texte { order: 2; }
.bloc-texte .surtitre { margin-bottom: 14px; }
.bloc-visuel { margin: 0; }
.fenetre-rognee { position: relative; aspect-ratio: 1.32; }
.fenetre-rognee img { position: absolute; top: 0; right: 0; width: 122%; max-width: none; }
.fenetre-courte { aspect-ratio: 1.7; }

.liste-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.liste-points li { display: flex; gap: 16px; line-height: 1.6; }
.liste-points strong { display: block; margin-bottom: 2px; font-size: 16.5px; }
.lp-ic { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent-text); }

.liste-check { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.liste-check li { position: relative; padding-left: 30px; line-height: 1.55; }
.liste-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.profils { display: grid; gap: 12px; margin-top: 30px; }
.profil { display: flex; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.profil strong { font-size: 16px; }
.profil p { font-size: 15px; margin-top: 3px; line-height: 1.55; }
.profil-ic { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }

.note { display: flex; gap: 12px; margin-top: 22px; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
.note .i { margin-top: 3px; color: var(--text-2); }

.encart { margin-top: 30px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); border-left: 3px solid var(--accent); }
.encart strong { display: block; margin-bottom: 6px; }
.encart p { font-size: 15px; line-height: 1.6; }

/* minecraft */
.mc-visuel { max-width: 1000px; margin: 0 auto 28px; }
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte-f { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.25s var(--ease), opacity 0.6s var(--ease); }
.carte-f:hover { border-color: var(--line-3); }
.cf-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.carte-f h3 { font-size: 17.5px; margin-bottom: 8px; }
.carte-f p { font-size: 15px; line-height: 1.6; }

/* garanties */
.garanties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.garantie { background: var(--bg); padding: 28px 26px; }
.garantie > .i { width: 24px; height: 24px; color: var(--good); margin-bottom: 18px; }
.garantie h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.garantie p { font-size: 14.5px; line-height: 1.6; }

/* tarifs */
.periode-choix { display: inline-flex; padding: 4px; margin: 28px auto 0; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.periode-choix button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.periode-choix button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.remise { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 12.5px; font-style: normal; font-weight: 600; }
[data-periode="mois"] .an, [data-periode="an"] .mois { display: none; }

.tarifs { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; }
.tarif { position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); }
.tarif h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.tarif h3 .i { width: 22px; height: 22px; color: var(--accent-text); }
.tarif-desc { margin-top: 8px; font-size: 15px; }
.prix { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 8px; }
.prix strong { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.prix span { color: var(--text-3); font-size: 15px; }
.prix-note { margin-bottom: 24px; font-size: 14px; color: var(--text-3); }
.tarif .liste-check { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; }
.tarif-pro { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(124, 136, 255, 0.1), var(--surface) 45%); box-shadow: 0 30px 80px rgba(124, 136, 255, 0.1); }
.tarif-ruban { position: absolute; top: -13px; right: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 700; }
.tarifs-note { text-align: center; margin-top: 28px; color: var(--text-3); font-size: 14px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.faq details[open] { border-color: var(--line-3); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: var(--text); font-weight: 600; font-size: 16.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-3); transition: transform 0.2s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 24px 22px; line-height: 1.7; }

/* appel final */
.cta-finale { padding: 40px 0 120px; }
.cta-boite {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(124, 136, 255, 0.18), transparent 70%),
    var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-boite img { margin-bottom: 26px; }
.cta-boite h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; }
.cta-boite p { margin-top: 16px; font-size: 17.5px; max-width: 560px; }
.cta-boite .hero-cta { margin-top: 32px; }

/* ------------------------------------------------------------------ pied */

.pied { border-top: 1px solid var(--line); background: var(--chrome); padding: 64px 0 36px; font-size: 14.5px; }
.pied-haut { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.pied-marque p { margin-top: 16px; max-width: 34ch; line-height: 1.6; color: var(--text-3); }
.pied-marque .pied-version { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.pied-col { display: flex; flex-direction: column; gap: 10px; }
.pied-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 6px; font-family: var(--font); font-weight: 600; }
.pied-col a { color: var(--text-2); width: fit-content; }
.pied-col a:hover { color: var(--text); }
.pied-bas { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--text-3); font-size: 13px; }
.pied-marques { max-width: 620px; text-align: right; }

/* ------------------------------------------------------------------ apparition */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flottant { animation: none; }
}

/* ------------------------------------------------------------------ formulaires */

.champ { display: grid; gap: 7px; align-content: start; }
.champ + .champ, .champ + .case, .case + .case, .case + .champ { margin-top: 18px; }
.champ label { color: var(--text); font-size: 14.5px; font-weight: 600; }
.champ-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.champ-tete a { font-size: 13.5px; }
.saisie { position: relative; display: flex; align-items: center; }
.saisie > .i { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; width: 17px; height: 17px; }
.saisie input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15.5px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.saisie input::placeholder { color: var(--text-3); }
.saisie input:hover { border-color: var(--line-3); }
.saisie input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface-3); }
.saisie input[readonly] { color: var(--text-2); background: var(--surface); cursor: default; }
.saisie input[readonly]:focus { box-shadow: none; border-color: var(--line-2); }
.saisie:has(.voir) input { padding-right: 48px; }
.saisie input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px var(--surface-3) inset; caret-color: var(--text); }
.voir { position: absolute; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); }
.voir:hover { color: var(--text); background: var(--surface-4); }
.aide { font-size: 13.5px; color: var(--text-3); }
.erreur-champ { font-size: 13.5px; color: var(--bad); min-height: 0; }
.erreur-champ:empty { display: none; }
.champ.invalide .saisie input { border-color: rgba(240, 106, 110, 0.6); }
.champ.invalide .saisie input:focus { box-shadow: 0 0 0 4px var(--bad-soft); }

.force { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 5px; align-items: center; }
.force span { height: 4px; border-radius: 4px; background: var(--surface-4); transition: background 0.2s; }
.force em { font-size: 12.5px; color: var(--text-3); min-width: 72px; text-align: right; font-style: normal; }
.force[data-niveau="1"] span:nth-child(-n+1) { background: var(--bad); }
.force[data-niveau="2"] span:nth-child(-n+2) { background: var(--warn); }
.force[data-niveau="3"] span:nth-child(-n+3) { background: var(--good); }
.force[data-niveau="4"] span:nth-child(-n+4) { background: var(--good); }

.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.case input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--line-3); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.case input::after { content: ""; width: 11px; height: 11px; background: var(--on-accent); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); transform: scale(0); transition: transform 0.12s var(--ease); }
.case input:checked { background: var(--accent); border-color: var(--accent); }
.case input:checked::after { transform: scale(1); }
.case input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.case-erreur { margin: 6px 0 0 32px; }
.case.invalide input { border-color: var(--bad); }

.alerte { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; border: 1px solid; }
.alerte .i { margin-top: 1px; }
.alerte-err { background: var(--bad-soft); border-color: rgba(240, 106, 110, 0.3); color: #ffb4b6; }
.alerte-ok { background: var(--good-soft); border-color: rgba(63, 207, 142, 0.3); color: #8ce8bd; }
.alerte-info { background: var(--accent-soft); border-color: var(--accent-line); color: #c6cbff; }
.alerte-warn { background: var(--warn-soft); border-color: rgba(240, 181, 74, 0.3); color: #f6d08a; }
form .alerte { margin-top: 18px; }
form .btn-bloc, form > .btn { margin-top: 24px; }

/* ------------------------------------------------------------------ pages d'authentification */

.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-form { display: flex; flex-direction: column; padding: 32px clamp(24px, 5vw, 64px); }
.auth-boite { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; }
.auth-boite h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.auth-boite > p { margin-top: 10px; }
.auth-boite > .alerte { margin-top: 22px; }
.auth-boite > .btn-bloc { margin-top: 26px; }
.auth-boite form { margin-top: 32px; }
.auth-alt { margin-top: 26px; text-align: center; font-size: 15px; color: var(--text-3); }
.auth-pied { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.auth-pied a { color: var(--text-3); }
.auth-pied a:hover { color: var(--text-2); }

.auth-visuel {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(70% 50% at 70% 0%, rgba(124, 136, 255, 0.2), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(63, 207, 142, 0.08), transparent 70%),
    var(--bg-alt);
  display: flex;
  flex-direction: column;
  padding: clamp(40px, 6vw, 80px) 0 0 clamp(40px, 6vw, 80px);
}
.auth-visuel h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; max-width: 16ch; }
.auth-visuel .liste-check { margin-top: 26px; max-width: 440px; padding-right: 40px; }
.auth-visuel .fenetre { margin-top: auto; width: 125%; max-width: none; border-radius: 14px 0 0 0; border-right: 0; border-bottom: 0; transform: translateY(24px); }
.auth-visuel .fenetre img { width: 100%; }

/* ------------------------------------------------------------------ espace compte */

.compte-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.compte-menu { position: sticky; top: calc(var(--entete) + 24px); display: flex; flex-direction: column; gap: 18px; }
.compte-id { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.compte-id .avatar { width: 42px; height: 42px; font-size: 17px; margin: 0; flex-shrink: 0; }
.compte-id div { min-width: 0; }
.compte-id strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-id div span { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-nav { display: flex; flex-direction: column; gap: 2px; }
.compte-nav a, .compte-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 14.5px; font-weight: 500; border: 0; background: none; text-align: left; transition: background 0.15s, color 0.15s; }
.compte-nav a:hover, .compte-nav button:hover { background: var(--surface-2); color: var(--text); }
.compte-nav a.actif { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.compte-nav a.actif .i { color: var(--accent-text); }
.compte-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }

.compte-contenu { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.compte-titre h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.compte-titre p { margin-top: 6px; color: var(--text-3); }

.carte { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--entete) + 24px); }
.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.carte-tete h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.015em; }
.carte-tete h2 .i { color: var(--accent-text); }
.carte-tete p { margin-top: 5px; font-size: 14.5px; color: var(--text-3); }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grille-2 > .carte { display: flex; flex-direction: column; }

.carte-dl { background: radial-gradient(70% 120% at 100% 0%, rgba(124, 136, 255, 0.14), transparent 60%), var(--surface); border-color: var(--line-2); }
.dl { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dl-logo { width: 64px; height: 64px; flex-shrink: 0; }
.dl-info { flex: 1; min-width: 220px; }
.dl-info h2 { font-size: 24px; letter-spacing: -0.02em; }
.dl-info p { margin-top: 4px; font-size: 14.5px; color: var(--text-3); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.dl-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dl-meta .i { width: 15px; height: 15px; color: var(--text-2); }
.nouveautes { margin-top: 20px; }
.nouveautes summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: 14.5px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.nouveautes summary::-webkit-details-marker { display: none; }
.nouveautes summary .i { width: 16px; height: 16px; transition: transform 0.2s; }
.nouveautes[open] summary .i { transform: rotate(180deg); }
.nouveautes ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.6; }
.nouveautes li::marker { color: var(--accent); }

.etapes-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: em; }
.etapes-mini li { counter-increment: em; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.etapes-mini li::before { content: counter(em); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.etapes-mini strong { display: block; margin-bottom: 2px; }

.licence { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--chrome); border: 1px solid var(--line-2); }
.licence code { flex: 1; background: none; padding: 0; font-size: 16px; color: var(--text); letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte .petit { margin-top: 14px; font-size: 13.5px; color: var(--text-3); line-height: 1.55; }
.carte .liste-check { margin-top: 18px; font-size: 14.5px; gap: 9px; }

.form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-ligne .champ + .champ { margin-top: 0; }
.champ-espace { margin-top: 20px; }
.form-actions, .actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-actions .btn, .actions .btn { margin-top: 0; }
.form-actions .alerte, .actions .alerte { margin-top: 0; padding: 8px 12px; }

.carte-danger { border-color: rgba(240, 106, 110, 0.22); }
.carte-danger .carte-tete h2 .i { color: var(--bad); }

.bienvenue { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(63, 207, 142, 0.3); background: linear-gradient(90deg, rgba(63, 207, 142, 0.12), rgba(63, 207, 142, 0.03)); }
.bienvenue .flottant-ic { width: 40px; height: 40px; }
.bienvenue div { flex: 1; }
.bienvenue p { font-size: 14.5px; margin-top: 2px; }
.bienvenue button { border: 0; background: none; color: var(--text-3); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.bienvenue button:hover { color: var(--text); background: var(--surface-3); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding-top: 22px; }
.stats div { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--text-3); }
.stats dd { margin: 2px 0 0; color: var(--text); font-weight: 600; font-size: 15px; }

/* abonnement dans l'espace compte */
.choix-periode { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); }
.choix-periode label { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.choix-periode label:has(input:checked) { background: var(--surface-4); color: var(--text); }
.choix-periode input, .choix-offre input { position: absolute; opacity: 0; pointer-events: none; }
.choix-offre { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.choix-offre label { position: relative; display: block; padding: 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choix-offre label:hover { border-color: var(--line-3); }
.choix-offre label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choix-offre strong { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.choix-offre strong .i { color: var(--accent-text); }
.choix-offre span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.choix-offre .tarif-choix { margin-top: 14px; color: var(--text); font-size: 15.5px; font-weight: 600; }
.choix-periode label:has(input:focus-visible), .choix-offre label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.abo:has(input[name="periode"][value="an"]:checked) .mois,
.abo:has(input[name="periode"][value="mois"]:checked) .an { display: none; }
.resume { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.resume div { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.resume dt { font-size: 13px; color: var(--text-3); }
.resume dd { margin: 2px 0 0; color: var(--text); font-weight: 600; font-size: 15px; }
.espace { margin-top: 16px; }

/* ------------------------------------------------------------------ pages légales et erreur */

.page-texte { padding: 72px 0 110px; }
.page-texte h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.page-texte .maj { margin-top: 10px; color: var(--text-3); font-size: 14.5px; }
.page-texte .alerte { margin-top: 28px; }
.prose { margin-top: 40px; line-height: 1.75; }
.prose h2 { font-size: 21px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.prose dt { color: var(--text-3); }
.prose dd { margin: 0; color: var(--text); }
.a-completer { color: var(--warn); }

.erreur-page { min-height: calc(100vh - var(--entete) - 260px); display: grid; place-items: center; text-align: center; padding: 96px 0; }
.erreur-page .code { font-family: var(--font-display); font-size: clamp(80px, 14vw, 140px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.erreur-page h1 { font-size: 28px; margin-top: 12px; }
.erreur-page p { margin-top: 10px; }
.erreur-page .hero-cta { margin-top: 30px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-3); color: var(--text); box-shadow: var(--shadow-pop); font-size: 14.5px; transition: opacity 0.2s, transform 0.25s var(--ease); pointer-events: none; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--good); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .flottant { display: none; }
  .garanties { grid-template-columns: repeat(2, 1fr); }
  .bloc { gap: 44px; }
  .etapes-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --entete: 62px; }
  .menu {
    position: fixed;
    inset: var(--entete) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
  }
  .menu.ouvert { opacity: 1; transform: none; visibility: visible; }
  .menu > a { padding: 13px 12px; font-size: 16px; }
  .menu-compte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .menu-compte .btn:only-child { grid-column: 1 / -1; }
  .entete-actions .lien-discret, .entete-actions .btn { display: none; }
  .entete-actions { margin-left: auto; }
  .burger { display: grid; }

  .section { padding: 88px 0; }
  .titre-section { margin-bottom: 48px; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .chiffre:nth-child(3) { border-left: 0; }
  .chiffre:nth-child(n+3) { border-top: 1px solid var(--line); }
  .comparatif { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .bloc { grid-template-columns: 1fr; }
  .bloc-inverse .bloc-texte { order: 0; }
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .tarifs { grid-template-columns: minmax(0, 480px); }
  .tarif-pro { order: -1; }
  .pied-haut { grid-template-columns: repeat(3, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
  .pied-bas { flex-direction: column; }
  .pied-marques { text-align: left; }

  .auth { grid-template-columns: 1fr; }
  .auth-visuel { display: none; }

  .compte-page { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .compte-menu { position: static; }
  .compte-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .compte-nav::-webkit-scrollbar { display: none; }
  .compte-nav a, .compte-nav button { white-space: nowrap; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); }
  .compte-nav hr { display: none; }
  .grille-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .hero { padding-top: 48px; }
  .pastille { font-size: 13px; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-visuel { margin-top: 44px; }
  .fenetre-hero { border-radius: 12px 12px 0 0; }
  .section { padding: 72px 0; }
  .lead { font-size: 16.5px; }
  .chiffre { padding: 24px 16px; }
  .chiffre strong { font-size: 28px; }
  .chiffre span { font-size: 13.5px; }
  .comparatif-col, .etape, .carte-f, .tarif, .carte { padding: 22px; }
  .cartes { grid-template-columns: 1fr; }
  .garanties { grid-template-columns: 1fr; }
  .faq summary { padding: 18px; font-size: 15.5px; }
  .faq details > div { padding: 0 18px 18px; }
  .cta-boite { padding: 52px 20px; border-radius: 22px; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .form-ligne, .choix-offre, .resume { grid-template-columns: 1fr; }
  .form-ligne .champ + .champ { margin-top: 18px; }
  .etapes-mini { grid-template-columns: 1fr; }
  .compte-titre h1 { font-size: 28px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}
.choix-offre .tarif-choix span { margin: 0; color: inherit; }
