/* ==========================================================================
   Le Fil d'Après — feuille de style (identité lumineuse 2026)
   ========================================================================== */
:root {
  --ivoire: #FFF9F2;
  --creme: #F9EFE4;
  --sable: #F2E3D3;
  --blanc: #FFFFFF;
  --prune: #5B2643;
  --prune-fonce: #2A0E1E;
  --corail: #EA735A;
  --corail-clair: #FBE3DC;
  --corail-texte: #B04A30;
  --canard: #145F5F;
  --canard-clair: #E1EFEC;
  --or: #CDA85C;
  --or-clair: #F6ECD6;
  --texte: #3B2A33;
  --texte-doux: #6E5A64;
  --ligne: #EBDCCD;

  --f-titre: "Fraunces", Georgia, "Times New Roman", serif;
  --f-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --ombre: 0 1px 2px rgb(91 38 67 / .05), 0 8px 28px -10px rgb(91 38 67 / .18);
  --ombre-forte: 0 2px 4px rgb(91 38 67 / .06), 0 20px 48px -16px rgb(91 38 67 / .28);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(1.125rem, 5vw, 2.5rem);
  --max: 1180px;
  --header-h: 72px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--f-texte);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--canard); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--prune); }
:focus-visible { outline: 3px solid var(--canard); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--corail-clair); color: var(--prune-fonce); }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 500; color: var(--prune); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--prune); color: var(--blanc); padding: .75rem 1rem; border-radius: var(--r-s); }
.skip:focus { top: 1rem; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--creme { background: var(--creme); }
.section--blanc { background: var(--blanc); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section__head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.center { text-align: center; }

.eyebrow { font: 700 .8125rem/1.3 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--canard); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--or); border-radius: 2px; }
.section__head--center .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--or); border-radius: 2px; }
.h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 3.2vw, 1.6rem); }
.lead { font-size: clamp(1.125rem, 2.4vw, 1.3125rem); line-height: 1.6; color: var(--texte); }
.muted { color: var(--texte-doux); }
em.accent, .accent { font-style: italic; color: var(--corail); font-family: var(--f-titre); font-weight: 400; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--prune); --fg: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.6rem;
  font: 700 1.0625rem/1.2 var(--f-texte); text-decoration: none; text-align: center;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); box-shadow: 0 10px 24px -12px rgb(91 38 67 / .55); }
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--corail); --fg: var(--prune-fonce); }
.btn--primary:hover { --bg: #EF8670; }
.btn--prune:hover { --bg: #6E3153; }
.btn--ghost { --bg: transparent; --fg: var(--prune); border-color: currentColor; }
.btn--ghost:hover { --bg: var(--prune); --fg: var(--blanc); border-color: var(--prune); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn__arrow { transition: transform 200ms var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.link-arrow { font-weight: 700; color: var(--prune); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 200ms var(--ease-out); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- En-tête ---------- */
/* Le flou est porté par un pseudo-élément : posé sur .header, il enfermerait le menu mobile (position: fixed) dans la hauteur de la barre */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 249 242 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
.header.is-scrolled { border-color: var(--ligne); box-shadow: 0 6px 20px -16px rgb(91 38 67 / .4); }
.header__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a:not(.btn) { display: block; padding: .55rem .8rem; color: var(--texte); text-decoration: none; font-weight: 500; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease; }
.nav a:not(.btn):hover { background: var(--creme); color: var(--prune); }
.nav a[aria-current="page"] { color: var(--prune); background: var(--sable); }
.nav__note { display: none; }
.burger { display: none; }

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 1.25rem; }
  .nav__cta { min-height: 44px; padding: .55rem 1.3rem; font-size: 1rem; }
}
@media (max-width: 959.98px) {
  :root { --header-h: 64px; }
  .brand img { height: 36px; }
  .burger { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .9rem .5rem .75rem; border: 1.5px solid var(--ligne); border-radius: 999px; background: var(--blanc); color: var(--prune); font: 700 1rem var(--f-texte); cursor: pointer; }
  .burger__bars { position: relative; width: 18px; height: 12px; }
  .burger__bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 240ms var(--ease-out), top 240ms var(--ease-out); }
  .burger__bars span:first-child { top: 1px; }
  .burger__bars span:last-child { top: 9px; }
  .burger[aria-expanded="true"] .burger__bars span:first-child { top: 5px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bars span:last-child { top: 5px; transform: rotate(-45deg); }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivoire); padding: 1.5rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { font: 500 1.75rem/1.2 var(--f-titre); color: var(--prune); padding: .8rem 0; border-radius: 0; border-bottom: 1px solid var(--ligne); }
  .nav a:not(.btn):hover, .nav a[aria-current="page"] { background: none; color: var(--corail); }
  .nav__cta { width: 100%; }
  .nav__note { display: block; color: var(--texte-doux); font-size: 1rem; margin: 0; }
}

/* ---------- Héros d'accueil ---------- */
.hero { position: relative; padding-block: clamp(2rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -22vmax; top: -24vmax; background: radial-gradient(closest-side, rgb(234 115 90 / .16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 46vmax; height: 46vmax; left: -20vmax; bottom: -26vmax; background: radial-gradient(closest-side, rgb(20 95 95 / .09), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero__title { font-size: clamp(3rem, 11vw, 5.75rem); line-height: 1; margin-bottom: .3em; }
.hero__title .accent { display: inline-block; }
.hero__sub { font: 700 clamp(.9rem, 2.4vw, 1.0625rem)/1.4 var(--f-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--canard); margin-bottom: 1.4rem; }
.hero__lead { font-family: var(--f-titre); font-size: clamp(1.4rem, 3.6vw, 1.9rem); line-height: 1.3; color: var(--texte); margin-bottom: 1.25rem; max-width: 30ch; }
.hero__sign { display: flex; align-items: center; gap: .8rem; color: var(--texte-doux); font-size: 1.0625rem; margin-bottom: 2rem; }
.hero__sign::before { content: ""; flex: none; width: 34px; height: 1.5px; background: var(--or); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.hero__photo { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px var(--r-l) var(--r-l); box-shadow: var(--ombre-forte); }
.hero__photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1.5px solid var(--or); border-radius: 999px 999px var(--r-l) var(--r-l); z-index: -1; }
.hero__badge { position: absolute; left: -6px; bottom: 28px; background: var(--blanc); border-radius: 999px; padding: .6rem 1rem .6rem .7rem; display: flex; align-items: center; gap: .55rem; box-shadow: var(--ombre); font-weight: 700; color: var(--prune); font-size: .95rem; }
.hero__badge img { width: 30px; height: 30px; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
@media (max-width: 899.98px) { .hero__photo { width: min(78%, 360px); } .hero__photo::before { inset: -10px 10px 10px -10px; } }

/* ---------- Héros de page ---------- */
.page-hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 50vmax; height: 50vmax; right: -24vmax; top: -30vmax; background: radial-gradient(closest-side, var(--halo, rgb(234 115 90 / .14)), transparent 70%); pointer-events: none; }
.page-hero--canard { --halo: rgb(20 95 95 / .13); }
.page-hero--or { --halo: rgb(205 168 92 / .22); }
.page-hero--prune { --halo: rgb(91 38 67 / .1); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-size: .95rem; color: var(--texte-doux); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--texte-doux); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); font-size: .975rem; font-weight: 500; color: var(--texte); }
.chip svg { width: 18px; height: 18px; color: var(--canard); }

/* ---------- Cartes univers ---------- */
.univers { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .univers { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.ucard { --c: var(--corail); --c-bg: var(--corail-clair); position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.75rem 1.5rem 1.5rem; background: var(--blanc); border-radius: var(--r-m); box-shadow: var(--ombre); text-decoration: none; color: var(--texte); overflow: hidden; transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.ucard--canard { --c: var(--canard); --c-bg: var(--canard-clair); }
.ucard--prune { --c: var(--prune); --c-bg: #F1E3EA; }
.ucard--or { --c: var(--or); --c-bg: var(--or-clair); }
@media (hover: hover) { .ucard:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); color: var(--texte); } }
.ucard:active { transform: scale(.985); }
.ucard__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c-bg); color: var(--c); margin-bottom: 1.25rem; }
.ucard--or .ucard__icon { color: #8A6A28; }
.ucard__icon svg { width: 30px; height: 30px; }
.ucard h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.ucard p { color: var(--texte-doux); margin-bottom: 1.5rem; }
.ucard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--ligne); }
.ucard__price { font-size: .95rem; color: var(--texte-doux); }
.ucard__price strong { display: block; font: 600 1.5rem/1.1 var(--f-titre); color: var(--prune); }
.ucard__go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--blanc); font-size: 1.25rem; transition: transform 200ms var(--ease-out); }
.ucard--or .ucard__go { color: var(--prune-fonce); }
.ucard:hover .ucard__go { transform: translateX(3px); }
.aussi { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: center; color: var(--texte-doux); }
.aussi a { font-weight: 700; color: var(--prune); }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1040px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; position: relative; padding: 1.5rem 1.4rem; background: var(--blanc); border-radius: var(--r-m); border: 1px solid var(--ligne); }
.step::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--corail-clair); color: var(--prune); font: 600 1.25rem var(--f-titre); margin-bottom: 1rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--texte-doux); }
.note { display: flex; gap: .85rem; align-items: flex-start; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--r-s); background: var(--canard-clair); color: #0F4646; }
.note svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; }
.note p { margin: 0; }
.note--or { background: var(--or-clair); color: #5E4614; }

/* ---------- Citation / signature ---------- */
.signature { text-align: center; }
.signature blockquote { margin: 0 auto; max-width: 22ch; font: 400 italic clamp(2rem, 6.4vw, 3.4rem)/1.18 var(--f-titre); color: var(--prune); }
.signature blockquote::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 1.25rem; background: url(/assets/logo/favicon.svg) center / contain no-repeat; }
.signature cite { display: block; margin-top: 1.25rem; font: 700 .9rem var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--canard); font-style: normal; }

/* ---------- Histoire ---------- */
.story { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; } }
.story__photos { position: relative; display: grid; grid-template-columns: 1fr .62fr; gap: 1rem; align-items: end; }
.story__photos img { width: 100%; border-radius: var(--r-m); box-shadow: var(--ombre); object-fit: cover; }
.story__photos img:first-child { aspect-ratio: 4 / 5; }
.story__photos img:last-child { aspect-ratio: 1; margin-bottom: 2rem; }
.story__quote { font: 400 italic 1.3rem/1.45 var(--f-titre); color: var(--prune); border-left: 2px solid var(--or); padding-left: 1.1rem; margin: 1.5rem 0 2rem; }

/* ---------- Offres (pages univers) ---------- */
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .offers { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.offer { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.5rem; background: var(--blanc); border-radius: var(--r-m); border: 1px solid var(--ligne); height: 100%; }
.offer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.offer h3 { font-size: clamp(1.4rem, 3.4vw, 1.65rem); margin: 0; }
.offer__meta { margin: .3rem 0 0; font-size: .975rem; font-weight: 500; color: var(--canard); }
.offer__price { flex: none; font: 600 clamp(1.6rem, 4vw, 1.9rem)/1 var(--f-titre); color: var(--prune); white-space: nowrap; }
.offer__price small { font: 500 .8rem var(--f-texte); color: var(--texte-doux); display: block; text-align: right; margin-top: .25rem; }
.offer p { color: var(--texte-doux); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer--vedette { border: 2px solid var(--canard); background: linear-gradient(180deg, var(--canard-clair), var(--blanc) 55%); }
@media (min-width: 760px) { .offer--vedette { grid-column: 1 / -1; } }
.offer__ribbon { display: inline-block; margin-bottom: .9rem; padding: .3rem .8rem; border-radius: 999px; background: var(--canard); color: var(--blanc); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.offer__list { columns: 2 220px; column-gap: 2rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.offer__list li { break-inside: avoid; position: relative; padding-left: 1.6rem; margin-bottom: .45rem; color: var(--texte); }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--canard); }
.badge-valider { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: var(--or-clair); color: #5E4614; font-size: .8rem; font-weight: 700; border: 1px dashed var(--or); }
.subhead { margin: clamp(2.5rem, 6vw, 3.5rem) 0 1.25rem; font-size: clamp(1.5rem, 3.6vw, 1.9rem); }

/* ---------- Jeux de cartes ---------- */
.decks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .decks { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.deck { padding: 1.4rem 1.2rem; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--ligne); text-align: center; }
.deck__card { width: 54px; height: 80px; margin: 0 auto 1rem; border-radius: 8px; border: 1.5px solid var(--or); background: var(--ivoire); position: relative; transform: rotate(-4deg); box-shadow: 6px 4px 0 -1px var(--sable); }
.deck__card::after { content: ""; position: absolute; inset: 8px; border-radius: 4px; background: var(--dc, var(--corail)); opacity: .18; }
.deck h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.deck p { margin: 0; font-size: .95rem; color: var(--texte-doux); line-height: 1.5; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.65rem, 4.4vw, 2.2rem); margin-top: 2.25em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.75em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--or); font: 400 italic 1.35rem/1.45 var(--f-titre); color: var(--prune); }
.prose figure { margin: 2.25rem 0; }
.prose figure img { width: 100%; border-radius: var(--r-m); box-shadow: var(--ombre); }
.prose figcaption { margin-top: .7rem; font-size: .95rem; color: var(--texte-doux); text-align: center; }
.prose .figure--petite { max-width: 380px; margin-inline: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.a-completer { background: var(--or-clair); border: 1px dashed var(--or); border-radius: 6px; padding: 0 .35em; color: #5E4614; font-weight: 500; }
.fin-histoire { font: 400 italic clamp(1.6rem, 4vw, 2rem)/1.3 var(--f-titre); color: var(--prune); text-align: center; margin-top: 2.5rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font: 500 clamp(1.15rem, 2.8vw, 1.3rem)/1.35 var(--f-titre); color: var(--prune); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2643' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.4rem; color: var(--texte); max-width: 68ch; }
.faq__a p:last-child { margin: 0; }

/* ---------- Bandeau de fin ---------- */
.cta { border-radius: var(--r-l); padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3.5rem); background: var(--corail-clair); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background: url(/assets/logo/favicon.svg) center / contain no-repeat; opacity: .12; transform: rotate(-12deg); }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { font-size: clamp(1.75rem, 4.4vw, 2.4rem); margin-bottom: .35rem; }
.cta p { margin: 0; color: var(--texte); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; position: relative; z-index: 1; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.25rem; }
.fieldset { border: 0; margin: 0; padding: 1.5rem 1.25rem; background: var(--blanc); border-radius: var(--r-m); border: 1px solid var(--ligne); display: grid; gap: 1.1rem; min-width: 0; }
@media (min-width: 700px) { .fieldset { padding: 1.9rem 1.9rem; } }
.fieldset legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; font: 500 1.4rem/1.25 var(--f-titre); color: var(--prune); display: flex; gap: .7rem; align-items: center; }
.fieldset legend + * { clear: both; }
.fieldset__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--corail); color: var(--prune-fonce); font: 700 1rem var(--f-texte); }
.row-2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field .label { font-weight: 700; color: var(--texte); font-size: 1rem; }
.field .hint { font-size: .95rem; color: var(--texte-doux); margin: 0; }
.opt { font-weight: 400; color: var(--texte-doux); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: 400 1.0625rem/1.4 var(--f-texte); color: var(--texte);
  background: var(--ivoire); border: 1.5px solid #DCC9B8; border-radius: var(--r-s); appearance: none; -webkit-appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
input[type="date"], input[type="time"] { display: block; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2643' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--canard); background: var(--blanc); box-shadow: 0 0 0 4px rgb(20 95 95 / .14); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #B4432B; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--prune); }
.form__error { padding: 1rem 1.2rem; border-radius: var(--r-s); background: #FBE4DE; color: #7A2414; font-weight: 500; }
.form__error:empty { display: none; }
.hp { position: absolute; left: -9999px; }

/* Choix de prestation */
.choices { display: grid; gap: .6rem; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .95rem 1.1rem; border-radius: var(--r-s); border: 1.5px solid var(--ligne); background: var(--ivoire); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--prune); }
.choice__name { font-weight: 700; color: var(--texte); line-height: 1.3; }
.choice__name small { display: block; font-weight: 400; color: var(--texte-doux); font-size: .925rem; }
.choice__price { font: 600 1.25rem var(--f-titre); color: var(--prune); }
.choice:has(input:checked) { border-color: var(--prune); background: var(--blanc); box-shadow: 0 0 0 1px var(--prune); }
.choice-group + .choice-group { margin-top: 1rem; }
.choice-group__title { font: 700 .8125rem var(--f-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--canard); margin: 0 0 .6rem; }

/* Calendrier */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.cal__month { font: 500 1.25rem var(--f-titre); color: var(--prune); text-transform: capitalize; margin: 0; }
.cal__nav { display: flex; gap: .4rem; }
.cal__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ligne); background: var(--blanc); color: var(--prune); font-size: 1.2rem; cursor: pointer; }
.cal__nav button:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .8rem; font-weight: 700; color: var(--texte-doux); padding: .25rem 0; text-transform: uppercase; letter-spacing: .04em; }
.cal__day { position: relative; aspect-ratio: 1; min-height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid transparent; background: none; font: 500 1.0625rem var(--f-texte); color: #B9A9A2; padding: 0; }
.cal__day[data-statut="dispo"] { background: var(--canard-clair); color: var(--canard); border-color: #C5DED9; cursor: pointer; font-weight: 700; }
.cal__day[data-statut="dispo"]:hover { border-color: var(--canard); }
.cal__day[data-statut="complet"] { background: repeating-linear-gradient(135deg, #F5E9E5, #F5E9E5 4px, #EEDDD7 4px, #EEDDD7 8px); color: #A88E86; text-decoration: line-through; }
.cal__day[aria-pressed="true"] { background: var(--prune); color: var(--blanc); border-color: var(--prune); }
.cal__day[data-peu]::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--corail); }
.cal__day[aria-pressed="true"]::after { background: var(--or); }
.cal__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .925rem; color: var(--texte-doux); list-style: none; padding: 0; }
.cal__legend li { display: flex; align-items: center; gap: .45rem; }
.cal__legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.cal__picked { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: var(--r-s); background: var(--ivoire); border: 1px solid var(--ligne); }
.cal__picked strong { color: var(--prune); }
.cal__closed { padding: 1.25rem; border-radius: var(--r-s); background: var(--or-clair); color: #5E4614; }

/* Récapitulatif */
.recap { display: grid; gap: .25rem; padding: 1.25rem; border-radius: var(--r-s); background: var(--creme); }
.recap div { display: flex; justify-content: space-between; gap: 1rem; }
.recap dt { color: var(--texte-doux); }
.recap dd { margin: 0; font-weight: 700; color: var(--texte); text-align: right; }
.recap__total { border-top: 1px solid var(--ligne); margin-top: .5rem; padding-top: .6rem; }
.recap__total dd { font: 600 1.5rem var(--f-titre); color: var(--prune); }
.secure { display: flex; gap: .6rem; align-items: center; justify-content: center; font-size: .95rem; color: var(--texte-doux); margin: 0; }
.secure svg { width: 18px; height: 18px; }

/* Résultat (merci) */
.done { text-align: center; padding: clamp(2rem, 6vw, 3rem) 1.5rem; background: var(--blanc); border-radius: var(--r-l); box-shadow: var(--ombre); }
.done__icon { width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--canard-clair); color: var(--canard); display: grid; place-items: center; }
.done__icon svg { width: 34px; height: 34px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--creme); padding-top: clamp(3rem, 7vw, 4.5rem); margin-top: 0; border-top: 1px solid var(--ligne); }
.footer__inner { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand img { width: 150px; margin-bottom: 1rem; }
.footer__brand p { color: var(--texte-doux); font-size: 1rem; max-width: 34ch; }
.footer__slogan { font: 400 italic 1.15rem/1.4 var(--f-titre) !important; color: var(--prune) !important; }
.footer__title { font: 700 .8125rem var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--canard); margin-bottom: 1rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer__links a { display: inline-block; padding: .3rem 0; color: var(--texte); text-decoration: none; }
.footer__links a:hover { color: var(--prune); text-decoration: underline; }
.footer__legal { margin-top: 2.5rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--ligne); font-size: .925rem; color: var(--texte-doux); }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero__in { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Divers ---------- */
.stack > * + * { margin-top: 1rem; }
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.card { padding: 1.6rem 1.5rem; background: var(--blanc); border-radius: var(--r-m); border: 1px solid var(--ligne); }
.card h3 { font-size: 1.35rem; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.list-check li { position: relative; padding-left: 1.9rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--canard-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145F5F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.list-no li::before { background: #F8E2DC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4432B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Espace de gestion ---------- */
.gst { padding-top: 2rem; }
.gst__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.gst__user { font-size: .925rem; color: var(--texte-doux); display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.gst__user button { background: none; border: 0; padding: .5rem 0; font: inherit; font-weight: 700; cursor: pointer; }
.gst__login { max-width: 32rem; }
.gst__tabs { display: flex; gap: .25rem; padding: .3rem; background: var(--creme); border-radius: 999px; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.gst__tabs button { flex: 1; min-height: 44px; padding: .5rem .75rem; border: 0; border-radius: 999px; background: none; font: 600 .95rem var(--f-texte); color: var(--texte-doux); cursor: pointer; white-space: nowrap; }
.gst__tabs button[aria-selected="true"] { background: var(--blanc); color: var(--prune); box-shadow: 0 1px 4px rgba(42,14,30,.1); }
.gst__count:not(:empty) { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: var(--corail); color: var(--prune-fonce); font-size: .8rem; }
.gst__toast { min-height: 1.5rem; margin: 0 0 .5rem; font-weight: 600; color: var(--canard); }
.gst__toast[data-err="1"] { color: #B4432B; }
.gst__filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.gst__filters label { display: grid; gap: .3rem; font-weight: 600; font-size: .925rem; }
.gst select, .gst textarea { font: inherit; padding: .6rem .8rem; border: 1.5px solid var(--ligne); border-radius: var(--r-s); background: var(--blanc); color: var(--texte); }
.gst__list { display: grid; gap: .75rem; }
.gst__item { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-m); }
.gst__item[data-statut="annulee"], .gst__item[data-statut="livree"] { opacity: .75; }
.gst__item summary { list-style: none; cursor: pointer; padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.gst__item summary::-webkit-details-marker { display: none; }
.gst__when { flex-basis: 100%; font-size: .9rem; color: var(--texte-doux); }
.gst__badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--creme); color: var(--texte); }
.gst__badge[data-s="nouvelle"], .gst__badge[data-s="payee"] { background: var(--corail-clair); color: #8A3320; }
.gst__badge[data-s="en_cours"] { background: var(--canard-clair); color: var(--canard); }
.gst__badge[data-s="livree"] { background: #E3EFE5; color: #2F6B3C; }
.gst__badge[data-s="attente_paiement"] { background: var(--or-clair); color: #5E4614; }
.gst__dl { margin: 0; padding: 0 1.1rem; display: grid; gap: .5rem; border-top: 1px solid var(--ligne); padding-top: 1rem; }
.gst__dl div { display: grid; gap: .1rem; }
.gst__dl dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
.gst__dl dd { margin: 0; overflow-wrap: anywhere; }
.gst__actions { display: grid; gap: .75rem; padding: 1rem 1.1rem 1.1rem; }
.gst__actions label { display: grid; gap: .3rem; font-weight: 600; font-size: .925rem; }
.gst__btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.gst__danger { color: #B4432B; border-color: #E9C4BA; }
.gst__mois { font: 600 1.1rem var(--f-titre); color: var(--prune); margin: 1.25rem 0 .5rem; text-transform: capitalize; grid-column: 1 / -1; }
.gst__planning { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.gst__jour { display: grid; gap: .15rem; text-align: left; padding: .7rem .8rem; min-height: 44px; border-radius: var(--r-s); border: 1.5px solid var(--ligne); background: var(--blanc); font: inherit; color: var(--texte); cursor: pointer; }
.gst__jour:hover { border-color: var(--prune); }
.gst__jour-d { font-weight: 700; text-transform: capitalize; }
.gst__jour-n { font-size: .85rem; color: var(--texte-doux); }
.gst__jour-e { font-size: .85rem; font-weight: 600; color: var(--canard); }
.gst__jour[data-s="complet"] .gst__jour-e { color: #8A3320; }
.gst__jour[data-s="complet"] { background: var(--corail-clair); }
.gst__jour[data-s="bloque"] { background: repeating-linear-gradient(135deg, #F5EDE6, #F5EDE6 6px, #EFE4DB 6px, #EFE4DB 12px); }
.gst__jour[data-s="bloque"] .gst__jour-e, .gst__jour[data-s="ferme"] .gst__jour-e { color: var(--texte-doux); }
.gst__jour[data-s="ferme"] { background: var(--ivoire); }
.gst__jours { display: flex; flex-wrap: wrap; gap: .4rem; }
.gst__chip input { position: absolute; opacity: 0; }
.gst__chip span { display: inline-grid; place-items: center; min-width: 3.2rem; min-height: 44px; padding: 0 .6rem; border-radius: 999px; border: 1.5px solid var(--ligne); font-weight: 600; cursor: pointer; }
.gst__chip input:checked + span { background: var(--prune); border-color: var(--prune); color: var(--blanc); }
.gst__chip input:focus-visible + span { outline: 3px solid var(--corail); outline-offset: 2px; }
.gst__bloques { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.gst__bloques li { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .8rem; border-radius: var(--r-s); background: var(--ivoire); }
.gst__form { max-width: 40rem; }
.gst__dialog { width: min(26rem, calc(100% - 2rem)); border: 0; border-radius: var(--r-m); padding: 1.5rem; box-shadow: 0 20px 60px rgba(42,14,30,.25); }
.gst__dialog::backdrop { background: rgba(42,14,30,.4); }
.gst__dialog h2 { margin-top: 0; text-transform: capitalize; }
.gst__dialog-actions { display: grid; gap: .5rem; margin-top: 1rem; }
.label { display: block; font-weight: 600; margin-bottom: .4rem; }

/* ---------- Papillons qui volent (décor) ---------- */
.papillons { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pap { position: absolute; width: var(--t, 30px); color: var(--c, var(--or)); animation: var(--vol, vol-a) var(--duree, 18s) ease-in-out var(--retard, 0s) infinite; will-change: transform; }
.pap__bob { display: block; animation: pap-bob 2.6s ease-in-out infinite alternate; }
.pap svg { display: block; width: 100%; height: auto; overflow: visible; transform: rotate(var(--angle, 14deg)); }
.pap__aile { fill: currentColor; transform-box: view-box; transform-origin: 26px 26px; animation: pap-aile-d var(--battement, 1.5s) ease-in-out infinite; }
.pap__aile--g { animation-name: pap-aile-g; }
.pap__corps { fill: var(--prune); stroke: var(--prune); }
.pap--1 { --c: var(--or); --t: 34px; top: 14%; left: 44%; --vol: vol-a; --duree: 19s; }
.pap--2 { --c: var(--corail); --t: 26px; top: 8%; right: 6%; --vol: vol-b; --duree: 23s; --retard: -6s; --battement: 1.2s; --angle: -12deg; }
.pap--3 { --c: var(--prune); --t: 20px; bottom: 14%; left: 4%; --vol: vol-c; --duree: 16s; --retard: -3s; --battement: 1.8s; }
.pap--4 { --c: var(--or); --t: 30px; top: 22%; right: 12%; --vol: vol-b; --duree: 21s; --retard: -4s; }
.pap--5 { --c: var(--corail); --t: 20px; bottom: 16%; right: 30%; --vol: vol-c; --duree: 17s; --retard: -9s; --battement: 1.3s; --angle: -8deg; }
.pap--6 { --c: var(--canard); --t: 18px; top: 46%; left: 38%; --vol: vol-b; --duree: 20s; --retard: -11s; --battement: 1.1s; --angle: 20deg; }
.pap--7 { --c: var(--or); --t: 22px; bottom: 10%; right: 40%; --vol: vol-a; --duree: 24s; --retard: -15s; --battement: 1.7s; --angle: -16deg; }
.pap--8 { --c: var(--corail); --t: 16px; top: 6%; left: 20%; --vol: vol-c; --duree: 18s; --retard: -8s; --battement: 1.25s; }
.pap--9 { --c: var(--prune); --t: 16px; top: 12%; right: 38%; --vol: vol-a; --duree: 22s; --retard: -13s; --battement: 1.6s; --angle: -10deg; }
.pap--10 { --c: var(--canard); --t: 22px; bottom: 8%; right: 6%; --vol: vol-b; --duree: 19s; --retard: -2s; --battement: 1.4s; --angle: 18deg; }
.pap--11 { --c: var(--prune); --t: 22px; top: 12%; right: 28%; --vol: vol-b; --duree: 18s; --retard: -5s; --battement: 1.3s; }
.pap--12 { --c: var(--or); --t: 16px; bottom: 14%; right: 12%; --vol: vol-c; --duree: 15s; --retard: -10s; --battement: 1.6s; --angle: -14deg; }
.pap--13 { --c: var(--or); --t: 24px; top: 8%; right: 10%; --vol: vol-b; --duree: 22s; --retard: -7s; }
.pap--14 { --c: var(--corail); --t: 16px; top: 40%; left: 46%; --vol: vol-a; --duree: 20s; --retard: -12s; --battement: 1.2s; --angle: -12deg; }
.pap--15 { --c: var(--canard); --t: 18px; bottom: 18%; right: 26%; --vol: vol-c; --duree: 17s; --retard: -4s; --battement: 1.5s; --angle: 16deg; }
.cta > div:not(.papillons), .footer__inner, .footer__legal { position: relative; z-index: 1; }
.footer { position: relative; overflow: hidden; }
@media (max-width: 759px) {
  .pap--1 { top: 4%; left: 62%; }
  .pap--6 { top: 30%; left: 76%; }
  .pap--7 { bottom: 4%; right: 8%; }
  .pap--3, .pap--5, .pap--8, .pap--14 { display: none; }
  .pap--4 { top: 10%; right: 6%; }
  .pap--9 { top: 4%; right: 34%; }
  .pap--11 { top: 6%; right: 10%; }
  .pap--12 { bottom: 6%; right: 8%; }
}
/* Battements en rafale puis vol plané, comme un vrai papillon */
@keyframes pap-aile-d { 0%, 36%, 100% { transform: scaleX(1); } 6%, 18%, 30% { transform: scaleX(.22); } 12%, 24% { transform: scaleX(1); } }
@keyframes pap-aile-g { 0%, 36%, 100% { transform: scaleX(-1); } 6%, 18%, 30% { transform: scaleX(-.22); } 12%, 24% { transform: scaleX(-1); } }
@keyframes pap-bob { to { transform: translateY(-9px); } }
@keyframes vol-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(70px, -30px) rotate(12deg); }
  45% { transform: translate(120px, 20px) rotate(-6deg); }
  70% { transform: translate(40px, 50px) rotate(-18deg); }
  85% { transform: translate(-30px, 15px) rotate(-8deg); }
}
@keyframes vol-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-80px, 40px) rotate(-14deg); }
  50% { transform: translate(-30px, 90px) rotate(6deg); }
  75% { transform: translate(30px, 30px) rotate(16deg); }
}
@keyframes vol-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(60px, -60px) rotate(18deg); }
  60% { transform: translate(110px, -10px) rotate(4deg); }
  80% { transform: translate(40px, 20px) rotate(-12deg); }
}

/* Halos qui respirent lentement */
.hero::before, .page-hero::before { animation: halo-derive 16s ease-in-out infinite alternate; }
.hero::after { animation: halo-derive 20s ease-in-out -7s infinite alternate-reverse; }
@keyframes halo-derive { to { transform: translate(-3vmax, 2.5vmax) scale(1.08); } }

/* Icônes des univers : petit envol au survol */
.ucard__icon svg { transition: transform 320ms var(--ease-out); }
@media (hover: hover) { .ucard:hover .ucard__icon svg { transform: translateY(-3px) rotate(-6deg) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .pap, .pap__bob, .pap__aile, .hero::before, .hero::after, .page-hero::before { animation: none !important; }
}

/* ==========================================================================
   Touche artisanale : papier, fil doré, cartes de tarot
   ========================================================================== */

/* Grain de papier très léger sur tout le site */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .1 0 0 0 0 .16 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Sur-titres : écriture italique et petit fil ondulé au lieu des capitales espacées */
.eyebrow, .hero__sub, .footer__title {
  font: 400 italic clamp(1.1rem, 2.4vw, 1.25rem)/1.35 var(--f-titre); letter-spacing: 0; text-transform: none;
}
.eyebrow { color: var(--corail-texte); gap: .55rem; }
.hero__sub { color: var(--canard); font-size: clamp(1.2rem, 3vw, 1.45rem); }
.footer__title { color: var(--prune); font-size: 1.2rem; }
.eyebrow::before, .section__head--center .eyebrow::after {
  width: 34px; height: 10px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M1 6C7 1 12 9 18 5s10-3 15 0' fill='none' stroke='%23CDA85C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section__head--center .eyebrow::after { transform: scaleX(-1); }
.signature cite { font: 400 italic 1.15rem var(--f-titre); letter-spacing: 0; text-transform: none; color: var(--canard); }

/* Fil doré tracé à la main sous « d'Après » et sous la signature */
.hero__title .accent { position: relative; }
.trait { display: block; overflow: visible; fill: none; stroke: var(--or); stroke-width: 3; stroke-linecap: round; }
.trait path { stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.hero__title .trait { position: absolute; left: 2%; right: -2%; bottom: -.14em; width: 100%; height: .3em; }
.hero__title .trait path { animation: tracer 1.3s var(--ease-out) .65s forwards; }
.trait--sig { width: min(240px, 60%); height: 22px; margin: 1.1rem auto 0; }
.signature .is-in .trait--sig path { animation: tracer 1.6s var(--ease-out) .3s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

/* Sceau qui tourne doucement sur la photo */
.sceau { position: absolute; z-index: 2; top: 6%; right: -18px; width: clamp(104px, 27%, 134px); height: auto; filter: drop-shadow(0 8px 18px rgb(91 38 67 / .18)); }
.sceau circle { fill: var(--ivoire); }
.sceau text { font: 700 11px var(--f-texte); letter-spacing: .02em; fill: var(--prune); }
.sceau__texte { transform-origin: 60px 60px; animation: tourner 28s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
.hero__badge { animation: flotter 5s ease-in-out infinite alternate; }
@keyframes flotter { to { transform: translateY(-6px); } }
@media (max-width: 899.98px) { .sceau { right: -14px; width: 96px; } }

/* Cartes univers façon lames de tarot : posées un peu de travers, numérotées en chiffres romains */
.univers { counter-reset: arcane; perspective: 1200px; }
.univers > li { counter-increment: arcane; }
.ucard { --rot: 0deg; --rx: 0deg; --ry: 0deg; transform: rotate(var(--rot)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 500ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.univers > li:nth-child(1) .ucard { --rot: -1.4deg; }
.univers > li:nth-child(2) .ucard { --rot: .9deg; }
.univers > li:nth-child(3) .ucard { --rot: -.6deg; }
.ucard::after { content: ""; position: absolute; inset: 9px; border: 1px solid var(--or); border-radius: 14px; opacity: .45; pointer-events: none; }
.ucard::before { content: counter(arcane, upper-roman); position: absolute; top: 1.35rem; right: 1.5rem; font: 400 italic 1.35rem/1 var(--f-titre); color: var(--c); }
.ucard:not(.ucard--canard):not(.ucard--prune):not(.ucard--or)::before { color: var(--corail-texte); }
.ucard--or::before { color: #8A6A28; }
@media (hover: hover) {
  .ucard:hover { --rot: 0deg; transform: translateY(-6px) rotate(0deg) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 260ms var(--ease-out), box-shadow 300ms var(--ease-out); }
}
.ucard:active { transform: scale(.985); }
/* Les cartes arrivent comme si on les distribuait */
.js .univers .reveal { transform: translateY(46px) rotate(-7deg); transition-duration: 800ms; transition-delay: calc(var(--i, 0) * 120ms); }
.js .univers > li:nth-child(2).reveal:not(.is-in) { transform: translateY(46px) rotate(6deg); }
.js .univers .reveal.is-in { transform: none; }

/* Étapes : chiffres romains en italique plutôt que des pastilles */
.step::before { content: counter(step, upper-roman) "."; display: block; width: auto; height: auto; background: none; border-radius: 0; font: 400 italic 2.1rem/1 var(--f-titre); color: var(--corail-texte); margin-bottom: .8rem; }
.step { transition: transform 300ms var(--ease-out), border-color 300ms ease; }
@media (hover: hover) { .step:hover { transform: translateY(-3px); border-color: var(--or); } }

/* Apparitions : léger flou qui se dissipe */
.js .reveal { filter: blur(5px); transition-property: opacity, transform, filter; }
.js .reveal.is-in { filter: none; }

/* Liens du pied de page : fil qui se tend au survol */
.footer__links a { background: linear-gradient(var(--or), var(--or)) 0 100% / 0 1.5px no-repeat; transition: background-size 300ms var(--ease-out), color 200ms ease; }
.footer__links a:hover { text-decoration: none; background-size: 100% 1.5px; }

@media (prefers-reduced-motion: reduce) {
  .sceau__texte, .hero__badge { animation: none !important; }
  .trait path { stroke-dashoffset: 0; animation: none !important; }
  .js .reveal { filter: none; }
  .ucard { transform: none !important; }
}

.page-hero .breadcrumb { margin-bottom: 1rem; }

/* « Comment ça se passe » : un fil d'or qui se déroule au défilement et retourne une carte à chaque étape */
.fil-etapes { --carte-l: 60px; --carte-h: 86px; position: relative; margin-top: .5rem; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; position: relative; z-index: 1; }
.etape { display: grid; grid-template-columns: var(--carte-l) 1fr; column-gap: 1.25rem; padding-bottom: 2.1rem; }
.etape h3 { font-size: 1.3rem; margin: .35rem 0 .3rem; }
.etape p { margin: 0; color: var(--texte-doux); max-width: 30ch; }
.etape__texte { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

.fil-etapes__fil { position: absolute; overflow: visible; pointer-events: none; }
.fil-etapes__fil path { fill: none; stroke-linecap: round; }
.fil-etapes__trace { stroke: var(--ligne); stroke-width: 1.5; stroke-dasharray: 3 7; }
.fil-etapes__actif { stroke: var(--or); stroke-width: 2.25; stroke-dasharray: 1; stroke-dashoffset: var(--reste, 0); }
.fil-etapes__fil--h { display: none; }
.fil-etapes__fil--v { left: calc(var(--carte-l) / 2 - 20px); top: calc(var(--carte-h) / 2); bottom: 1.4rem; width: 40px; height: calc(100% - var(--carte-h) / 2 - 1.4rem); }

/* La carte : dos prune, face ivoire, elle se retourne quand le fil l'atteint */
.etape__carte { width: var(--carte-l); height: var(--carte-h); perspective: 600px; transform: rotate(var(--penche, -3deg)); transition: transform 400ms var(--ease-out); }
.etape:nth-child(2) .etape__carte { --penche: 2.5deg; }
.etape:nth-child(3) .etape__carte { --penche: -1.5deg; }
.etape:nth-child(4) .etape__carte { --penche: 3deg; }
.etape__pivot { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 800ms var(--ease-out); }
.etape__dos, .etape__face { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 16px rgb(91 38 67 / .14); }
.etape__face { display: grid; place-items: center; background: var(--ivoire); border: 1px solid var(--or); font: 400 italic 1.6rem/1 var(--f-titre); color: var(--corail-texte); }
.etape__face::before, .etape__dos::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--or); border-radius: 5px; opacity: .5; }
.etape__dos { transform: rotateY(180deg); background: var(--prune) radial-gradient(circle at 50% 50%, rgb(205 168 92 / .28), transparent 60%); }
.etape__dos::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--or); font-size: 1.1rem; }
@media (hover: hover) {
  .etape:hover .etape__carte { transform: translateY(-5px) rotate(0deg); }
}

/* Le papillon se pose au bout du fil */
.fil-etapes__fin { position: absolute; left: calc(var(--carte-l) / 2 - 15px); bottom: -.6rem; width: 30px; height: 30px; transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); }
.pap--fin { position: static; display: block; --c: var(--corail); --t: 30px; animation: none; }

@media (min-width: 900px) {
  .fil-etapes { --carte-l: 66px; --carte-h: 94px; padding-right: 2.5rem; }
  .etapes { grid-template-columns: repeat(4, 1fr); column-gap: 1.75rem; }
  .etape { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0; row-gap: 1.1rem; }
  .etape p { margin-inline: auto; }
  .fil-etapes__fil--v { display: none; }
  .fil-etapes__fil--h { display: block; top: calc(var(--carte-h) / 2 - 20px); height: 40px; left: calc((100% - 2.5rem) / 8); right: 0; width: auto; }
  .fil-etapes__fin { left: auto; right: -4px; bottom: auto; top: calc(var(--carte-h) / 2 - 34px); }
}

/* États « pas encore atteint », seulement si le script tourne */
.js .fil-etapes:not(.is-pret) .fil-etapes__actif { --reste: 1; }
.js .fil-etapes .etape:not(.is-on) .etape__pivot { transform: rotateY(180deg); }
.js .fil-etapes .etape:not(.is-on) .etape__texte { opacity: 0; transform: translateY(10px); }
.js .fil-etapes:not(.is-fini) .fil-etapes__fin { opacity: 0; transform: translate(-14px, 10px) rotate(-20deg) scale(.9); }

@media (prefers-reduced-motion: reduce) {
  .etape__pivot, .etape__texte, .etape__carte, .fil-etapes__fin { transition: none !important; }
  .pap--fin .pap__aile { animation: none !important; }
}

/* Petits écrans : cartes moins penchées pour ne pas dépasser, et garde-fou contre le défilement horizontal */
main { overflow-x: clip; }
@media (max-width: 699.98px) {
  .univers > li:nth-child(n) .ucard { --rot: 0deg; }
  .js .univers .reveal, .js .univers > li:nth-child(2).reveal:not(.is-in) { transform: translateY(36px) rotate(-1.5deg); }
  .js .univers .reveal.is-in { transform: none; }
}
