/* FREYA · portail. Une image qui porte, le lotus rose, les raisons d'appeler.
   Tout se règle ici : couleurs du logo, une unité de 20 px, une courbe de mouvement. */

@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/stix-two-text-400-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/stix-two-text-400-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/stix-two-text-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/stix-two-text-400-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Switzer"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/switzer-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/switzer-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/switzer-600-normal.woff2") format("woff2"); }

:root {
  /* Les deux couleurs du logo de Sabine, et ce qui en découle. */
  --rose: #e5127d;
  --violet: #5a2d91;
  --rose-profond: #a3125c;   /* boutons : le rose du logo, assombri pour le texte blanc */
  --prune: #2b0f26;          /* le fond sombre : le violet du logo, presque noir */
  --page: #fcf7f4;
  --voile: #f6e8ec;          /* rose très pâle des sections douces */
  --encre: #2a1c28;
  --encre-douce: #6b5a66;
  --clair: #fbf3ef;
  --filet: rgba(42, 28, 40, 0.14);
  --filet-clair: rgba(251, 243, 239, 0.22);

  --u: 20px;
  --marge: clamp(20px, 5vw, 72px);
  --courbe: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--prune); }
body {
  margin: 0;
  background: var(--page);
  color: var(--encre);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--courbe); }
a:hover { opacity: 0.6; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--rose); color: #fff; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--marge); }
.saut { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--clair); color: var(--encre); padding: 10px 16px; border-radius: 999px; }
.saut:focus { left: 8px; }

/* ---- Les rôles de texte : une taille par rôle ------------------------------ */

.t-etiquette { font: 500 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.t-geant { font: italic 400 clamp(46px, 7.6vw, 122px) / 0.98 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.t-titre { font: italic 400 clamp(34px, 4.2vw, 62px) / 1.06 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.t-raison { font: 400 clamp(24px, 2.5vw, 36px) / 1.18 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.t-lead { font: 400 clamp(20px, 1.75vw, 25px) / 1.45 var(--serif); }
.t-corps { font-size: 17px; line-height: 1.65; color: var(--encre-douce); max-width: 46ch; }
.t-note { font-size: 15px; line-height: 1.6; color: var(--encre-douce); }
.t-preuve { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.t-citation { font: italic 400 clamp(32px, 5vw, 76px) / 1.08 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.souligne { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---- Les boutons : deux seulement, plein et verre -------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: opacity 0.3s var(--courbe), transform 0.3s var(--courbe), background-color 0.3s var(--courbe);
}
.btn:active { transform: scale(0.97); }
.btn.plein { background: var(--rose-profond); color: #fff; }
.btn.verre { background: rgba(251, 243, 239, 0.12); color: var(--clair); border-color: rgba(251, 243, 239, 0.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.fleche { display: inline-block; transition: transform 0.3s var(--courbe); }
.btn:hover .fleche { transform: translate(2px, -2px); }

/* ---- Le menu flottant ------------------------------------------------------ */

.menu { position: fixed; top: 20px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.pilule {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(251, 243, 239, 0.3);
  background: rgba(43, 15, 38, 0.42); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: var(--clair); transition: background-color 0.5s var(--courbe);
}
.menu.pose .pilule { background: rgba(43, 15, 38, 0.82); }
.pilule .lien { padding: 0 18px; height: 100%; display: inline-flex; align-items: center; font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.pilule .lotus { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 100%; }
.pilule .lotus img { width: 44px; height: auto; filter: brightness(0) invert(1); opacity: 0.96; }

/* ---- 1. Le portail --------------------------------------------------------- */

.ligne { display: block; }
/* Le ciel est clair : le texte est en prune, comme une légende posée sur le tableau. */
.portail { position: relative; min-height: min(100svh, 1100px); display: flex; flex-direction: column; justify-content: space-between; color: var(--prune); background: #f3c9c0; overflow: hidden; isolation: isolate; }
.p-image, .p-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-image img { object-fit: cover; object-position: 40% 100%; animation: respire 1.1s var(--courbe) both; }
@keyframes respire { from { transform: scale(1.04); filter: blur(6px); opacity: 0.4; } to { transform: none; filter: none; opacity: 1; } }
.p-voile { position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 46% at 50% 36%, rgba(255, 240, 232, 0.5) 0%, rgba(255, 240, 232, 0) 100%),
    linear-gradient(0deg, rgba(43, 15, 38, 0.72) 0%, rgba(43, 15, 38, 0) 20%);
}
.p-fond { position: relative; z-index: 2; padding-top: clamp(116px, 15vh, 168px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.p-fond .t-etiquette { margin-bottom: var(--u); text-wrap: balance; line-height: 1.7; }
.p-fond .t-geant { font-size: clamp(40px, 6vw, 96px); }
.p-phrase { font: 400 clamp(18px, 1.5vw, 21px) / 1.5 var(--serif); max-width: 44ch; margin-top: calc(var(--u) * 1.4); text-wrap: balance; }
.p-actions { display: flex; gap: 12px; margin-top: calc(var(--u) * 1.6); }
.btn.trait { background: rgba(255, 244, 238, 0.35); color: var(--prune); border-color: rgba(43, 15, 38, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.p-pied { position: relative; z-index: 2; color: var(--clair); display: flex; justify-content: space-between; gap: var(--u); margin-top: calc(var(--u) * 3); padding-block: var(--u); border-top: 1px solid var(--filet-clair); }
/* ---- 2. Les raisons -------------------------------------------------------- */

.raisons { padding-block: clamp(80px, 11vw, 160px) clamp(60px, 8vw, 120px); }
.tete-section { display: grid; grid-template-columns: 1fr 2fr; gap: var(--u); align-items: start; margin-bottom: clamp(40px, 6vw, 80px); }
.tete-section .t-etiquette { color: var(--rose-profond); padding-top: 14px; }
.tete-section .t-titre { max-width: 16ch; }
.liste-raisons li { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--u); align-items: baseline; padding-block: calc(var(--u) * 1.6); border-top: 1px solid var(--filet); }
.liste-raisons li:last-child { border-bottom: 1px solid var(--filet); }
.liste-raisons .num { font: 500 12px/1 var(--sans); letter-spacing: 0.16em; color: var(--rose-profond); font-variant-numeric: tabular-nums; }
.liste-raisons p { color: var(--encre-douce); max-width: 40ch; }

/* ---- 3 et 4. Les chapitres ------------------------------------------------- */

.chapitre { padding-block: clamp(40px, 6vw, 90px); }
.grille-chapitre { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.chapitre.inverse .arche { order: 2; }
.arche { position: relative; overflow: hidden; border-radius: 999px 999px 6px 6px; aspect-ratio: 4 / 5; background: var(--voile); }
.arche img { width: 100%; height: 100%; object-fit: cover; }
.arche:hover img { transform: scale(1.03); }
.texte-chapitre .t-etiquette { color: var(--rose-profond); margin-bottom: var(--u); }
.texte-chapitre .t-titre { max-width: 17ch; margin-bottom: calc(var(--u) * 1.4); }
.faits { margin-top: calc(var(--u) * 1.6); max-width: 46ch; }
.faits li { padding-block: 14px; border-top: 1px solid var(--filet); }
.faits li:last-child { border-bottom: 1px solid var(--filet); }

/* ---- 5. Le crédit d'impôt -------------------------------------------------- */

.credit { margin-top: clamp(40px, 6vw, 90px); padding-block: clamp(70px, 9vw, 130px); background: var(--prune); color: var(--clair); }
.grille-credit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.chiffre { font: italic 400 clamp(110px, 19vw, 300px) / 0.82 var(--serif); letter-spacing: -0.04em; background: linear-gradient(100deg, #f7b6d6 0%, var(--rose) 55%, #a071d9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.credit .t-etiquette { opacity: 0.8; margin-bottom: var(--u); }
.credit .t-lead { max-width: 30ch; }
.credit .t-note { color: rgba(251, 243, 239, 0.72); max-width: 52ch; margin-top: var(--u); }

/* ---- 6. Sabine ------------------------------------------------------------- */

.sabine { padding-block: clamp(80px, 10vw, 150px); background: var(--voile); }
.grille-sabine { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.sabine .t-etiquette { color: var(--rose-profond); margin-bottom: var(--u); }
.sabine .t-titre { margin-bottom: calc(var(--u) * 1.4); }
.sabine .t-lead { max-width: 34ch; margin-bottom: var(--u); }
.signature { font: italic 400 30px/1 var(--serif); color: var(--rose-profond); margin-top: calc(var(--u) * 1.4); }
.arche.portrait { overflow: visible; background: none; aspect-ratio: auto; border-radius: 0; max-width: 420px; justify-self: end; width: 100%; }
.arche.portrait img { aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; object-position: center 20%; }
.arche.portrait:hover img { transform: none; }
.arche.portrait figcaption { margin-top: 12px; font-size: 13px; color: var(--encre-douce); }

/* ---- 7. Les questions ------------------------------------------------------ */

.questions { padding-block: clamp(80px, 10vw, 150px); }
.grille-questions { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.questions .t-titre { max-width: 11ch; margin-bottom: calc(var(--u) * 1.4); }
.ligne-q { border-top: 1px solid var(--filet); }
.ligne-q:last-child { border-bottom: 1px solid var(--filet); }
.q { display: flex; align-items: center; justify-content: space-between; gap: var(--u); width: 100%; min-height: 76px; padding: 18px 0; background: none; border: 0; color: inherit; text-align: left; font: 400 clamp(19px, 1.5vw, 22px) / 1.3 var(--serif); cursor: pointer; transition: opacity 0.3s var(--courbe); }
.q:hover { opacity: 0.6; }
.signe { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.signe::before, .signe::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: currentColor; transition: transform 0.5s var(--courbe); }
.signe::after { transform: rotate(90deg); }
.q[aria-expanded="true"] .signe::after { transform: rotate(0deg); }
.volet { display: grid; grid-template-rows: 0fr; opacity: 0; filter: blur(6px); transition: grid-template-rows 0.6s var(--courbe), opacity 0.5s var(--courbe), filter 0.5s var(--courbe); }
.volet > div { overflow: hidden; }
.volet.ouvert { grid-template-rows: 1fr; opacity: 1; filter: none; }
.volet p { padding-bottom: 24px; max-width: 56ch; color: var(--encre-douce); }

/* ---- 8. Le contact --------------------------------------------------------- */

.contact { padding-block: clamp(80px, 10vw, 150px); background: var(--voile); }
.grille-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact .t-titre { max-width: 12ch; margin-bottom: var(--u); }
.grand-numero { display: inline-block; margin-top: calc(var(--u) * 2); font: 400 clamp(36px, 4.4vw, 64px) / 1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grand-numero + .t-note { margin-top: 10px; }
.formulaire { background: var(--page); border-radius: 6px; padding: clamp(24px, 3.4vw, 48px); display: grid; gap: calc(var(--u) * 1.4); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 1.4); }
.champ { display: grid; gap: 6px; }
.champ > span { font: 500 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-douce); }
.champ input, .champ textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--filet); border-radius: 0; background: none; color: var(--encre); font: 400 17px/1.5 var(--sans); resize: vertical; transition: border-color 0.3s var(--courbe); }
.champ input::placeholder, .champ textarea::placeholder { color: rgba(42, 28, 40, 0.36); }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--rose-profond); }
.champ em { display: none; font-style: normal; font-size: 14px; color: var(--rose-profond); }
.champ.faux em { display: block; }
.champ.faux input { border-bottom-color: var(--rose-profond); }
.accord { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--encre-douce); cursor: pointer; }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rose-profond); flex-shrink: 0; }
.accord.faux { color: var(--rose-profond); }
.envoi { display: flex; align-items: center; gap: var(--u); flex-wrap: wrap; }
.btn.en-cours { opacity: 0.5; pointer-events: none; }
.etat { font-size: 15px; opacity: 0; transition: opacity 0.4s var(--courbe); }
.etat.dit { opacity: 1; }

/* ---- 9. La photo coupée et la phrase --------------------------------------- */

.citation { position: relative; height: clamp(520px, 54vw, 1080px); display: flex; align-items: flex-start; color: var(--prune); background: #f3c9c0; overflow: hidden; isolation: isolate; }
.c-image { position: absolute; inset: 0; z-index: -2; }
.c-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.c-voile { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 50% 34%, rgba(255, 240, 232, 0.5) 0%, rgba(255, 240, 232, 0) 100%), linear-gradient(0deg, var(--prune) 0%, rgba(43, 15, 38, 0) 9%); }
.citation blockquote { text-align: center; padding-top: clamp(56px, 6vw, 110px); }
.citation .t-citation { max-width: 16ch; margin-inline: auto; }
.citation footer { margin-top: calc(var(--u) * 1.6); }
/* ---- Le pied --------------------------------------------------------------- */

.pied { background: var(--prune); color: var(--clair); padding-block: calc(var(--u) * 3) calc(var(--u) * 1.6); }
.grille-pied { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 2); flex-wrap: wrap; }
.pied .logo { width: clamp(240px, 26vw, 330px); height: auto; }
.liens-pied { display: flex; gap: calc(var(--u) * 1.4); flex-wrap: wrap; font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.numero-pied { font: 400 28px/1 var(--serif); font-variant-numeric: tabular-nums; }
.bas-pied { display: flex; flex-wrap: wrap; gap: 10px calc(var(--u) * 2); margin-top: calc(var(--u) * 3); padding-top: var(--u); border-top: 1px solid var(--filet-clair); font-size: 13px; color: rgba(251, 243, 239, 0.7); }
.bas-pied a { margin-left: auto; }

/* ---- La barre du téléphone -------------------------------------------------- */

.barre { display: none; }

/* ---- Les entrées : le flou devient net, une fois --------------------------- */

[data-r] { opacity: 0; filter: blur(10px); transform: translateY(14px); transition: opacity 0.6s var(--courbe), filter 0.6s var(--courbe), transform 0.6s var(--courbe); transition-delay: calc(var(--i, 0) * 45ms); }
[data-r].vu, .tout-vu [data-r] { opacity: 1; filter: none; transform: none; }
.mot { display: inline-block; }
.fige *, .fige *::before, .fige *::after { transition: none !important; animation: none !important; }

/* ---- Page des mentions ------------------------------------------------------ */

.mentions { padding-block: 150px 100px; }
.mentions .t-titre { margin-bottom: calc(var(--u) * 2); }
.fiche > div { display: grid; grid-template-columns: 220px 1fr; gap: var(--u); padding-block: 16px; border-top: 1px solid var(--filet); }
.fiche > div:last-child { border-bottom: 1px solid var(--filet); }
.fiche dt { font: 500 12px/1.6 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-douce); }
.fiche dd { margin: 0; }
.mentions .prive { margin-top: calc(var(--u) * 2); max-width: 60ch; color: var(--encre-douce); }
.menu.simple .pilule { background: rgba(43, 15, 38, 0.82); padding: 0 22px 0 10px; }

/* ---- Le fil d'histoire : un trait qui descend avec la lecture ---------------- */

main { position: relative; }
.fil { position: absolute; left: calc(var(--marge) / 2); width: 1px; background: rgba(163, 18, 92, 0.2); z-index: 3; pointer-events: none; }
.fil i { position: absolute; inset: 0; background: var(--rose); transform-origin: top; transform: scaleY(var(--avance, 0)); }
.repere { position: absolute; left: 0; width: 11px; height: 11px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1px solid var(--rose); background: var(--page); transition: background-color 0.6s var(--courbe), transform 0.6s var(--courbe); }
.repere.passe { background: var(--rose); transform: scale(1.2); }
/* Le lotus voyage en tête du fil : c'est lui qui raconte. */
.fil b { position: absolute; left: 0; top: calc(var(--avance, 0) * 100%); width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border-radius: 50%; background: var(--page); border: 1px solid rgba(163, 18, 92, 0.34); box-shadow: 0 0 0 6px rgba(252, 247, 244, 0.6); }
.fil b img { width: 26px; height: auto; }
.questions .t-etiquette, .contact .t-etiquette { color: var(--rose-profond); margin-bottom: var(--u); }
.chap { display: inline-block; margin-right: 12px; padding-right: 12px; border-right: 1px solid currentColor; font-variant-numeric: tabular-nums; }

/* ---- Le ruban du logo : il raconte les trois premiers chapitres, puis s'arrête -- */

.ruban { position: absolute; left: 0; width: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.raisons > .wrap, .chapitre > .wrap { position: relative; z-index: 1; }
/* Trois passes sur le même tracé : une lueur large, un trait plein, et un filet fin décalé
   qui le double. Ensemble ils donnent un ruban, pas un trait de règle. */
.r-t { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.r-halo { stroke: rgba(229, 18, 125, 0.1); stroke-width: 16; }
.r-trace { stroke: url(#rg); stroke-width: 3; }
.r-double { stroke: rgba(163, 18, 92, 0.55); stroke-width: 1; transform: translate(5px, 5px); }
.r-nuage path { fill: #fff8f3; stroke: var(--rose-profond); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(5px 5px 0 rgba(229, 18, 125, 0.14)); animation: derive 11s ease-in-out infinite alternate; }
.r-nuage:nth-of-type(2) path { animation-duration: 14s; animation-delay: -4s; }
.r-nuage:nth-of-type(3) path { animation-duration: 17s; animation-delay: -9s; }
@keyframes derive { from { transform: translateX(-16px); } to { transform: translateX(16px); } }
.r-lotus circle { fill: var(--page); stroke: rgba(163, 18, 92, 0.34); }
.r-coeur path { fill: var(--page); stroke: var(--rose); stroke-width: 1.6; stroke-linejoin: round; transform-origin: center; transform-box: fill-box; transition: fill 0.7s var(--courbe), transform 0.9s var(--courbe); }
.ruban.arrive .r-coeur path { fill: var(--rose); transform: scale(1.25); }
.r-colombe { opacity: 0; transition: opacity 0.6s var(--courbe); }
.ruban.parti .r-colombe { opacity: 1; }
.ruban.arrive .r-colombe { opacity: 0; }
.r-ailes { transform-origin: center; transform-box: fill-box; animation: bat 1.1s ease-in-out infinite alternate; }
.r-ailes path { fill: #fffaf6; stroke: var(--rose-profond); stroke-width: 1.1; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(43, 15, 38, 0.22)); }
/* La colombe posée : elle descend sur le sommet du cadre et replie les ailes. */
.r-pose path { fill: #fffaf6; stroke: var(--rose-profond); stroke-width: 1.1; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(43, 15, 38, 0.22)); transform-box: fill-box; transform-origin: center bottom; opacity: 0; transform: translateY(-46px) rotate(-14deg) scale(0.7); transition: opacity 0.5s var(--courbe), transform 1.1s var(--courbe); }
.r-pose.la path { opacity: 1; transform: scaleY(0.74); }
@keyframes bat { from { transform: scaleY(1); } to { transform: scaleY(0.62); } }

/* Les nuages : la page claire glisse vers le prune du crédit d'impôt. */
.credit { position: relative; margin-top: clamp(150px, 16vw, 220px); }
.vagues { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(110px, 12vw, 170px); display: block; overflow: hidden; }
.vagues path { stroke: var(--rose-profond); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.vagues .v1 { fill: #f6dbe2; stroke-opacity: 0.5; }
.vagues .v2 { fill: #c97aa2; stroke-opacity: 0.6; }
.vagues .v3 { fill: var(--prune); stroke: none; }
/* En bas de la bande, les couleurs s'inversent : du prune vers le rose pâle de la section suivante. */
.credit { padding-bottom: calc(clamp(70px, 9vw, 130px) + clamp(90px, 10vw, 150px)); }
.vagues.bas { bottom: -1px; height: clamp(90px, 10vw, 150px); }
.vagues.bas .v1 { fill: #5c2350; stroke-opacity: 0.4; }
.vagues.bas .v2 { fill: #c97aa2; stroke-opacity: 0.6; }
.vagues.bas .v3 { fill: var(--voile); stroke: none; }

/* Le cœur bat une fois le ruban arrivé. */
.ruban.arrive .r-coeur path { animation: coeur 1.5s ease-in-out infinite; }
@keyframes coeur { 0%, 100% { transform: scale(1.25); } 14% { transform: scale(1.5); } 28% { transform: scale(1.25); } 42% { transform: scale(1.42); } 56% { transform: scale(1.25); } }
/* La colombe de passage : cachée sur ordinateur, où le ruban et sa colombe font déjà le trajet. */
.r-passe { display: none; }

/* ---- Les contours : chaque image est encadrée comme un tableau ---------------- */

.portail::after, .citation::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 244, 238, 0.5); border-radius: 6px; z-index: 1; pointer-events: none; }
/* Les deux peintures n'ont pas de filet fixe : c'est le ruban qui en fait le tour. */
.arche.portrait { outline: none; }
.arche.portrait img { outline: 1px solid rgba(163, 18, 92, 0.34); outline-offset: 10px; }
.formulaire { outline: 1px solid rgba(163, 18, 92, 0.24); outline-offset: 10px; }

/* ---- Les animations --------------------------------------------------------- */

/* Le premier écran s'éloigne lentement quand on descend. */
.p-image { transform: translateY(calc(var(--defile, 0) * 0.22px)); will-change: transform; }
.p-fond { transform: translateY(calc(var(--defile, 0) * -0.12px)); opacity: calc(1 - var(--defile, 0) / 520); }
/* Les arches se lèvent comme un rideau, et l'image glisse doucement dans son cadre. */
.arche[data-r] { opacity: 1; filter: none; transform: none; }
/* (L'apparition des images est réglée plus bas, dans « Les peintures ». Le cadre lui-même
   n'est jamais masqué : un cadre masqué ne serait jamais « vu » par le navigateur.) */
.arche img, .arche:hover img { transform: translateY(calc(var(--glisse, 0) * 1px)) scale(1.14); }
.arche.portrait img, .arche.portrait:hover img { transform: none; }
.c-image img { transform: scaleX(-1); }
/* (L'ancien survol des raisons, trait rose et texte décalé, est supprimé : voir « Le survol
   des raisons » plus bas.) */

/* ---- Les scènes dessinées ----------------------------------------------------
   Le ruban et sa colombe sont retirés (jugés « cheap ») : seuls ses nuages restent.
   À la place, de vraies petites scènes en SVG, tracées à l'arrivée puis vivantes. */

.r-t, .r-colombe, .r-pose, .r-lotus, .r-coeur, .r-passe, .r-nuage:nth-of-type(3) { display: none !important; }
/* Chaque peinture retrouve un cadre fixe : un filet, et son double décalé derrière. */
.chapitre .arche { outline: 1px solid rgba(163, 18, 92, 0.4); outline-offset: 10px; box-shadow: 22px 22px 0 -1px var(--page), 22px 22px 0 0 rgba(163, 18, 92, 0.28); }

/* Une scène par raison, dans la colonne de gauche. */
.liste-raisons .num { grid-column: 1; grid-row: 1; }
.liste-raisons .t-raison { grid-column: 2; grid-row: 1; }
.liste-raisons p { grid-column: 3; grid-row: 1; }
.liste-raisons li { align-items: center; padding-block: calc(var(--u) * 1.2); }
.liste-raisons .num { align-self: start; padding-top: 14px; }
.scene { grid-column: 1; grid-row: 1; justify-self: center; width: clamp(104px, 10vw, 156px); height: auto; overflow: visible; }
.s-fond { fill: #f9e4e9; transform-box: fill-box; transform-origin: center; scale: 0.4; opacity: 0; transition: scale 0.9s var(--courbe), opacity 0.6s var(--courbe); }
.scene .t { fill: none; stroke: var(--rose-profond); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--courbe) 0.15s, fill 0.7s ease 0.9s; }
.scene .plein { fill: rgba(255, 248, 243, 0); }
li.vu .s-fond, .tout-vu .s-fond { scale: 1; opacity: 1; }
li.vu .scene .t, .tout-vu .scene .t { stroke-dashoffset: 0; }
li.vu .scene .plein, .tout-vu .scene .plein { fill: #fff8f3; }
/* Le jour : les rayons tournent, le nuage passe. */
.s-rayons { transform-origin: 80px 80px; animation: tourne 30s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.s-nuage { animation: derive 8s ease-in-out infinite alternate; }
/* La nuit : les étoiles scintillent, chacune à son rythme. */
.s-etoile { animation: scintille 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes scintille { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
/* La maison : la fenêtre s'allume, la fumée monte. */
li.vu .scene .s-fenetre { animation: lueur 2.8s ease-in-out 1.4s infinite alternate; }
@keyframes lueur { from { fill: #fff8f3; } to { fill: #ffc98a; } }
.s-fumee { fill: #f0cdd8; opacity: 0; animation: fume 3.3s linear infinite; animation-delay: var(--d); }
@keyframes fume { 0% { transform: translate(0, 4px) scale(0.5); opacity: 0; } 20% { opacity: 0.9; } 100% { transform: translate(9px, -30px) scale(1.3); opacity: 0; } }
/* La même personne : les deux cœurs battent ensemble. */
.s-bat { transform-box: fill-box; transform-origin: center; animation: pouls 1.6s ease-in-out infinite; }
.s-petit { animation-delay: 0.18s; }
@keyframes pouls { 0%, 100% { scale: 1; } 12% { scale: 1.1; } 24% { scale: 1; } 36% { scale: 1.07; } 48% { scale: 1; } }

/* Le paysage : un ciel avec nuages et colombes, des collines qui ondulent. */
.paysage { position: relative; height: clamp(190px, 21vw, 320px); overflow: hidden; }
.p-ciel { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-nuage { transform: translate(var(--x), var(--y)); }
.p-nuage path { fill: #fff8f3; stroke: var(--rose-profond); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(5px 5px 0 rgba(229, 18, 125, 0.14)); animation: derive var(--t) ease-in-out infinite alternate; }
.p-vol { animation: vole var(--t) linear infinite; animation-delay: var(--d); }
@keyframes vole { from { transform: translate(-60px, var(--y)) scale(var(--s)); } 50% { transform: translate(600px, calc(var(--y) - 30px)) scale(var(--s)); } to { transform: translate(1260px, var(--y)) scale(var(--s)); } }
.p-vol path { fill: #fffaf6; stroke: var(--rose-profond); stroke-width: 1.2; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: bat 0.7s ease-in-out infinite alternate; }
.vagues.collines { bottom: -1px; height: 58%; }
.vagues.collines .v1 { fill: #fbecef; stroke-opacity: 0.45; }
.vagues.collines .v2 { fill: #f5d6de; stroke-opacity: 0.55; }
.vagues.collines .v3 { fill: var(--page); stroke: var(--rose-profond); stroke-opacity: 0.5; }
.raisons { padding-bottom: clamp(20px, 3vw, 50px); }

@media (max-width: 900px) {
  .liste-raisons .t-raison, .liste-raisons p { grid-column: 2; }
  .liste-raisons p { grid-row: 2; }
  .liste-raisons li { align-items: start; }
  .scene { grid-row: 1 / span 2; align-self: start; justify-self: start; width: 62px; margin-top: 30px; }
  .liste-raisons li { grid-template-columns: 78px 1fr; }
  .scene .t { stroke-width: 3; }
  .chapitre .arche { box-shadow: 12px 12px 0 -1px var(--page), 12px 12px 0 0 rgba(163, 18, 92, 0.28); }
}

/* ---- Tablette et téléphone -------------------------------------------------- */

@media (max-width: 1150px) {
  .pied .logo { width: clamp(200px, 22vw, 260px); }
  .liens-pied { gap: var(--u); }
  .numero-pied { font-size: 24px; white-space: nowrap; }
}

@media (max-width: 900px) {
  .tete-section, .grille-questions, .grille-contact { grid-template-columns: 1fr; }
  .tete-section .t-etiquette { padding-top: 0; }
  .liste-raisons li { grid-template-columns: 44px 1fr; }
  .liste-raisons p { grid-column: 2; }
  .grille-chapitre, .grille-credit, .grille-sabine { gap: 40px; }
  .grille-sabine { grid-template-columns: 1.2fr 1fr; }
  .grille-pied { flex-direction: column; align-items: flex-start; gap: var(--u); }
}

@media (max-width: 700px) {
 .menu { top: 12px; }
  .pilule { height: 48px; padding: 0 4px; }
  .pilule .lotus { width: 48px; }
  .pilule .lotus img { width: 36px; }
  .p-image img { object-position: center 100%; }
  .portail { min-height: 100svh; }
  .p-actions { display: none; }
  .p-pied { flex-direction: column; gap: 10px; margin-top: calc(var(--u) * 1.6); }
  .p-pied span.t-etiquette { display: none; }
  .deux { grid-template-columns: 1fr; }
  .fiche > div { grid-template-columns: 1fr; gap: 4px; }
  .bas-pied a { margin-left: 0; }
  .barre { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(43, 15, 38, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transform: translateY(140%); transition: transform 0.7s var(--courbe); }
  .barre.montee { transform: none; }
  .barre .btn { height: 52px; padding: 0 12px; }
  .grille-chapitre, .grille-credit, .grille-sabine { grid-template-columns: 1fr; }
  .chapitre.inverse .arche { order: 0; }
  .arche { aspect-ratio: 4 / 5; }
  .chapitre .arche { margin-inline: 16px; }
  /* Téléphone : un seul trait fin, rose, sans lueur ni violet. La marge est trop étroite pour plus. */
  .r-halo, .r-double, .r-colombe, .r-lotus { display: none; }
  .r-passe { display: block; }
  .r-passe > g { animation: traverse 13s linear infinite; }
  .r-passe path { fill: #fffaf6; stroke: var(--rose-profond); stroke-width: 1.2; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: bat 0.9s ease-in-out infinite alternate; }
  @keyframes traverse { from { transform: translate(-40px, 10px) scale(0.7); } 50% { transform: translate(50vw, -12px) scale(0.7); } to { transform: translate(calc(100vw + 40px), 8px) scale(0.7); } }
  .r-trace { stroke: var(--rose); stroke-width: 1.8; }
  /* Le voile sombre du bas de la peinture ne couvre que la bande du numéro, pas les personnages. */
  .p-voile { background: radial-gradient(70% 34% at 50% 30%, rgba(255, 240, 232, 0.5) 0%, rgba(255, 240, 232, 0) 100%), linear-gradient(0deg, rgba(43, 15, 38, 0.62) 0%, rgba(43, 15, 38, 0) 13%); }
  /* La citation : cadrage vertical, les trois personnages en bas, la phrase dans le ciel. */
  .citation { height: min(150vw, 720px); }
  .c-image img { object-position: center 100%; transform: translateY(calc(var(--glisse, 0) * 0.4px)); }
  .citation blockquote { padding-top: 64px; }
  .c-voile { background: radial-gradient(70% 30% at 50% 22%, rgba(255, 240, 232, 0.55) 0%, rgba(255, 240, 232, 0) 100%), linear-gradient(0deg, var(--prune) 0%, rgba(43, 15, 38, 0) 12%); }
  .fil b { width: 28px; height: 28px; margin: -14px 0 0 -14px; box-shadow: none; }
  .fil b img { width: 18px; }
  .pied { padding-bottom: 116px; }
  .arche.portrait { justify-self: start; max-width: 300px; }
  .arche.portrait img { outline-offset: 6px; }
  .chiffre { line-height: 0.9; }
  .pilule { width: calc(100% - 24px); max-width: 420px; justify-content: space-between; }
  .pilule .lien { padding: 0 8px; font-size: 10.5px; letter-spacing: 0.1em; }
  .portail::after, .citation::after { inset: 6px; }
  .fil { left: 10px; }
  .formulaire { outline-offset: 6px; }
}
/* ---- Retouches du 10/11 après retour : glitches, apparitions, survol, téléphone -- */

/* Le soleil : les rayons ne se tracent plus un par un pendant qu'ils tournent (c'était le
   bug). Le disque se trace, puis les rayons apparaissent ensemble et se mettent à tourner. */
.s-rayons .t { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.9s ease 0.9s; }
li.vu .s-rayons .t, .tout-vu .s-rayons .t { opacity: 1; }
.s-jour .s-nuage { opacity: 0; transition: opacity 0.8s ease 1.2s; }
li.vu .s-jour .s-nuage, .tout-vu .s-jour .s-nuage { opacity: 1; }
/* La fumée : chaque bouffée grossit depuis son propre centre, plus depuis le coin du dessin. */
.s-fumee { transform-box: fill-box; transform-origin: center; }

/* Les peintures : la même apparition pour toutes (retours du 10/11).
   L'image est là dès le départ, floue, et devient nette quand elle est bien à l'écran.
   Plus de rideau : avec lui on voyait l'arche vide derrière pendant que l'image montait.
   Aucun masque non plus, donc le filet du portrait reste entier. */
.arche[data-r] img { opacity: 1; filter: blur(20px); transition: filter 1.9s var(--courbe) 0.2s; }
.arche.portrait[data-r] img { filter: blur(12px); }       /* pas de cache autour du portrait : flou plus court pour ne pas baver */
.arche[data-r].vu img, .tout-vu .arche[data-r] img { filter: none; }
.p-image img { animation-duration: 1.7s; }

/* Le « 50 % » : son dégradé défile en continu, comme le reflet d'une carte brillante.
   Il avance toujours dans le même sens et boucle sans couture, jamais d'aller-retour
   (r91-mouvement : une boucle avance toujours, elle ne se rembobine pas sous les yeux).
   Pour que la boucle soit invisible : le dégradé est horizontal, deux fois plus large que le
   chiffre, il finit sur sa couleur de départ, et il se décale d'exactement sa largeur. */
.chiffre {
  background-image: linear-gradient(90deg, #f7b6d6 0%, var(--rose) 18%, #a071d9 36%, #ffe3f1 50%, var(--rose) 66%, #a071d9 84%, #f7b6d6 100%);
  background-size: 200% 100%; background-repeat: repeat-x; background-position: 200% 50%;
  animation: reflet 9s linear infinite;
}
@keyframes reflet { from { background-position: 200% 50%; } to { background-position: 0% 50%; } }
/* Le cadre : un seul filet net, sans le double décalé qui se cassait en bas. */
.chapitre .arche { box-shadow: none; }

/* (Le survol des raisons est supprimé le 10/11 : le voile sautait de ligne en ligne dès qu'on
   faisait défiler la page avec la souris au-dessus de la liste. Les raisons ne se cliquent pas,
   elles n'ont pas besoin de survol. Les transitions ci-dessous ne servent qu'aux entrées.) */
.liste-raisons { position: relative; }
.liste-raisons li::before { content: none; }
.scene { transition: transform 0.5s var(--courbe), translate 0.5s var(--courbe); }
.s-jour .s-nuage { transition: opacity 0.8s ease 1.2s, translate 0.5s var(--courbe); }
.s-nuit > path:first-of-type { transform-box: fill-box; transform-origin: center; }

/* Tablette et téléphone : le dessin a sa propre colonne, sous le numéro. Il ne touche plus
   le texte (avant, il était glissé entre le titre et la phrase et mordait dessus). */
@media (max-width: 900px) {
  .liste-raisons li { grid-template-columns: 92px 1fr; column-gap: 24px; row-gap: 14px; align-items: start; }
  .liste-raisons .num { grid-column: 1; grid-row: 1; padding-top: 12px; }
  .liste-raisons .t-raison { grid-column: 2; grid-row: 1; }
  .liste-raisons p { grid-column: 2; grid-row: 2; }
  .scene { grid-column: 1; grid-row: 2; width: 84px; margin-top: 0; justify-self: start; align-self: start; }
}
@media (max-width: 700px) {
  .liste-raisons li { grid-template-columns: 58px 1fr; column-gap: 16px; }
  .scene { width: 56px; }
}

/* Le pied de page porte le lotus seul, le même que dans le menu (le logo long avec ruban
   et cœur a été refusé le 10/11). */
.pied .logo { width: 76px; filter: brightness(0) invert(1); opacity: 0.96; }

/* Les petits nuages bougent pour de bon. Deux mouvements qui s'ajoutent :
   - ils flottent seuls, un va-et-vient lent avec un léger tangage ;
   - ils glissent de côté quand la page défile (--vent, posé par main.js), un sur deux à l'envers.
   Le petit nuage du soleil, lui, garde son mouvement court (derive) pour rester dans son disque. */
@keyframes flotte { 0% { transform: translate(-30px, 3px); } 50% { transform: translate(4px, -7px); } 100% { transform: translate(30px, 2px); } }
.r-nuage path, .p-nuage path { animation-name: flotte; }
.r-nuage path { animation-duration: 8s; }
.r-nuage:nth-of-type(2) path { animation-duration: 10s; }
.p-nuage:nth-of-type(1) path { animation-duration: 9s; }
.p-nuage:nth-of-type(2) path { animation-duration: 12s; }
.r-nuage, .p-nuage { translate: calc(var(--vent, 0) * 1px) 0; }
.r-nuage:nth-of-type(even), .p-nuage:nth-of-type(even) { translate: calc(var(--vent, 0) * -1px) 0; }
/* Sur téléphone la page est étroite : le glissement est plus court pour que les nuages
   restent entiers à l'écran, et ceux du paysage se contentent de flotter. */
@media (max-width: 700px) {
  .r-nuage { translate: calc(var(--vent, 0) * 0.4px) 0; }
  .r-nuage:nth-of-type(even) { translate: calc(var(--vent, 0) * -0.4px) 0; }
  .p-nuage, .p-nuage:nth-of-type(even) { translate: none; }
  /* « !important » parce que la position est écrite sur la balise : sans lui cette règle
     était ignorée et les deux nuages restaient hors de l'écran sur téléphone. */
  .p-nuage:nth-of-type(1) { --x: 36% !important; }
  .p-nuage:nth-of-type(2) { --x: 56% !important; }
}

/* Le paysage sur téléphone : l'écran ne montre que le milieu du ciel. Les colombes font un
   trajet court dans cette partie visible, donc elles repassent souvent, et les nuages y sont. */
@media (max-width: 700px) {
  .paysage { height: 210px; }
  .p-vol { animation-name: vole-court; animation-duration: calc(var(--t) * 0.36); }
  .p-nuage:nth-of-type(1) { --x: 34%; }
  .p-nuage:nth-of-type(2) { --x: 54%; }
  .p-nuage path { scale: 0.7; }
}
@keyframes vole-court { from { transform: translate(330px, var(--y)) scale(var(--s)); } 50% { transform: translate(600px, calc(var(--y) - 22px)) scale(var(--s)); } to { transform: translate(880px, var(--y)) scale(var(--s)); } }

/* ---- Dessins du 10/11, d'après les croquis de Rakeem ------------------------- */

/* 1. La frise de nuages enchaînés, sous le premier écran : deux rangées de festons qui
      pendent du bas de la peinture et défilent lentement, en sens inverse, sans fin. */
.raisons { position: relative; }
/* D'après la référence de nuages chinois et japonais du 10/11 : trois rangées empilées, de tons
   différents, chaque lobe avec sa volute, cernées de clair. Elles pendent (nuages à l'envers)
   et chacune glisse à son rythme, d'une largeur de motif exactement, donc sans à-coup. */
.frise { position: absolute; left: 0; top: 0; width: 100%; height: 62px; overflow: hidden; pointer-events: none; }
.frise .f-lobes { stroke: #fff8f3; stroke-width: 1.6; stroke-linejoin: round; }
.f-a .f-lobes { fill: #dc8fae; }
.f-b .f-lobes { fill: #efb9cb; }
.f-c .f-lobes { fill: #f9dfe6; }
.frise .f-volutes { fill: none; stroke: #fff8f3; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.r-a { animation: glisse-a 32s linear infinite; }
.r-b { animation: glisse-b 25s linear infinite; }
.r-c { animation: glisse-c 19s linear infinite; }
@keyframes glisse-a { to { transform: translateX(-220px); } }
@keyframes glisse-b { from { transform: translateX(-180px); } }
@keyframes glisse-c { to { transform: translateX(-140px); } }
@keyframes file { to { transform: translateX(-44px); } }             /* un feston de devant = 44 px */
@keyframes file-fond { from { transform: translateX(-60px); } }      /* un feston du fond = 60 px */

/* 2. Le soleil levant avant le crédit d'impôt. Il est peint (modèle d'image, détouré par
      ressources/detourer_ornements.py), dans le style japonais de la référence du 10/11 : des
      rayons épais, étroits près du disque et larges au bout. On doit vraiment le voir : il est
      grand, centré, son demi-disque sort entier des nuages, ses rayons vont jusqu'aux bords de
      l'écran et montent jusqu'à la limite (sous le dernier filet de la liste).
      Les rayons tournent en continu, toujours dans le même sens. Le disque, posé par-dessus,
      ne tourne pas : sa lumière reste en haut. */
.credit { --hv: clamp(110px, 12vw, 170px); --ds: clamp(400px, 118vw, 760px); --hs: calc(var(--ds) * 0.5); margin-top: calc(var(--hs) + var(--hv) * 0.66 + 6px); }
#aines { padding-bottom: 14px; }
.soleil { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--hv) * 0.66 - 8px); height: var(--hs); overflow: hidden; pointer-events: none; }
.soleil img { position: absolute; left: 50%; max-width: none; display: block; }
.sl-rayons { bottom: calc(var(--ds) * -0.5); width: var(--ds); height: var(--ds); margin-left: calc(var(--ds) * -0.5); animation: tourne-astre 150s linear infinite; }
.sl-disque { --dd: calc(var(--ds) * 0.3508); bottom: calc(var(--dd) * -0.5); width: var(--dd); height: var(--dd); margin-left: calc(var(--dd) * -0.5); }
@keyframes tourne-astre { to { transform: rotate(360deg); } }

/* 3. Le portrait de Sabine : sans son fond blanc, plein cadre, devant un décor dessiné
      (un grand soleil doux derrière elle, des rayons fins qui tournent, deux nuages). */
.arche.portrait { overflow: hidden; aspect-ratio: 300 / 441; border-radius: 999px 999px 6px 6px; background: linear-gradient(180deg, #fde8dc 0%, #f9d9e2 100%); outline: 1px solid rgba(163, 18, 92, 0.34); outline-offset: 10px; max-width: 420px; justify-self: end; width: 100%; }
.arche.portrait img { position: absolute; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: auto; aspect-ratio: auto; border-radius: 0; outline: none; object-fit: contain; transform: none; }
.arche.portrait .decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-halo { fill: #fff6ed; }
.d-anneau { fill: none; stroke: var(--rose-profond); stroke-opacity: 0.4; stroke-width: 1.1; }
.d-rayons { fill: none; stroke: var(--rose-profond); stroke-opacity: 0.3; stroke-width: 1.2; stroke-linecap: round; transform-origin: 150px 190px; animation: tourne-halo 16s linear infinite; }
@keyframes tourne-halo { to { transform: rotate(15deg); } }
.d-nuage path { fill: #fff8f3; stroke: var(--rose-profond); stroke-width: 1.6; stroke-linejoin: round; animation: flotte 10s ease-in-out infinite alternate; }
.d-nuage:nth-of-type(2) path { animation-duration: 13s; }

/* 4. Le petit soleil des raisons arrive autrement : le disque se lève, les rayons s'ouvrent,
      le nuage vient de côté. La lune, elle, se balance à peine, en continu. */
.s-jour .t { stroke-dasharray: none; stroke-dashoffset: 0; }
.s-jour > .plein { fill: #fff8f3; opacity: 0; }
.s-jour .s-rayons { opacity: 0; }
.s-jour .s-rayons .t { opacity: 1; transition: none; }
.s-jour .s-nuage { opacity: 0; transition: translate 0.5s var(--courbe); }
.s-jour .s-nuage .plein { fill: #fff8f3; }
li.vu .s-jour > .plein, .tout-vu .s-jour > .plein { opacity: 1; animation: leve 1s var(--courbe) backwards; }
li.vu .s-jour .s-rayons, .tout-vu .s-jour .s-rayons { opacity: 1; animation: tourne 30s linear infinite, eclot 0.9s var(--courbe) 0.4s backwards; }
li.vu .s-jour .s-nuage, .tout-vu .s-jour .s-nuage { opacity: 1; animation: derive 8s ease-in-out infinite alternate, vient 0.9s var(--courbe) 0.3s backwards; }
@keyframes leve { from { opacity: 0; translate: 0 18px; } }
@keyframes eclot { from { opacity: 0; scale: 0.55; } }
@keyframes vient { from { opacity: 0; translate: 26px 0; } }
.s-nuit > path:first-of-type { animation: berce 4.6s ease-in-out infinite alternate; }
@keyframes berce { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

/* 5. Les cadres. Retour à la direction artistique du site (10/11, midi) : les cadres peints
      (bandeau crème, nuages, feuilles) étaient trop chargés et sortaient de la DA. Un cadre,
      c'est de nouveau un filet rose fin autour de l'arche, avec un seul ornement : le lotus du
      logo posé au sommet, entre deux petites étoiles (les mêmes que dans la scène de nuit).
      « a-vue » est ce qui se voit dans l'arche ; la figure, elle, porte le filet et l'ornement. */
.grille-sabine, .formulaire { position: relative; }
.arche { --etoile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath fill='%23a3125c' d='M0-9C1-3 3-1 9 0 3 1 1 3 0 9-1 3-3 1-9 0-3-1-1-3 0-9Z'/%3E%3C/svg%3E"); }
.chapitre .arche, .arche.portrait { overflow: visible; background: none; box-shadow: none; }
.chapitre .arche { border-radius: 999px 999px 6px 6px; aspect-ratio: 4 / 5; outline: 1px solid rgba(163, 18, 92, 0.4); outline-offset: 10px; }
.a-vue { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--voile); }
.chapitre .arche::after, .arche.portrait::after {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; width: 128px; height: 34px; pointer-events: none;
  background: var(--etoile) left bottom 3px / 10px 10px no-repeat, var(--etoile) right bottom 3px / 10px 10px no-repeat, url(images/lotus-freya.svg) center bottom / 52px auto no-repeat;
}
/* Les petits nuages blancs posés sur les cadres sont retirés : ils chargeaient les cadres. */
.r-nuage { display: none !important; }

/*    Le portrait de Sabine : plus de disque clair derrière sa tête. L'arche prend toute la place
      (pleine largeur sur téléphone, sans marge) et descend jusqu'au bord de la section : son
      fond finit dans la couleur de la section suivante, elle ouvre directement sur la suite. */
.sabine { padding-bottom: 0; }
.grille-sabine { align-items: end; }
.grille-sabine > :first-child { align-self: center; padding-bottom: clamp(70px, 9vw, 130px); }
.arche.portrait { aspect-ratio: 300 / 441; border-radius: 999px 999px 0 0; outline: none; width: 100%; max-width: 480px; justify-self: end; align-self: end; margin: 0; }
.arche.portrait .a-vue { background: linear-gradient(180deg, #f5c6d4 0%, #fbdcd6 48%, var(--page) 100%); }
.arche.portrait .a-vue::before { content: ""; position: absolute; inset: 10px 10px -2px; border: 1px solid rgba(163, 18, 92, 0.34); border-radius: 999px 999px 0 0; }
.arche.portrait img { left: 0; right: 0; width: 100%; bottom: 0; }
.arche.portrait::after { bottom: calc(100% - 4px); }

@media (max-width: 700px) {
  .chapitre .arche { margin: 46px 12px 0; }
  .grille-sabine > :first-child { padding-bottom: 0; }
  .arche.portrait { max-width: none; width: auto; justify-self: stretch; margin: 40px calc(var(--marge) * -1) 0; }
}

/* 7. La progression des raisons. Un trait part du lotus, descend le long des quatre raisons à
      mesure que la page défile, et s'arrête à la dernière : il ne continue pas vers le paysage.
      Chaque numéro s'allume quand le trait l'atteint. Le trait passe derrière les numéros et
      les dessins (ce sont ses étapes). Sa longueur (--long) et son avance (--avance, de 0 à 1)
      sont posées par main.js. Seuls transform et couleur bougent. */
.etapes { position: relative; --axe: 9px; --avance: 0; --long: 100px; }
.etapes .liste-raisons { z-index: 1; }
.e-rail { position: absolute; z-index: 0; left: var(--axe); top: 0; width: 2px; height: var(--long); margin-left: -1px; background: rgba(163, 18, 92, 0.14); pointer-events: none; }
.e-plein { position: absolute; inset: 0; background: linear-gradient(180deg, var(--violet) 0%, var(--rose) 35%); transform-origin: top; transform: scaleY(var(--avance)); }
.e-tete { position: absolute; z-index: 0; left: var(--axe); top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--rose); pointer-events: none; transform: translateY(calc(var(--avance) * var(--long))); }
.e-lotus { position: absolute; z-index: 2; left: var(--axe); top: 0; translate: -50% -50%; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--page); border: 1px solid rgba(163, 18, 92, 0.34); pointer-events: none; }
.e-lotus img { width: 30px; height: auto; }
.etapes .liste-raisons .num { justify-self: start; margin-top: 6px; padding: 8px 0; background: var(--page); color: rgba(43, 15, 38, 0.36); transition: color 0.4s var(--courbe); }
.etapes .liste-raisons li.atteint .num { color: var(--rose-profond); }
@media (max-width: 900px) {
  /* Le numéro est centré au-dessus du dessin : le trait passe par les deux. */
  .etapes { --sw: 84px; --axe: calc(var(--sw) / 2); }
  .etapes .liste-raisons .num { width: var(--sw); text-align: center; margin-top: 4px; }
}
@media (max-width: 700px) { .etapes { --sw: 56px; } }

/* 8. Écrans très larges (21:9). Au-delà de 1745 px la bande du paysage ne grandit plus (320 px),
      mais son dessin continuait d'être agrandi pour couvrir la largeur : il dépassait alors en
      hauteur et le haut était rogné (nuages et colombes coupés net). Le dessin garde donc sa
      taille maximale, centré, et déborde seulement sur les côtés. Les colombes volent d'un bord
      de l'écran à l'autre quelle que soit sa largeur (34,4vw = une demi-largeur d'écran dans
      l'échelle du dessin). */
@media (min-width: 1746px) {
  .p-ciel { inset: 0 auto 0 50%; width: 1746px; margin-left: -873px; overflow: visible; }
  .p-vol { animation-name: vole-large; animation-duration: calc(var(--t) * 1.25); }
}
/* Sans animation (mouvement réduit, capture figée), les colombes restent posées dans le ciel au
   lieu de retomber dans le coin du dessin, à moitié coupées. */
.p-vol { transform: translate(calc(300px + var(--y) * 4), var(--y)) scale(var(--s)); }
@keyframes vole-large { from { transform: translate(calc(540px - 34.4vw), var(--y)) scale(var(--s)); } 50% { transform: translate(600px, calc(var(--y) - 30px)) scale(var(--s)); } to { transform: translate(calc(660px + 34.4vw), var(--y)) scale(var(--s)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
