/* =========================================================================
   HER Memories — V2 « refonte »
   Même contenu, narration et design repensés. Clair / sombre, mobile first.
   ========================================================================= */

:root {
  --bg:        #ffffff;
  --surface:   #f6f7f9;
  --surface-2: #eef1f5;
  --ink:       #0d141a;
  --ink-2:     #2c3742;
  --muted:     #5b6470;
  --line:      #e3e7ec;
  --accent:    #176be0;
  --accent-2:  #1156b6;
  --gold:      #d99e28;
  --on-accent: #ffffff;
  --night:     #0b1014;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 26px;
  --shadow:    0 1px 2px rgba(13,20,26,.05), 0 8px 30px rgba(13,20,26,.07);
  --shadow-lg: 0 20px 60px rgba(13,20,26,.16);
  --wrap: 1140px;
  --step: clamp(3rem, 7vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0b1014;
    --surface:   #121a21;
    --surface-2: #18222b;
    --ink:       #eef2f6;
    --ink-2:     #cdd6df;
    --muted:     #9aa6b3;
    --line:      #223039;
    --accent:    #5b9bff;
    --accent-2:  #85b4ff;
    --gold:      #eab646;
    --on-accent: #05121f;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 70px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --bg:        #0b1014;
  --surface:   #121a21;
  --surface-2: #18222b;
  --ink:       #eef2f6;
  --ink-2:     #cdd6df;
  --muted:     #9aa6b3;
  --line:      #223039;
  --accent:    #5b9bff;
  --accent-2:  #85b4ff;
  --gold:      #eab646;
  --on-accent: #05121f;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: var(--step) 0; }
.section-tint { background: var(--surface); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 300; background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: var(--r-sm); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: .96rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-secondary { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #0d141a; }
.btn-light:hover { background: #eaf0fb; color: #0d141a; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* -------------------------------------------------------------- navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.brand span i { font-style: normal; font-weight: 400; color: var(--muted); }
.nav-links { display: flex; gap: 1.5rem; margin-left: 1rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current]::after { right: 0; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.nav-quiet { color: var(--muted); font-size: .89rem; text-decoration: none; }
.nav-quiet:hover { color: var(--accent); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-pill {
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem;
  font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 36px;   /* cible tactile */
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; }
.drawer {
  display: flex; flex-direction: column; gap: .1rem;
  padding: 1rem 1.25rem 1.8rem; border-top: 1px solid var(--line); background: var(--bg);
}
.drawer a { padding: .7rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.drawer .btn { margin-top: .8rem; }

/* -------------------------------------------------------------------- héros */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 62% at 22% 48%, rgba(23,107,224,.30), transparent 72%);
  pointer-events: none;
}
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.sub { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 34ch; }
.hero .eyebrow { color: rgba(255,255,255,.55); }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media img { max-height: 540px; width: auto; mix-blend-mode: lighten; }
.hero-points { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: grid; gap: .55rem; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255,255,255,.82); font-size: .97rem; }
.hero-points li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em;
  border-radius: 50%; background: var(--gold);
}
.hero-note { color: rgba(255,255,255,.5); font-size: .87rem; margin-top: 1.4rem; }

/* -------------------------------------------------------------------- presse */
.press-strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.press-strip .wrap { padding: 2.2rem 0; text-align: center; }
.press-strip .press-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 1.6rem 2.6rem; flex-wrap: wrap; margin-top: 1.2rem;
}
.press-strip p { margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.press-strip img { height: 30px; width: auto; transition: transform .25s; }
.press-strip a:hover img { transform: translateY(-2px); }
.press-strip .as-text { font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.press-strip .as-text:hover { color: var(--ink); }

/* -------------------------------------------------------------------- étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem 1.7rem; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 1.1rem;
}
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------------ diptyque */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.duo + .duo { margin-top: var(--step); }
.duo-flip .duo-media { order: -1; }
.duo-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.duo-text p { color: var(--muted); }
.duo-text strong { color: var(--ink); }

.device-figure { position: relative; display: flex; justify-content: center; }
.device-figure img { max-width: min(360px, 100%); }
.chip {
  position: absolute; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .85rem; font-size: .8rem; font-weight: 600;
  color: var(--ink); box-shadow: var(--shadow); white-space: nowrap;
}
.chip-1 { top: 6%;  left: -4%; }
.chip-2 { top: 20%; right: -6%; }
.chip-3 { bottom: 22%; left: -6%; }
.chip-4 { bottom: 6%; right: -2%; }

/* -------------------------------------------------------------------- tarifs */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 2.6rem; align-items: start; }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.2rem 2rem;
  background: var(--bg); display: flex; flex-direction: column; height: 100%;
}
.plan-best { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan-best::before {
  content: attr(data-tag); position: absolute; top: -.85rem; left: 2rem;
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .2rem .8rem; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.plan .price { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin: .4rem 0 .1rem; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .plan-desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.plan h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.2rem 0 .6rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.plan li { display: flex; gap: .6rem; font-size: .95rem; align-items: flex-start; }
.plan li svg { flex: none; margin-top: .35em; color: var(--accent); }
.plan .btn { margin-top: 1.8rem; }
.plan-foot { margin-top: auto; padding-top: 1.2rem; font-size: .86rem; color: var(--muted); }

/* ------------------------------------------------------------------ héritage */
.legacy { background: var(--night); color: #fff; }
.legacy h2 { color: #fff; }
.legacy p { color: rgba(255,255,255,.76); }
.legacy strong { color: #fff; }
.legacy .duo-media img { box-shadow: none; border-radius: var(--r-lg); }

/* ----------------------------------------------------------------- avantages */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem 1.6rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-icon { color: var(--accent); margin-bottom: .9rem; }

/* ---------------------------------------------------------------------- FAQ */
.faq { max-width: 780px; margin: 2.4rem auto 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: .3rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.4rem 1.1rem 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 0 0 1.2rem; padding-right: 2rem; font-size: .97rem; }

/* ------------------------------------------------------------------- bandeau */
.cta {
  background: linear-gradient(135deg, var(--accent) 0%, #0b3d8f 100%);
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.8rem; }

/* ------------------------------------------------------------------- contenu */
.page-head { padding: clamp(2.6rem, 6vw, 4.5rem) 0 1rem; }
.page-head h1 { max-width: 18ch; }
.page-head.center h1 { margin-inline: auto; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.prose p { color: var(--muted); }
.todo { background: #fff3cd; color: #8a6100; font-weight: 600; font-size: .82rem; padding: .1rem .5rem; border-radius: 4px; }

.stats-row { display: flex; gap: 3rem; margin: 2rem 0; flex-wrap: wrap; }
.stat-v { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.stat-l { font-size: .9rem; color: var(--muted); }

.tribute-list { list-style: none; padding: 0; display: grid; gap: .8rem; margin: 1.4rem 0; }
.tribute-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.tribute-list li svg { flex: none; margin-top: .3em; color: var(--accent); }
.tribute-list strong { color: var(--ink); }

/* ------------------------------------------------------------------- contact */
.contact-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .87rem; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; padding: .75rem .95rem; width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { min-height: 1.5em; font-weight: 500; font-size: .95rem; margin: .9rem 0 0; }
.form-status.ok  { color: #1a7f45; }
.form-status.err { color: #d0342c; }
.contact-side dl { margin: 0; }
.contact-side dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 1.3rem; }
.contact-side dd { margin: .15rem 0 0; font-size: 1.02rem; }

/* -------------------------------------------------------------------- footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: var(--step) 0 1.5rem; }
.footer-cols { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.footer a { display: block; color: var(--ink); text-decoration: none; font-size: .93rem; padding: .2rem 0; }
.footer a:hover { color: var(--accent); }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted);
}
.badge-fr { width: 68px; height: 68px; border-radius: 50%; margin-top: 1.2rem; }

/* ------------------------------------------------------------------- cookies */
.cookie-banner {
  position: fixed; z-index: 300; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 620px; margin-inline: auto; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.cookie-banner p { margin: 0; flex: 1 1 250px; font-size: .88rem; color: var(--muted); }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .5rem 1.1rem; font-size: .86rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* ------------------------------------------------------------------ apparition */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-in, .duo, .contact-cols { grid-template-columns: 1fr; }
  .duo-flip .duo-media, .hero-media { order: -1; }
  .hero-media img { max-height: 320px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .chip { font-size: .72rem; }
  .chip-1, .chip-3 { left: 0; }
  .chip-2, .chip-4 { right: 0; }
}
@media (max-width: 820px) {
  .nav-links, .nav-end .nav-quiet, .nav-end .btn { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 821px) {
  .drawer { display: none !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-cols { grid-template-columns: 1fr; }
  .stats-row { gap: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- ajustements après première relecture visuelle ---------------------- */
.hero h1 { max-width: 13ch; }
.device-figure img { box-shadow: none; }

/* logos de presse : ce sont des captures sur fond blanc, on leur donne
   un support clair pour rester lisibles en thème sombre */
:root[data-theme="dark"] .press-strip img,
:root[data-theme="dark"] .card img { background: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .press-strip img { background: #fff; border-radius: 4px; padding: 2px 5px; }
}
:root[data-theme="dark"] .press-strip img { border-radius: 4px; padding: 2px 5px; }
/* l'attribut hidden doit l'emporter sur la mise en page du tiroir */
.drawer[hidden] { display: none !important; }

.callout {
  border-left: 3px solid var(--accent); padding: .1rem 0 .1rem 1rem;
  color: var(--ink-2); font-size: .97rem;
}

/* Les portraits du héros sont détourés sur fond noir : le héros est donc en noir
   pur, et la fusion « lighten » les intègre sans bord visible ni découpe. */
.hero { background: #000; }

/* --- offre unique : la carte reste lisible, centrée ---------------------- */
.plans-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.plan-solo { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan-solo .plan-foot a { font-weight: 600; }

/* --- recharges de temps vidéo, rattachées à la section vidéo ------------- */
.topup { margin-top: 1.8rem; }
.topup h3 { font-size: 1rem; margin-bottom: .8rem; }
.topup ul { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.topup li {
  display: flex; align-items: baseline; gap: .6rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem;
  background: var(--bg);
}
.topup li span { color: var(--muted); font-size: .92rem; }
.topup li strong { font-size: 1.02rem; }
.topup p { font-size: .89rem; color: var(--muted); margin: 0; }

/* L'accueil donne plus de place au portrait : c'est lui qui porte la promesse. */
.hero-lg .hero-in { grid-template-columns: 1fr 1.05fr; }
.hero-lg .hero-media img { max-height: 640px; }
@media (max-width: 980px) {
  .hero-lg .hero-in { grid-template-columns: 1fr; }
  .hero-lg .hero-media img { max-height: 380px; }
}

/* Le portrait de After a sa propre transparence : pas de fusion, sinon le halo
   bleu remonterait à travers le visage. */
.hero-cut .hero-media img { mix-blend-mode: normal; }

/* l'attribut hidden doit l'emporter sur la mise en page du bandeau */
.cookie-banner[hidden] { display: none !important; }

/* Le portrait de After est un gros plan coupé au front et au menton : un dégradé
   vertical fond ces deux bords dans le noir au lieu de les trancher net. */
.hero-cut .hero-media img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
