/* =====================================================================
   CV ANIMATEUR — Feuille de style
   Esthétique « énergie colo + œil de photographe ».
   Sommaire :
     0. Tokens (palette, typo, ombres)      5. Sections génériques
     1. Reset & base                        6. Qui / Valeurs
     2. Faisceau + reveals + motion off     7. Parcours / Timeline
     3. Navigation                          8. Catalogue + filtres + modale
     4. Hero                                9. Qualifs / Refs / Galerie / Lightbox
                                           10. Contact / Footer
                                           11. Responsive
   ===================================================================== */

/* ── 0. TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Palette coucher de soleil d'été — 4 franches + neutres */
  --coral:      #FF6B4A;
  --coral-deep: #F2542D;
  --turquoise:  #15C2AC;
  --turquoise-deep: #0E9C8B;
  --gold:       #FFC247;
  --deep:       #181B47;   /* bleu nuit profond — contraste */
  --deep-2:     #0D0F33;

  --cream:   #FBEEE0;
  --cream-2: #F6E2CD;
  --ink:     #20203B;
  --muted:   #6B6A82;
  --line:    rgba(32,32,59,.10);
  --white:   #ffffff;

  --sunset: linear-gradient(120deg, var(--coral) 0%, var(--gold) 100%);
  --sunset-soft: linear-gradient(120deg, #FF8A6B 0%, #FFD37A 100%);
  --aqua: linear-gradient(120deg, var(--turquoise) 0%, #45D6C4 100%);

  /* Typo */
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --r-sm: 12px;  --r-md: 18px;  --r-lg: 28px;  --r-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(32,32,59,.08);
  --shadow:    0 18px 44px rgba(32,32,59,.14);
  --shadow-coral: 0 14px 30px rgba(242,84,45,.32);
  --wrap: 1120px;

  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ── 1. RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; font-weight: 800; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-bounce), box-shadow .25s ease, background .25s ease;
}
.btn .ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn--primary { background: var(--sunset); color: var(--white); box-shadow: var(--shadow-coral); }
.btn--primary:hover { box-shadow: 0 18px 38px rgba(242,84,45,.42); }
.btn--cv { background: var(--white); color: var(--turquoise-deep); box-shadow: 0 0 0 2px var(--turquoise) inset, var(--shadow-sm); }
.btn--cv:hover { background: var(--turquoise); color: var(--white); box-shadow: var(--shadow); }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.1rem; }
.btn-ghost {
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  color: var(--muted); padding: .45rem .7rem; border-radius: var(--r-pill);
  transition: color .2s ease, background .2s ease;
}
.btn-ghost[aria-pressed="true"] { color: var(--coral-deep); background: var(--cream-2); }

/* Doodles tracés-main */
.doodle { position: absolute; fill: none; stroke: var(--gold); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; overflow: visible; }
.doodle--underline { left: 0; bottom: -.55em; width: 102%; height: .5em; stroke: var(--coral); }
.doodle--circle { left: 50%; top: 50%; transform: translate(-50%,-50%) scale(1.12); width: 118%; height: 160%; stroke: var(--turquoise); stroke-width: 3.4; }
.doodle--star { position: static; display: inline-block; width: .9em; height: .9em; vertical-align: -.05em; stroke: var(--gold); fill: var(--gold); margin-left: .15em; }
.doodle--arrow { right: -2.6rem; bottom: -1.4rem; width: 4.2rem; height: 3rem; stroke: var(--coral); }
/* trace animée au reveal */
.reveal .doodle:not(.doodle--star) { stroke-dasharray: 1; stroke-dashoffset: 1;
  pathLength: 1; transition: stroke-dashoffset 1s ease .35s; }
.reveal.is-visible .doodle:not(.doodle--star) { stroke-dashoffset: 0; }

/* ── 2. FAISCEAU + REVEALS + MOTION OFF ────────────────────────────── */
.faisceau {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,210,120,.55), rgba(255,138,107,.18) 40%, transparent 62%);
}
body.faisceau-on .faisceau { opacity: 1; }

/* Reveals au scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease-bounce); }
.reveal.is-visible { opacity: 1; transform: none; }
/* léger décalage en cascade pour les listes */
.valeur.reveal, .jeu.reveal, .qualif.reveal, .ref.reveal, .shot.reveal, .etape.reveal {
  transition-delay: var(--stagger, 0ms);
}

/* Désactivation globale du motion (toggle OU préférence système) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo, .hero__aurora::before, .hero__aurora::after { animation: none !important; }
}
body[data-motion="off"], body[data-motion="off"] * ,
.reduce-motion, .reduce-motion * { }
:where(body[data-motion="off"]) *, :where(.reduce-motion) * {
  animation: none !important;
  transition-duration: .001ms !important;
}
body[data-motion="off"] .reveal, .reduce-motion .reveal { opacity: 1; transform: none; }
body[data-motion="off"] .faisceau, .reduce-motion .faisceau { display: none; }
body[data-motion="off"] [data-parallax], .reduce-motion [data-parallax] { transform: none !important; }
body[data-motion="off"] .doodle:not(.doodle--star) { stroke-dashoffset: 0 !important; }
body[data-motion="off"] .hero__photo,
body[data-motion="off"] .hero__aurora::before,
body[data-motion="off"] .hero__aurora::after { animation: none !important; }

/* ── 3. NAVIGATION ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.2rem);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-stuck { background: rgba(255,247,238,.82); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(32,32,59,.08); }
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--white); transition: color .35s ease; }
.nav.is-stuck .nav__brand { color: var(--ink); }
.nav__links { display: flex; gap: 1.3rem; }
.nav__links a { font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.9); position: relative; transition: color .25s ease; }
.nav.is-stuck .nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--coral); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav.is-stuck .btn-ghost { color: var(--muted); }

/* ── 4. HERO ───────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center;
  isolation: isolate; padding: 6rem clamp(1.2rem, 5vw, 3rem) 4rem; color: var(--white);
  background: linear-gradient(168deg, #14163b 0%, #44204f 24%, #a8322c 50%, #ff7536 74%, #ffc24a 100%); }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

/* Photo (optionnelle) : léger zoom/pan « ken-burns » — l'animation, pas une image figée */
.hero__photo { width: 100%; height: 116%; object-fit: cover; opacity: .82;
  transform-origin: 60% 40%; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }

/* Aurore : deux halos lumineux qui dérivent — vit même SANS photo */
.hero__aurora { position: absolute; inset: -25%; filter: blur(66px); opacity: .9; }
.hero__aurora::before, .hero__aurora::after { content: ""; position: absolute; border-radius: 50%; }
.hero__aurora::before { width: 46vmax; height: 46vmax; left: -6%; top: -12%;
  background: radial-gradient(circle, rgba(255,184,92,.55), transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate; }
.hero__aurora::after { width: 40vmax; height: 40vmax; right: -8%; bottom: -14%;
  background: radial-gradient(circle, rgba(255,92,120,.42), transparent 60%);
  animation: drift2 30s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(8%,6%) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.06); } to { transform: translate(-7%,-5%) scale(1); } }

.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 72% 8%, rgba(255,205,110,.16), transparent 55%),
    linear-gradient(180deg, rgba(13,15,51,.26) 0%, rgba(13,15,51,.16) 38%, rgba(18,20,55,.80) 100%);
}
.hero__content { max-width: 760px; position: relative; }
.hero__kicker { font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  font-size: .82rem; color: var(--gold); display: flex; gap: .6rem; align-items: center; }
.hero__kicker .dot { opacity: .6; }
.hero__title { font-size: clamp(3rem, 11vw, 6.6rem); margin: .35em 0 .12em; position: relative; display: inline-block; line-height: .92; text-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hero__nom { display: block; background: var(--sunset-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__role { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4.8vw, 2.5rem); color: var(--white); margin-top: .15em; text-shadow: 0 6px 24px rgba(0,0,0,.28); }
.hero__accroche { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 36ch; margin-top: .7rem; color: rgba(255,255,255,.92); }

.preuves { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; }
.preuve { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display);
  font-weight: 700; font-size: .92rem; padding: .5rem .95rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.preuve__check { width: 1.05em; height: 1.05em; fill: none; stroke: var(--turquoise); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--white); transform: translateX(-50%); animation: scrolldot 1.6s ease infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ── 5. SECTIONS GÉNÉRIQUES ────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.section--qui { background: var(--cream); }
.section--parcours { background: linear-gradient(165deg, #1d2052 0%, #14163b 100%); color: var(--white); }
.section--parcours .section__title { color: var(--white); }
.section--parcours .section__lede { color: rgba(255,255,255,.78); }
.section--parcours .eyebrow { color: var(--gold); }
.section--parcours .etape__desc { color: rgba(255,255,255,.8); }
.section--parcours .etape__lieu { color: #45D6C4; }
.section--parcours .etape__dot { background: #14163b; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.section--catalogue { background: var(--cream); }
.section--qualifs { background: var(--cream-2); }
.section--gadgets { background: var(--cream); }
.section--exp { background: var(--cream-2); }
.section--refs { background: var(--cream); }
.section--galerie { background: var(--deep); color: var(--white); }
.section--contact { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--white); }

.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  color: var(--coral-deep); margin-bottom: .5rem; }
.section--galerie .eyebrow, .section--contact .eyebrow { color: var(--gold); }
.section__title { font-size: clamp(1.9rem, 5.2vw, 3.2rem); position: relative; display: inline-block; }
.section__lede { color: var(--muted); font-size: 1.08rem; margin-top: .8rem; }
.section--galerie .section__lede { color: rgba(255,255,255,.78); }

/* ── 6. QUI / VALEURS ──────────────────────────────────────────────── */
.valeurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.valeur { background: var(--white); border-radius: var(--r-lg); padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease-bounce), box-shadow .3s ease; }
.valeur:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.valeur__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--cream-2); margin-bottom: 1rem; }
.valeur__ico svg { width: 30px; height: 30px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.valeur:nth-child(2n) .valeur__ico svg { stroke: var(--turquoise-deep); }
.valeur:nth-child(3n) .valeur__ico svg { stroke: var(--gold); }
.valeur__titre { font-size: 1.25rem; margin-bottom: .4rem; }
.valeur__desc { color: var(--muted); font-size: .96rem; }

/* Gadgets / matériel */
.gadgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.2rem; }
.gadget { display: flex; gap: 1rem; background: var(--white); border-radius: var(--r-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease-bounce), box-shadow .3s ease; }
.gadget:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gadget__ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px;
  border-radius: 14px; background: var(--cream-2); }
.gadget__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--coral); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.gadget:nth-child(2n) .gadget__ico svg { stroke: var(--turquoise-deep); }
.gadget:nth-child(3n) .gadget__ico svg { stroke: var(--gold); }
.gadget__tag { display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--coral-deep); margin-bottom: .25rem; }
.gadget__nom { font-size: 1.12rem; margin-bottom: .3rem; }
.gadget__desc { color: var(--muted); font-size: .9rem; }

/* Organismes & centres */
.exps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.exp { background: var(--white); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .3s var(--ease-bounce), box-shadow .3s ease; }
.exp:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.exp__org { font-size: 1.25rem; }
.exp__role { color: var(--turquoise-deep); font-weight: 600; font-size: .9rem; margin: .25rem 0 .95rem; }
.exp__centres { display: flex; flex-wrap: wrap; gap: .5rem; }
.exp__centre { font-size: .82rem; font-weight: 600; padding: .32rem .72rem; border-radius: var(--r-pill);
  background: var(--cream-2); color: var(--ink); }
.exp__centre::before { content: "▸ "; color: var(--coral); }

/* ── 7. PARCOURS / TIMELINE ────────────────────────────────────────── */
.timeline { position: relative; max-width: 760px; margin-left: .5rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--coral), var(--gold), var(--turquoise)); border-radius: 3px; }
.etape { position: relative; padding: 0 0 2.2rem 2.6rem; }
.etape:last-child { padding-bottom: 0; }
.etape__dot { position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--coral); box-shadow: 0 0 0 4px var(--cream-2); }
.etape:nth-child(2n) .etape__dot { border-color: var(--turquoise); }
.etape:nth-child(3n) .etape__dot { border-color: var(--gold); }
.etape__annee { display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; color: var(--coral-deep); background: var(--cream); padding: .2rem .7rem;
  border-radius: var(--r-pill); margin-bottom: .35rem; }
.etape__titre { font-size: 1.3rem; }
.etape__lieu { color: var(--turquoise-deep); font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.etape__desc { color: var(--muted); font-size: .98rem; }

/* ── 8. CATALOGUE + FILTRES + MODALE ───────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; margin-bottom: 2rem;
  padding: 1.1rem 1.3rem; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.filters__label { font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: .25rem; }
.chip { font-family: var(--font-display); font-weight: 600; font-size: .88rem; padding: .42rem .9rem;
  border-radius: var(--r-pill); background: var(--cream-2); color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-bounce); }
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--sunset); color: var(--white); box-shadow: var(--shadow-coral); }

.jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.jeu { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .3s var(--ease-bounce), box-shadow .3s ease; }
.jeu:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.jeu__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.jeu__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jeu:hover .jeu__media img { transform: scale(1.06); }
/* Fiches sans photo — placeholder dégradé + initiale (jamais d'image cassée) */
.jeu--no-photo .jeu__media,
.modal__media--no-photo { display: grid; place-items: center; background: var(--sunset-soft); }
.jeu[data-type="activite"].jeu--no-photo .jeu__media,
.modal__media--no-photo[data-type="activite"] { background: var(--aqua); }
.jeu--no-photo .jeu__media::after,
.modal__media--no-photo::after {
  content: attr(data-initial); font-family: var(--font-display); font-weight: 800;
  font-size: 4.4rem; line-height: 1; letter-spacing: -.02em; color: rgba(255,255,255,.62); }
.jeu__type { position: absolute; left: .8rem; top: .8rem; font-family: var(--font-display); font-weight: 700;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .7rem;
  border-radius: var(--r-pill); color: var(--white); }
.jeu__type[data-type="grand-jeu"], .jeu__type[data-type="jeu"] { background: var(--coral); }
.jeu__type[data-type="veillee"], .jeu__type[data-type="activite"] { background: var(--turquoise-deep); }
.jeu__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.jeu__titre { font-size: 1.3rem; margin-bottom: .35rem; }
.jeu__pitch { color: var(--muted); font-size: .94rem; flex: 1; }
.jeu__tags { display: flex; gap: .5rem; margin: .9rem 0 .7rem; flex-wrap: wrap; }
.tag { font-size: .78rem; font-weight: 600; padding: .26rem .62rem; border-radius: var(--r-pill);
  background: var(--cream-2); color: var(--ink); }
.tag--age::before { content: "♦ "; color: var(--gold); }
.tag--duree::before { content: "◷ "; color: var(--turquoise-deep); }
.jeu__more { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--coral-deep); }
.jeu[hidden] { display: none; }
.jeux__empty { text-align: center; color: var(--muted); font-style: italic; padding: 2rem 0; }

/* Répertoire : jeux listés, fiches à venir */
.repertoire { margin-top: 2.6rem; padding-top: 1.9rem; border-top: 1px dashed rgba(32,32,59,.18); }
.repertoire__title { font-size: 1.35rem; }
.repertoire__note { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); }
.repertoire__list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.repertoire__chip { display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: .5rem 1.05rem; border-radius: var(--r-pill); background: var(--white);
  border: 1.5px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-bounce), border-color .2s ease; }
.repertoire__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex: none; }
.repertoire__chip:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--coral); }

/* Modale détail jeu */
.modal, .lightbox { border: none; padding: 0; background: transparent; max-width: 100%; max-height: 100%; }
.modal::backdrop, .lightbox::backdrop { background: rgba(13,15,51,.74); backdrop-filter: blur(4px); }
.modal { width: min(640px, 94vw); border-radius: var(--r-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); max-height: 92vh; }
.modal[open] { display: flex; flex-direction: column; }
.modal__close, .lightbox__close { position: absolute; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem; background: rgba(255,255,255,.9); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-bounce); }
.modal__close { top: .8rem; right: .8rem; }
.modal__close:hover, .lightbox__close:hover { transform: rotate(90deg); }
.modal__media { aspect-ratio: 16/9; background: var(--cream-2); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 1.4rem 1.6rem 1.8rem; overflow-y: auto; }
.modal__body .jeu__type { position: static; display: inline-block; margin-bottom: .5rem; }
.modal__body h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.modal__meta { display: flex; gap: 1.4rem; margin-bottom: 1rem; }
.modal__meta li { font-size: .92rem; color: var(--muted); }
.modal__meta b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .04em; }
.modal__pitch { font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.modal__body h4 { font-size: 1rem; color: var(--coral-deep); margin: 1rem 0 .3rem; }
.modal__deroule, .modal__materiel p { color: var(--muted); font-size: .96rem; }

/* ── 9. QUALIFS / REFS / GALERIE / LIGHTBOX ────────────────────────── */
.qualifs { display: flex; flex-wrap: wrap; gap: .9rem; }
.qualif { display: inline-flex; align-items: center; gap: .6rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .7rem 1.2rem .7rem .9rem;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-bounce); }
.qualif:hover { transform: translateY(-3px) rotate(-1.5deg); }
.qualif__seal { width: 26px; height: 26px; fill: var(--gold); stroke: var(--coral-deep); stroke-width: 1; }
.qualif__label { font-family: var(--font-display); font-weight: 700; }
.qualif__annee { font-size: .82rem; color: var(--muted); }

.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; }
.ref { position: relative; background: var(--white); border-radius: var(--r-lg); padding: 2.4rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.ref__quote { position: absolute; top: 1.1rem; left: 1.3rem; width: 36px; height: 36px; fill: var(--cream-2); }
.ref__citation { position: relative; font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 1rem; }
.ref__source { font-size: .9rem; }
.ref__name { display: block; font-family: var(--font-display); font-weight: 700; color: var(--coral-deep); }
.ref__ctx { color: var(--muted); }

.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .9rem;
  width: min(100% - 2.5rem, 1280px); margin: clamp(1.5rem,4vw,2.5rem) auto 0; }
.shot { overflow: hidden; border-radius: var(--r-md); }
.shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.shot:nth-child(6) { grid-column: span 2; }
.shot__btn { position: relative; width: 100%; height: 100%; padding: 0; display: block; }
.shot__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; filter: saturate(1.02); }
.shot__btn:hover img { transform: scale(1.07); }
.shot__legende { position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .7rem; text-align: left;
  font-size: .85rem; color: var(--white); background: linear-gradient(transparent, rgba(13,15,51,.78));
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.shot__btn:hover .shot__legende, .shot__btn:focus-visible .shot__legende { opacity: 1; transform: none; }

.lightbox { width: min(96vw, 1100px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; }
.lightbox[open] { display: grid; }
.lightbox__close { top: -3rem; right: 0; }
.lightbox__fig { margin: 0; }
.lightbox__fig img { width: 100%; max-height: 84vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox__fig figcaption { text-align: center; color: var(--white); margin-top: .7rem; font-size: .95rem; }
.lightbox__nav { width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; color: var(--white);
  background: rgba(255,255,255,.14); transition: background .2s ease; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }

/* ── 10. CONTACT / FOOTER ──────────────────────────────────────────── */
.contact__card { max-width: 720px; }
.contact__title { font-size: clamp(2rem, 6vw, 3.4rem); position: relative; display: inline-block; }
.contact__lede { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-top: .8rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.contact__meta li { font-size: .98rem; }
.contact__k { display: block; font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.contact__meta a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); }
.contact__meta a:hover { border-color: var(--coral); }

.footer { background: var(--deep-2); color: rgba(255,255,255,.6); text-align: center; padding: 2rem 1.5rem; font-size: .88rem; }

/* ── 11. RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { padding: .6rem .9rem; gap: .5rem; }
  .nav__actions { gap: .4rem; }
  /* Toggle motion compacté en glyphe pour laisser la place au CTA */
  #motionToggle { font-size: 0; padding: .45rem; width: 36px; height: 36px;
    display: grid; place-items: center; border-radius: 50%; }
  #motionToggle::before { content: "✦"; font-size: 1.05rem; line-height: 1;
    color: var(--muted); }
  #motionToggle[aria-pressed="true"]::before { color: var(--coral-deep); }
  .nav:not(.is-stuck) #motionToggle::before { color: rgba(255,255,255,.85); }
  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .shot:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .shot:nth-child(6) { grid-column: span 1; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: fixed; top: auto; bottom: 1.4rem; }
  .lightbox__nav--prev { left: 1.4rem; }
  .lightbox__nav--next { right: 1.4rem; }
  .lightbox__close { top: 1rem; right: 1rem; position: fixed; }
  .filters { gap: 1rem 1.2rem; }
  .modal__meta { gap: 1rem; }
}
@media (max-width: 420px) {
  .hero { padding-top: 5rem; }
  .preuve { font-size: .84rem; padding: .42rem .8rem; }
  .btn { font-size: .94rem; padding: .8rem 1.3rem; }
}

/* Survol fin : seulement quand un vrai pointeur existe */
@media (hover: none) {
  .shot__legende { opacity: 1; transform: none; background: linear-gradient(transparent, rgba(13,15,51,.6)); }
}
