/* ============================================================
   ROLL IN LOVE — PAGES LÉGALES
   « Le roll déroulé » : on déroule tout, il n'y a rien au centre
   qu'on ne montre pas.
   Même pâte que le reste du site : crème, cannelle, cœurs.
   ============================================================ */

/* ── Police maison, servie depuis ce serveur (aucun appel tiers) ── */
@font-face {
  font-family: 'Scripter';
  src: url('Scripter-Regular.woff2') format('woff2'),
       url('Scripter-Regular.woff') format('woff');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FFEEDC;
  --brown: #42200C;
  --beige-card: #FEF7EC;
  --beige-border: #E8D5B0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Scripter', cursive;
  background: var(--beige-card);
  color: var(--brown);
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Accès clavier — visible sur fond crème comme sur fond cannelle */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}
footer a:focus-visible { outline-color: var(--cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brown); color: var(--cream);
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── NAV — repris du site ────────────────────────────────── */
/* Le :not() est nécessaire : le pied de page contient lui aussi un <nav> (les
   liens légaux). Sans exclusion, il héritait de la hauteur, du fond crème et du
   position:sticky de l'en-tête — ses liens, crème eux aussi, devenaient
   invisibles dans un bloc crème de 70 px. */
nav:not(.foot-legal-links) {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 70px;
  background: var(--cream);
  border-bottom: 1.5px solid var(--beige-border);
}
.logo-img { height: 60px; width: auto; display: block; }
@media (min-width: 769px) { .logo-img { height: 78px; } }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Scripter', cursive; font-size: 20px;
  text-decoration: none; color: var(--brown); opacity: .65;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .nav-links { display: none; } nav:not(.foot-legal-links) { padding: 0 20px; } }

/* ── EN-TÊTE DE PAGE ─────────────────────────────────────── */
.legal-head {
  background: var(--cream);
  border-bottom: 1.5px solid var(--beige-border);
  padding: clamp(38px, 6vw, 62px) clamp(20px, 6vw, 60px) clamp(30px, 4vw, 44px);
  text-align: center;
}
/* Opacités relevées à .65 par rapport aux libellés de l'accueil (.4) :
   en dessous, le brun sur crème tombe sous 4.5:1 (WCAG 2.2 AA). */
.legal-kicker {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  opacity: .65; font-weight: 700; margin-bottom: 12px;
}
.legal-head h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.05;
  color: var(--brown);
}
.legal-head h1 em { font-style: normal; display: block; opacity: .55; }
.heart-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; opacity: .35; }
.heart-line::before, .heart-line::after { content: ''; width: 60px; height: 1.5px; background: var(--brown); }
.legal-lede {
  max-width: 56ch; margin: 20px auto 0;
  font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; opacity: .75;
}
.legal-maj {
  display: inline-block; margin-top: 20px;
  font-size: 13px; opacity: .7;
  border: 1.5px solid var(--beige-border); border-radius: 50px;
  padding: 5px 16px; background: var(--beige-card);
}

/* Vague — la même transition que partout sur le site */
.legal-wave { line-height: 0; overflow: hidden; }
.legal-wave svg { display: block; width: 100%; height: 40px; }

/* ── CORPS ───────────────────────────────────────────────── */
.legal {
  max-width: 780px; margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 40px) clamp(50px, 7vw, 80px);
  font-size: 17px; line-height: 1.8;
}
.legal p, .legal ul, .legal ol { max-width: 66ch; }
.legal p + p { margin-top: 1em; }
.legal h2 {
  font-size: clamp(24px, 3vw, 32px);
  text-transform: uppercase; letter-spacing: .04em;
  margin: clamp(40px, 5vw, 58px) 0 16px;
  padding-top: 22px;
  border-top: 1.5px solid var(--beige-border);
}
.legal h3 {
  font-size: 20px; font-weight: 700;
  margin: 28px 0 8px; opacity: .85;
}
.legal ul { margin: 14px 0; padding-left: 0; list-style: none; }
.legal li { padding: 4px 0 4px 26px; position: relative; }
.legal li::before {
  content: '♡'; position: absolute; left: 0; top: 4px;
  opacity: .45; font-size: 14px;
}
.legal a:not(.btn-legal) {
  color: var(--brown); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(66, 32, 12, .35);
}
.legal a:not(.btn-legal):hover { text-decoration-color: var(--brown); }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em; background: var(--cream);
  border: 1px solid var(--beige-border); border-radius: 5px;
  padding: 1px 6px;
}

/* ── FICHE D'IDENTITÉ — la carte crème du site ───────────── */
.legal-id {
  background: var(--cream);
  border: 1.5px solid var(--beige-border);
  border-radius: 16px;
  padding: 10px 24px;
  margin: 20px 0 8px;
  max-width: 100%;
  list-style: none;
}
.legal-id li {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  align-items: baseline; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--beige-border);
}
.legal-id li:last-child { border-bottom: 0; }
.legal-id li::before { content: none; }
.legal-id .k {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; opacity: .65; flex-shrink: 0;
}
.legal-id .v { font-weight: 700; text-align: right; margin-left: auto; }
@media (max-width: 640px) {
  .legal-id .v { text-align: left; margin-left: 0; width: 100%; }
}

/* ── LE TROU ASSUMÉ ──────────────────────────────────────────
   Seule couleur non-marque du site : un manque doit se voir.  */
.manque {
  background: #FFD9E2;
  color: #7A0B26;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .94em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ── ENCADRÉ SOURCE — d'où vient ce qu'on affirme ────────── */
.legal-source {
  background: var(--cream);
  border: 1.5px solid var(--beige-border);
  border-left: 4px solid var(--brown);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 15.5px; line-height: 1.7;
  max-width: 100%;
  opacity: .95;
}
.legal-source p { max-width: none; }
.legal-source strong { font-weight: 900; }

/* ── SÉPARATEUR — les cœurs de la maison ─────────────────── */
.legal-sep {
  text-align: center;
  margin: clamp(40px, 5vw, 58px) 0;
  opacity: .3; font-size: 15px; letter-spacing: 1em;
}

/* ── BOUTONS — les pilules du site ───────────────────────── */
.legal-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 58px);
  padding-top: 28px;
  border-top: 1.5px solid var(--beige-border);
}
.btn-legal {
  font-family: 'Scripter', cursive; font-size: 17px;
  border-radius: 50px; padding: 10px 24px;
  text-decoration: none; display: inline-block;
  transition: background .2s, color .2s;
}
.btn-legal.solid { background: var(--brown); color: var(--cream); border: 2.5px solid var(--brown); }
.btn-legal.solid:hover { background: transparent; color: var(--brown); }
.btn-legal.ghost { background: transparent; color: var(--brown); border: 2.5px solid var(--brown); }
.btn-legal.ghost:hover { background: var(--brown); color: var(--cream); }

/* ── PIED DE PAGE — la barre cannelle du site ────────────── */
.site-foot {
  background: var(--brown); color: var(--cream);
  padding: 26px 40px;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  font-size: 14px;
}
.site-foot a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,238,220,.45); }
.site-foot a:hover { text-decoration-color: var(--cream); }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.foot-legal-links span[aria-current] { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot-dim { opacity: .6; }
@media (max-width: 760px) {
  .site-foot { justify-content: flex-start; padding: 22px 20px; }
}
