/* SuNight — palette « heure bleue » reprise du logiciel */
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(fonts/manrope.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --nuit: #0f1118;
  --nuit-2: #151821;
  --nuit-3: #1c1f29;
  --ligne: #2a2e3b;
  --texte: #ece6da;
  --doux: #a19c94;
  --pale: #77736d;
  --ambre: #f0a04b;
  --ambre-clair: #f7bd7c;
  --bleu: #6c8cd5;
  --bleu-pale: #9fb4e6;
  --vert: #7fbf8e;
  --ombre: 0 1px 2px rgba(4, 6, 12, .4), 0 12px 32px -12px rgba(4, 6, 12, .7), 0 40px 80px -40px rgba(108, 140, 213, .25);
  --r: 14px;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1.2, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nuit); color: var(--texte);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ambre-clair); text-underline-offset: 3px; }
a:hover { color: var(--ambre); }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ambre); color: #1a1208; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ----------------------------------------------------------------- en-tête */
.entete { position: sticky; top: 0; z-index: 40; background: rgba(15, 17, 24, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(42, 46, 59, .7); }
.entete .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.marque img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--doux); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--texte); }
.langue { font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em; border: 1px solid var(--ligne); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 760px) { .nav .masque-mobile { display: none; } .nav { gap: 14px; } }

/* ----------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ambre { background: var(--ambre); color: #1a1208; box-shadow: 0 10px 30px -10px rgba(240, 160, 75, .65); }
.btn-ambre:hover { background: var(--ambre-clair); color: #1a1208; }
.btn-ligne { background: transparent; color: var(--texte); border-color: #3a3f50; }
.btn-ligne:hover { border-color: var(--bleu-pale); color: var(--texte); }
.btn small { font-weight: 500; opacity: .75; font-size: 13px; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(240, 160, 75, .28), transparent 70%),
    radial-gradient(50% 60% at 95% 15%, rgba(108, 140, 213, .22), transparent 70%),
    linear-gradient(180deg, #1a1922 0%, var(--nuit) 70%);
}
.hero::after { /* grain */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.surtitre { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ambre-clair); }
.surtitre::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 18px 0 22px; max-width: 14ch; }
h1 em, h2 em { font-style: italic; color: var(--ambre-clair); }
h1 .nuit { font-style: italic; color: var(--bleu-pale); }
.chapo { font-size: clamp(18px, 2.1vw, 21px); color: var(--doux); max-width: 58ch; margin: 0 0 32px; }
.chapo strong { color: var(--texte); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mention { font-size: 14px; color: var(--pale); margin-top: 14px; }

/* comparateur diagonal */
.compare { position: relative; margin-top: 56px; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 16 / 9; background: var(--nuit-3); }
.compare video, .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .apres { clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%); }
.compare .trait { position: absolute; inset: 0; pointer-events: none; background: rgba(255, 255, 255, .9); clip-path: polygon(61.8% 0, 62.2% 0, 38.2% 100%, 37.8% 100%); }
.etiquette { position: absolute; top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.etiquette.gauche { left: 16px; background: rgba(15, 17, 24, .65); color: var(--texte); }
.etiquette.droite { right: 16px; background: rgba(240, 160, 75, .9); color: #1a1208; }
.legende { font-size: 14px; color: var(--pale); margin-top: 12px; text-align: center; }

/* ----------------------------------------------------------------- sections */
section { padding: 96px 0; position: relative; }
.titre-section { margin-bottom: 48px; }
h2 { font-size: clamp(36px, 5vw, 58px); max-width: 18ch; }
.titre-section p { color: var(--doux); max-width: 60ch; margin: 16px 0 0; font-size: 18px; }

.bande { background: var(--nuit-2); border-block: 1px solid var(--ligne); }
.bande::before { /* diagonale du logo */
  content: ''; position: absolute; top: -1px; right: 0; width: 38%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ambre));
}

/* problème : 2 colonnes */
.probleme { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .probleme { grid-template-columns: 1fr; gap: 32px; } }
.liste-croix { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.liste-croix li { padding-left: 34px; position: relative; color: var(--doux); }
.liste-croix li strong { color: var(--texte); font-weight: 600; }
.liste-croix li::before { content: ''; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ambre); background: radial-gradient(circle, var(--ambre) 0 3px, transparent 4px); }

.courbe { background: var(--nuit); border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px; box-shadow: var(--ombre); }
.courbe svg { width: 100%; height: auto; display: block; }
.courbe figcaption { font-size: 13px; color: var(--pale); margin-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.courbe figcaption span::before { content: ''; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; background: var(--c); }

/* étapes */
.etapes { counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
@media (max-width: 960px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }
.etape { display: block; list-style: none; background: var(--nuit-2); padding: 30px 26px 32px; counter-increment: e; }
.etape::marker { content: none; }
.etape::before { content: counter(e, decimal-leading-zero); display: block; font: italic 400 44px/1 var(--serif); color: var(--ambre); margin-bottom: 18px; }
.etape h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0; margin-bottom: 8px; line-height: 1.3; }
.etape p { margin: 0; color: var(--doux); font-size: 15.5px; }
.etape .ou { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu-pale); margin-bottom: 10px; }

/* fonctions */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
@media (max-width: 860px) { .grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grille { grid-template-columns: 1fr; } }
.fonction { border-top: 1px solid var(--ligne); padding-top: 20px; }
.fonction h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0; line-height: 1.35; margin-bottom: 6px; }
.fonction p { margin: 0; color: var(--doux); font-size: 15.5px; }

/* tarifs */
.tarifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .tarifs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tarifs { grid-template-columns: 1fr; } }
.tarif { position: relative; display: flex; flex-direction: column; background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: var(--r); padding: 26px 22px 22px; transition: transform .4s var(--ease), border-color .2s; }
.tarif:hover { transform: translateY(-4px); border-color: #3c4256; }
.tarif.vedette { background: linear-gradient(160deg, rgba(240, 160, 75, .14), transparent 55%), var(--nuit-3); border-color: rgba(240, 160, 75, .55); box-shadow: var(--ombre); }
.tarif .badge { position: absolute; top: -12px; left: 22px; background: var(--ambre); color: #1a1208; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tarif h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.prix { font: 400 56px/1 var(--serif); margin: 16px 0 4px; letter-spacing: -.02em; }
.prix small { font: 500 15px var(--sans); color: var(--pale); margin-left: 4px; letter-spacing: 0; }
.tarif .usage { color: var(--doux); font-size: 15px; margin: 6px 0 20px; flex: 1; }
.tarif form { margin: 0; }
.tarif .btn { width: 100%; }
.consentement { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; padding: 16px 18px; border-radius: 12px; background: var(--nuit-2); border: 1px dashed #3a3f50; color: var(--doux); font-size: 15px; cursor: pointer; }
.consentement input { width: 20px; height: 20px; accent-color: var(--ambre); margin: 3px 0 0; flex: none; }
.consentement.alerte { border-color: var(--ambre); color: var(--texte); }
.inclus { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; color: var(--doux); font-size: 15px; padding: 0; list-style: none; }
.inclus li::before { content: '✓'; color: var(--vert); font-weight: 700; margin-right: 8px; }
.paiement { margin-top: 14px; font-size: 14px; color: var(--pale); }

/* téléchargement */
.telecharger { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .telecharger { grid-template-columns: 1fr; } }
.ecran-ss { background: #f3f3f3; color: #1b1b1b; border-radius: 10px; padding: 22px 24px; font: 400 14px/1.5 'Segoe UI', system-ui, sans-serif; box-shadow: var(--ombre); }
.ecran-ss .titre { background: #0067c0; color: #fff; margin: -22px -24px 18px; padding: 16px 24px; border-radius: 10px 10px 0 0; font-size: 20px; font-weight: 600; }
.ecran-ss .lien { color: #0067c0; text-decoration: underline; font-weight: 600; }
.ecran-ss .bouton { display: inline-block; margin-top: 14px; padding: 6px 16px; border: 1px solid #8a8a8a; border-radius: 4px; background: #fff; }
.ecran-ss .clic { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }
.ecran-ss .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ambre); color: #1a1208; font: 700 12px var(--sans); margin-left: 8px; vertical-align: middle; }
.config { margin: 18px 0 0; padding: 0; list-style: none; color: var(--doux); font-size: 15px; display: grid; gap: 6px; }
.config strong { color: var(--texte); font-weight: 600; }

/* FAQ */
.faq details { border-top: 1px solid var(--ligne); }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--serif); color: var(--ambre); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--doux); max-width: 70ch; }

/* pied */
.pied { padding: 56px 0 40px; border-top: 1px solid var(--ligne); color: var(--pale); font-size: 14px; }
.pied .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.pied a { color: var(--doux); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* pages texte (CGV, merci, guide) */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); max-width: none; }
.page h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 48px 0 14px; max-width: none; }
.page h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 28px 0 8px; }
.page p, .page li { color: var(--doux); }
.page strong { color: var(--texte); }
.encadre { background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px 26px; margin: 24px 0; font-size: 15.5px; }
.cle { font: 600 clamp(20px, 4.6vw, 32px)/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .06em; color: var(--ambre-clair); background: var(--nuit); border: 1px solid rgba(240, 160, 75, .5); border-radius: 12px; padding: 18px 22px; margin: 18px 0; overflow-wrap: anywhere; user-select: all; }

.apparition { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ease); }
.apparition.vue { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparition { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* utilitaires (pas de style en ligne : la CSP les bloque) */
.m0 { margin: 0; } .m0t { margin-top: 0; } .m0b6 { margin: 0 0 6px; } .m0b8 { margin: 0 0 8px; } .m0b10 { margin: 0 0 10px; } .m0b18 { margin: 0 0 18px; }
.m6t { margin: 6px 0 0; } .m16t { margin: 16px 0 0; } .m24t { margin-top: 24px; } .m28t { margin: 28px 0 0; }
.fort { color: var(--texte); font-weight: 600; } .doux { color: var(--doux); } .p15 { font-size: 15px; }
.intro { color: var(--doux); font-size: 18px; margin: 18px 0 0; } .intro-b { margin-bottom: 26px; }
.note { font-size: 14px; color: var(--doux); margin: 10px 0 0; }
.petit-titre { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 0 0 8px; line-height: 1.3; }
section.serre { padding-top: 24px; }
figure.compare { margin-inline: 0; }
.etapes { list-style: none; margin: 0; padding: 0; }
.faq h2 { margin-bottom: 32px; }
.courbe figcaption .leg-0 { --c: #5d6378; } .courbe figcaption .leg-1 { --c: #f0a04b; } .courbe figcaption .leg-2 { --c: #9fb4e6; }
.courbe figcaption .leg-2::before { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 2px solid #9fb4e6; }
