/* =========================================================
   Pas'sage de cap — base
   Tokens, reset, typographie, boutons, header, footer, a11y

   Charte reprise du site d'origine (chaude et terrienne, à l'image
   du logo : berger australien dans un médaillon crème, chemin et
   empreintes) : caramel, terracotta, chocolat, crème.
   ========================================================= */

:root {
  /* --- Couleurs reprises de la charte d'origine (style.css) --- */
  --pdc-caramel:    #D28A52;  /* accent principal (ex-.color) — aplats & texte sur sombre */
  --pdc-amber:      #AE6626;  /* caramel assombri : gros texte display SUR CLAIR (3.8:1) */
  --pdc-terracotta: #A45E32;  /* secondaire (ex-soulignés h2) */
  --pdc-choco:      #4A2A15;  /* texte foncé (ex-.color2 / body) */
  --pdc-espresso:   #34200F;  /* fonds sombres, bord du médaillon */
  --pdc-gold:       #E0A96B;  /* caramel clairci : halos, décor sur sombre */

  /* Rust assombri : le caramel plein ne passe pas l'AA pour du petit texte
     sur crème (~2.2:1). Réservé aux liens et petits accents sur fond clair. */
  --pdc-rust:       #9A4420;  /* 6.7:1 sur --paper */

  /* --- Fonds --- */
  --paper:    #FBF3E6;  /* crème chaleureux */
  --paper-2:  #F3E4CE;  /* crème plus soutenu, sections secondaires */
  --cream:    #FFEED0;  /* crème doré (band d'accent, ex-body) */
  --ink:      #34200F;  /* espresso, sections sombres */
  --ink-2:    #422813;  /* espresso secondaire */

  /* --- Textes sur fond clair --- */
  --text-ink:        #3E2413;
  --text-ink-muted:  #6B4A32;  /* 6.6:1 sur --paper-2 */

  /* --- Textes sur fond sombre --- */
  --text-cream:        #FBF3E6;
  --text-cream-muted:  #E4CBA9;
  --text-cream-faint:  #C4A483;

  /* --- Lignes --- */
  --line-ink:   rgba(74, 42, 21, .16);
  --line-cream: rgba(251, 243, 230, .18);

  /* --- Typographie (charte : Oswald + Allura) --- */
  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-script:  "Allura", "Segoe Script", cursive;

  --fs-hero:   clamp(2.4rem, 6vw, 4rem);
  --fs-script: clamp(2.5rem, 6.4vw, 5rem);
  --fs-h2:     clamp(1.9rem, 4.4vw, 3.4rem);
  --fs-h3:     clamp(1.35rem, 2.2vw, 1.9rem);
  --fs-huge:   clamp(2.75rem, 11vw, 9rem);
  --fs-lead:   clamp(1.15rem, 1.6vw, 1.5rem);
  --fs-body:   clamp(1.02rem, 1.02vw, 1.15rem);
  --fs-small:  .875rem;

  /* --- Rythme --- */
  --gutter:     clamp(1.25rem, 5vw, 4.5rem);
  --wrap:       78rem;
  --section-y:  clamp(4.5rem, 10vw, 9rem);
  --radius:     16px;

  /* --- Profondeur --- */
  --z-content: 2;
  --z-header:  70;
  --z-menu:    90;
  --z-load:    120;

  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Empreinte de patte (motif signature du logo), servie en masque. */
  --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='22' rx='9' ry='7.5'/%3E%3Cellipse cx='5' cy='13' rx='3.5' ry='4.5'/%3E%3Cellipse cx='12' cy='7' rx='3.6' ry='5'/%3E%3Cellipse cx='20' cy='7' rx='3.6' ry='5'/%3E%3Cellipse cx='27' cy='13' rx='3.5' ry='4.5'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Pas de `scroll-behavior: smooth` ici : ScrollTrigger remet le scroll à zéro
   le temps de mesurer la page, et le navigateur animerait ce retour, faussant
   les mesures. Le défilement doux des ancres est piloté par nav.js (clics). */
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Feuille officielle de Lenis, recopiée ici plutôt que demandée au CDN. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
em { font-style: italic; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.02em;
}
.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
}

/* ---------------------------------------------------------
   Accessibilité
   --------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--pdc-terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--pdc-terracotta);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   Mise en page
   --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--paper2 { background: var(--paper-2); }
.section--cream  { background: var(--cream); }
.section--ink    { background: var(--ink); color: var(--text-cream); }

.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-ink-muted);
}
.section--ink .section-label { color: var(--text-cream-muted); }
.section-label span {
  padding: .18em .55em;
  background: var(--pdc-caramel);
  color: var(--pdc-espresso);
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: .08em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pdc-rust);
}
.section--ink .eyebrow { color: var(--pdc-gold); }
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------------------------------------------------------
   Boutons
   --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 54px;
  padding: .9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .18s var(--ease-out), border-color .25s, color .25s, background-color .25s;
}
.btn__label, .btn__arrow { position: relative; z-index: 1; transition: transform .3s var(--ease-out); }
.btn__arrow { font-size: 1.1em; }

/* fond qui glisse au survol */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(101%);
  transition: transform .38s var(--ease-out);
}

.btn--accent { background: var(--pdc-terracotta); color: #fff; }
.btn--accent::before { background: var(--pdc-choco); }
.btn--accent:hover::before, .btn--accent:focus-visible::before { transform: translateY(0); }
.btn--accent:hover .btn__arrow, .btn--accent:focus-visible .btn__arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--text-ink); border-color: var(--line-ink); }
.btn--ghost::before { background: var(--pdc-choco); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper); border-color: var(--pdc-choco); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: translateY(0); }

.section--ink .btn--ghost { color: var(--text-cream); border-color: var(--line-cream); }
.section--ink .btn--ghost::before { background: var(--text-cream); }
.section--ink .btn--ghost:hover, .section--ink .btn--ghost:focus-visible { color: var(--ink); border-color: var(--text-cream); }

.btn:active { transform: scale(.97); }
.btn--sm { min-height: 46px; padding: .6rem 1.2rem; font-size: .9rem; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: transform .4s var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  transition: padding .35s var(--ease-out);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 243, 230, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-ink);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.site-header.is-stuck::after { opacity: 1; }
.site-header.is-stuck .site-header__inner { padding-block: .55rem; }

.brand { flex: none; line-height: 0; display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img {
  width: auto;
  height: clamp(48px, 5vw, 68px);
  border-radius: 50%;
  transition: height .35s var(--ease-out);
}
.site-header.is-stuck .brand img { height: 44px; }
.brand__name {
  font-family: var(--font-script);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--pdc-choco);
  white-space: nowrap;
}
@media (max-width: 420px) { .brand__name { display: none; } }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(.75rem, 1.5vw, 1.6rem); }
.nav__link {
  position: relative;
  display: block;
  padding: .35rem 0;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--text-ink-muted);
  text-decoration: none;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--pdc-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text-ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--text-ink); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.site-header__cta { flex: none; }

/* ---------------------------------------------------------
   Menu plein écran (mobile / tablette)
   --------------------------------------------------------- */
.menu-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 46px;
  padding: .5rem .95rem;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-ink);
  border-radius: 100px;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.menu-toggle__icon { display: grid; gap: 5px; }
.menu-toggle__icon i {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  transition: background .25s var(--ease-out);
}
.menu-toggle:active { border-color: var(--pdc-terracotta); color: var(--pdc-terracotta); }
@media (hover: hover) {
  .menu-toggle:hover { border-color: var(--pdc-terracotta); color: var(--pdc-terracotta); }
}

.fullmenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.1rem var(--gutter) 2.5rem;
  background: var(--ink);
  color: var(--text-cream);
  opacity: 0;
  transition: opacity .32s var(--ease-out);
}
.fullmenu[hidden] { display: none; }
.fullmenu.is-open { opacity: 1; }

.fullmenu__close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 46px;
  padding: .5rem .95rem;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line-cream);
  border-radius: 100px;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.fullmenu__close:active { border-color: var(--pdc-gold); color: var(--pdc-gold); }
@media (hover: hover) {
  .fullmenu__close:hover { border-color: var(--pdc-gold); color: var(--pdc-gold); }
}
.fullmenu__cross { position: relative; width: 16px; height: 16px; }
.fullmenu__cross::before, .fullmenu__cross::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
}
.fullmenu__cross::before { transform: rotate(45deg); }
.fullmenu__cross::after  { transform: rotate(-45deg); }

.fullmenu__nav { align-self: center; }
.fullmenu__nav ul { display: grid; gap: .35rem; }
.fullmenu__nav li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .42s var(--ease-out), transform .52s var(--ease-out);
  will-change: transform, opacity;
}
.fullmenu.is-open .fullmenu__nav li { opacity: 1; transform: translateY(0); }
.fullmenu.is-open .fullmenu__nav li:nth-child(1) { transition-delay: .05s; }
.fullmenu.is-open .fullmenu__nav li:nth-child(2) { transition-delay: .10s; }
.fullmenu.is-open .fullmenu__nav li:nth-child(3) { transition-delay: .15s; }
.fullmenu.is-open .fullmenu__nav li:nth-child(4) { transition-delay: .20s; }
.fullmenu.is-open .fullmenu__nav li:nth-child(5) { transition-delay: .25s; }
.fullmenu.is-open .fullmenu__nav li:nth-child(6) { transition-delay: .30s; }
.fullmenu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .5rem 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 8vw, 3rem);
  letter-spacing: -.01em;
  line-height: 1.1;
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease-out), transform .3s var(--ease-out);
}
.fullmenu__nav em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .875rem;
  font-weight: 500;
  color: var(--pdc-gold);
  transition: color .25s var(--ease-out);
}
.fullmenu__nav a:active,
.fullmenu__nav a:focus-visible {
  color: var(--pdc-gold);
  transform: translateX(10px);
}
.fullmenu__nav a:active em,
.fullmenu__nav a:focus-visible em { color: var(--text-cream); }
@media (hover: hover) {
  .fullmenu__nav a:hover { color: var(--pdc-gold); transform: translateX(10px); }
  .fullmenu__nav a:hover em { color: var(--text-cream); }
}
.fullmenu__foot {
  display: grid;
  gap: .35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-cream);
  color: var(--text-cream-muted);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .38s var(--ease-out), transform .48s var(--ease-out);
}
.fullmenu.is-open .fullmenu__foot {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .34s;
}
.fullmenu__foot a { text-decoration: none; }
.fullmenu__foot a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Zones tactiles confortables. */
@media (max-width: 1080px), (pointer: coarse) {
  .site-footer__nav a,
  .site-footer__contact a,
  .fullmenu__foot a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .contact__value { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------------------------------------------------------
   Loader — empreintes alternées inspirées du « Simple Dog Loader »
   --------------------------------------------------------- */
.pageload { display: none; }
.js .pageload {
  position: fixed;
  inset: 0;
  z-index: var(--z-load);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(224, 169, 107, .24), transparent 34%),
    var(--paper);
}
.pageload__stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .6rem;
  width: min(72vw, 230px);
  opacity: 0;
}
.pageload__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.pageload__trail {
  position: relative;
  width: 104px;
  height: 250px;
  transform: rotate(4deg);
}
.pageload__paw {
  position: absolute;
  width: 48px;
  color: var(--pdc-terracotta);
  transform: rotate(-13deg);
}
.pageload__paw:nth-child(even) {
  right: 0;
  color: var(--pdc-caramel);
  transform: rotate(13deg);
}
.pageload__paw:nth-child(odd) { left: 0; }
.pageload__paw:nth-child(1) { bottom: 0; }
.pageload__paw:nth-child(2) { bottom: 38px; }
.pageload__paw:nth-child(3) { bottom: 76px; }
.pageload__paw:nth-child(4) { bottom: 114px; }
.pageload__paw:nth-child(5) { bottom: 152px; }
.pageload__paw:nth-child(6) { bottom: 190px; }
.pageload__paw svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
  opacity: 0;
  filter: drop-shadow(0 7px 8px rgba(74, 42, 21, .12));
  animation: pageloadPaw 1.65s var(--ease-out) infinite;
  animation-play-state: paused;
}
.pageload.is-playing .pageload__paw svg { animation-play-state: running; }
.pageload__paw:nth-child(2) svg { animation-delay: .14s; }
.pageload__paw:nth-child(3) svg { animation-delay: .28s; }
.pageload__paw:nth-child(4) svg { animation-delay: .42s; }
.pageload__paw:nth-child(5) svg { animation-delay: .56s; }
.pageload__paw:nth-child(6) svg { animation-delay: .70s; }
.pageload__name {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1;
  color: var(--pdc-choco);
}
@keyframes pageloadPaw {
  0%   { opacity: 0; transform: translateY(10px) scale(.72); }
  18%  { opacity: 1; transform: translateY(0) scale(1); }
  52%  { opacity: 1; transform: translateY(0) scale(1); }
  78%, 100% { opacity: 0; transform: translateY(-5px) scale(.92); }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-cream);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.site-footer__brand-row { display: flex; align-items: center; gap: .9rem; }
.site-footer__brand img { width: auto; height: 64px; border-radius: 50%; }
.site-footer__brand-name { font-family: var(--font-script); font-size: 2rem; line-height: 1; color: var(--pdc-gold); }
.site-footer__motto {
  max-width: 30ch;
  color: var(--text-cream-muted);
  font-style: italic;
}
.site-footer__nav ul { columns: 2; column-gap: 2rem; }
.site-footer__nav a {
  display: block;
  padding: .3rem 0;
  color: var(--text-cream-muted);
  text-decoration: none;
  transition: color .2s;
}
.site-footer__nav a:hover { color: var(--pdc-gold); }
.site-footer__contact { display: grid; gap: .5rem; }
.site-footer__contact a {
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 400;
}
.site-footer__contact a:hover { color: var(--pdc-gold); }
.site-footer__contact address { font-style: normal; color: var(--text-cream-muted); line-height: 1.5; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-cream);
  font-size: var(--fs-small);
  color: var(--text-cream-muted);
}
.site-footer__bottom strong { color: var(--text-cream); font-weight: 600; }
.site-footer__credit a { color: var(--pdc-gold); font-weight: 500; }
.site-footer__legal {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-cream-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  cursor: pointer;
}
.site-footer__legal:hover { color: var(--pdc-gold); }

/* ---------------------------------------------------------
   Mentions légales — fenêtre modale native et accessible
   --------------------------------------------------------- */
.legal-modal {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(82vh, 48rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--text-ink);
  background: var(--paper);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(52, 32, 15, .35);
}
.legal-modal::backdrop {
  background: rgba(52, 32, 15, .72);
  backdrop-filter: blur(5px);
}
.legal-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.25rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line-ink);
}
.legal-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--pdc-choco);
}
.legal-modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.legal-modal__close:hover { color: var(--pdc-rust); border-color: var(--pdc-rust); }
.legal-modal__content {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  overflow-y: auto;
  max-height: calc(82vh - 72px);
  overscroll-behavior: contain;
}
.legal-modal__content section { display: grid; gap: .45rem; }
.legal-modal__content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--pdc-choco);
}
.legal-modal__content p { color: var(--text-ink-muted); }
.legal-modal__content a { color: var(--pdc-rust); }
body.has-open-modal { overflow: hidden; }

@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Révélations
   `animations-ready` est posée par le script du <head>, avant le premier
   rendu : l'état de départ est peint d'emblée. Le retirer (JS absent,
   GSAP en échec) rend tout le contenu sans autre intervention.
   --------------------------------------------------------- */
.js.animations-ready [data-reveal] { opacity: 0; }
.js.animations-ready [data-reveal].is-revealed { opacity: 1 !important; transform: none !important; }

.js.animations-ready [data-text-arrival] {
  opacity: 0;
  transform: translateY(44px);
}

.js.animations-ready [data-split] { opacity: 0; }
.js.animations-ready [data-split].is-split { opacity: 1; }

.word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
  vertical-align: top;
}
.word__in { display: inline-block; }

/* Les capitales d'Allura dépassent sensiblement leur boîte typographique.
   Cette réserve empêche le masque de révélation de rogner leur boucle haute. */
.script .word {
  padding-top: .18em;
  margin-top: -.18em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js.animations-ready [data-reveal] { opacity: 1; }
  .js.animations-ready [data-split] { opacity: 1; }
  .js.animations-ready [data-text-arrival] { opacity: 1; transform: none; }
  .js .pageload { display: none; }
}
