/* =============================================================================
   Chaplive — site de présentation
   Direction : « Nuit d'adoration » — nuit indigo, or, parchemin.
   Palette calée sur les tokens de la charte de l'app
   (chaplive/app/src/main/java/org/avecmarie/chaplive/core/designsystem/theme/Color.kt)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Nuit */
  --ink-900: #0E0724;
  --ink-800: #150B33;
  --ink-700: #1E1150;
  --ink-600: #241050;
  --ink-500: #2E1B6B;

  /* Marque */
  --violet:      #6054F3;
  --violet-700:  #4840AB;
  --violet-950:  #1E185D;
  --periwinkle:  #8C6FD6;
  --lavender:    #E5E2FF;
  --sky:         #59BDF4;
  --gold:        #F2D27A;
  --gold-soft:   #FCEFC7;
  --gold-ink:    #96721E;
  --coral:       #FF6B5E;

  /* Parchemin */
  --paper:   #FCF9F6;
  --paper-2: #F5F2F1;
  --sand:    #F0EBE2;
  --sand-2:  #E0DCD5;
  --rule:    #CCC8C8;

  /* Encre */
  --text:      #2E2D2C;
  --text-soft: #6D6B69;
  --text-mute: #888683;

  /* Typographie */
  --serif:  "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Dancing Script", "Snell Roundhand", cursive;

  /* Mesures */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-phone: 34px;

  --shadow-soft: 0 2px 4px rgba(30, 17, 80, .04), 0 12px 32px -12px rgba(30, 17, 80, .14);
  --shadow-lift: 0 4px 8px rgba(30, 17, 80, .06), 0 28px 60px -20px rgba(30, 17, 80, .28);
  --shadow-deep: 0 40px 90px -30px rgba(8, 4, 24, .7);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--gold); color: var(--ink-800); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--ink-700);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .9rem;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Typographie ---------- */
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem);
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink);
}
.display--lg { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem); }
.display--xl {
  font-size: clamp(2.5rem, 1.7rem + 3vw, 3.7rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.018em;
}

.script {
  font-family: var(--script);
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--gold);
}
.script--hero {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  margin-bottom: .5rem;
  background: linear-gradient(100deg, var(--sky) 4%, var(--periwinkle) 38%, var(--gold) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.script--finale {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
  margin-bottom: .5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow .num {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  padding-right: .7rem;
  border-right: 1px solid currentColor;
  opacity: .75;
}
.eyebrow--light { color: var(--gold); }

.lead {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  max-width: 46ch;
}

/* ---------- 4. Rythme des sections ---------- */
.band {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
}
.band--tight { padding-top: 0; }
.band--paper { background: var(--paper); }
.band--sand  { background: var(--sand); }
.band--night {
  background: var(--ink-800);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
}
.band--night::after {
  /* grain discret */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.band--night > * { position: relative; z-index: 1; }

.sechead { max-width: 44rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.sechead__lead {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 54ch;
}
.sechead--light .display { color: #fff; }
.sechead--light .display em { color: var(--gold); }
.sechead--light .sechead__lead { color: rgba(255, 255, 255, .62); }

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink-700);
  box-shadow: 0 8px 20px -8px rgba(242, 210, 122, .8);
}
.btn--gold:hover { box-shadow: 0 14px 30px -10px rgba(242, 210, 122, .95); }

.btn--quiet {
  color: var(--text);
  border-color: var(--rule);
  background: transparent;
}
.btn--quiet:hover { border-color: var(--violet); color: var(--violet); }

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: 2rem;
}
.cta-row--center { justify-content: center; }

.playbadge {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .62rem 1.35rem .62rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.playbadge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .45);
}
.playbadge svg { width: 22px; height: 24px; flex: none; }
.playbadge span { display: grid; line-height: 1.15; text-align: left; }
.playbadge small { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; opacity: .68; }
.playbadge strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 6. En-tête ---------- */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 76px;
}
.masthead.is-stuck {
  background: rgba(20, 10, 46, .78);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.masthead.is-light.is-stuck {
  background: rgba(252, 249, 246, .86);
  border-bottom-color: var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  flex: none;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5);
}
.brand__word {
  height: 30px;
  width: auto;
  transition: filter .3s var(--ease);
}

.nav {
  display: flex;
  gap: 1.6rem;
  margin-inline: auto;
  font-size: .9rem;
  font-weight: 500;
}
.nav a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover { color: #fff; border-bottom-color: var(--gold); }

.masthead__act { display: flex; align-items: center; gap: .7rem; flex: none; }
.masthead__act .btn--quiet { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .28); }
.masthead__act .btn--quiet:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* Variante claire (au-delà du héros) */
.masthead.is-light .brand { color: var(--text); }
.masthead.is-light .brand__word { filter: saturate(1.5) brightness(.68); }
.masthead.is-light .nav a { color: var(--text-soft); }
.masthead.is-light .nav a:hover { color: var(--violet); border-bottom-color: var(--violet); }
.masthead.is-light .masthead__act .btn--quiet { color: var(--text); border-color: var(--rule); }
.masthead.is-light .masthead__act .btn--quiet:hover { color: var(--violet); border-color: var(--violet); }
.masthead.is-light .burger span { background: var(--text); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 11px 10px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 7. Héros ---------- */
/* Conteneur de montage de l'îlot hero (React). Réserve la place et la couleur
   « nuit » pour éviter tout flash/à-coup avant le montage. */
.hero-mount { background: var(--ink-800); min-height: min(100svh, 940px); }

.hero {
  position: relative;
  background: var(--ink-800);
  color: #fff;
  padding-block: clamp(8rem, 6rem + 8vw, 11rem) clamp(4rem, 3rem + 5vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* raccord doux vers le parchemin */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(240, 235, 226, .1) 60%, var(--paper));
  z-index: 0;
}

.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.sky__glow--blue {
  width: 48vw; height: 48vw; min-width: 380px; min-height: 380px;
  top: -14%; left: -10%;
  background: radial-gradient(circle, rgba(89, 189, 244, .55), transparent 68%);
  animation: drift 26s var(--ease) infinite alternate;
}
.sky__glow--violet {
  width: 52vw; height: 52vw; min-width: 420px; min-height: 420px;
  top: 6%; left: 42%;
  background: radial-gradient(circle, rgba(140, 111, 214, .5), transparent 68%);
  animation: drift 32s var(--ease) infinite alternate-reverse;
}
.sky__glow--gold {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  bottom: -18%; right: -6%;
  background: radial-gradient(circle, rgba(242, 210, 122, .38), transparent 68%);
  animation: drift 38s var(--ease) infinite alternate;
}
.sky--soft .sky__glow { opacity: .38; }
.sky__beads { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__beads g { filter: drop-shadow(0 0 5px rgba(255, 255, 255, .55)); }
.sky__beads circle {
  opacity: .22;
  transform-origin: center;
  transform: scale(.62);
  animation: twinkle 6.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: .1; }
  50%      { opacity: .55; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.12); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .14s; }
.hero__copy > *:nth-child(3) { animation-delay: .22s; }
.hero__copy > *:nth-child(4) { animation-delay: .32s; }
.hero__copy > *:nth-child(5) { animation-delay: .42s; }
.hero__copy > *:nth-child(6) { animation-delay: .52s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero .display--xl { color: #fff; }
.hero .display--xl em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, #E3A76B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-top: 1.5rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .9rem;
  margin-top: 2.2rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}
.hero__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .7; }

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  animation: rise 1.1s var(--ease) .25s both;
}

/* Cadre de téléphone */
.phone {
  position: relative;
  width: min(300px, 76vw);
  border-radius: var(--r-phone);
  padding: 7px;
  background: linear-gradient(160deg, #3B3550, #171129 55%, #0C0819);
  box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone img {
  width: 100%;
  border-radius: calc(var(--r-phone) - 8px);
  display: block;
}
.phone::after {
  /* reflet vitré */
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: calc(var(--r-phone) - 8px);
  pointer-events: none;
  background: linear-gradient(122deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 34%);
}

.phone--hero {
  width: min(310px, 74vw);
  z-index: 2;
  animation: bob 9s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.phone--back {
  position: absolute;
  right: -4%;
  top: 12%;
  width: min(210px, 48vw);
  margin: 0;
  z-index: 1;
  opacity: .82;
  transform: rotate(7deg);
  filter: saturate(1.05);
}

.livechip {
  position: absolute;
  left: -6%;
  bottom: 14%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 10, 46, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.livechip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F9565F;
  box-shadow: 0 0 0 0 rgba(249, 86, 95, .6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 86, 95, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(249, 86, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 86, 95, 0); }
}

/* ---------- 8. Bandeau confiance ---------- */
.trust {
  background: var(--paper);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.2rem);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.trust__cell {
  background: var(--paper);
  padding: 1.5rem clamp(.9rem, 2vw, 1.6rem);
  display: grid;
  gap: .3rem;
  align-content: start;
}
.trust__cell b {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-700);
}
.trust__cell span { font-size: .85rem; color: var(--text-soft); line-height: 1.45; }

/* ---------- 9. Piliers ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.pillar { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.pillar__ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  margin-bottom: 1.3rem;
  color: #fff;
  background: linear-gradient(140deg, var(--from), var(--to));
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--to) 80%, transparent);
}
.pillar__ico svg { width: 25px; height: 25px; }
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .7rem;
  color: var(--ink-700);
}
.pillar p { color: var(--text-soft); margin: 0; }

/* ---------- 10. Le fil (comment ça marche) ---------- */
.thread { position: relative; list-style: none; display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.thread::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px; bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  opacity: .5;
}
.thread__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.thread__step::before {
  /* le grain */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px; height: 15px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--sand-2), 0 0 22px 2px rgba(242, 210, 122, .55);
  z-index: 2;
}
.thread__step:nth-child(even) .thread__body { order: 2; }
.thread__body { max-width: 30rem; }
.thread__step:nth-child(odd)  .thread__body { justify-self: end; text-align: right; }
.thread__step:nth-child(odd)  .thread__shot { justify-self: start; }
.thread__step:nth-child(even) .thread__shot { justify-self: end; }

.thread__n {
  font-family: var(--script);
  font-size: 1.35rem;
  color: var(--gold-ink);
  margin: 0 0 .15rem;
}
.thread__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .8rem;
  color: var(--ink-700);
}
.thread__body p { color: var(--text-soft); margin: 0; }
.thread__shot .phone { width: min(250px, 62vw); }

/* ---------- 11. Les mystères ---------- */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: clamp(1rem, .6rem + 1.4vw, 1.6rem);
}
.pane {
  position: relative;
  padding: 1.8rem 1.6rem 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  /* Dégradé de la catégorie — repli si le fond drapé ne charge pas. */
  background: linear-gradient(150deg, var(--from), var(--mid, var(--from)) 50%, var(--to));
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
/* Fond drapé de l'app (bg_live_*) + voile dégradé pour la lisibilité du texte,
   plus dense en bas là où s'affiche la liste des mystères. */
.pane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom,
      rgba(14, 8, 32, .30) 0%,
      rgba(14, 8, 32, .30) 42%,
      rgba(11, 6, 26, .58) 100%),
    var(--drape);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: filter .4s var(--ease);
}
.pane:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .34); }
.pane:hover::before { filter: brightness(1.06) saturate(1.04); }

.pane__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  margin-bottom: 3.6rem;
  color: #fff;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(8px);
}
.pane__ico svg { width: 23px; height: 23px; }
.pane h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 .25rem;
}
.pane__sub {
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin: 0 0 1.2rem;
}
.pane ul {
  list-style: none;
  display: grid;
  gap: .5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .9rem;
  color: rgba(255, 255, 255, .88);
}
.pane li { padding-left: 1.05rem; position: relative; line-height: 1.35; }
.pane li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

/* ---------- 12. Écran éteint ---------- */
.closed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  align-items: center;
}
.closed__copy p { color: var(--text-soft); max-width: 42ch; }
.closed__copy .display { margin-bottom: 1.4rem; }

.ticks { list-style: none; display: grid; gap: .8rem; margin-top: 1.8rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lavender);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6.5px; top: .62em;
  width: 7px; height: 4px;
  border-left: 1.7px solid var(--violet);
  border-bottom: 1.7px solid var(--violet);
  transform: rotate(-45deg);
}

.closed__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.phone--tilt { position: absolute; width: min(252px, 60vw); transform: rotate(-6deg) translateX(-14%); }
.phone--tilt2 { transform: rotate(8deg) translateX(26%) translateY(8%); width: min(212px, 50vw); opacity: .92; z-index: -1; }

/* ---------- 13. Cartes fonctionnalités ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(1rem, .6rem + 1.2vw, 1.5rem);
}
.card {
  padding: 1.7rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--sand-2);
  border-radius: var(--r-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.card__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  margin-bottom: 1.1rem;
  color: #fff;
  background: linear-gradient(140deg, var(--from), var(--to));
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 .5rem;
  color: var(--ink-700);
}
.card p { font-size: .93rem; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* ---------- 15. Don ---------- */
.give {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  border-radius: clamp(24px, 3vw, 36px);
  color: #fff;
  background:
    radial-gradient(120% 140% at 12% 8%, #FF8A6E 0%, transparent 55%),
    linear-gradient(128deg, var(--coral) 0%, #E4577F 42%, var(--violet) 100%);
  box-shadow: 0 40px 80px -40px rgba(228, 87, 127, .7);
}
.give__copy .display { color: #fff; }
.give__copy .display em { color: var(--gold-soft); }
.give__copy > p { color: rgba(255, 255, 255, .86); max-width: 48ch; margin-top: 1.2rem; }
.give .eyebrow { color: var(--gold-soft); }
.give .eyebrow .num { opacity: .85; }

.amounts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 1.2rem; }
.amount {
  display: inline-flex;
  align-items: center;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink-700);
  background: #fff;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.amount:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); }
.amount--free { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.amount--free:hover { background: rgba(255, 255, 255, .28); }

.give__note { font-size: .82rem; color: rgba(255, 255, 255, .72); max-width: 46ch; margin: 0; }

.give__aside {
  text-align: center;
  padding: 2rem 1.4rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
}
.give__aside .script { font-size: 2rem; color: var(--gold-soft); }
.give__big {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 2.5rem + 3.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  margin: .3rem 0 .6rem;
}
.give__small { font-size: .85rem; color: rgba(255, 255, 255, .8); margin: 0; line-height: 1.5; }

/* ---------- 16. Association ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.about__art img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  filter: saturate(.92) contrast(1.02);
}
.about__copy p { color: var(--text-soft); }
.about__copy .display { margin-bottom: 1.4rem; }
.pull {
  margin: 1.8rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.62rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-700);
}
.about__team { font-size: .93rem; }

/* ---------- 17. Finale ---------- */
.finale { text-align: center; }
.finale__in { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; }
.finale .display { color: #fff; }
.finale__lead { margin: 1.2rem auto 0; color: rgba(255, 255, 255, .7); max-width: 40ch; }
.finale__meta {
  margin-top: 2rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .42);
}

/* ---------- 18. Pied de page ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .62);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: .9rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand img { width: 150px; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 34ch; line-height: 1.6; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col { display: grid; align-content: start; gap: .55rem; }
.footer__col h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 .35rem;
}
.footer__col a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .2s var(--ease);
  width: fit-content;
}
.footer__col a:hover { color: var(--gold); }
.footer__bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .42);
}
.footer__bot p { margin: 0; }
.footer__nocookie { color: rgba(242, 210, 122, .6); }

/* =============================================================================
   Pages secondaires (mentions légales, confidentialité, CGU…)
   ========================================================================== */
.page-head {
  position: relative;
  background: var(--ink-800);
  color: #fff;
  padding-block: clamp(7rem, 5.5rem + 6vw, 9.5rem) clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-head .display { color: #fff; max-width: 20ch; }
.page-head .display em { color: var(--gold); }
.page-head__meta {
  margin-top: 1.5rem;
  font-size: .84rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}
.page-head__lead { margin-top: 1.2rem; color: rgba(255, 255, 255, .74); max-width: 56ch; }

.prose-wrap {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: .5rem;
  font-size: .88rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--rule);
}
.toc h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 .3rem;
}
.toc a {
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s var(--ease);
}
.toc a:hover { color: var(--violet); }

.prose { max-width: 40rem; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--ink-700);
  margin: 3rem 0 .9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-700);
  margin: 1.9rem 0 .5rem;
}
.prose p, .prose li { color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; display: grid; gap: .45rem; }
.prose li { line-height: 1.6; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.3rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.prose ol { list-style: decimal; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--violet); text-underline-offset: .18em; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: .9rem;
}
.prose thead th {
  text-align: left;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  padding: 0 .9rem .6rem 0;
  border-bottom: 1px solid var(--rule);
}
.prose td {
  padding: .75rem .9rem .75rem 0;
  border-bottom: 1px solid var(--sand-2);
  color: var(--text-soft);
  vertical-align: top;
  line-height: 1.5;
}
.prose td:first-child { color: var(--text); font-weight: 500; }
.table-scroll { overflow-x: auto; margin-bottom: 1.4em; }
.table-scroll table { margin-bottom: 0; }

.callout {
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  border-radius: var(--r-md);
  background: var(--sand);
  border-left: 3px solid var(--gold);
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--todo {
  background: #FFF6E3;
  border-left-color: #DD6902;
}
.callout--todo strong { color: #B35402; }
.callout--todo p, .callout--todo li { color: #7A4B08; }

/* Valeur à renseigner par l'éditeur avant publication. */
.todo {
  background: #FFF0C6;
  color: #8A5A00;
  padding: .05em .45em;
  border-radius: 5px;
  font-weight: 600;
  font-size: .93em;
  white-space: nowrap;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.backlink:hover { color: var(--gold); }
.backlink svg { width: 16px; height: 16px; }

/* =============================================================================
   Apparition au défilement
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =============================================================================
   Galerie des écrans (ecrans.html)
   ========================================================================== */
.screens {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem);
}
.screens .sky { position: absolute; inset: 0; z-index: 0; }
.screens > .shell { position: relative; z-index: 1; }
.screens__note {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto clamp(2.6rem, 2rem + 3vw, 4rem);
  color: rgba(255, 255, 255, .72);
}
.screens__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(2.6rem, 1.6rem + 3vw, 4.2rem) clamp(1.4rem, 1rem + 2vw, 2.6rem);
  align-items: start;
}
.screen { display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen__frame { position: relative; }
.screen__num {
  position: absolute; top: -16px; left: -12px; z-index: 3;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1;
  color: var(--ink-800);
  background: linear-gradient(150deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 24px rgba(8, 4, 24, .55);
  border: 1px solid rgba(255, 255, 255, .45);
}
.screen .phone { width: min(272px, 78vw); }
.screen__cap { margin-top: 1.5rem; max-width: 34ch; }
.screen__title {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1;
  color: #fff; margin: 0 0 .45rem;
}
.screen__text { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.screens__group {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 0 0 clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem);
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 1.95rem);
}
.screens__group span { flex: none; }
.screens__group::before, .screens__group::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 210, 122, .45), transparent);
}
.screens__group--next { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.screens__cta { text-align: center; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }

@media print {
  .screens { background: #fff !important; color: #000 !important; }
  .screens__note, .screen__text { color: #333 !important; }
  .screen__title { color: #000 !important; }
}

/* =============================================================================
   Adaptatif
   ========================================================================== */
@media (max-width: 1020px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .give { grid-template-columns: 1fr; }
  .give__aside { max-width: 22rem; }
  .prose-wrap { grid-template-columns: 1fr; }
  .toc {
    position: static;
    border-right: 0;
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .toc h2 { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .masthead__in { height: 68px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 1rem var(--gutter) 1.8rem;
    background: rgba(16, 8, 38, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a {
    color: rgba(255, 255, 255, .85);
    padding-block: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 1rem;
  }
  .nav a:hover { border-bottom-color: rgba(255, 255, 255, .08); }
  .masthead.is-light .nav a { color: rgba(255, 255, 255, .85); }
  .masthead__act .btn--quiet { display: none; }

  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { justify-items: center; display: grid; }
  .hero .lead, .hero .eyebrow, .hero__meta { justify-content: center; margin-inline: auto; }
  .hero__stage { min-height: 0; margin-top: 1rem; }
  .phone--back { display: none; }
  .livechip { left: auto; right: 2%; bottom: 6%; }

  .thread::before { left: 13px; transform: none; }
  .thread__step { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 3.2rem; }
  .thread__step::before { left: 13px; top: 10px; transform: translate(-50%, 0); }
  .thread__step:nth-child(even) .thread__body { order: 0; }
  .thread__step:nth-child(odd) .thread__body,
  .thread__step:nth-child(even) .thread__body { justify-self: start; text-align: left; }
  .thread__step:nth-child(odd) .thread__shot,
  .thread__step:nth-child(even) .thread__shot { justify-self: start; }

  .closed__grid, .about__grid { grid-template-columns: 1fr; }
  .about__art { order: 2; }
  .closed__art { min-height: 400px; }

  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .trust__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .phone--tilt { transform: rotate(-5deg) translateX(-8%); }
  .phone--tilt2 { transform: rotate(7deg) translateX(22%) translateY(6%); }
  .pane__ico { margin-bottom: 1.6rem; }
}

/* =============================================================================
   Préférences & impression
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .footer, .sky, .skip, .backlink { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .page-head { padding-block: 1.5rem; background: #fff !important; color: #000 !important; }
  .prose-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .prose { max-width: none; }
  .prose p, .prose li, .prose td { color: #222; }
  a { text-decoration: underline; }
}
