/* ============================================================
   Boubacar Ndiaye — Conteur, Griot du Sénégal
   Feuille de styles unique — vanilla CSS, aucune dépendance.
   DA "terre & oralité" : sable cuit, terracotta, ocre, grain de
   papier, arches-portails (« ma bouche est une porte »).
   Tokens : primitive → sémantique → composant.
   ============================================================ */

/* -----------------------------------------------------------
   1. TOKENS — palette terre, réchauffée & assombrie
   ----------------------------------------------------------- */
:root {
  /* Primitives */
  --paper-50:  #FBF1E1;  /* crème chaud */
  --paper-100: #F6E7D2;  /* sable cuit — fond principal */
  --paper-200: #EFDABF;  /* sable doux */
  --paper-300: #E4C9A4;  /* argile claire — cadres, dividers */
  --clay-200:  #E0B488;  /* terre cuite claire */

  --terra-400: #C26A41;
  --terra-500: #B0512F;  /* terracotta — accent principal */
  --terra-600: #8F3E22;  /* terracotta brûlée (contraste/hover) */

  --ochre-400: #D6A648;
  --ochre-500: #C2872E;  /* ocre / curcuma — brush, fil d'or */
  --ochre-600: #9E6C1F;

  --olive-500: #6E6B43;  /* feuille séchée — discret */

  --earth-700: #4A3623;  /* brun moyen */
  --earth-800: #34230F;  /* brun profond */
  --earth-900: #2A1B0D;  /* brun-terre nuit — texte & bandes sombres */

  /* Sémantique */
  --bg:           var(--paper-100);
  --bg-soft:      var(--paper-200);
  --bg-clay:      var(--clay-200);
  --bg-card:      var(--paper-50);
  --bg-dark:      var(--earth-900);
  --ink:          var(--earth-900);
  --ink-soft:     var(--earth-800);
  --ink-muted:    var(--earth-700);
  --cream:        var(--paper-50);
  --accent:       var(--terra-500);
  --accent-hover: var(--terra-600);
  --accent-2:     var(--ochre-500);
  --divider:      var(--paper-300);
  --on-accent:    var(--paper-50);
  --on-dark:      var(--paper-100);
  --on-dark-mute: #C7AC8C;

  /* Typographie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brush:   "Kaushan Script", "Brush Script MT", cursive;  /* logo « Boubacar Ndiaye » */

  --fs-xs:   0.78rem;
  --fs-sm:   0.9rem;
  --fs-base: 1.06rem;
  --fs-md:   1.22rem;
  --fs-lg:   1.6rem;
  --fs-xl:   2.1rem;
  --fs-3xl:  clamp(2.7rem, 6.4vw, 5rem);
  --fs-hero: clamp(3.4rem, 11vw, 8rem);
  --fs-quote: clamp(1.6rem, 3.2vw, 2.7rem);

  --lh-tight: 1.04;
  --lh-snug:  1.22;
  --lh-body:  1.72;

  /* Espacements — base 8px */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;    --space-10: 8rem;

  /* Divers */
  --container:    1200px;
  --container-px: clamp(1.25rem, 5vw, 4rem);
  --measure:      64ch;
  --radius:       4px;
  --radius-lg:    14px;
  --arch:         48% 48% 7% 7% / 36% 36% 5% 5%;  /* cadre-portail */
  --shadow-md:    0 18px 50px -22px rgba(42, 27, 13, 0.45);
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);

  /* Grain de papier (turbulence SVG, gris) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Trait de pinceau ocre (séparateur / soulignement) */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='16' viewBox='0 0 240 16'%3E%3Cpath d='M2 9 C40 3 70 12 110 8 C150 4 190 13 238 7' stroke='%23C2872E' stroke-width='3.5' stroke-linecap='round' fill='none' opacity='0.9'/%3E%3C/svg%3E");
  /* Arcade ocre (rangée d'arches) — ornement signature */
  --arcade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26'%3E%3Cpath d='M8 25V13A12 12 0 0 1 32 13V25M46 25V13A12 12 0 0 1 70 13V25M84 25V13A12 12 0 0 1 108 13V25M122 25V13A12 12 0 0 1 146 13V25M160 25V13A12 12 0 0 1 184 13V25' fill='none' stroke='%23C2872E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  /* Dôme terre-nuit : ouverture en arche au sommet des bandes sombres */
  --arch-top-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L0 44 C300 -14 900 -14 1200 44 L1200 80 Z' fill='%232A1B0D'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------------
   2. RESET & base
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain de papier sur tout le site — matière, chaleur, fait-main */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.05;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 var(--space-4);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

p { margin: 0 0 var(--space-4); overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ochre-400); color: var(--earth-900); }

.skip-link {
  position: absolute; left: -999px; top: var(--space-3);
  background: var(--ink); color: var(--cream);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius); z-index: 10000;
}
.skip-link:focus { left: var(--space-3); }

/* -----------------------------------------------------------
   3. Layout helpers
   ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-px); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--soft { background: var(--bg-soft); }
.section--clay { background: var(--bg-clay); }
.measure { max-width: var(--measure); }

/* Bande terre profonde (drame & chaleur) */
.section--dark { background: var(--bg-dark); color: var(--on-dark); position: relative; }
/* (Dômes retirés — bords nets, plus cohérents. La transition se fait par
   l'ornement arcade.) */
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--ochre-400); }
.section--dark .eyebrow::before { background: var(--ochre-400); }
.section--dark .prose p { color: var(--on-dark); }
.section--dark .prose em { color: var(--ochre-400); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
  display: flex; width: fit-content; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--accent); border-radius: 2px; }

/* Titre de section + soulignement pinceau ocre */
.section__title { font-size: var(--fs-3xl); margin-bottom: var(--space-6); position: relative; }
.section__title--brushed { display: inline-block; padding-bottom: 0.5rem; }
.section__title--brushed::after {
  content: ""; display: block;
  height: 14px; width: clamp(120px, 40%, 240px);
  margin-top: 0.35rem;
  background: var(--brush) left center / contain no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease) 0.12s;
}
.section__title--brushed.brush-drawn::after { clip-path: inset(0 0 0 0); }

/* -----------------------------------------------------------
   4. Boutons / liens d'action
   ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 800; font-size: var(--fs-sm);
  letter-spacing: 0.04em; padding: 0.9em 1.7em;
  border-radius: 100px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.section--dark .btn--ghost { border-color: var(--on-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover { background: var(--cream); color: var(--ink); }

.link-arrow {
  font-weight: 800; font-size: var(--fs-sm); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink);
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* -----------------------------------------------------------
   5. Navbar
   ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 74px; }
.nav__brand { font-family: var(--font-brush); font-size: 1.75rem; font-weight: 400; color: var(--accent); line-height: 1; }
.nav__brand span {
  display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); position: relative; padding: var(--space-2) 0; }
.nav__links a:hover { color: var(--accent); }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 9px;
  background: var(--brush) left center / contain no-repeat;
}
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: var(--space-2); width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------
   6. Cadre-portail (motif signature « ma bouche est une porte »)
   ----------------------------------------------------------- */
.arch {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--bg-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
/* Arche sans photo : placeholder argile chaleureux (pas d'image cassée) */
.arch.is-empty {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 28%, var(--clay-200), var(--paper-300) 70%, var(--paper-200));
}
.arch.is-empty::before {
  content: "“"; font-family: var(--font-display); font-style: italic;
  font-size: 9rem; line-height: 0; color: var(--terra-500); opacity: 0.4;
}
/* Halo / cadre décalé derrière l'arche (effet affiche imprimée) */
.arch-frame { position: relative; }
.arch-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--arch);
  background: var(--accent-2); opacity: 0.22; z-index: 0;
}
.arch-frame .arch { position: relative; z-index: 1; box-shadow: var(--shadow-md); }
.arch-frame .arch::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--arch);
  border: 1px solid rgba(42, 27, 13, 0.12); pointer-events: none;
}

/* -----------------------------------------------------------
   7. Hero accueil
   ----------------------------------------------------------- */
.hero { position: relative; padding-block: var(--space-9) var(--space-8); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-8); align-items: center; }
.hero__role {
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4);
}
.hero__title { font-family: var(--font-brush); font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 400; color: var(--accent); letter-spacing: 0; line-height: 1.02; margin-bottom: var(--space-5); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__quote {
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg);
  line-height: var(--lh-snug); color: var(--ink-soft);
  margin: var(--space-5) 0 var(--space-6); max-width: 30ch;
  padding-left: var(--space-5); border-left: 3px solid var(--accent-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__media { aspect-ratio: 4 / 5; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------------------------
   8. Citation en exergue (la parole du griot)
   ----------------------------------------------------------- */
.pullquote { position: relative; max-width: 40rem; margin-inline: auto; text-align: center; }
.pullquote__mark {
  font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6;
  color: var(--accent-2); display: block; margin-bottom: var(--space-2);
}
/* Ornement arcade (rangée d'arches dessinées) */
.ornament-arcade {
  height: 24px; width: 184px; margin: 0 auto var(--space-5);
  background: var(--arcade) center / contain no-repeat;
}
.pullquote q, .pullquote p {
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-quote);
  line-height: 1.18; color: var(--ink); quotes: none; display: block; margin: 0;
}
.pullquote--accent q, .pullquote--accent p { color: var(--accent); }
.section--dark .pullquote q, .section--dark .pullquote p { color: var(--cream); }
.pullquote__author {
  display: block; font-family: var(--font-body); font-style: normal; font-size: var(--fs-sm);
  font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: var(--space-5);
}
.section--dark .pullquote__author { color: var(--on-dark-mute); }

/* -----------------------------------------------------------
   9. Présentation / texte éditorial
   ----------------------------------------------------------- */
.prose p { font-size: var(--fs-md); color: var(--ink-soft); }
.prose em { font-style: italic; color: var(--accent); }
.prose strong { font-weight: 800; color: var(--ink); }
/* Lettrine sur le premier paragraphe de bio */
.prose--drop > p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 600; float: left;
  font-size: 3.6em; line-height: 0.7; padding: 0.05em 0.12em 0 0; color: var(--accent);
}

.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--space-8); align-items: center; }
.split__media { aspect-ratio: 3 / 4; }

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.tag {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em;
  padding: 0.45em 1em; border: 1.5px solid var(--accent); border-radius: 100px;
  color: var(--accent); background: transparent;
}
.section--dark .tag { border-color: var(--ochre-400); color: var(--ochre-400); }

/* -----------------------------------------------------------
   10. Spectacles (rangée d'arches-portails)
   ----------------------------------------------------------- */
.spectacles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6) var(--space-5); }
.spectacle { display: flex; flex-direction: column; gap: var(--space-3); color: inherit; text-decoration: none; }
.spectacle:hover .spectacle__title { color: var(--accent); }
.spectacle__num {
  position: absolute; top: 10px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: var(--cream); opacity: 0.92; text-shadow: 0 2px 12px rgba(42,27,13,0.5);
}
.spectacle__see {
  font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.4em;
}
.spectacle__see::after { content: "→"; transition: transform 0.2s var(--ease); }
.spectacle:hover .spectacle__see::after { transform: translateX(4px); }
.spectacle__media {
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 8px 8px / 28% 28% 4px 4px;
  overflow: hidden; position: relative;
  background: var(--bg-clay);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease);
}
.spectacle:hover .spectacle__media { transform: translateY(-6px); }
.spectacle__media img { width: 100%; height: 100%; object-fit: cover; }
.spectacle__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 3rem; color: var(--terra-400);
  background: radial-gradient(circle at 50% 38%, var(--clay-200), var(--paper-300));
}
.spectacle__year { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; color: var(--accent); }
.spectacle__title { font-size: var(--fs-lg); margin: 0; transition: color 0.2s; }
.spectacle__desc { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }

/* --- Fiche spectacle (page dédiée) --- */
.spectacle-back {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: var(--fs-sm);
  color: var(--ink-muted); margin-bottom: var(--space-6);
}
.spectacle-back::before { content: "←"; transition: transform 0.2s var(--ease); }
.spectacle-back:hover { color: var(--accent); }
.spectacle-back:hover::before { transform: translateX(-4px); }
.spectacle-detail { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: var(--space-8); align-items: center; }
.spectacle-detail__cover { aspect-ratio: 3 / 4; }
.spectacle-detail__num {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.4rem); line-height: 0.9;
  color: var(--accent-2); display: block; margin-bottom: var(--space-3);
}
.spectacle-detail__year { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.spectacle-detail__title { font-size: var(--fs-3xl); margin: var(--space-2) 0 var(--space-5); }
.spectacle-detail__lede { font-size: var(--fs-md); color: var(--ink-soft); }
.spectacle-nav {
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  border-top: 1px solid var(--divider); margin-top: var(--space-8); padding-top: var(--space-5);
}
.spectacle-nav a { display: inline-flex; flex-direction: column; gap: 2px; color: var(--ink); font-weight: 700; }
.spectacle-nav a span { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.spectacle-nav a:hover { color: var(--accent); }
.spectacle-nav a.is-next { text-align: right; margin-left: auto; }

/* Zone description de la fiche (toujours présente) */
.spectacle-about { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--divider); }
.spectacle-about .placeholder { color: var(--ink-muted); font-style: italic; }

/* Groupes de spectacles (En diffusion / En création) */
.spectacles-group { margin-bottom: var(--space-9); }
.spectacles-group:last-child { margin-bottom: 0; }
.spectacles-group__title { font-size: var(--fs-xl); margin-bottom: var(--space-6); display: inline-block; }

/* Biographie — "Ils ont accueilli Boubacar" */
.reflist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 var(--space-6); }
.reflist__item {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--divider);
  transition: padding-left 0.25s var(--ease);
}
.reflist__item::before { content: "❯"; color: var(--accent-2); font-size: 0.7em; }
.reflist__item:hover { padding-left: var(--space-3); }
.reflist__name { font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink); }
.reflist__detail { font-size: var(--fs-sm); color: var(--ink-muted); margin-left: auto; }

/* Médiation & Formation — blocs-arches numérotés (éditorial) */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-6); }
.offer {
  position: relative; overflow: hidden;
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 96px 96px var(--radius-lg) var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.offer:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.offer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--accent-2);
}
.offer__num {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 3.4rem; line-height: 0.9; color: var(--clay-200); margin-bottom: var(--space-3);
}
.offer__type { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.offer__title { font-size: var(--fs-lg); margin: var(--space-2) 0 var(--space-3); }
.offer__desc { font-size: var(--fs-base); color: var(--ink-muted); margin: 0; }

/* Contact — cartes contacts (Boubacar, Le Puits à Paroles, CRICAO) */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.contact-card {
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: var(--bg-card); border: 1px solid var(--divider);
  border-radius: 80px 80px var(--radius-lg) var(--radius-lg);
  border-top: 3px solid var(--accent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card__name { font-family: var(--font-display); font-size: var(--fs-lg); margin: 0 0 var(--space-1); }
.contact-card__role { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.contact-card__lines { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-4); font-size: var(--fs-sm); }
.contact-card__lines a { color: var(--ink); border-bottom: 1px solid var(--accent); width: fit-content; }
.contact-card__lines a:hover { color: var(--accent); }

/* Entrée douce de la navbar (une fois la page prête) */
html.anim-ready .nav { animation: nav-drop 0.5s var(--ease) both; }
@keyframes nav-drop { from { transform: translateY(-100%); opacity: 0; } }

/* -----------------------------------------------------------
   11. Agenda
   ----------------------------------------------------------- */
.agenda-list { display: flex; flex-direction: column; }
.agenda-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
  padding: var(--space-5) 0; border-bottom: 1px solid var(--divider);
}
.agenda-item:first-child { border-top: 1px solid var(--divider); }
.agenda-item__date {
  text-align: center; min-width: 76px; line-height: 1;
  border-right: 2px solid var(--accent-2); padding-right: var(--space-4);
}
.agenda-item__day { font-family: var(--font-display); font-size: 2.8rem; color: var(--accent); display: block; }
.agenda-item__month { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.agenda-item__main h3 { font-size: var(--fs-md); margin: 0 0 var(--space-1); }
.agenda-item__meta { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }
.agenda-item__cta { white-space: nowrap; }
.agenda-status {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); padding: 0.4em 0.9em; border: 1px solid var(--divider); border-radius: 100px;
}

.empty-state { text-align: center; padding: var(--space-8) var(--space-4); border: 1.5px dashed var(--divider); border-radius: var(--radius-lg); color: var(--ink-muted); }
.empty-state p { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--ink-muted); }

/* -----------------------------------------------------------
   12. Galerie & presse & liens
   ----------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.gallery figure img, .gallery figure iframe, .gallery figure video { width: 100%; height: 100%; object-fit: cover; border: 0; }

.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.press-card { background: var(--bg-card); border: 1px solid var(--divider); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); padding: var(--space-6); }
.press-card blockquote { font-family: var(--font-display); font-style: italic; font-size: var(--fs-md); line-height: var(--lh-snug); margin: 0 0 var(--space-4); color: var(--ink); }
.press-card cite { font-style: normal; font-size: var(--fs-sm); font-weight: 800; color: var(--ink-muted); }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); background: var(--bg-card); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card__label { font-weight: 800; color: var(--ink); }

/* -----------------------------------------------------------
   13. Partenaires
   ----------------------------------------------------------- */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.partner { padding: var(--space-6); background: var(--bg-card); border: 1px solid var(--divider); border-radius: var(--radius-lg); border-top: 4px solid var(--accent-2); }
.partner__type { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.partner h3 { font-size: var(--fs-md); margin: var(--space-2) 0; }
.partner p { font-size: var(--fs-sm); color: var(--ink-muted); }

/* -----------------------------------------------------------
   14. Contact / formulaire
   ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.contact-info dt { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: var(--space-5); }
.contact-info dd { margin: var(--space-1) 0 0; font-size: var(--fs-md); }
.contact-info dd a { color: var(--ink); border-bottom: 2px solid var(--accent); }
.contact-info dd a:hover { color: var(--accent); }

.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-size: var(--fs-sm); font-weight: 800; margin-bottom: var(--space-2); color: var(--ink-soft); }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-base);
  padding: 0.85em 1em; border: 2px solid var(--divider); border-radius: var(--radius);
  background: var(--bg-card); color: var(--ink); transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-field textarea { min-height: 140px; resize: vertical; }

/* -----------------------------------------------------------
   15. Footer (bande terre nuit)
   ----------------------------------------------------------- */
.footer { background: var(--bg-dark); color: var(--on-dark); padding-block: var(--space-8) var(--space-6); }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--ochre-400); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-7); margin-bottom: var(--space-7); }
.footer__brand { font-family: var(--font-brush); font-size: 2rem; font-weight: 400; color: var(--ochre-400); }
.footer__brand span { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ochre-400); margin-top: var(--space-2); }
.footer h4 { color: var(--cream); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__bottom { border-top: 1px solid rgba(246, 231, 210, 0.14); padding-top: var(--space-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: var(--fs-sm); color: var(--on-dark-mute); }

/* -----------------------------------------------------------
   16. Page header (pages secondaires)
   ----------------------------------------------------------- */
.page-head { padding-block: var(--space-8) var(--space-6); }
.page-head h1 { font-size: var(--fs-3xl); }
.page-head h1::after {
  content: ""; display: block; height: 14px; width: clamp(110px, 38%, 220px);
  margin-top: 0.45rem; background: var(--brush) left center / contain no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease) 0.12s;
}
.page-head h1.brush-drawn::after { clip-path: inset(0 0 0 0); }
.page-head p { font-size: var(--fs-md); color: var(--ink-muted); max-width: var(--measure); }

/* -----------------------------------------------------------
   17. Scroll reveal
   ----------------------------------------------------------- */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(42px) scale(0.985); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.has-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Entrée du hero : le nom brush se lève, l'arche se pose. */
html.anim-ready .hero__role,
html.anim-ready .hero__title,
html.anim-ready .hero__quote,
html.anim-ready .hero__actions { animation: rise-in 0.9s var(--ease) both; }
html.anim-ready .hero__title { animation-delay: 0.08s; }
html.anim-ready .hero__quote { animation-delay: 0.18s; }
html.anim-ready .hero__actions { animation-delay: 0.28s; }
html.anim-ready .hero__media { animation: arch-settle 1s var(--ease) 0.15s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes arch-settle { from { opacity: 0; transform: translateY(30px) scale(0.96); } }

/* -----------------------------------------------------------
   18. Responsive
   ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__media { max-width: 380px; }
  .arch-frame::before { inset: 14px -14px -14px 14px; }
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .split__media { max-width: 360px; }
  .spectacle-detail { grid-template-columns: 1fr; gap: var(--space-6); }
  .spectacle-detail__cover { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--divider);
    padding: var(--space-4) var(--container-px) var(--space-6);
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-md); max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a { width: 100%; padding: var(--space-3) 0; font-size: 1.18rem; border-bottom: 1px solid var(--divider); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .agenda-item { grid-template-columns: auto 1fr; gap: var(--space-4); }
  .agenda-item__cta { grid-column: 1 / -1; justify-self: start; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------
   18b. Transition « entrer dans l'arche » (animation JS maison)
   - .arch-grow : l'overlay qui grossit (créé en JS, styles inline).
   - html.arch-entering::before : voile d'arrivée (anti-flash) qui se
     dissipe pour révéler la fiche, dans la continuité du zoom.
   ----------------------------------------------------------- */
.arch-grow { box-shadow: var(--shadow-md); }

html.arch-entering::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: #E0B488 var(--veil-img, none) center / cover no-repeat;
  opacity: 1; transition: opacity 0.55s ease;
}
html.arch-entering.arch-reveal::before { opacity: 0; }

/* -----------------------------------------------------------
   19. Reduced motion
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
}
