/* Site vitrine WariLink — couleurs de marque uniquement, sans emoji */
:root {
  --navy: #0F2456;
  --navy-dark: #081636;
  --navy-light: #1A3A7A;
  --gold: #E0A82E;
  --gold-light: #F2C24D;
  --white: #FFFFFF;
  --bg: #F5F6FA;
  --text: #081636;
  --muted: #5C6B8A;
  --border: rgba(15, 36, 86, 0.12);
  --success: #1FAA59;
  --danger: #C0392B;
  --shadow-sm: 0 2px 8px rgba(8, 22, 54, 0.04);
  --shadow-md: 0 10px 30px rgba(8, 22, 54, 0.08);
  --shadow-lg: 0 20px 50px rgba(8, 22, 54, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@keyframes fadePageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  animation: fadePageIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Animations d'apparition au scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(8, 22, 54, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.brand b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { background: var(--gold); color: var(--navy-dark) !important; font-weight: 700; }
.nav-cta:hover { background: var(--gold-light) !important; }

/* BOUTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 13px; font-weight: 700; font-size: 15px; cursor: pointer;
  border: none; font-family: inherit; line-height: 1; white-space: nowrap;
  transition: transform .12s, background .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 2.2; }
.btn-gold { background: var(--gold); color: var(--navy-dark); box-shadow: 0 10px 30px rgba(224,168,46,.28); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 14px 38px rgba(224,168,46,.36); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #14295c 0%, var(--navy-dark) 60%); color: #fff; }
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero::after { /* voile pour la lisibilite du texte sur les particules */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,22,54,.55) 0%, rgba(8,22,54,.15) 55%, transparent 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; padding: 6px 14px; border: 1px solid rgba(224,168,46,.4);
  border-radius: 999px; margin-bottom: 22px; background: rgba(224,168,46,.08); }
.hero h1 { font-size: clamp(32px, 5.5vw, 58px); line-height: 1.06; font-weight: 800; margin: 0 0 18px; max-width: 16ch; letter-spacing: -1px; }
.hero h1 b { color: var(--gold); }
.hero p { font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* SECTIONS */
section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow { color: var(--navy-light); border-color: var(--border); background: rgba(15,36,86,.04); }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; color: var(--navy); letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); gap: 22px; }
.feature { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px;
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .28s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(8,22,54,.13); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .ic { position: relative; width: 58px; height: 58px; border-radius: 17px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(15,36,86,.28); }
.feature .ic::after { content: ''; position: absolute; inset: 0; border-radius: 17px; box-shadow: inset 0 0 0 1px rgba(224,168,46,.4); }
.feature:hover .ic { animation: floaty 2.4s ease-in-out infinite; }
.feature .ic svg { width: 27px; height: 27px; stroke: var(--gold); stroke-width: 2; }
.feature h3 { margin: 0 0 9px; font-size: 19px; color: var(--navy); letter-spacing: -.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* STEPS */
.steps-sec { background: var(--navy-dark); color: #fff; }
.steps-sec .section-head h2 { color: #fff; }
.steps-sec .section-head .eyebrow { color: var(--gold); border-color: rgba(224,168,46,.4); background: rgba(224,168,46,.08); }
.steps-sec .section-head p { color: rgba(255,255,255,.7); }
.steps-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.graph-panel { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px; overflow: hidden; }
.graph-canvas { display: block; width: 100%; height: 400px; }
.graph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; font-size: 12.5px;
  color: rgba(255,255,255,.78); background: linear-gradient(transparent, rgba(8,22,54,.65)); text-align: center; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 18px 20px; transition: background .18s, transform .18s; }
.steps-list li:hover { background: rgba(255,255,255,.08); transform: translateX(5px); }
.steps-list .num { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--gold);
  color: var(--navy-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.steps-list h3 { margin: 0 0 4px; font-size: 16.5px; color: #fff; }
.steps-list p { margin: 0; color: rgba(255,255,255,.72); font-size: 13.5px; }
@media (max-width: 820px) { .steps-layout { grid-template-columns: 1fr; gap: 24px; } .graph-canvas { height: 300px; } }

/* NUMEROS VIRTUELS — apps + Three.js */
.apps-sec { position: relative; background: radial-gradient(120% 90% at 50% 0%, #14295c, var(--navy-dark)); color: #fff; overflow: hidden; }
.apps-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }
.apps-sec > .wrap { position: relative; z-index: 2; }
.apps-sec .section-head h2 { color: #fff; }
.apps-sec .section-head .eyebrow { color: var(--gold); border-color: rgba(224,168,46,.4); background: rgba(224,168,46,.08); }
.apps-sec .section-head p { color: rgba(255,255,255,.74); }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.app { position: relative; border-radius: 16px; padding: 22px 12px; min-height: 100px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; font-weight: 700; color: #fff; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); transition: transform .18s, box-shadow .18s; }
.app:hover { transform: translateY(-6px) scale(1.025); box-shadow: 0 20px 46px rgba(0,0,0,.4); }
.app.lighttext { color: #14213D; }
.app .app-logo { width: 34px; height: 34px; object-fit: contain; }
.app .app-mark { border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: .8px; color: currentColor;
  background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.app .app-name { font-size: 13.5px; letter-spacing: .2px; }
.app::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.28), transparent 62%); }
.apps-more { text-align: center; margin-top: 28px; color: rgba(255,255,255,.65); font-size: 14px; }
.apps-more b { color: var(--gold); }

/* ACCORDS / OPERATEURS */
.ops-sec { background: linear-gradient(180deg, #fff, var(--bg)); }
.ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; }
.op { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color .3s; }
.op:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 40px rgba(8,22,54,.15); border-color: rgba(224,168,46,.45); }
.op img { width: 56px; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.op:hover img { filter: none; opacity: 1; }
.op span { font-size: 13px; font-weight: 700; color: var(--navy); }

/* COUNTRIES */
.countries { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.country { display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; font-weight: 600;
  color: var(--navy); font-size: 15px; transition: transform .15s, box-shadow .15s; }
.country:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(8,22,54,.1); }
.country .flag { width: 30px; height: 21px; border-radius: 4px; flex: 0 0 30px;
  box-shadow: 0 1px 4px rgba(8,22,54,.25); overflow: hidden; }
.country span { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .5px; }

/* TELECHARGEMENT — meme famille visuelle que la newsletter (carte navy), mais
   c'est l'action principale de la section : elle passe devant.

   L'apparition est une animation CSS et NON la classe `.reveal` : cette carte
   n'existe qu'apres la reponse du serveur, alors que l'IntersectionObserver de
   `.reveal` n'observe que les elements presents au montage. Elle resterait donc
   a `opacity: 0` — un bouton de telechargement invisible. Ici l'etat par defaut
   est visible, l'animation ne fait que l'amener. */
.dl { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; border-radius: 26px;
  padding: 52px 40px; text-align: center; box-shadow: 0 24px 60px rgba(8,22,54,.28);
  position: relative; overflow: hidden; margin-bottom: 26px;
  animation: dlIn .62s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dlIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.dl::before { content: ''; position: absolute; top: -70px; left: -55px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(224,168,46,.3), transparent 70%); border-radius: 50%; }
.dl h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 10px; font-weight: 800; position: relative; }
.dl > p { color: rgba(255,255,255,.8); margin: 0 auto 26px; max-width: 46ch; position: relative; }
.dl-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
/* Cible tactile confortable : c'est le geste que toute la page prepare. */
.dl-actions .btn { padding: 16px 26px; }
.dl-actions .btn small { font-size: 13px; font-weight: 600; opacity: .72; }
.dl-hint { position: relative; margin: 22px auto 0; max-width: 54ch;
  font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.74); }
.dl-note { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 24px auto 0;
  padding: 11px 16px; border-radius: 12px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); font-size: 14px; color: rgba(255,255,255,.88); }
.dl-note svg { width: 17px; height: 17px; flex: 0 0 17px; stroke-width: 2.2; }

/* VERSIONS PRECEDENTES
   Repliees par defaut, et c'est le point : un visiteur ordinaire ne doit pas
   avoir a choisir entre trois APK. Celui qui vient ici sait ce qu'il cherche —
   sa derniere mise a jour lui pose probleme. */
.dl-old { position: relative; margin: 20px auto 0; max-width: 46ch; text-align: left; }
.dl-old > summary { cursor: pointer; list-style: none; text-align: center;
  font-size: 14px; color: rgba(255,255,255,.72); padding: 8px; border-radius: 10px; }
.dl-old > summary::-webkit-details-marker { display: none; }
.dl-old > summary:hover { color: #fff; background: rgba(255,255,255,.06); }
.dl-old > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dl-old-item { display: flex; align-items: center; gap: 12px; justify-content: space-between;
  margin-top: 8px; padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9); text-decoration: none; font-size: 14px; min-height: 44px; }
.dl-old-item:hover { background: rgba(255,255,255,.12); }
.dl-old-item small { opacity: .65; font-weight: 600; }
.dl-old p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); margin: 12px 0 0; }

@media (max-width: 640px) {
  .dl { padding: 40px 22px; border-radius: 22px; }
  .dl-actions { flex-direction: column; }
  .dl-actions .btn { width: 100%; }
}

/* NEWSLETTER */
.news { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; border-radius: 26px;
  padding: 56px 40px; text-align: center; box-shadow: 0 24px 60px rgba(8,22,54,.28); position: relative; overflow: hidden; }
.news::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(224,168,46,.35), transparent 70%); border-radius: 50%; }
.news h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 10px; font-weight: 800; position: relative; }
.news p { color: rgba(255,255,255,.8); margin: 0 auto 28px; max-width: 46ch; position: relative; }
.news form { display: flex; gap: 12px; max-width: 470px; margin: 0 auto; flex-wrap: wrap; position: relative; }
.news input { flex: 1; min-width: 220px; padding: 15px 18px; border-radius: 13px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1); color: #fff; font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s; }
.news input::placeholder { color: rgba(255,255,255,.55); }
.news input:focus { border-color: var(--gold); }
.news .btn { flex: 0 0 auto; }
.news .msg { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 20px; position: relative; }
.news .msg.ok { color: var(--gold-light); }
.news .msg.err { color: #ffd2cc; }

/* FOOTER */
footer { background: var(--navy-dark); color: rgba(255,255,255,.6); padding: 38px 0; font-size: 13px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot a:hover { color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 64px 0; }
  .news { padding: 40px 22px; }
  .hero-inner { padding-top: 110px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .news input { min-width: 100%; }
  .news .btn { width: 100%; }
  .foot { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.scroll-3d,
  .reveal.scroll-3d.in { transform: none; filter: none; }
  .scroll-hint .dot, .feature:hover .ic { animation: none; }
  .dl { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================ UX ENHANCEMENTS ============================ */

/* Accessibilite : lien d'evitement + focus visible WCAG */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 8px rgba(224,168,46,.6); transition: width .08s linear; }

/* Bouton retour en haut */
.to-top { position: fixed; right: 22px; bottom: 90px; z-index: 55; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(8,22,54,.35); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-light); }
.to-top svg { width: 22px; height: 22px; stroke-width: 2.4; }

/* Toasts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 120;
  display: flex; flex-direction: column; gap: 10px; width: min(92vw, 380px); }
.toast { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--text); padding: 13px 16px;
  border-radius: 13px; box-shadow: 0 14px 40px rgba(8,22,54,.22); border-left: 4px solid var(--muted);
  font-size: 14px; font-weight: 600; animation: toastIn .3s cubic-bezier(.2,.7,.2,1); }
.toast-success { border-left-color: var(--success); }
.toast-info { border-left-color: var(--gold); }
.toast-error { border-left-color: var(--danger); }
.toast-ic { display: flex; flex: 0 0 auto; }
.toast-ic svg { width: 20px; height: 20px; stroke-width: 2.2; }
.toast-success .toast-ic { color: var(--success); }
.toast-info .toast-ic { color: #b8861f; }
.toast-error .toast-ic { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Widget WhatsApp */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 56; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #25D366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .15s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab-mark { font-size: 14px; font-weight: 900; letter-spacing: .8px; color: #fff; }
.wa-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-pop { background: #fff; border-radius: 18px; padding: 20px; width: min(86vw, 300px); position: relative;
  box-shadow: 0 22px 54px rgba(8,22,54,.32); animation: toastIn .25s cubic-bezier(.2,.7,.2,1); }
.wa-pop-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wa-badge { width: 38px; height: 38px; border-radius: 11px; background: #25D366; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wa-badge span { font-size: 11px; font-weight: 900; letter-spacing: .8px; color: #fff; }
.wa-pop-h b { font-size: 16px; color: var(--navy); }
.wa-pop p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.wa-pop .btn { width: 100%; background: #25D366; color: #fff; margin-bottom: 8px; text-decoration: none; }
.wa-pop .btn:hover { background: #1ebe5b; }
.wa-copy { width: 100%; background: transparent; border: 1.5px solid var(--border); color: var(--navy);
  border-radius: 12px; padding: 11px; font-weight: 600; cursor: pointer; font-size: 13px; transition: background .15s; }
.wa-copy:hover { background: rgba(15,36,86,.04); }
.wa-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.wa-close:hover { background: rgba(15,36,86,.06); }

/* Skeleton (shimmer) pour images chargees */
.imgwrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.imgwrap img { transition: opacity .35s; }
.skeleton { position: absolute; inset: 0; border-radius: 8px; background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
  background-image: linear-gradient(90deg, rgba(15,36,86,.06) 25%, rgba(15,36,86,.13) 37%, rgba(15,36,86,.06) 63%); }
.skeleton-light { background-image: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.3) 37%, rgba(255,255,255,.12) 63%); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Newsletter : etats de validation */
.news-fieldwrap { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.news-fieldwrap input { width: 100%; min-width: 0; }
.news input.invalid { border-color: #ff8a80; background: rgba(255,138,128,.12); }
.news input.valid { border-color: var(--gold); }
.field-err { font-size: 12.5px; color: #ffd2cc; font-weight: 600; padding-left: 4px; }
.btn[aria-busy="true"] { cursor: progress; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(8,22,54,.25); border-top-color: var(--navy-dark);
  border-radius: 50%; animation: spin .7s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Touch targets / mobile */
.nav-links a, .btn { min-height: 44px; }
@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 84px; width: 44px; height: 44px; }
  .wa-widget { right: 16px; bottom: 16px; }
  .toasts { bottom: 16px; }
  .news form { flex-direction: column; }
  .news .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .to-top, .toast, .wa-pop { animation: none; transition: opacity .2s; }
  .wa-fab::before, .skeleton { animation: none; }
  .progress-bar { transition: none; }
}

/* ======================= LANDING PAR PAYS ======================= */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-panel {
  position: relative;
  z-index: 2;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}

.hero-panel-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-policy-list {
  display: grid;
  gap: 14px;
}

.hero-policy-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.hero-policy-card.is-primary {
  background: linear-gradient(135deg, rgba(224,168,46,.22), rgba(255,255,255,.08));
  border-color: rgba(224,168,46,.35);
}

.hero-policy-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.hero-policy-flag {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.hero-policy-flag .flag {
  width: 32px;
  height: 22px;
}

.hero-policy-flag.is-globe svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  stroke-width: 2;
}

.hero-policy-copy strong {
  display: block;
  font-size: 17px;
  color: #fff;
}

.hero-policy-copy span {
  display: block;
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

.hero-policy-card p,
.hero-panel-note,
.hero-micro {
  color: rgba(255,255,255,.78);
}

.hero-policy-card p,
.hero-panel-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
}

.hero-panel-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.hero-micro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.hero-micro-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(224,168,46,.14);
}

.service-deck-sec {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(26,58,122,.08), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg));
}

.service-deck .feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.service-deck .feature-top .ic {
  margin-bottom: 0;
  flex: 0 0 58px;
}

.feature-scope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
}

.feature-scope.local {
  color: var(--navy);
  background: rgba(224,168,46,.12);
  border: 1px solid rgba(224,168,46,.32);
}

.feature-scope.global {
  color: #16663c;
  background: rgba(31,170,89,.12);
  border: 1px solid rgba(31,170,89,.24);
}

.feature-scope.neutral {
  color: var(--navy-light);
  background: rgba(15,36,86,.05);
  border: 1px solid var(--border);
}

.coverage-sec {
  background:
    linear-gradient(180deg, rgba(15,36,86,.03), transparent 18%),
    linear-gradient(180deg, var(--bg), #fff 38%, var(--bg));
}

.coverage-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.coverage-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 54px rgba(8,22,54,.08);
  overflow: hidden;
}

.coverage-card.is-primary {
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border-color: rgba(224,168,46,.32);
  box-shadow: 0 28px 66px rgba(8,22,54,.22);
}

.coverage-card.is-primary::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,168,46,.26), transparent 68%);
}

.coverage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.coverage-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coverage-flag {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,36,86,.04);
  box-shadow: inset 0 0 0 1px rgba(15,36,86,.06);
}

.coverage-card.is-primary .coverage-flag {
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.coverage-flag .flag {
  width: 36px;
  height: 24px;
}

.coverage-flag.is-globe svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
  stroke-width: 2;
}

.coverage-card.is-primary .coverage-flag.is-globe svg {
  stroke: var(--gold);
}

.coverage-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(224,168,46,.14);
  border: 1px solid rgba(224,168,46,.28);
}

.coverage-card.is-primary .coverage-label {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
}

.coverage-card h3 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.6px;
  color: var(--navy);
}

.coverage-card.is-primary h3 {
  color: #fff;
}

.coverage-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  background: rgba(15,36,86,.05);
  border: 1px solid var(--border);
}

.coverage-card.is-primary .coverage-code {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

.coverage-summary,
.coverage-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.coverage-card.is-primary .coverage-summary,
.coverage-card.is-primary .coverage-note {
  color: rgba(255,255,255,.84);
}

.coverage-summary {
  margin-bottom: 18px;
}

.coverage-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.coverage-chip.is-on {
  color: #16663c;
  background: rgba(31,170,89,.10);
  border: 1px solid rgba(31,170,89,.22);
}

.coverage-card.is-primary .coverage-chip.is-on {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
}

.coverage-chip.is-soon {
  color: var(--navy);
  background: rgba(224,168,46,.12);
  border: 1px solid rgba(224,168,46,.28);
}

.availability-table {
  padding: 20px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 54px rgba(8,22,54,.07);
}

.availability-intro {
  margin-bottom: 18px;
}

.availability-intro strong {
  display: block;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 6px;
}

.availability-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.availability-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(2, minmax(160px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.availability-colhead,
.availability-service,
.availability-cell {
  border-radius: 16px;
  min-height: 56px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
}

.availability-colhead {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  justify-content: center;
  color: var(--muted);
  background: rgba(15,36,86,.04);
  border: 1px solid rgba(15,36,86,.06);
}

.availability-colhead.service {
  justify-content: flex-start;
}

.availability-service {
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(15,36,86,.02);
  border: 1px solid rgba(15,36,86,.06);
}

.availability-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  box-shadow: 0 10px 20px rgba(15,36,86,.18);
}

.availability-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  stroke-width: 2.1;
}

.availability-cell {
  justify-content: center;
  text-align: center;
  font-weight: 800;
  border: 1px solid transparent;
}

.availability-cell.on {
  color: #16663c;
  background: rgba(31,170,89,.10);
  border-color: rgba(31,170,89,.22);
}

.availability-cell.soon {
  color: var(--navy);
  background: rgba(224,168,46,.12);
  border-color: rgba(224,168,46,.28);
}

.scroll-3d {
  transform-style: preserve-3d;
  will-change: transform, box-shadow, filter;
  filter: saturate(var(--scroll-glow, 1));
}

.reveal.scroll-3d {
  transform-origin: left center;
  transform: perspective(1400px) translate3d(0, calc(28px + var(--scroll-shift, 0px)), 0) rotateY(-14deg) rotateX(8deg) scale(var(--scroll-scale, 0.97));
  opacity: 0;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.scroll-3d.in {
  transform: perspective(1400px) translate3d(0, var(--scroll-shift, 0px), 0) rotateY(0deg) rotateX(var(--scroll-tilt, 0deg)) scale(var(--scroll-scale, 1));
  opacity: 1;
}

.hero-panel.scroll-3d,
.coverage-card.scroll-3d,
.availability-table.scroll-3d,
.graph-panel.scroll-3d {
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .7s cubic-bezier(.2,.7,.2,1),
    box-shadow .28s ease,
    filter .28s ease;
}

.hero-panel.scroll-3d,
.coverage-card.scroll-3d,
.availability-table.scroll-3d {
  box-shadow:
    0 24px 60px rgba(8,22,54,.14),
    0 0 calc(42px * var(--scroll-glow, 1)) rgba(224,168,46,.10);
}

.graph-panel.scroll-3d {
  box-shadow:
    0 22px 56px rgba(0,0,0,.22),
    0 0 calc(36px * var(--scroll-glow, 1)) rgba(224,168,46,.12);
}

@media (max-width: 980px) {
  .hero-grid,
  .coverage-cards {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .availability-grid {
    grid-template-columns: 1fr;
  }

  .availability-colhead.service {
    display: none;
  }

  .availability-colhead {
    justify-content: flex-start;
  }

  .availability-service {
    min-height: 62px;
  }
}

@media (max-width: 480px) {
  .hero-panel,
  .coverage-card,
  .availability-table {
    padding: 18px;
    border-radius: 22px;
  }

  .service-deck .feature-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-scope {
    width: 100%;
    justify-content: flex-start;
  }

  .coverage-head {
    flex-direction: column;
  }
}

/* ======================= PLAY STORE DELETE ACCOUNT ======================= */

.delete-account-page {
  min-height: 100vh;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(15,36,86,.10), transparent 38%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}

.delete-account-shell {
  width: 100%;
  min-height: 100vh;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.delete-account-card {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: stretch;
  padding: 28px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,36,86,.08);
  box-shadow: 0 20px 48px rgba(8,22,54,.10);
}

.delete-account-header h1 {
  margin: 16px 0 12px;
  color: var(--navy-dark);
  font-size: clamp(32px, 8vw, 42px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.delete-account-trust {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,36,86,.05);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .35px;
}

.delete-account-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.delete-account-reassurance {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15,36,86,.04);
}

.delete-account-reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
}

.delete-account-reassurance-item::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224,168,46,.14);
}

.delete-account-flow {
  padding-top: 4px;
}

.delete-account-stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.delete-account-step {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--muted);
  background: rgba(15,36,86,.05);
  transition: transform .18s, background .18s, color .18s, box-shadow .18s;
}

.delete-account-step.is-active {
  color: var(--navy-dark);
  background: rgba(224,168,46,.18);
  box-shadow: 0 10px 22px rgba(224,168,46,.16);
}

.delete-account-step.is-done {
  color: var(--navy);
  background: rgba(37,99,235,.10);
}

.delete-account-form {
  display: grid;
  gap: 18px;
}

.delete-account-field {
  display: grid;
  gap: 8px;
}

.delete-account-field label,
.delete-account-field legend {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.delete-account-field input,
.delete-account-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(15,36,86,.14);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.delete-account-field input::placeholder {
  color: rgba(92,107,138,.86);
}

.delete-account-field input:focus,
.delete-account-field select:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
  transform: translateY(-1px);
  outline: none;
}

.delete-account-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.delete-account-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.delete-account-channel-grid {
  display: grid;
  gap: 12px;
}

.delete-account-channel {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15,36,86,.04);
  border: 1px solid rgba(15,36,86,.08);
  cursor: pointer;
}

.delete-account-channel input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.delete-account-channel span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.delete-account-channel small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.delete-account-submit {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.delete-account-confirm {
  box-shadow: 0 14px 36px rgba(224,168,46,.26);
}

.delete-account-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15,36,86,.04), rgba(37,99,235,.08));
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}

.delete-account-summary p {
  margin: 0;
  color: var(--navy);
  line-height: 1.65;
}

.delete-account-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.delete-account-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--navy-light);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.delete-account-link-button:hover {
  color: var(--navy);
  text-decoration: underline;
}

.delete-account-link-button:disabled {
  opacity: .55;
  cursor: default;
  text-decoration: none;
}

.delete-account-feedback {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.delete-account-feedback.is-info {
  background: rgba(37,99,235,.10);
  color: var(--navy);
}

.delete-account-feedback.is-success {
  background: rgba(224,168,46,.18);
  color: var(--navy-dark);
}

.delete-account-feedback.is-error {
  background: rgba(15,36,86,.08);
  color: var(--navy);
}

.delete-account-footer {
  margin-top: 24px;
  padding: 18px 0 0;
  background: transparent;
  border-top: 1px solid rgba(15,36,86,.08);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.delete-account-footer p {
  margin: 0;
}

.delete-account-footer p + p {
  margin-top: 8px;
}

.delete-account-footer a {
  color: var(--navy);
  font-weight: 700;
}

@media (min-width: 768px) {
  .delete-account-card {
    padding: 36px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delete-account-step,
  .delete-account-field input,
  .delete-account-field select {
    transition: none;
  }
}

/* ======================= COUCHE MOTION DESIGN =======================
   Choregraphie d'entree et de survol du site vitrine. Tout est pilote par
   des variables d'easing partagees pour que chaque element du site decelere
   avec la meme courbe : c'est ce qui donne la sensation d'un seul mouvement
   plutot que d'animations independantes.

   Tout ce bloc est neutralise sous `prefers-reduced-motion` (fin de fichier).
   ==================================================================== */

:root {
  /* Sortie douce : l'element arrive vite puis se pose. Usage general. */
  --ease-out: cubic-bezier(.16, .84, .28, 1);
  /* Leger depassement : donne du poids aux surfaces (cartes, puces). */
  --ease-spring: cubic-bezier(.34, 1.4, .48, 1);
  /* Reponse immediate au survol, sans elasticite. */
  --ease-snap: cubic-bezier(.3, .9, .3, 1);
}

/* --- Entree des titres de section : revele sous masque ---------------
   Le texte monte depuis le dessous d'un bord net au lieu d'un simple
   fondu : l'oeil lit un mouvement, pas une opacite. */
.section-head h2 {
  clip-path: inset(-20% -20% 110% -20%);
  transform: translateY(.32em);
  transition: clip-path .95s var(--ease-out) .08s, transform .95s var(--ease-out) .08s;
}
.section-head.in h2 {
  clip-path: inset(-20% -20% -20% -20%);
  transform: translateY(0);
}
.section-head .eyebrow {
  transform: translateY(10px) scale(.96);
  opacity: 0;
  transition: transform .6s var(--ease-spring), opacity .6s var(--ease-out);
}
.section-head.in .eyebrow { transform: none; opacity: 1; }
.section-head p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out) .34s, transform .8s var(--ease-out) .34s;
}
.section-head.in p { opacity: 1; transform: none; }

/* --- Titre du hero : soulignement dore qui se deploie ---------------- */
/* Degrade en fond plutot qu'un pseudo-element : le soulignement suit le
   texte s'il passe a la ligne, et le <b> reste inline (pas de debordement
   sur mobile, ou le titre se casse en deux lignes). */
.hero h1 b {
  background-image: linear-gradient(90deg, var(--gold), var(--gold-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% .09em;
  transition: background-size 1.05s var(--ease-out) .55s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero h1.in b { background-size: 100% .09em; }

/* --- Aurora du hero : halo lent derriere les particules --------------
   Deux taches de marque qui derivent en continu. En `screen`, elles
   eclaircissent le navy sans jamais salir le texte pose au-dessus. */
.hero-aurora {
  position: absolute; inset: -20% -10%;
  z-index: 0; pointer-events: none;
  mix-blend-mode: screen; opacity: .5;
  background:
    radial-gradient(42% 38% at 18% 26%, rgba(224, 168, 46, .3), transparent 70%),
    radial-gradient(46% 40% at 82% 68%, rgba(26, 58, 122, .55), transparent 72%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.09); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.04); }
}

/* --- Lumiere directionnelle sur les cartes --------------------------
   `--mx/--my` sont ecrits par usePointerSheen() : le reflet suit le
   curseur au lieu d'etre fige au centre de la carte. */
.sheen-layer {
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease-snap);
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(224, 168, 46, .16), transparent 68%
  );
}
[data-sheen] { position: relative; }
[data-sheen]:hover > .sheen-layer { opacity: 1; }
[data-sheen] > *:not(.sheen-layer) { position: relative; }

/* --- Trace progressif des icones ------------------------------------
   `pathLength="1"` (pose par le composant Icon) normalise la longueur de
   chaque trace a 1, donc un meme dasharray dessine toutes les icones a la
   meme vitesse quelle que soit leur geometrie. */
.feature.is-drawn .ic svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.feature.is-drawn.in .ic svg path {
  animation: drawStroke 1.1s var(--ease-out) .25s forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

/* Le cartouche du pastillage de portee arrive apres le titre. */
.feature .feature-scope {
  opacity: 0; transform: translateX(8px);
  transition: opacity .55s var(--ease-out) .4s, transform .55s var(--ease-spring) .4s;
}
.feature.in .feature-scope { opacity: 1; transform: none; }

/* Survol : la carte se souleve et le liseret dore s'allonge (deja defini
   plus haut) — on ajoute ici une bascule de l'icone pour la vie. */
.feature .ic { transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-snap); }
.feature:hover .ic { transform: translateY(-3px) rotate(-5deg) scale(1.06); }

/* --- Puces de disponibilite : cascade ------------------------------- */
.coverage-chip {
  opacity: 0;
  transform: translateY(9px) scale(.94);
  transition:
    opacity .5s var(--ease-out) calc(.3s + var(--chip-i, 0) * .055s),
    transform .5s var(--ease-spring) calc(.3s + var(--chip-i, 0) * .055s);
}
.coverage-card.in .coverage-chip { opacity: 1; transform: none; }

/* --- Comparatif : les lignes se remplissent de haut en bas ----------- */
.availability-service,
.availability-cell {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .55s var(--ease-out) calc(.18s + var(--row-i, 0) * .07s),
    transform .55s var(--ease-out) calc(.18s + var(--row-i, 0) * .07s);
}
.availability-table.in .availability-service,
.availability-table.in .availability-cell { opacity: 1; transform: none; }

/* --- Liens de navigation : soulignement qui balaie ------------------- */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  border-radius: 999px; background: var(--gold);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .4s var(--ease-snap);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1); transform-origin: left center;
}

/* --- Boutons : reponse tactile au clic ------------------------------- */
.btn { transition: transform .22s var(--ease-snap), box-shadow .3s var(--ease-snap), background .3s ease, color .3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.975); }

/* --- Respect du reglage systeme -------------------------------------
   Toute la choregraphie ci-dessus retombe a l'etat final immediat. */
@media (prefers-reduced-motion: reduce) {
  .section-head h2 { clip-path: none; transform: none; transition: none; }
  .section-head .eyebrow,
  .section-head p,
  .feature .feature-scope,
  .coverage-chip,
  .availability-service,
  .availability-cell { opacity: 1; transform: none; transition: none; }
  .hero h1 b { background-size: 100% .09em; transition: none; }
  .hero-aurora { animation: none; }
  .feature.is-drawn .ic svg path,
  .feature.is-drawn.in .ic svg path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .sheen-layer { display: none; }
  .feature:hover .ic,
  .btn:hover,
  .btn:active { transform: none; }
  .nav-links a:not(.nav-cta)::after { transition: none; }
}
