/* Compagnie Pensée Sauvage
   Cadre fixe : vert de l'ancien site, fuchsia du logo, papier. Aplats de la brochure pour les écoles
   (jaune, orange, lavande, pêche), formes à un angle droit. Chaque spectacle apporte sa couleur (--teinte). */

@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(polices/bricolage-grotesque-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(polices/bricolage-grotesque-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-display: swap; font-weight: 400; src: url(polices/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-display: swap; font-weight: 400; src: url(polices/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson'; font-style: italic; font-display: swap; font-weight: 400; src: url(polices/atkinson-hyperlegible-next-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson'; font-style: italic; font-display: swap; font-weight: 400; src: url(polices/atkinson-hyperlegible-next-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-display: swap; font-weight: 700; src: url(polices/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-display: swap; font-weight: 700; src: url(polices/atkinson-hyperlegible-next-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --vert: #2b614b;
  --vert-fonce: #1d4535;
  --vert-vif: #42865b;
  --fuchsia: #d10f7d;        /* texte blanc lisible dessus */
  --fuchsia-logo: #f334aa;
  --jaune: #eae03a;
  --orange: #f8b233;
  --lavande: #a8a7f3;
  --violet: #7864a9;
  --peche: #e9bcae;
  --papier: #fffaf3;
  --papier-2: #f8eee3;
  --encre: #2a1a22;
  --gris: #6c6168;
  --titre: 'Bricolage', 'Arial Narrow', system-ui, sans-serif;
  --texte: 'Atkinson', system-ui, sans-serif;
  --gouttiere: clamp(16px, 4vw, 48px);
  --large: 1320px;
  --feuille: 4px 48px 48px 48px;      /* l'aplat de la brochure : un angle droit en haut à gauche */
  --feuille-petite: 3px 22px 22px 22px;
  --teinte: var(--vert);
  --sur-teinte: var(--papier);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fuchsia); }
:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.05; margin: 0; }
p { margin: 0; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: 10px 14px; z-index: 50; }
.evitement:focus { left: 12px; top: 12px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- En-tête : papier en haut de page, fuchsia dès que la page défile ---------------- */
.tete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 10px var(--gouttiere); background: var(--papier); transition: background-color .25s, box-shadow .25s; }
.tete.defile { background: var(--fuchsia); box-shadow: 0 2px 0 rgb(0 0 0 / .08); }
.tete-logo { flex: none; display: block; width: 68px; background: #fff; border-radius: var(--feuille-petite); padding: 4px; }
.tete.defile .tete-logo { width: 56px; }
.tete-logo img { width: 100%; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { display: block; padding: 8px 14px; font: 700 1.05rem/1.2 var(--titre); font-stretch: 90%; color: var(--vert); text-decoration: none; border-radius: var(--feuille-petite); }
.nav a:hover { background: var(--papier-2); }
.nav a[aria-current="page"] { background: var(--vert); color: var(--papier); }
.tete.defile .nav a { color: #fff; }
.tete.defile .nav a:hover { background: rgb(255 255 255 / .16); }
.tete.defile .nav a[aria-current="page"] { background: #fff; color: var(--fuchsia); }
.nav-bouton { display: none; }

@media (max-width: 899px) {
  .tete { flex-wrap: wrap; }
  .js .nav-bouton { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 10px 14px; min-height: 44px; background: var(--vert); color: var(--papier); border: 0; border-radius: var(--feuille-petite); font: 700 1rem/1 var(--titre); cursor: pointer; }
  .tete.defile .nav-bouton { background: #fff; color: var(--fuchsia); }
  .nav-bouton-traits { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
  .nav-bouton-traits::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .js .nav { display: none; flex-basis: 100%; }
  /* Menu ouvert : un aplat fuchsia sur toute la largeur, comme l'ancien site */
  .js .ouverte { background: var(--fuchsia); }
  .js .ouverte .nav { display: block; padding: 8px 0 16px; }
  .js .ouverte .nav ul { flex-direction: column; gap: 4px; }
  .js .ouverte .nav a { color: #fff; font-size: 1.5rem; padding: 12px 16px; }
  .js .ouverte .nav a[aria-current="page"] { background: #fff; color: var(--fuchsia); }
  .js .ouverte .nav-bouton { background: #fff; color: var(--fuchsia); }
  .nav ul { justify-content: flex-end; }
}

/* --- Gabarits communs ------------------------------------------------- */
main { display: block; }
.page { max-width: var(--large); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gouttiere) 80px; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.page-etroite { max-width: 860px; }
.titre-page { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 800; font-stretch: 75%; color: var(--vert); letter-spacing: -.01em; }
.page-intro { font-size: 1.25rem; max-width: 62ch; margin-top: calc(-1 * clamp(16px, 3vw, 36px)); }
.chapeau { font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--titre); color: var(--vert); max-width: 34ch; margin-top: calc(-1 * clamp(16px, 3vw, 36px)); }
.chapeau p { margin: 0; }
.sous-titre { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 85%; color: var(--vert); margin-bottom: 18px; }
.petit-titre { font-size: 1.2rem; font-weight: 800; color: var(--vert); margin: 26px 0 10px; }
/* Étiquette de rubrique : le bandeau vert de la brochure, un angle droit */
.etiquette { display: inline-block; align-self: flex-start; background: var(--vert); color: var(--papier); padding: .35em .85em .4em; border-radius: 3px 20px 20px 20px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 800; font-stretch: 90%; margin-bottom: 22px; }
.etiquette-fuchsia { background: var(--fuchsia); color: #fff; }
.etiquette-pale { background: var(--papier-2); color: var(--gris); }
.texte p + p, .texte p + ul, .texte ul + p { margin-top: .9em; }
.texte ul { margin: 0; padding-left: 1.2em; }
.texte li + li { margin-top: .25em; }
.texte li::marker { color: var(--fuchsia); }
.texte-grand { font-size: 1.2rem; line-height: 1.65; }
.texte a { color: var(--vert); font-weight: 700; }
.vide { color: var(--gris); }
.lien-fleche { font: 700 1.05rem/1.2 var(--titre); color: var(--vert); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; }
.lien-fleche::after { content: "→"; transition: transform .2s; }
.lien-fleche:hover::after { transform: translateX(4px); }
.bouton { display: inline-block; background: var(--fuchsia); color: #fff; padding: 13px 22px; border: 0; border-radius: 4px 24px 24px 24px; font: 700 1.1rem/1.2 var(--titre); text-decoration: none; cursor: pointer; }
.bouton:hover { background: #a90a63; color: #fff; }
.mention { display: inline-block; background: var(--fuchsia); color: #fff; padding: 3px 12px 4px; border-radius: 3px 14px 14px 14px; font: 800 .95rem/1.3 var(--titre); letter-spacing: .02em; }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.deux .texte { font-size: 1.1rem; }

/* PDF à télécharger */
.pdf { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 12px 16px 12px 52px; position: relative; background: #fff; border: 2px solid var(--teinte); border-radius: var(--feuille-petite); text-decoration: none; font-weight: 700; }
.pdf::before { content: "PDF"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: var(--teinte); color: var(--sur-teinte); font: 800 .7rem/1 var(--titre); padding: 6px 5px; border-radius: 2px 8px 8px 8px; }
.pdf-verbe { color: var(--gris); font-weight: 400; }
.pdf-poids { color: var(--gris); font-weight: 400; font-size: .9rem; }
.pdf:hover .pdf-titre { text-decoration: underline; text-decoration-color: var(--fuchsia); }
.pdfs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* --- Accueil : le nom, puis les affiches posées à cheval sur l'aplat vert ---------- */
.scene { background: var(--vert); color: var(--papier); padding: clamp(36px, 7vw, 96px) var(--gouttiere) calc(clamp(36px, 7vw, 96px) + 120px); border-radius: 0 0 clamp(60px, 12vw, 180px) 0; }
.scene > * { max-width: var(--large); margin-inline: auto; }
.scene-nom { font-size: clamp(3.6rem, 13vw, 11rem); font-weight: 800; font-stretch: 75%; line-height: .86; letter-spacing: -.02em; }
.scene-devise { margin-top: 18px; font: 600 clamp(1.5rem, 3.4vw, 2.6rem)/1.15 var(--titre); color: var(--jaune); }
.scene-disciplines { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; font: 800 clamp(1.05rem, 1.8vw, 1.3rem)/1 var(--titre); }
.scene-disciplines li { padding: 10px 16px 11px; border-radius: 3px 20px 20px 20px; color: var(--encre); }
.scene-disciplines li:nth-child(4n + 1) { background: var(--fuchsia); color: #fff; }
.scene-disciplines li:nth-child(4n + 2) { background: var(--jaune); }
.scene-disciplines li:nth-child(4n + 3) { background: var(--lavande); }
.scene-disciplines li:nth-child(4n + 4) { background: var(--orange); }
.accueil-spectacles { max-width: calc(var(--large) + 2 * var(--gouttiere)); margin: -120px auto 0; padding: 0 var(--gouttiere); --h: 220px; }

/* --- Mur d'affiches : chaque affiche à son format, rangées justifiées (largeur ∝ format) --- */
.mur { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(20px, 2.4vw, 32px); align-items: flex-start; }
.mur-case { flex: var(--r) 1 calc(var(--r) * var(--h, 300px)); min-width: 0; }
.mur-lien { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--encre); }
.mur-affiche { display: block; transform: rotate(var(--penche, -1deg)); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 10px 24px -12px rgb(42 26 34 / .55); background: #fff; }
.mur-case:nth-child(3n + 2) { --penche: 1.2deg; }
.mur-case:nth-child(3n + 3) { --penche: -.4deg; }
.mur-lien:hover .mur-affiche, .mur-lien:focus-visible .mur-affiche { transform: rotate(0) translateY(-6px); }
.mur-affiche .affiche { width: 100%; }
.mur-titre { margin-top: 14px; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 800; font-stretch: 85%; color: var(--teinte); }
.mur-lien:hover .mur-titre { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mur-accroche { font-size: .98rem; line-height: 1.4; }
.mur-public { font-size: .9rem; font-weight: 700; color: var(--gris); }
.mur .mention { align-self: flex-start; margin-top: 4px; }
.affiche-vide { display: grid; place-items: center; aspect-ratio: .72; background: var(--teinte); color: var(--sur-teinte); font: 800 1.5rem/1.1 var(--titre); padding: 20px; text-align: center; }
.p-spectacles .mur { --h: 300px; }

/* --- Accueil : actualités et dates côte à côte ------------------------ */
.accueil-nouvelles { max-width: var(--large); margin: clamp(56px, 8vw, 104px) auto 0; padding: 0 var(--gouttiere); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.accueil-nouvelles:not(:has(.accueil-actus)) { grid-template-columns: minmax(0, 1fr); }
.actus { display: flex; flex-direction: column; gap: 22px; }
.actu { background: var(--papier-2); border-radius: var(--feuille); overflow: hidden; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.actu:not(:has(.actu-image-lien, .actu-image-vide)) { grid-template-columns: minmax(0, 1fr); }
.actu-image-lien { display: block; background: var(--encre); cursor: zoom-in; }
.actu-image { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.actu-corps { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.actu-date { font: 800 .95rem/1.2 var(--titre); color: var(--fuchsia); letter-spacing: .02em; }
.actu-titre { font-size: 1.5rem; font-weight: 800; font-stretch: 90%; color: var(--vert); }
.actu .texte { font-size: 1rem; }
.actus-page .actu { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.actus-page .actu-image { object-fit: contain; max-height: 560px; }
.actus-page .actu .texte { font-size: 1.1rem; }

/* Une date : le jour dans un disque (le soleil du logo), dans la couleur du spectacle */
.billets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.billet { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; --teinte: var(--fuchsia); --sur-teinte: #fff; }
.billet-jour { width: 76px; height: 76px; border-radius: 50%; background: var(--teinte); color: var(--sur-teinte); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--titre); line-height: 1; }
.billet-sem { font-size: .72rem; font-weight: 700; opacity: .85; }
.billet-num { font-size: 1.9rem; font-weight: 800; font-stretch: 80%; }
.billet-mois { font-size: .8rem; font-weight: 700; }
.billet-corps { display: flex; flex-direction: column; gap: 2px; }
.billet-quoi { font: 800 1.25rem/1.15 var(--titre); font-stretch: 90%; color: var(--teinte); text-decoration: none; }
a.billet-quoi:hover { text-decoration: underline; }
.billet-titre { font-weight: 700; }
.billet-ou { font-weight: 700; }
.billet-plus { font-size: .95rem; color: var(--gris); }
.billet-plus a { color: var(--vert); font-weight: 700; }
/* Dates passées : un autre ton, plus discret */
.billets-passes .billet-jour { background: transparent; color: var(--gris); border: 2px dashed currentColor; width: 64px; height: 64px; }
.billets-passes .billet { grid-template-columns: 64px minmax(0, 1fr); }
.billets-passes .billet-quoi { color: var(--gris); font-size: 1.1rem; }
.billets-passes .billet-corps { color: var(--gris); }

/* Deux portes : écoles (jaune), conte sur mesure (lavande) */
.accueil-offres { max-width: var(--large); margin: clamp(56px, 8vw, 104px) auto clamp(56px, 8vw, 104px); padding: 0 var(--gouttiere); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.offre { display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 4vw, 44px); border-radius: var(--feuille); text-decoration: none; color: var(--encre); position: relative; transition: transform .25s; }
.offre:hover { transform: translateY(-4px); }
.offre-titre { font: 800 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--titre); font-stretch: 85%; }
.offre-titre::after { content: " →"; }
.offre-texte { font-size: 1.15rem; max-width: 40ch; }
.offre-jaune { background: var(--jaune); }
.offre-lavande { background: var(--lavande); }
.offre-large { align-self: stretch; }

/* --- Fiche d'un spectacle : l'affiche tenue à gauche, le spectacle dans sa couleur ---------- */
.fiche { max-width: var(--large); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gouttiere) 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "affiche tete" "affiche texte" "affiche programmer" "photos photos" "dates dates"; gap: clamp(24px, 3.5vw, 48px) clamp(28px, 5vw, 72px); align-items: start; }
.fiche-affiche { grid-area: affiche; position: sticky; top: 104px; }
.fiche-affiche .affiche { width: 100%; box-shadow: 0 18px 40px -20px rgb(42 26 34 / .6); max-height: calc(100vh - 140px); object-fit: contain; object-position: top; }
.fiche-tete { grid-area: tete; background: var(--teinte); color: var(--sur-teinte); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--feuille); display: flex; flex-direction: column; gap: 12px; }
.fiche-tete .mention { align-self: flex-start; background: var(--sur-teinte); color: var(--teinte); }
.fiche-titre { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 800; font-stretch: 78%; line-height: .95; }
.fiche-accroche { font-size: 1.25rem; line-height: 1.35; }
.faits { margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 28px; border-top: 2px solid currentColor; padding-top: 16px; }
.faits dt { font: 700 .82rem/1.2 var(--titre); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.faits dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }
.faits dd p { margin: 0; }
.faits-large { grid-column: 1 / -1; }
.fiche-texte { grid-area: texte; max-width: 66ch; }
.programmer { grid-area: programmer; border: 3px solid var(--teinte); border-radius: var(--feuille); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; background: #fff; }
.programmer-titre { font-size: 1.6rem; font-weight: 800; font-stretch: 85%; color: var(--teinte); }
.programmer .bouton { background: var(--teinte); color: var(--sur-teinte); }
.programmer .bouton:hover { filter: brightness(.88); }
.fiche-photos { grid-area: photos; }
.fiche-dates { grid-area: dates; }
.p-spectacle .billet { --teinte: inherit; --sur-teinte: inherit; }
.p-spectacle .sous-titre { color: var(--teinte); }
.autres { max-width: var(--large); margin: 0 auto; padding: 24px var(--gouttiere) 80px; }
.autres-liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.autres-liste li { flex: none; scroll-snap-align: start; }
.autres-liste a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font: 800 1.05rem/1.15 var(--titre); color: var(--teinte); width: max-content; max-width: 260px; }
.autres-liste .affiche { height: 160px; width: auto; box-shadow: 0 8px 18px -10px rgb(42 26 34 / .5); }
.autres-liste .affiche-vide { height: 160px; width: 116px; font-size: .9rem; }

/* Galerie : rangées justifiées, chaque photo à son format */
.galerie { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.galerie::after { content: ""; flex: 999 1 0; }
.galerie li { flex: var(--r) 1 calc(var(--r) * 210px); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.galerie a { display: block; overflow: hidden; border-radius: 3px 16px 16px 16px; cursor: zoom-in; background: var(--papier-2); }
.galerie img { width: 100%; height: auto; transition: transform .4s; }
.galerie a:hover img { transform: scale(1.03); }
.galerie-legende { font-size: .8rem; line-height: 1.35; color: var(--gris); }

/* --- Aplats (brochure) ------------------------------------------------ */
.aplat { border-radius: var(--feuille); padding: clamp(22px, 3vw, 34px); }
.aplat h3, .aplat h2 { font-size: 1.45rem; font-weight: 800; font-stretch: 88%; margin-bottom: 12px; }
.aplat-fuchsia, .aplat-1 { background: var(--fuchsia); color: #fff; }
.aplat-fuchsia a, .aplat-1 a { color: #fff; }
.aplat-fuchsia .texte li::marker, .aplat-1 .texte li::marker { color: #fff; }
.aplat-jaune, .aplat-2 { background: var(--jaune); }
.aplat-lavande, .aplat-3 { background: var(--lavande); }
.aplat-orange, .aplat-4 { background: var(--orange); }
.aplat-blanc { background: #fff; border: 3px solid var(--vert); }
.aplats { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.aplats .texte { font-size: 1.05rem; }
.aplats .texte p::first-letter { text-transform: uppercase; }

/* Le conte sur mesure */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.duo-image { margin: 0; }
.duo-image img { border-radius: 4px 64px 64px 64px; width: 100%; }
.propositions .texte { font-size: 1.15rem; max-width: 70ch; }
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: clamp(26px, 4vw, 40px); background: var(--vert); color: var(--papier); border-radius: var(--feuille); font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.25 var(--titre); }
.appel .bouton { font-size: 1.05rem; }

/* Ateliers dans les écoles */
.ecole-spectacles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.ecole-spectacle { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px; border-radius: var(--feuille); background: #fff; border-left: 10px solid var(--teinte); }
.ecole-affiche .affiche { width: 130px; box-shadow: 0 8px 18px -10px rgb(42 26 34 / .5); }
.ecole-spectacle h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 85%; color: var(--teinte); margin-bottom: 10px; }
.ecole-spectacle h3 a { text-decoration: none; }
.ecole-spectacle h3 a:hover { text-decoration: underline; }
.brochure-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.brochure-grille > :nth-child(2) { border-radius: 48px 4px 48px 48px; }
.brochure-grille > :nth-child(3) { border-radius: 48px 48px 48px 4px; }
.brochure-grille .texte { font-size: 1.05rem; }
.mediations { background: var(--teinte); color: var(--sur-teinte); border-radius: var(--feuille); padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.mediations-titre { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; font-stretch: 80%; }
.mediations > .texte { max-width: 70ch; font-size: 1.1rem; }
.ateliers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; counter-reset: atelier; }
.atelier { background: var(--papier); color: var(--encre); border-radius: var(--feuille-petite); padding: 24px; counter-increment: atelier; position: relative; }
.atelier::before { content: counter(atelier); position: absolute; top: -14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--jaune); color: var(--encre); display: grid; place-items: center; font: 800 1.2rem/1 var(--titre); }
.atelier h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 88%; color: var(--teinte); margin-bottom: 6px; padding-right: 40px; }
.atelier-format { font-size: .9rem; font-weight: 700; color: var(--gris); margin-bottom: 12px; }
.atelier .texte a { color: var(--teinte); }
.p-ecoles .galerie { margin-top: -20px; }

/* La compagnie */
.compagnie-texte { max-width: 68ch; }
.compagnie-texte p:first-child { font: 600 clamp(1.35rem, 2.4vw, 1.75rem)/1.3 var(--titre); color: var(--vert); }
.membres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 22px; }
.membre { display: flex; flex-direction: column; gap: 4px; }
.membre-photo { display: block; aspect-ratio: 3 / 4; border-radius: var(--feuille); overflow: hidden; background: var(--peche); margin-bottom: 8px; }
.membre:nth-child(2n) .membre-photo { border-radius: 48px 4px 48px 48px; }
.membre-photo img { width: 100%; height: 100%; object-fit: cover; }
.membre-vide { display: grid; place-items: center; font: 800 2.6rem/1 var(--titre); color: var(--vert); }
.membres-equipe .membre-vide { background: var(--lavande); }
.membre-nom { font: 800 1.2rem/1.15 var(--titre); color: var(--vert); }
.membre-role { font-size: .95rem; line-height: 1.4; }

/* Agenda */
.mois + .mois { margin-top: 34px; }
.mois-titre { font-size: 1.4rem; font-weight: 800; font-stretch: 85%; color: var(--vert); text-transform: capitalize; margin-bottom: 16px; padding-bottom: 6px; border-bottom: 2px solid var(--papier-2); }
.p-agenda .billet { grid-template-columns: 88px minmax(0, 1fr); }
.p-agenda .billet-jour { width: 88px; height: 88px; }
.p-agenda .billet-num { font-size: 2.3rem; }
.p-agenda .billets-passes .billet { grid-template-columns: 64px minmax(0, 1fr); }
.p-agenda .billets-passes .billet-jour { width: 64px; height: 64px; }
.p-agenda .billets-passes .billet-num { font-size: 1.6rem; }

/* Contact */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.contact-carte { display: flex; flex-direction: column; gap: 6px; }
.contact-carte h2 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.contact-carte .texte { font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-carte .texte p:first-line { font-weight: 700; }
.contact-carte .texte a { color: inherit; }
.contact-bas { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.portage { font-size: .98rem; color: var(--gris); border-left: 4px solid var(--peche); padding-left: 18px; }
.ecrire form { display: flex; flex-direction: column; gap: 16px; }
.ecrire-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.ecrire-objet { color: var(--fuchsia); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 700; }
.facultatif { font-weight: 400; color: var(--gris); font-size: .9rem; }
.champ input, .champ textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--vert); border-radius: 3px 14px 14px 14px; background: #fff; color: var(--encre); width: 100%; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--fuchsia); outline-offset: 1px; }
.ecrire-etat { padding: 12px 16px; border-radius: var(--feuille-petite); background: var(--jaune); font-weight: 700; margin-bottom: 16px; }
.ecrire-erreur { background: var(--fuchsia); color: #fff; }

/* --- Pied de page ------------------------------------------------------ */
.pied { background: var(--vert); color: var(--papier); padding: clamp(40px, 6vw, 72px) var(--gouttiere); border-radius: clamp(48px, 8vw, 120px) 0 0 0; }
.pied-grille { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; align-items: start; }
.pied-nom { font: 800 clamp(1.8rem, 3vw, 2.4rem)/.95 var(--titre); font-stretch: 78%; color: var(--jaune); }
.pied-bloc { display: flex; flex-direction: column; gap: 6px; font-weight: 700; overflow-wrap: anywhere; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pied a { text-decoration-color: rgb(255 250 243 / .4); }
.pied a:hover { text-decoration-color: var(--jaune); }
.pied-espace { opacity: .75; }
.pied :focus-visible { outline-color: var(--jaune); }

/* --- Vidéo chargée au clic ------------------------------------------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--encre); overflow: hidden; border-radius: var(--feuille-petite); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lancer { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; }
.video-lancer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-bouton { position: relative; background: var(--fuchsia); color: #fff; padding: 12px 20px; border-radius: var(--feuille-petite); font: 800 1.2rem/1.1 var(--titre); display: flex; flex-direction: column; align-items: center; }
.video-sorte { font: 700 .8rem/1.4 var(--texte); }

/* --- Visionneuse des photos ---------------------------------------------- */
.vis-ouverte { overflow: hidden; }
.visionneuse { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(22 33 27 / .96); color: var(--papier); }
.visionneuse[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; }
.visionneuse::backdrop { background: rgb(22 33 27 / .6); }
.vis-scene { touch-action: pan-y pinch-zoom; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 70px var(--gouttiere) 10px; overflow: hidden; }
.vis-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; cursor: zoom-in; transition: transform .2s ease-out; will-change: transform; }
.zoome .vis-scene { touch-action: none; }
.zoome .vis-image { cursor: grab; }
.prise .vis-image { cursor: grabbing; transition: none; }
.vis-legende { max-width: 70ch; margin: 0 auto; padding: 4px var(--gouttiere) 0; text-align: center; font-size: .95rem; font-weight: 700; }
.vis-etat { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px var(--gouttiere) 0; }
.vis-compte { font: 800 1.1rem/1 var(--titre); }
.vis-progres { display: block; width: min(220px, 45vw); height: 4px; background: rgb(255 250 243 / .25); }
.vis-progres span { display: block; width: 100%; height: 100%; background: var(--fuchsia-logo); transform-origin: left; transform: scaleX(0); }
.vis-progres span.court { animation: vis-court var(--duree) linear forwards; }
.en-pause .vis-progres span.court { animation-play-state: paused; }
@keyframes vis-court { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .visionneuse .vis-progres span.court { animation: vis-court var(--duree) linear forwards !important; }
  .visionneuse.en-pause .vis-progres span.court { animation-play-state: paused !important; }
}
.vis-barre { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px var(--gouttiere) max(18px, env(safe-area-inset-bottom)); }
.vis-bouton { display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0; background: var(--papier); color: var(--encre); border: 0; border-radius: 50%; cursor: pointer; }
.vis-bouton svg { width: 24px; height: 24px; fill: currentColor; }
.vis-bouton:hover { background: var(--jaune); }
.vis-pause { width: 60px; height: 60px; background: var(--fuchsia); color: #fff; }
.vis-pause:hover { background: var(--fuchsia-logo); }
.vis-fermer { position: absolute; top: 12px; right: var(--gouttiere); }
.visionneuse :focus-visible { outline-color: var(--jaune); }
.vis-seule .vis-prec, .vis-seule .vis-suiv, .vis-seule .vis-pause, .vis-seule .vis-etat { display: none; }
.vis-zoom { margin-left: 8px; }
.vis-seule .vis-zoom { margin-left: 0; }

/* --- Passage du mur à la fiche : l'affiche grandit jusqu'à sa place (navigateurs qui le permettent) --- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.3, .9, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .mur-affiche, .offre, .galerie img, .lien-fleche::after { transition: none; }
  .mur-affiche { transform: none; }
}

/* --- Téléphone et tablette ---------------------------------------------- */
@media (max-width: 899px) {
  .accueil-nouvelles, .duo, .contact-bas { grid-template-columns: minmax(0, 1fr); }
  .fiche { grid-template-columns: minmax(0, 1fr); grid-template-areas: "affiche" "tete" "texte" "programmer" "photos" "dates"; }
  .fiche-affiche { position: static; justify-self: center; width: min(100%, 420px); }
  .fiche-affiche .affiche { max-height: 70vh; margin-inline: auto; width: auto; }
  .brochure-grille { grid-template-columns: minmax(0, 1fr); }
  .accueil-spectacles { --h: 150px; }
}
@media (max-width: 599px) {
  .scene { padding-bottom: calc(clamp(36px, 7vw, 96px) + 90px); }
  .accueil-spectacles { margin-top: -90px; }
  /* Accueil, téléphone : les affiches défilent à l'horizontale, une et demie à l'écran */
  .accueil-spectacles .mur { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: 6px 4px 18px; margin: 0 calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
  .accueil-spectacles .mur-case { flex: none; width: calc(var(--r) * 300px); max-width: 78vw; scroll-snap-align: start; }
  .actu { grid-template-columns: minmax(0, 1fr); }
  .actus-page .actu { grid-template-columns: minmax(0, 1fr); }
  .ecole-spectacle { grid-template-columns: 90px minmax(0, 1fr); padding: 16px; }
  .ecole-affiche .affiche { width: 90px; }
  .p-spectacles .mur { --h: 240px; }
  .tete-logo { width: 56px; }
}
@media print { .tete, .pied, .visionneuse { display: none; } }
