/* ==========================================================================
   Ouii — site vitrine. Une seule feuille pour toutes les pages.
   Toujours en blanc : le thème « Perle » de l'app (src/theme/tokens.ts),
   pas de mode sombre. Aucun doré.
   Polices hébergées ici (pas de Google Fonts : aucune adresse IP ne part
   chez un tiers, comme le promet la politique de confidentialité).
   Animations : uniquement transform / opacity (+ translate), coupées si
   l'appareil demande moins de mouvement. Le contenu reste visible sans JS :
   les états cachés ne s'appliquent que sous html.js (posé par site.js).
   ========================================================================== */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-400i.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/playfair-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-600.woff2") format("woff2"); }

/* ---------- les couleurs : Perle, en clair seulement ---------- */
:root {
  --bg0: #FFFFFF; --bg1: #FCFBFA; --bg2: #F5F3F0;
  --halo: #F0EBE5;
  --ink: #2A2724;          /* texte : 14,8:1 sur blanc */
  --sub: #5F5A55;          /* texte secondaire : 6,6:1 */
  --muted: #6F6A64;        /* petites mentions : 5,3:1 */
  --accent: #9C9186;       /* décoratif seulement (filets, puces) : jamais pour du texte */
  --accent-ink: #6F665D;   /* l'accent quand il porte du texte : 5,9:1 */
  --line: #ECE8E3;
  --line-strong: #DDD7D0;
  --cta: #2A2724; --cta-text: #FFFFFF;
  --shadow: 0 1px 2px rgba(42,39,36,.04), 0 24px 60px -20px rgba(42,39,36,.16);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1180px;
  --gutter: 20px;
  --head: 64px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #FFFFFF; }
body {
  margin: 0; padding-top: var(--head);
  background: #FFFFFF; color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.015em; }
h2 em, h3 em { font-style: italic; color: var(--accent-ink); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--cta); color: var(--cta-text); padding: 8px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 8px; }
[id] { scroll-margin-top: calc(var(--head) + 16px); }

/* les halos : de grandes taches de lumière, presque blanches */
.halo { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--halo), rgba(240,235,229,0)); z-index: 0; }

/* ---------- en-tête : transparent en haut, voilé et resserré au défilement ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--head); transition: height .4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s var(--ease); }
.site-header.scrolled { height: 54px; }
.site-header.scrolled::before { opacity: 1; }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 25px; letter-spacing: -.01em; }
.brand img { width: 26px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.nav { display: none; gap: 30px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; color: var(--sub); text-decoration: none; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 860px) { .nav { display: flex; } .nav ~ .header-end { margin-left: 22px; } }

/* sélecteur de langue : un <details>, sans JavaScript */
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; cursor: pointer; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--sub); display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.7); transition: border-color .3s; }
.lang summary:hover { border-color: var(--accent); color: var(--ink); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.lang[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 160px; animation: drop .35s var(--ease); }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg2); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- bouton App Store (aimanté par site.js : --mx / --my) ---------- */
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--cta); color: var(--cta-text); text-decoration: none; padding: 13px 26px 13px 20px; border-radius: 18px; min-height: 60px; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 34px -12px rgba(42,39,36,.45); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .5s var(--ease), box-shadow .4s var(--ease); will-change: transform; }
.store:hover { color: var(--cta-text); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 20px 44px -12px rgba(42,39,36,.5); }
.store.magnet { transition: transform .15s linear, box-shadow .4s var(--ease); }
.store svg { width: 24px; height: 24px; flex: none; transition: transform .5s var(--ease); }
.store:hover svg { transform: translateY(2px); }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: 11px; letter-spacing: .02em; opacity: .85; }
.store strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
/* Avant la sortie de l'app : « Bientôt sur l'App Store », pas un lien (STORE_LIVE dans build.py) */
.store.soon { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 14px 34px -18px rgba(42,39,36,.25); cursor: default; }
.store.soon svg { color: var(--accent-ink); }
.store.soon small { opacity: 1; color: var(--sub); }

/* ---------- l'iPhone dessiné en CSS (--w = sa largeur) ---------- */
.phone { --w: 300px; margin: 0; width: var(--w); max-width: 100%; padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .165); background: linear-gradient(150deg, #48443F 0%, #1D1B19 38%, #2C2926 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 0 0 1px rgba(30,28,26,.5), 0 60px 90px -50px rgba(42,39,36,.55), 0 30px 50px -30px rgba(42,39,36,.25); position: relative; }
.screen { position: relative; aspect-ratio: 600 / 1230; border-radius: calc(var(--w) * .135); overflow: hidden; background: #FCFBFA; transform: translateZ(0); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.screen img.on { opacity: 1; transform: none; }
/* inclinaison au survol (site.js : --rx / --ry) */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); }
[data-tilt].tilting { transition: transform .12s linear; }

/* ---------- 1. l'ouverture ---------- */
.hero { position: relative; padding: 44px 0 0; overflow: hidden; text-align: center; }
.hero-text { position: relative; z-index: 2; }
.halo-a { width: 900px; height: 900px; left: 50%; top: -360px; margin-left: -450px; }
.halo-b { width: 700px; height: 700px; right: -300px; bottom: -120px; opacity: .9; }
.hero-flower { position: relative; width: 84px; margin: 0 auto 26px; }
.hero-flower img { width: 100%; }
.hero-kicker { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent-ink); margin: 0 0 14px; }
.hero h1 { font-size: clamp(50px, 10.5vw, 118px); line-height: 1; letter-spacing: -.03em; margin: 0 auto 26px; max-width: 11em; }
.hero h1 em { font-style: italic; color: var(--accent-ink); white-space: nowrap; }
@media (min-width: 560px) { .hero h1 em { display: block; } }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--sub); max-width: 33em; margin: 0 auto 32px; }
.hero .note { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
/* le titre mot à mot : chaque mot monte de derrière son masque */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.w > span { display: inline-block; }

/* un seul iPhone, entre deux bouquets au trait (illus.py) */
.stage { position: relative; z-index: 1; height: calc(var(--pw) * 1.72); margin-top: 64px; --pw: 300px; }
.hp { position: absolute; left: 50%; top: 0; width: var(--pw); margin-left: calc(var(--pw) / -2); z-index: 2; }
.hp .phone { --w: var(--pw); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.stage .spray { position: absolute; top: calc(var(--pw) * .22); width: calc(var(--pw) * .82); height: auto; z-index: 1; overflow: visible; }
.spray-l { right: calc(50% + var(--pw) * .36); }
.spray-r { left: calc(50% + var(--pw) * .36); transform: scaleX(-1); }
/* le bas de l'iPhone se fond dans la page */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(255,255,255,0), #FFFFFF 85%); z-index: 3; pointer-events: none; }
@media (max-width: 640px) { .stage { --pw: 230px; margin-top: 48px; } .stage .spray { width: calc(var(--pw) * .7); } .spray-l { right: calc(50% + var(--pw) * .3); } .spray-r { left: calc(50% + var(--pw) * .3); } }
@media (min-width: 1000px) { .hero { padding-top: 64px; } .stage { --pw: 320px; } }

/* étincelles autour de la fleur */
.sparkles { position: absolute; inset: -30%; pointer-events: none; }
.sparkles i { position: absolute; width: 10px; height: 10px; color: var(--accent); opacity: 0; animation: twinkle 4.2s ease-in-out infinite; animation-delay: calc(var(--s) * -.83s); }
.sparkles svg { width: 100%; height: 100%; fill: currentColor; }
.sparkles i:nth-child(1) { left: 2%; top: 30%; }
.sparkles i:nth-child(2) { right: 0; top: 12%; width: 14px; height: 14px; }
.sparkles i:nth-child(3) { right: 6%; bottom: 18%; width: 8px; height: 8px; }
.sparkles i:nth-child(4) { left: 14%; bottom: 4%; width: 12px; height: 12px; }
.sparkles i:nth-child(5) { left: 46%; top: -6%; width: 7px; height: 7px; }
.sparkles i:nth-child(6) { right: -12%; top: 52%; width: 9px; height: 9px; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: .9; transform: scale(1) rotate(45deg); } 60% { opacity: .9; } }

/* la toile des pétales (site.js) */
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- l'entrée (CSS seul : se termine toujours visible, même sans JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-flower img { animation: bloom 1.6s var(--ease) both; }
  .hero-kicker { animation: rise 1s var(--ease) .25s both; }
  .w > span { animation: word 1.1s var(--ease) both; animation-delay: calc(.35s + var(--i) * .09s); }
  .hero .lead { animation: rise 1.1s var(--ease) .75s both; }
  .hero-cta { animation: rise 1.1s var(--ease) .9s both; }
  .hero .note { animation: rise 1.1s var(--ease) 1.02s both; }
  .hp { animation: phoneIn 1.6s var(--ease) .7s both; }
  .halo-a { animation: breathe 14s ease-in-out infinite; }
}
@keyframes bloom { from { opacity: 0; transform: scale(.6) rotate(-25deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes word { from { transform: translateY(105%) rotate(4deg); } }
@keyframes phoneIn { from { opacity: 0; translate: 0 120px; } }
@keyframes breathe { 50% { scale: 1.08; } }

/* ---------- apparition au défilement (site.js ajoute .in) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; translate: none; }
.js [data-stagger] > * { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--k, 0) * .08s); }
.js [data-stagger].in > * { opacity: 1; translate: none; }
.js [data-stagger][data-reveal] { opacity: 1; translate: none; }

/* ---------- 2. les fonctions ---------- */
/* overflow-x: clip (et non hidden) : rogne les halos sans casser le « sticky » du récit */
.features { position: relative; padding: 40px 0 40px; overflow-x: clip; }
.section-head { text-align: center; max-width: 44em; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: -.025em; margin-bottom: 20px; }
.section-head p { color: var(--sub); font-size: clamp(17px, 1.8vw, 20px); max-width: 34em; margin: 0 auto; }

/* une fonction : texte et illustration animée, en alternance */
.feature { display: grid; gap: 40px; align-items: center; padding: 64px 0; }
.feature-ill { position: relative; justify-self: center; width: min(540px, 100%); }
.halo-f { --h: min(620px, 110vw); width: var(--h); height: var(--h); left: 50%; top: 50%; margin: calc(var(--h) / -2) 0 0 calc(var(--h) / -2); }
.kicker { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent-ink); margin: 0 0 18px; }
.num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent-ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; letter-spacing: .02em; }
.feature h3 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.022em; margin-bottom: 20px; }
.feature-text > p:not(.kicker) { color: var(--sub); font-size: 18px; max-width: 30em; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 1.25em; width: 13px; height: 7px; border-left: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: rotate(-45deg); }
.pro-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: var(--cta); color: var(--cta-text); border-radius: 6px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 96px; padding: 96px 0; }
  .feature:nth-of-type(even) .feature-text { order: 2; }
}

/* ---------- 3. À deux ---------- */
.together { padding: 40px 0; }
.together-in { position: relative; margin: 0 10px; padding: 88px 0 80px; background: linear-gradient(180deg, var(--bg1), var(--bg2)); border-radius: 44px; overflow: hidden; }
.duo { position: relative; max-width: 700px; margin: 0 auto 64px; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.promises li { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.promises .ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); background: #FFFFFF; margin-bottom: 16px; }
.promises .ico svg { width: 20px; height: 20px; }
.promises h3 { font-size: 26px; margin-bottom: 8px; }
.promises p { color: var(--sub); font-size: 16px; margin: 0; }
@media (min-width: 820px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 48px; } .together-in { margin: 0 24px; padding: 120px 0 96px; } }

/* ---------- 4. Ouii Pro ---------- */
.pro { padding: 120px 0; overflow: hidden; }
.pro .wrap { display: grid; gap: 56px; align-items: center; }
.pro h2 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -.025em; margin-bottom: 22px; }
.pro-text > p { color: var(--sub); font-size: 18px; max-width: 30em; }
.free { font-size: 15px !important; color: var(--muted) !important; }
.ticket-wrap { position: relative; justify-self: center; width: min(420px, 100%); }
.halo-p { --h: min(620px, 100vw); width: var(--h); height: var(--h); left: 50%; top: 50%; margin: calc(var(--h) / -2) 0 0 calc(var(--h) / -2); }
.ticket { position: relative; background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 30px; padding: 38px 32px 32px; box-shadow: var(--shadow); text-align: center; }
.seal-wrap { position: relative; width: 84px; height: 84px; margin: -8px auto 10px; display: grid; place-items: center; }
.ticket .seal { width: 46px; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-ring .sr { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.seal-ring .sr-dots { fill: var(--accent); transform-origin: 50px 50px; }
.ticket .name { font-family: var(--serif); font-size: 32px; margin: 0; letter-spacing: -.01em; }
.ticket .life { font-family: var(--serif); font-style: italic; color: var(--accent-ink); font-size: 18px; margin: 4px 0 6px; }
.ticket .price { font-family: var(--serif); font-size: 58px; line-height: 1.05; margin: 0; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.ticket .other { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
/* la ligne pointillée du billet, avec ses deux encoches */
.tear { position: relative; border-top: 1px dashed var(--line-strong); margin: 30px -32px 24px; }
.tear::before, .tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line-strong); }
.tear::before { left: -13px; clip-path: inset(0 0 0 50%); }
.tear::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket .ticks { text-align: left; margin: 0; border-top: 0; }
.ticket .ticks li:last-child { border-bottom: 0; }
@media (min-width: 900px) { .pro .wrap { grid-template-columns: 1.05fr .95fr; gap: 96px; } }

/* ---------- 5. Questions ---------- */
.faq { padding: 40px 0 120px; }
.faq .wrap { display: grid; gap: 36px; }
.faq h2 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -.025em; margin-bottom: 14px; }
.faq .more { color: var(--sub); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 52px 24px 0; position: relative; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; transition: color .3s; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); transition: transform .5s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #FFFFFF; }
.faq details[open] .plus::after { transform: rotate(0deg); }
.ans { overflow: hidden; }
.ans p { color: var(--sub); padding: 0 52px 26px 0; margin: 0; max-width: 40em; }
@media (min-width: 900px) { .faq .wrap { grid-template-columns: .8fr 1.2fr; gap: 96px; align-items: start; } .faq-head { position: sticky; top: 110px; } }

/* ---------- 6. le mot de la fin ---------- */
.closing { position: relative; text-align: center; padding: 100px 0 130px; overflow: hidden; background: linear-gradient(180deg, #FFFFFF, var(--bg1)); }
.closing .wrap { position: relative; z-index: 2; }
.closing-flower { position: relative; width: 96px; margin: 0 auto 28px; }
.closing-flower img { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .closing-flower img { animation: sway 9s ease-in-out infinite; transform-origin: 50% 90%; } }
@keyframes sway { 50% { transform: rotate(5deg); } }
.closing h2 { font-size: clamp(46px, 8vw, 104px); letter-spacing: -.03em; margin-bottom: 40px; }

/* ---------- pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 15px; color: var(--muted); background: #FFFFFF; }
.site-footer .wrap { display: grid; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 40px; color: var(--ink); margin: 0 0 6px; letter-spacing: -.02em; }
.foot-brand img { width: 34px; }
.foot-tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent-ink); margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--sub); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.site-footer a:hover { color: var(--ink); background-size: 100% 1px; }
.site-footer .langs a[aria-current] { color: var(--ink); font-weight: 600; }
/* Sur téléphone : des liens assez hauts pour le doigt (44 px) */
@media (max-width: 759px) {
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding: 11px 0; }
  .site-footer .apps li { padding: 0; }
  .lang li a { padding: 12px 14px; }
}
.foot-head { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot-what { color: var(--muted); font-size: 14px; }
.foot-made { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; } .foot-made { grid-column: 1 / -1; } }

/* ---------- pages de texte (confidentialité, aide, conditions, mentions) ---------- */
.doc { position: relative; padding: 64px 0 100px; overflow: hidden; }
.halo-doc { width: 760px; height: 760px; right: -340px; top: -380px; }
.doc .wrap { position: relative; max-width: 780px; }
.doc h1 { font-size: clamp(42px, 8vw, 72px); letter-spacing: -.025em; margin-bottom: 14px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; font-family: var(--serif); font-style: italic; }
.doc .summary { background: var(--bg1); border: 1px solid var(--line); border-radius: 26px; padding: 26px 28px; margin: 0 0 44px; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc h2 { font-size: clamp(28px, 4vw, 36px); margin: 56px 0 16px; letter-spacing: -.015em; }
.doc h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 28px 0 8px; letter-spacing: 0; }
.doc p, .doc li { color: var(--sub); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--sub); }
.doc th { color: var(--ink); font-weight: 600; }
.doc .path { font-weight: 600; color: var(--ink); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.doc .toc a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--sub); transition: border-color .3s, color .3s, background .3s; }
.doc .toc a:hover { color: var(--ink); border-color: var(--accent); background: var(--bg1); }
.doc .contact { font-size: 19px; }
.back { display: inline-block; margin-top: 48px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound h1 { font-size: clamp(42px, 8vw, 72px); margin-bottom: 16px; }
.notfound p { color: var(--sub); }
.notfound .nf-en { margin-top: 36px; }

/* ---------- les illustrations animées (dessinées dans _build/illus.py) ----------
   Écrites dans leur état final : sans JS ou avec « moins de mouvement », on
   voit le dessin posé. site.js pose .play quand l'illustration est à l'écran
   et l'enlève quand elle en sort (tout s'arrête, et repart du début au retour).
   Seulement transform, opacity et stroke-dashoffset. */
.plate { position: relative; border-radius: 36px; overflow: hidden; background: linear-gradient(165deg, #FFFFFF, var(--bg1) 45%, var(--bg2)); border: 1px solid var(--line); box-shadow: 0 34px 70px -44px rgba(42,39,36,.28); }
.ill-svg { display: block; width: 100%; height: auto; overflow: visible; }
.plate .ill-svg { overflow: hidden; }
.ill text { font-family: var(--sans); fill: var(--ink); }
.ill .sf { font-family: var(--serif); }
.ill .it { font-style: italic; }
/* les traits (fill: none d'abord, les remplissages après : ils l'emportent) */
.ill .ln, .ill .ln-g, .ill .ln-sage, .ill .ln-rose, .ill .ln-white, .ill .hair, .ill .hair2, .ill .st, .ill .lv, .ill .arc, .ill .wall, .ill .strike, .ill .tk, .ill .dash, .ill .du-p, .ill .bu-track, .ill .bu-arc { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill .ln { stroke: var(--ink); stroke-width: 1.5; }
.ill .ln-g { stroke: var(--accent); stroke-width: 1.4; }
.ill .ln-sage, .ill .st, .ill .lv { stroke: #5E7458; stroke-width: 1.4; }
.ill .lv { stroke-width: .9; opacity: .7; }
.ill .ln-rose { stroke: #AF5869; stroke-width: 1.3; }
.ill .ln-white { stroke: #FFFFFF; stroke-width: 1.6; }
.ill .hair { stroke: var(--line); stroke-width: 1.2; }
.ill .hair2, .ill .wall { stroke: var(--line-strong); stroke-width: 1.4; }
.ill .arc { stroke: #CBC2B8; stroke-width: 1.5; stroke-dasharray: 1.5 7; }
.ill .dash { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.ill .paper, .ill .paper-f { fill: #FFFFFF; }
.ill .paper { stroke: var(--line-strong); stroke-width: 1.2; }
.ill .ln.paper { stroke: var(--ink); stroke-width: 1.6; }
.ill .sheet { fill: var(--bg2); stroke: var(--line); stroke-width: 1.2; }
.ill .bar { fill: var(--line); }
.ill .bar-d { fill: var(--line-strong); }
.ill .f-ink { fill: var(--ink); }
.ill .f-white { fill: #FFFFFF; }
.ill .f-greige, .ill .berry, .ill .dot { fill: var(--accent); }
.ill .dot { fill: var(--line-strong); }
.ill .f-rose { fill: #AF5869; }
.ill .f-rose-l { fill: rgba(175,88,105,.16); }
.ill .f-sage { fill: #5E7458; }
.ill .f-sage-l { fill: rgba(94,116,88,.14); }
.ill .f-sage-xl { fill: #E4E9E0; }
.ill .f-sage-m { fill: rgba(94,116,88,.26); }
.ill .f-sage-l2 { fill: rgba(94,116,88,.2); }
.ill .f-blush { fill: #F5E8EA; }
.ill .f-linen { fill: #ECE5DC; }
.ill .tg-s { fill: rgba(94,116,88,.18); }
.ill .tg-r { fill: rgba(175,88,105,.16); }
.ill .tk { stroke: #FFFFFF; stroke-width: 2.2; }
.ill .strike { stroke: var(--ink); stroke-width: 1.2; opacity: .55; }
.ill .ttl { font-size: 28px; }
.ill .big { font-size: 46px; }
.ill .sub { font-size: 22px; fill: var(--sub); }
.ill .ini { font-size: 11px; font-weight: 600; fill: var(--sub); text-anchor: middle; }
.ill .av { fill: var(--bg2); stroke: var(--line-strong); stroke-width: 1; }
.ill .pill-y { fill: rgba(94,116,88,.15); }
.ill .pill-w { fill: #FFFFFF; stroke: var(--line-strong); stroke-width: 1; }
.ill .pl { font-size: 13px; font-weight: 600; text-anchor: middle; }
.ill .pl-y { fill: #4C6047; }
.ill .pl-w { fill: var(--accent-ink); }
.ill .off { opacity: 0; }
.ill .seat { fill: #FFFFFF; stroke: var(--line-strong); stroke-width: 1.2; }
.ill .seat-on { fill: var(--bg2); stroke: var(--accent); stroke-width: 1.2; }
.ill .seat-r { fill: #F7ECEE; stroke: #AF5869; stroke-width: 1.2; }
.ill .table { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.4; }
.ill .num { font-size: 24px; fill: var(--accent-ink); text-anchor: middle; }
.ill .bu-track { stroke: var(--line); stroke-width: 12; }
.ill .bu-arc { stroke: #5E7458; stroke-width: 12; stroke-dasharray: .68 1; }
.ill .mid { font-size: 46px; text-anchor: middle; }
.ill .pc { font-size: 22px; fill: var(--accent-ink); }
.ill .coin { fill: #FFFFFF; stroke: var(--accent); stroke-width: 1.2; }
.ill .amt { font-size: 15px; font-weight: 600; text-anchor: end; font-variant-numeric: tabular-nums; }
.ill .amt-in { fill: #4C6047; }
.ill .sw { stroke: rgba(42,39,36,.1); stroke-width: 1; }
.ill .weave { fill: none; stroke: rgba(255,255,255,.6); stroke-width: .8; }
.ill .tape { fill: #E2DAD0; opacity: .85; }
.ill .wd { font-size: 19px; text-anchor: middle; }
.ill .sun { fill: #F7ECEE; stroke: #AF5869; stroke-width: 1.4; }
.ill .stop { fill: #FFFFFF; stroke: var(--accent); stroke-width: 1.3; }
.ill .tm { font-size: 13px; font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; }
.ill .lb { font-size: 16px; text-anchor: middle; }
.ill .du-p { stroke: #AF5869; stroke-width: 3; stroke-dasharray: 8 100; opacity: 0; }
.ill .cloud { stroke-width: .8; }
.ill .du-h { opacity: 0; }
/* le bouquet de l'ouverture */
.ill .lf { fill: rgba(94,116,88,.12); stroke: #5E7458; stroke-width: 1.2; }
.ill .pt { fill: #EEE8E1; stroke: var(--accent); stroke-width: .9; }
.ill .pt-r { fill: #F7ECEE; stroke: #AF5869; stroke-width: .9; }
.ill .pt-c { fill: #FFFFFF; stroke: var(--accent); stroke-width: .9; }
.ill .bud { fill: #F7ECEE; stroke: #AF5869; stroke-width: 1; }
/* l'état final, posé, du jour J : le soleil de l'après-midi, la cérémonie */
.ill .dy-sun { transform-box: view-box; transform-origin: 260px 274px; transform: rotate(19.47deg); }
.ill .dy-rays { transform-box: view-box; transform-origin: 260px 94px; }
.ill .dy-dot { transform: translateX(240px); }
.ill .dy-l3, .ill .dy-moon { opacity: 0; }

/* ce qui pivote ou grandit autour de son propre centre */
.ill .a-pop, .ill .td-c, .ill .gu-fly, .ill .gu-y, .ill .sg-f, .ill .twk, .ill .dy-l, .ill .du-c, .ill .du-cloud, .ill .du-h { transform-box: fill-box; transform-origin: center; }
.ill .td-bell, .ill .td-steps, .ill .id-pin, .ill .id-sway { transform-box: fill-box; transform-origin: 50% 0; }
.ill .hs-leaf, .ill .hs-bloom { transform-box: view-box; transform-origin: 0 0; }
.ill .hs-sway { transform-box: view-box; transform-origin: 186px 400px; }
.ill .d, .ill .tk, .ill .strike { stroke-dasharray: 1; }

/* les mouvements : seulement sous .play (à l'écran) */
.ill.play .d { animation: i-draw var(--du, 1.4s) var(--ease) var(--t, 0s) both; }
.ill.play .a-pop { animation: i-pop .8s cubic-bezier(.34, 1.56, .64, 1) var(--t, 0s) both; }
.ill.play .a-rise { animation: i-rise 1s var(--ease) var(--t, 0s) both; }
.ill.play .hs-leaf { animation: i-grow 1.1s var(--ease) var(--t, 0s) both; }
.ill.play .hs-bloom { animation: i-bloom 1.6s var(--ease) var(--t, 0s) both; }
.ill.play .hs-sway { animation: i-sway 9s ease-in-out 3.2s infinite; }
.ill.play .td-c { animation: td-fill 11s var(--ease) var(--t, 0s) infinite both; }
.ill.play .td-k { animation: td-tick 11s ease var(--t, 0s) infinite both; }
.ill.play .td-steps { animation: td-open 1s var(--ease) var(--t, 0s) both; }
.ill.play .td-bell { animation: td-bell 5s ease-in-out 1.8s infinite; }
.ill.play .gu-fly { animation: gu-fly 1.3s var(--ease) var(--t, 0s) both; }
.ill.play .gu-y { animation: gu-y 7s var(--ease) var(--t, 0s) infinite both; }
.ill.play .gu-w { animation: gu-w 7s ease var(--t, 0s) infinite both; }
.ill.play .sg-in { animation: sg-in 1.3s var(--ease) var(--t, 0s) both; }
.ill.play .sg-f { animation: sg-f 12s var(--ease) var(--t, 0s) infinite both; }
.ill.play .bu-arc { animation: bu-arc 2.2s var(--ease) .5s both; }
.ill.play .bu-coin { animation: bu-coin 1s var(--ease) var(--t, 0s) both; }
.ill.play .bu-line { animation: bu-line 1s var(--ease) var(--t, 0s) both; }
.ill.play .twk { animation: i-twk 4s ease-in-out var(--t, 0s) infinite both; }
.ill.play .id-pin { animation: id-pin 1.1s var(--ease) var(--t, 0s) both; }
.ill.play .id-sway { animation: i-sway 7s ease-in-out 2s infinite; }
.ill.play .dy-sun { animation: dy-sun 14s ease-in-out .4s infinite both; }
.ill.play .dy-rays { animation: i-spin 30s linear infinite; }
.ill.play .dy-dot { animation: dy-dot 14s ease-in-out .4s infinite both; }
.ill.play .dy-l0 { animation: dy-l0 14s var(--ease) .4s infinite both; }
.ill.play .dy-l1 { animation: dy-l1 14s var(--ease) .4s infinite both; }
.ill.play .dy-l2 { animation: dy-l2 14s var(--ease) .4s infinite both; }
.ill.play .dy-l3 { animation: dy-l3 14s var(--ease) .4s infinite both; }
.ill.play .dy-moon { animation: dy-moon 14s ease .4s infinite both; }
.ill.play .du-c.du-a { animation: du-ca 7s var(--ease) .6s infinite both; }
.ill.play .du-k.du-a { animation: du-ka 7s ease .6s infinite both; }
.ill.play .du-p { animation: du-p 7s cubic-bezier(.45, 0, .2, 1) .6s infinite both; }
.ill.play .du-cloud { animation: du-cloud 7s var(--ease) .6s infinite both; }
.ill.play .du-c.du-b { animation: du-cb 7s var(--ease) .6s infinite both; }
.ill.play .du-k.du-b { animation: du-kb 7s ease .6s infinite both; }
.ill.play .du-h { animation: du-h 7s var(--ease) .6s infinite both; }
.ill.play .sr-dots { animation: i-spin 40s linear infinite; }

@keyframes i-draw { from { stroke-dashoffset: 1; } }
@keyframes i-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes i-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes i-grow { from { opacity: 0; transform: scale(0); } }
@keyframes i-bloom { from { opacity: 0; transform: scale(.15) rotate(-70deg); } }
@keyframes i-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.4deg); } 25% { transform: rotate(-1deg); } }
@keyframes i-spin { to { transform: rotate(360deg); } }
@keyframes i-twk { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
@keyframes td-fill { 0%, 4% { opacity: 0; transform: scale(.2); } 9%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.2); } }
@keyframes td-tick { 0%, 6% { stroke-dashoffset: 1; opacity: 1; } 12%, 84% { stroke-dashoffset: 0; opacity: 1; } 91%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes td-open { from { opacity: 0; transform: translateY(-8px) scaleY(.3); } }
@keyframes td-bell { 0%, 60%, 100% { transform: none; } 64% { transform: rotate(16deg); } 69% { transform: rotate(-12deg); } 74% { transform: rotate(8deg); } 79% { transform: rotate(-4deg); } 84% { transform: none; } }
@keyframes gu-fly { from { opacity: 0; transform: translate(-200px, -190px) rotate(-30deg) scale(.9); } 55% { opacity: 1; } }
@keyframes gu-y { 0%, 30% { opacity: 0; transform: scale(.8); } 36%, 82% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes gu-w { 0%, 30% { opacity: 1; } 34%, 84% { opacity: 0; } 88%, 100% { opacity: 1; } }
@keyframes sg-in { from { opacity: 0; transform: translateX(var(--fx, 0)); } }
@keyframes sg-f { 0%, 2% { opacity: 0; transform: scale(.3); } 6%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.3); } }
@keyframes bu-arc { from { stroke-dashoffset: .68; } }
@keyframes bu-coin { 0% { opacity: 0; transform: translateY(-120px); } 60% { opacity: 1; transform: translateY(4px); } 80% { transform: translateY(-2px); } 100% { transform: none; } }
@keyframes bu-line { from { opacity: 0; transform: translateX(40px); } }
@keyframes id-pin { 0% { opacity: 0; transform: translateY(-44px) rotate(var(--fr, 0deg)) scale(1.1); } 60% { opacity: 1; transform: translateY(4px) rotate(calc(var(--fr, 0deg) * -.2)) scale(1); } 100% { transform: none; } }
@keyframes dy-sun { 0% { transform: rotate(-100deg); } 12%, 16% { transform: rotate(-84deg); } 28%, 42% { transform: rotate(-19.47deg); } 54%, 68% { transform: rotate(19.47deg); } 80%, 90% { transform: rotate(84deg); } 98%, 100% { transform: rotate(100deg); } }
@keyframes dy-dot { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 16% { transform: translateX(0); } 28%, 42% { transform: translateX(120px); } 54%, 68% { transform: translateX(240px); } 80%, 92% { transform: translateX(360px); opacity: 1; } 97%, 100% { transform: translateX(360px); opacity: 0; } }
@keyframes dy-l0 { 0%, 4% { opacity: 0; transform: scale(.3); } 8%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.3); } }
@keyframes dy-l1 { 0%, 27% { opacity: 0; transform: scale(.3); } 31%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.3); } }
@keyframes dy-l2 { 0%, 53% { opacity: 0; transform: scale(.3); } 57%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.3); } }
@keyframes dy-l3 { 0%, 79% { opacity: 0; transform: scale(.3); } 83%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.3); } }
@keyframes dy-moon { 0%, 78% { opacity: 0; transform: translateY(8px); } 84%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes du-ca { 0%, 8% { opacity: 0; transform: scale(.2); } 13%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: scale(.2); } }
@keyframes du-ka { 0%, 10% { stroke-dashoffset: 1; opacity: 1; } 16%, 86% { stroke-dashoffset: 0; opacity: 1; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes du-p { 0%, 17% { stroke-dashoffset: 8; opacity: 0; } 19% { opacity: 1; } 40% { stroke-dashoffset: -100; opacity: 1; } 41%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes du-cloud { 0%, 25% { transform: none; } 30% { transform: scale(1.14); } 36%, 100% { transform: none; } }
@keyframes du-cb { 0%, 41% { opacity: 0; transform: scale(.2); } 46%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: scale(.2); } }
@keyframes du-kb { 0%, 43% { stroke-dashoffset: 1; opacity: 1; } 50%, 86% { stroke-dashoffset: 0; opacity: 1; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes du-h { 0%, 46% { opacity: 0; transform: translateY(4px) scale(.6); } 52%, 64% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: translateY(-18px); } }

/* ---------- moins de mouvement : tout est posé, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; translate: none; }
}
