/* ═══════════════════════════════════════════════════════════════
   OBJETS CACHÉS — site public (objetscaches.ohfrere.fr)
   Sur le modèle de Tapis Vert ; couleurs de l'app : nuit provençale,
   lavande, or, bois et crème.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Lilita One';
  src: url('../fonts/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --night:     #1C1838;
  --night-d:   #131027;
  --night-l:   #2A2152;
  --violet:    #4B3C8C;
  --violet-l:  #6B55B8;
  --lavender:  #B9A6F0;
  --gold:      #D8B76C;
  --gold-l:    #FAD98A;
  --gold-d:    #B0823E;
  --wood:      #7A4A26;
  --wood-d:    #4A2A14;
  --cream:     #FBEBC8;
  --cream-d:   #F1D49B;
  --ink:       #3A2614;
  --ink-m:     #6A4A2A;
  --terracotta:#B5532F;
  --mint:      #9BF0BE;

  --font-t: 'Lilita One', 'Arial Rounded MT Bold', sans-serif;
  --font-b: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --nh: 64px;
  --r: 16px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nh);
  background: rgba(19,16,39,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216,183,108,.25);
}
.nav__inner {
  max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.brand__name { font-family: var(--font-t); font-size: 23px; color: var(--cream); letter-spacing: .3px; }
.nav__links { display: flex; gap: 22px; font-size: 16px; }
.nav__links a { color: var(--cream-d); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--gold-l); }
@media (max-width: 680px) {
  .nav__links { gap: 14px; font-size: 14px; }
  .nav__links .hide-sm { display: none; }
  .brand__name { font-size: 20px; }
}
@media (max-width: 400px) { .brand__name { display: none; } }

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-t); font-size: 19px; letter-spacing: .3px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-l), #F0B85A 55%, #E0A03C);
  border: 2.5px solid var(--gold-d);
  box-shadow: 0 4px 0 var(--wood-d), 0 8px 18px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--wood-d), 0 4px 10px rgba(0,0,0,.35); }
.btn--soon { cursor: default; }
.btn--soon:hover { transform: none; }
.btn--violet {
  color: var(--cream);
  background: linear-gradient(180deg, var(--violet-l), var(--violet) 60%, #3A2D73);
  border-color: var(--gold);
}

/* ── Héros ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nh) + 56px) 20px 90px;
  background:
    linear-gradient(180deg, rgba(19,16,39,.25) 0%, rgba(19,16,39,.45) 50%, var(--night) 100%),
    url('../img/hero_port.webp') center 40% / cover no-repeat;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end;
}
.hero__brand { display: flex; align-items: center; gap: 22px; }
.hero__icon {
  width: 112px; height: 112px; flex-shrink: 0;
  border-radius: 26px; border: 3px solid var(--gold);
  box-shadow: 0 4px 0 var(--wood-d), 0 12px 28px rgba(0,0,0,.5);
}
.hero__title {
  font-family: var(--font-t); font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 5.2rem); line-height: .98;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--wood-d), 0 8px 26px rgba(0,0,0,.55);
}
.hero__family { display: block; font-size: .34em; color: var(--gold-l); letter-spacing: 1px; margin-bottom: 8px; }
.hero__tagline {
  margin: 20px 0 28px; max-width: 32ch;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.45;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 16px; font-size: 15px; color: var(--cream-d); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hero__pape {
  justify-self: end; width: min(340px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
  transform: scaleX(-1);
  animation: bob 4s ease-in-out infinite;
}
/* Papé en miroir : sa loupe regarde vers le texte */
@keyframes bob { 0%,100% { transform: scaleX(-1) translateY(0) rotate(-1deg); } 50% { transform: scaleX(-1) translateY(-10px) rotate(1deg); } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__brand { flex-direction: column; gap: 16px; }
  .hero__icon { width: 96px; height: 96px; border-radius: 22px; }
  .hero__tagline { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__pape { justify-self: center; width: 220px; }
}

/* Lucioles du héros */
.fireflies span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-l); box-shadow: 0 0 12px 4px rgba(250,217,138,.6);
  opacity: 0; animation: firefly 7s ease-in-out infinite;
}
@keyframes firefly {
  0% { opacity: 0; transform: translate(0,0); }
  20% { opacity: .9; }
  80% { opacity: .6; }
  100% { opacity: 0; transform: translate(40px,-90px); }
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 76px 20px; }
.section--violet {
  background:
    radial-gradient(ellipse at top, rgba(107,85,184,.35), transparent 60%),
    linear-gradient(180deg, var(--night-l), #221A45);
  border-top: 1px solid rgba(216,183,108,.2);
  border-bottom: 1px solid rgba(216,183,108,.2);
}
.wrap { max-width: 1160px; margin: 0 auto; }
.section__title {
  font-family: var(--font-t); font-weight: 400; text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; color: var(--gold-l);
  text-shadow: 0 2px 0 var(--wood-d);
}
.section__lead { text-align: center; max-width: 52ch; margin: 12px auto 40px; color: var(--cream-d); font-size: 1.12rem; }
.ornament { text-align: center; color: var(--lavender); letter-spacing: 6px; opacity: .8; margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card {
  background: linear-gradient(180deg, rgba(75,60,140,.55), rgba(42,33,82,.75));
  border: 1px solid rgba(216,183,108,.3);
  border-radius: var(--r);
  padding: 24px 24px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.card__icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; font-size: 34px; line-height: 56px; }
.card h3 { font-family: var(--font-t); font-weight: 400; font-size: 1.35rem; color: var(--cream); margin-bottom: 6px; }
.card p { color: var(--cream-d); font-size: 1.02rem; line-height: 1.6; }
.note { text-align: center; margin-top: 24px; font-size: .95rem; color: var(--cream-d); opacity: .85; }

/* ── Mini-partie ────────────────────────────────────────────── */
.play {
  max-width: 1100px; margin: 0 auto;
  border-radius: 22px; overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--night-d);
  box-shadow: 0 0 0 6px rgba(75,60,140,.6), 0 24px 50px rgba(0,0,0,.55);
}
.play__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--violet), #33286A);
  border-bottom: 2px solid var(--gold-d);
  font-family: var(--font-t); font-size: 1.1rem;
}
.play__title { color: var(--cream); }
.play__count { color: var(--gold-l); white-space: nowrap; }
.play__viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--gold-d) transparent; }
.play__scene {
  position: relative; min-width: 880px;
  aspect-ratio: 4096 / 2305;
  background: url('../img/demo/petanque.webp') center / cover no-repeat;
  cursor: crosshair; user-select: none; -webkit-user-select: none;
}
.obj {
  position: absolute; display: block;
  transform-origin: 50% 50%;
  -webkit-user-drag: none;
}
.obj.is-found { animation: lift .7s ease-in forwards; pointer-events: none; }
@keyframes lift {
  0% { filter: drop-shadow(0 0 0 transparent) brightness(1); }
  30% { filter: drop-shadow(0 0 14px var(--gold-l)) brightness(1.3); scale: 1.35; }
  100% { opacity: 0; scale: .4; translate: 0 -120px; }
}
.miss {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  pointer-events: none; color: #FF5A4E; font: 34px/34px var(--font-t); text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.6);
  animation: miss .7s ease-out forwards;
}
@keyframes miss { 0% { transform: scale(.4); opacity: 1; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.spark {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--gold-l); box-shadow: 0 0 10px 3px rgba(250,217,138,.8);
  pointer-events: none; animation: spark .8s ease-out forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.ring {
  position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 3px solid var(--gold-l); pointer-events: none; animation: ring .6s ease-out forwards;
}
@keyframes ring { to { transform: scale(6); opacity: 0; } }

.tray {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #33286A, var(--violet));
  border-top: 2px solid var(--gold-d);
}
.slot {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #FFF6DF, var(--cream) 60%, var(--cream-d));
  border: 2px solid #C79A55; border-radius: 14px;
  padding: 8px 6px 6px; color: var(--ink);
  transition: transform .25s ease, background .25s;
}
.slot img { height: 58px; width: 100%; object-fit: contain; margin-bottom: 4px; }
.slot span { display: block; font-family: var(--font-t); font-size: .92rem; line-height: 1.15; color: var(--wood-d); }
.slot.is-found { background: linear-gradient(180deg, #D9FBE6, #B6EDC8); border-color: #4E9E6B; transform: scale(.96); }
.slot.is-found::after {
  content: '✔'; position: absolute; top: -10px; right: -8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px;
  background: #3E9B5F; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  animation: pop .35s ease-out;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.slot.is-hint { animation: hint 1s ease-in-out 2; }
@keyframes hint { 50% { transform: scale(1.08); box-shadow: 0 0 0 4px var(--gold-l); } }
@media (max-width: 640px) {
  .tray { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px 8px 12px; }
  .slot { padding: 6px 3px 4px; border-radius: 10px; }
  .slot img { height: 40px; }
  .slot span { font-size: .72rem; }
}
.play__help { text-align: center; color: var(--cream-d); font-size: .95rem; margin-top: 14px; }
.play__help button { background: none; border: 0; color: var(--gold-l); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.win {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; text-align: center;
  background: rgba(19,16,39,.72); backdrop-filter: blur(3px);
  animation: fade .4s ease-out;
}
.win[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.win__box {
  position: relative; max-width: 420px; margin: 0 16px; padding: 26px 28px 24px;
  background: linear-gradient(180deg, var(--violet-l), var(--violet) 55%, #33286A);
  border: 3px solid var(--gold); border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.win__stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.win__stars img { width: 54px; animation: pop .4s ease-out backwards; }
.win__stars img:nth-child(2) { width: 66px; animation-delay: .15s; }
.win__stars img:nth-child(3) { animation-delay: .3s; }
.win h3 { font-family: var(--font-t); font-weight: 400; font-size: 2rem; color: var(--gold-l); text-shadow: 0 2px 0 var(--wood-d); }
.win p { color: var(--cream); margin: 6px 0 16px; }
.win__pape { position: absolute; left: -54px; bottom: -20px; width: 110px; }
@media (max-width: 560px) { .win__pape { display: none; } .win h3 { font-size: 1.6rem; } }

/* Barre : son */
.play__right { display: flex; align-items: center; gap: 12px; }
.play__sound {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1;
  background: linear-gradient(180deg, var(--violet-l), #3A2D73);
  border: 2px solid var(--gold); box-shadow: 0 2px 0 var(--wood-d);
  transition: transform .15s ease;
}
.play__sound:hover { transform: scale(1.08); }
.play__sound[aria-pressed="false"] { filter: grayscale(.6); opacity: .8; }

/* Curseur loupe : le centre du verre vise l'objet */
.play__scene.has-cursor, .play__scene.has-cursor .obj { cursor: none; }
.cursor {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 64px; height: auto; margin: -28px 0 0 -37px;
  pointer-events: none; opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  transition: opacity .15s;
  will-change: transform;
}
.cursor.is-on { opacity: 1; }
.cursor.is-over { filter: drop-shadow(0 0 10px rgba(250,217,138,.95)) drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.cursor.is-tap { animation: tap .25s ease-out; }
@keyframes tap { 40% { scale: .82; rotate: -8deg; } }

/* Combo ×N qui s'envole */
.combo {
  position: absolute; pointer-events: none; z-index: 3;
  font: 30px/1 var(--font-t); color: var(--gold-l); white-space: nowrap;
  -webkit-text-stroke: 2px var(--wood-d); paint-order: stroke fill;
  text-shadow: 0 3px 8px rgba(0,0,0,.5);
  transform: translate(-50%, -50%);
  animation: comboUp .9s ease-out forwards;
}
@keyframes comboUp {
  0% { opacity: 0; translate: 0 0; scale: .5; }
  25% { opacity: 1; scale: 1.25; }
  100% { opacity: 0; translate: 0 -70px; scale: 1; }
}

/* ── Galerie de scènes ──────────────────────────────────────── */
.scenes {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px);
  gap: 20px; overflow-x: auto; padding: 8px 4px 22px;
  scroll-snap-type: x mandatory; scrollbar-color: var(--gold-d) transparent;
}
.scene { scroll-snap-align: center; margin: 0; }
.scene__frame {
  border-radius: 18px; overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(75,60,140,.6), 0 14px 30px rgba(0,0,0,.45);
}
.scene__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.scene:hover .scene__frame img { transform: scale(1.06); }
.scene figcaption { text-align: center; margin-top: 12px; color: var(--cream-d); font-size: .98rem; line-height: 1.45; }
.scene figcaption strong { display: block; font-family: var(--font-t); font-weight: 400; color: var(--gold-l); font-size: 1.2rem; }
.scroll-hint { text-align: center; font-size: .95rem; color: var(--cream-d); opacity: .75; margin-top: -4px; }

/* ── Chiffres ───────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.stat {
  text-align: center; padding: 18px 10px;
  background: linear-gradient(180deg, #FFF6DF, var(--cream) 60%, var(--cream-d));
  border: 2px solid #C79A55; border-radius: var(--r); color: var(--ink);
}
.stat b { display: block; font-family: var(--font-t); font-weight: 400; font-size: 2.3rem; line-height: 1.1; color: var(--violet); }
.stat span { font-size: .95rem; color: var(--ink-m); }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Deux colonnes ──────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split--rev { grid-template-columns: 1.2fr 1fr; }
.split--rev .split__media { order: 2; }
.split h2 { text-align: left; }
.split .section__lead { text-align: left; margin: 10px 0 22px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--cream-d); font-size: 1.05rem; line-height: 1.55; }
.ticks li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: var(--gold); }
.ticks strong { color: var(--cream); }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .split h2, .split .section__lead { text-align: center; }
  .split .section__lead { margin-left: auto; margin-right: auto; }
}

/* Trésors (récompenses) */
.treasure {
  position: relative; max-width: 440px; margin: 0 auto; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,217,138,.35), rgba(107,85,184,.25) 45%, transparent 70%);
}
.treasure img { position: absolute; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.treasure .t-chest { width: 58%; left: 21%; top: 26%; }
.treasure .t-star { width: 24%; left: 6%; top: 10%; animation: bob 3.4s ease-in-out infinite; }
.treasure .t-coin { width: 20%; right: 6%; top: 14%; animation: bob 3.8s ease-in-out infinite .4s; }
.treasure .t-gift { width: 24%; right: 2%; bottom: 8%; animation: bob 4.2s ease-in-out infinite .8s; }
.treasure .t-bolt { width: 18%; left: 4%; bottom: 14%; animation: bob 3.6s ease-in-out infinite 1.2s; }

/* ── Champions ──────────────────────────────────────────────── */
.champions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; }
.champion { text-align: center; width: 112px; }
.champion img {
  width: 104px; height: 104px; margin: 0 auto 6px; border-radius: 50%;
  border: 3px solid var(--gold); background: var(--night-l);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  transition: transform .25s ease;
}
.champion:hover img { transform: translateY(-6px) rotate(-3deg); }
.champion span { font-family: var(--font-t); color: var(--cream); font-size: 1.05rem; }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.langs span {
  padding: 4px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  border: 1px solid rgba(216,183,108,.45); color: var(--cream);
}

/* ── Famille ────────────────────────────────────────────────── */
.family-list { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.family {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #1E3550, #13243A);
  border: 2px solid var(--gold-d);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.family--green { grid-template-columns: 1fr; background: linear-gradient(180deg, #223123, #172A20); }
.family__art { width: 100%; height: 100%; object-fit: cover; }
.family__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.family__head { display: flex; align-items: center; gap: 14px; }
.family__icon { width: 72px; height: 72px; border-radius: 18px; border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.family h3 { font-family: var(--font-t); font-weight: 400; font-size: 1.6rem; color: var(--cream); line-height: 1.1; }
.family__meta { font-size: .95rem; color: var(--gold-l); }
.family__body > p { color: var(--cream-d); font-size: 1.05rem; line-height: 1.6; }
.family__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.family__site { color: var(--gold-l); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .family { grid-template-columns: 1fr; }
  .family__art { aspect-ratio: 16 / 9; height: auto; }
  .family__body { padding: 22px 20px 26px; }
}

.cta { text-align: center; }
.cta p { margin: 12px auto 28px; max-width: 46ch; color: var(--cream-d); }
.cta__pape { width: 150px; margin: 0 auto 8px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); }

/* ── Pages juridiques ───────────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--nh) + 40px) 20px 80px; }
.legal__hero { text-align: center; margin-bottom: 36px; }
.legal__hero h1 { font-family: var(--font-t); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--gold-l); line-height: 1.15; }
.legal__hero p { color: var(--cream-d); font-size: 1rem; margin-top: 6px; }
.legal section {
  background: linear-gradient(180deg, #FFF6DF, var(--cream) 40%);
  color: var(--ink);
  border: 2px solid #C79A55; border-radius: var(--r);
  padding: 26px 32px; margin-bottom: 16px;
}
@media (max-width: 600px) { .legal section { padding: 20px 18px; } }
.legal h2 {
  font-family: var(--font-t); font-weight: 400; font-size: 1.3rem; color: var(--wood-d);
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.legal h2 .n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--violet); color: var(--cream); font-size: .9rem;
}
.legal p, .legal li { font-size: 1.02rem; line-height: 1.75; margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; margin: 6px 0 10px; }
.legal li { margin-bottom: 4px; }
.legal strong { color: var(--wood-d); }
.legal a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.legal h3 { font-size: 1.05rem; font-weight: 700; color: var(--violet); margin: 14px 0 4px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .97rem; }
.legal th, .legal td { text-align: left; padding: 7px 8px; border-bottom: 1px solid rgba(199,154,85,.5); vertical-align: top; }
.legal th { color: var(--wood-d); font-weight: 700; }

/* ── Pied de page ───────────────────────────────────────────── */
.footer {
  background: var(--night-d);
  border-top: 3px solid var(--violet);
  padding: 36px 20px 28px; text-align: center; color: var(--cream-d); font-size: 15px;
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 12px 0 14px; font-size: 16px; }
.footer__links a { color: var(--cream); }
.footer__links a:hover { color: var(--gold-l); }
.footer p { margin-top: 4px; }
.footer .small { font-size: 13px; opacity: .75; max-width: 70ch; margin: 10px auto 0; }
.footer a.inline { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }

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