@font-face { font-family: "Newsreader"; src: url(/polices/newsreader-normal.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/polices/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(/polices/barlow-semi-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/polices/archivo-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --papier: #fcfbf8;
  --encre: #161514;
  --gris: #6a665f;
  --gris-clair: #9a958c;
  --filet: #e2ddd3;
  --rouge: #a81414;
  --fond-doux: #f3f0ea;
  --marge: clamp(16px, 4vw, 48px);
  --large: 1240px;
  --texte: 38rem;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --caps: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--serif); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rouge); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 450; line-height: 1.15; margin: 0; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6em 1em; z-index: 10; }
.evitement:focus { left: 8px; top: 8px; }

/* capitales espacées, héritées de l'ancien site */
.menu a, .rub, .pl-titre, .pl-rub, .filtres button, .entete-section h2, .entete-section a, .compte,
.d-spectacle, .af-sur, .af-lien a, .bouton, .sous-menu a, .voisins span, .voisins .toutes,
.historique h4, .h-sous, .fiche-dates h2, .dates-suite summary, .lies h2, .actus h2, .son-nom, .citation a, nav.pied-col a, .agenda h2, .historique > h2, .fiche-histo > h2 {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em; font-weight: 500;
}

/* ---------- en-tête ---------- */
.tete { max-width: var(--large); margin: 0 auto; padding: 22px var(--marge) 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; border-bottom: 1px solid var(--encre); }
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marque img { width: 58px; mix-blend-mode: multiply; }
/* titre du site : police de signalétique routière, proche de Blue Highway du logo d'origine */
.marque span { font-family: "Barlow Semi Condensed", var(--caps); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; font-size: 1.02rem; }
.menu { display: flex; gap: 6px 28px; flex-wrap: wrap; }
.menu a { font-size: .74rem; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a[aria-current] { border-bottom-color: var(--rouge); }
.sous-menu { max-width: var(--large); margin: 0 auto; padding: 14px var(--marge); display: flex; gap: 6px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--filet); }
.sous-menu a { font-size: .68rem; text-decoration: none; color: var(--gris); padding: 4px 0; }
.sous-menu a[aria-current] { color: var(--encre); box-shadow: inset 0 -1px var(--rouge); }

main { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }

.rub { font-size: .66rem; color: var(--gris); margin: 0 0 .7em; }
.entete-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--encre); padding-bottom: 10px; margin-bottom: 26px; }
.entete-section h2 { font-size: .78rem; }
.entete-section a, .compte { font-size: .66rem; color: var(--gris); text-decoration: none; }
.entete-section a:hover { color: var(--rouge); }

/* ---------- accueil : à l'affiche ---------- */
.a-l-affiche { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); display: grid; gap: clamp(40px, 6vw, 72px); }
.affiche { display: grid; gap: 18px; }
.af-img { display: block; overflow: hidden; background: var(--fond-doux); }
.af-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.affiche:hover .af-img img { transform: scale(1.02); }
.affiche h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); text-transform: uppercase; letter-spacing: .03em; }
.affiche h2 a { text-decoration: none; }
.af-sur { font-size: .7rem; color: var(--rouge); margin: .9em 0 0; }
.af-phrase { font-style: italic; font-size: 1.22rem; line-height: 1.4; margin: .5em 0 0; max-width: 30ch; }
.af-lien { margin: 1.2em 0 0; }
.af-lien a { font-size: .7rem; text-decoration: none; box-shadow: inset 0 -1px var(--rouge); padding-bottom: 3px; }
.affiche.grande .af-img { aspect-ratio: 3 / 2; }
.affiche.grande h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; }
.duo { display: grid; gap: clamp(40px, 5vw, 56px); }
.duo .af-img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .affiche.grande { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }
  .affiche.grande .af-texte { padding-bottom: 6px; }
  .duo { grid-template-columns: 1fr 1fr; }
}

/* ---------- dates ---------- */
.dates { list-style: none; margin: 0; padding: 0; }
.date { display: grid; grid-template-columns: 16rem 1fr; gap: 6px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.date:first-child { border-top: 1px solid var(--filet); }
.a-venir .date:first-child, .bande-dates .date:first-child { border-top: 0; }
.date time { font-size: 1.12rem; font-weight: 500; font-variant-numeric: lining-nums; }
.d-quand { display: grid; gap: 2px; align-content: start; }
.d-heure { font-size: .95rem; color: var(--gris); font-variant-numeric: lining-nums; }
.d-quoi { display: grid; gap: 2px; }
.d-spectacle { font-size: .8rem; text-decoration: none; }
a.d-spectacle { text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: .32em; justify-self: start; }
a.d-spectacle:hover { text-decoration-thickness: 2px; }
.d-lieu { font-size: 1.12rem; }
.d-dep { color: var(--gris); }
.dates.mini { margin-top: 1.2em; }
.dates.mini .date { grid-template-columns: 1fr; padding: 10px 0; }
.dates.mini time, .dates.mini .d-lieu { font-size: 1rem; }
.bande-dates { padding: 0 0 clamp(48px, 7vw, 80px); }

/* ---------- planche des créations ---------- */
.repertoire { padding: 0 0 clamp(48px, 7vw, 88px); }
.repertoire.seule { padding-top: clamp(28px, 5vw, 56px); }
.repertoire.seule h1, .agenda h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 26px; }
.filtres { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: -8px 0 30px; }
.filtres[hidden] { display: none; }
.filtres button { font-size: .66rem; background: none; border: 0; padding: 8px 0; color: var(--gris); cursor: pointer; border-bottom: 1px solid transparent; }
.filtres button:hover { color: var(--encre); }
.filtres button[aria-pressed="true"] { color: var(--encre); border-bottom-color: var(--rouge); }
.planche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 42vw), 1fr)); gap: 30px clamp(14px, 2vw, 26px); }
.planche li[hidden] { display: none; }
.planche a { display: grid; gap: 9px; text-decoration: none; }
.pl-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fond-doux); }
.pl-img.vide { background: var(--fond-doux) url(/img/chauve-souris.webp) center / 46% no-repeat; background-blend-mode: multiply; }
.pl-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.planche a:hover .pl-img.vide { background: var(--fond-doux) url(/img/chauve-souris.webp) center / 46% no-repeat; background-blend-mode: multiply; }
.pl-img img { transform: scale(1.04); filter: saturate(1.05); }
.pl-titre { font-size: .7rem; line-height: 1.45; letter-spacing: .12em; }
.planche a:hover .pl-titre { color: var(--rouge); }
.pl-rub { font-size: .58rem; color: var(--gris-clair); letter-spacing: .14em; margin-top: -4px; }
.actus { margin-top: 56px; border-top: 1px solid var(--filet); padding-top: 18px; }
.actus h2 { font-size: .68rem; color: var(--gris); margin-bottom: 10px; }
.actus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }

/* ---------- citation ---------- */
.citation { border-top: 1px solid var(--encre); padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 7vw, 90px); display: grid; justify-items: center; text-align: center; gap: 22px; }
.citation blockquote { margin: 0; }
.citation p { margin: 0; font-style: italic; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.35; max-width: 36ch; }
.citation a { font-size: .68rem; text-decoration: none; box-shadow: inset 0 -1px var(--rouge); padding-bottom: 3px; }

/* ---------- fiche projet ---------- */
.fiche { padding: clamp(24px, 4vw, 48px) 0 40px; }
.fiche-tete { display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.fiche-image a { display: block; }
.fiche-image img { width: 100%; max-height: 78vh; object-fit: cover; }
.fiche-id h1 { font-size: clamp(1.9rem, 4vw, 3.3rem); text-transform: uppercase; letter-spacing: .03em; line-height: 1.06; overflow-wrap: break-word; }
.fiche-tete.sans-image .fiche-id { max-width: var(--texte); margin: 0 auto; width: 100%; }
@media (min-width: 960px) {
  .fiche-tete:not(.sans-image) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 44px; align-items: end; }
  /* la photo reste en haut quand la colonne du titre est plus haute qu'elle (dates dépliées) */
  .fiche-tete:not(.sans-image) .fiche-image { align-self: start; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bouton { display: inline-flex; align-items: center; gap: 12px; font-size: .68rem; text-decoration: none; border: 1px solid var(--encre); padding: 12px 16px; background: var(--papier); }
.bouton span { color: var(--rouge); font-size: .6rem; }
.bouton:hover { background: var(--encre); color: var(--papier); }
.fiche-dates { margin-top: 26px; }
.fiche-dates h2, .lies h2 { font-size: .66rem; color: var(--gris); }
.dates-suite summary { display: inline-block; list-style: none; cursor: pointer; margin-top: 16px; font-size: .68rem; box-shadow: inset 0 -1px var(--rouge); padding-bottom: 3px; }
.dates-suite summary::-webkit-details-marker { display: none; }
.dates-suite summary:hover { color: var(--rouge); }
.dates-suite .ds-replier, .dates-suite[open] .ds-voir { display: none; }
.dates-suite[open] .ds-replier { display: inline; }
.dates-suite .dates.mini { margin-top: 16px; }

.fiche-corps { display: grid; gap: clamp(28px, 4vw, 48px); }
.texte { max-width: var(--texte); width: 100%; margin: 0 auto; font-size: 1.16rem; line-height: 1.62; }
.texte p { margin: 0 0 .9em; }
.texte p:last-child { margin-bottom: 0; }
.texte h3 { font-size: 1.5rem; font-style: italic; font-weight: 400; line-height: 1.3; margin: 1.2em 0 .8em; text-align: left !important; }
.texte strong, .texte b { font-weight: 600; }
.texte a { overflow-wrap: anywhere; }
.texte .role { margin: 0; display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0 18px; padding: 7px 0; border-bottom: 1px solid var(--filet); }
.texte .role .r-nom { font-weight: 600; }
.texte .role .r-role { color: #3d3a36; }
.texte .distribution { margin: 1em 0; }
.texte .distribution .d-titre { margin-bottom: .4em; }
.texte .doc { margin: 1.2em 0; }
.texte .doc a { font-family: var(--caps); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: inline-block; border: 1px solid var(--encre); padding: 11px 14px; margin-top: 6px; }
.texte .doc a::after { content: "PDF"; color: var(--rouge); margin-left: 12px; font-size: .9em; }
.texte .doc a:hover { background: var(--encre); color: var(--papier); }
.texte .doc strong { font-weight: 400; }
hr.pause { border: 0; height: 1px; background: var(--filet); margin: 1.4em 0; }
@media (max-width: 560px) { .texte .role { grid-template-columns: 1fr; } }

.photo.seule { margin: 0 auto; max-width: 820px; width: 100%; }
.photo.seule img { width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.cote-a-cote { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .cote-a-cote { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .cote-a-cote .galerie.dessins { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cote-a-cote .galerie.dessins figure:first-child { grid-column: 1 / -1; }
  .cote-a-cote .galerie.dessins::after { display: none; }
  .cote-a-cote .texte { margin: 0; }
}
.galerie { display: flex; flex-wrap: wrap; gap: 8px; }
.galerie::after { content: ""; flex-grow: 999; }
.galerie figure { margin: 0; flex: var(--r) 1 calc(var(--r) * 200px); }
.galerie img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; }
.galerie.dessins { max-width: 900px; margin: 0 auto; gap: 20px; }
.galerie.dessins img { mix-blend-mode: multiply; }
@media (min-width: 900px) { .galerie figure { flex-basis: calc(var(--r) * 260px); } }
.zoom { display: block; cursor: zoom-in; }

.videos { display: grid; gap: 28px 22px; }
@media (min-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } }
.videos.une { grid-template-columns: 1fr; max-width: 960px; width: 100%; margin: 0 auto; }
.video { margin: 0; }
.lecteur { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.lecteur img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s; }
.lecteur:hover img { opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(168, 20, 20, .92); transition: transform .3s; }
.play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.lecteur:hover .play { transform: scale(1.08); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video figcaption { font-size: .92rem; color: var(--gris); font-style: italic; margin-top: 8px; }

.sons { max-width: var(--texte); width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.son { display: grid; gap: 6px; }
.son-nom { font-size: .62rem; color: var(--gris); }
.son audio { width: 100%; height: 40px; }

.lies { max-width: var(--texte); margin: 48px auto 0; border-top: 1px solid var(--filet); padding-top: 16px; }
.lies ul { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 4px; }

/* ---------- historique ---------- */
.historique { margin-top: clamp(48px, 6vw, 80px); }
.historique > h2, .agenda h2 { font-size: .74rem; border-bottom: 1px solid var(--encre); padding-bottom: 10px; margin-bottom: 8px; }
.fiche-histo { max-width: var(--texte); margin-left: auto; margin-right: auto; }
.h-annee { display: grid; grid-template-columns: 6rem 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--filet); }
.h-annee h3 { font-size: 2rem; font-weight: 400; color: var(--rouge); line-height: 1; }
.h-annee > div { display: grid; gap: 18px; }
.historique h4 { font-size: .76rem; margin-bottom: 6px; }
.historique h4 a { text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: .32em; }
.h-sous { font-size: .6rem; color: var(--gris); margin: 0 0 4px; }
.h-groupe ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.h-groupe li { font-size: 1.02rem; line-height: 1.45; }
.fiche-histo .h-annee { grid-template-columns: 4.5rem 1fr; }
.fiche-histo .h-annee h3 { font-size: 1.5rem; }
@media (min-width: 900px) { .agenda .h-annee { grid-template-columns: 10rem 1fr; } .agenda .h-annee > div { grid-template-columns: 1fr 1fr; gap: 22px 40px; } }

/* ---------- agenda ---------- */
.agenda { padding: clamp(28px, 5vw, 56px) 0 40px; max-width: 980px; margin: 0 auto; }
.agenda-intro { font-size: 1rem; color: var(--gris); max-width: var(--texte); margin: -12px 0 28px; }
.agenda-intro p { margin: 0; }
.agenda-intro a { overflow-wrap: anywhere; }
.agenda-intro a { color: var(--encre); }
.a-venir { margin-bottom: 20px; }

/* ---------- voisins ---------- */
.voisins { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; border-top: 1px solid var(--encre); padding: 20px 0 48px; }
.voisins a { text-decoration: none; display: grid; gap: 4px; font-size: 1.05rem; }
.voisins span { font-size: .6rem; color: var(--gris); }
.voisins .suiv { text-align: right; }
.voisins .toutes { font-size: .64rem; }
@media (max-width: 640px) { .voisins { grid-template-columns: 1fr 1fr; } .voisins .toutes { grid-column: 1 / -1; grid-row: 2; text-align: center; padding-top: 10px; } }

/* ---------- pied ---------- */
.pied { max-width: var(--large); margin: 0 auto; padding: 36px var(--marge) 48px; border-top: 1px solid var(--encre); display: grid; gap: 28px; font-size: .95rem; color: var(--gris); }
@media (min-width: 820px) { .pied { grid-template-columns: 1.3fr 1fr 1fr; } }
.pied-col { display: grid; gap: 6px; align-content: start; }
.pied-col p { margin: 0; }
.pied-col img { width: 64px; mix-blend-mode: multiply; margin-bottom: 8px; }
.pied-col a { color: var(--encre); }
nav.pied-col a { font-size: .64rem; text-decoration: none; }
.legal p { font-size: .82rem; }

/* ---------- visionneuse ---------- */
.visionneuse { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(14, 13, 12, .96); color: #fff; }
.visionneuse::backdrop { background: rgba(14, 13, 12, .96); }
.visionneuse img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); width: auto; height: auto; object-fit: contain; }
.visionneuse button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.6rem/1 var(--serif); cursor: pointer; padding: 14px 18px; opacity: .8; }
.visionneuse button:hover, .visionneuse button:focus-visible { opacity: 1; }
.v-fermer { top: 6px; right: 6px; }
.v-prec { left: 4px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .tete { padding-top: 16px; padding-bottom: 12px; }
  .marque img { width: 46px; }
  .marque span { font-size: .9rem; letter-spacing: .22em; }
  .menu { gap: 4px 18px; }
  .menu a { font-size: .66rem; }
  .date { grid-template-columns: 1fr; }
  .d-lieu { font-size: 1.02rem; }
  .h-annee { grid-template-columns: 1fr; gap: 10px; }
  .texte { font-size: 1.08rem; }
}

/* logos des partenaires : à leur échelle, dans la colonne de texte */
.p-partenaires .photo.seule { max-width: var(--texte); margin-top: -18px; }
.p-partenaires .photo.seule img { max-height: 96px; max-width: 220px; width: auto; margin: 0; mix-blend-mode: multiply; }
.p-partenaires .fiche-corps { gap: 18px; }

/* ---------- ajouts du back-office : mises en page choisies par la compagnie ---------- */
.texte .a-centre { text-align: center; }
.texte .a-droite { text-align: right; }
.texte .a-justifie { text-align: justify; hyphens: auto; }
.texte ul, .texte ol { margin: 0 0 .9em; padding-left: 1.3em; }
.texte li { margin: 0 0 .3em; }
.texte blockquote { margin: 0 0 .9em; padding-left: 1em; border-left: 2px solid var(--rouge); font-style: italic; }
.cote-a-cote > .col, .sec .col { display: grid; gap: clamp(28px, 4vw, 48px); align-content: start; min-width: 0; }
.cote-a-cote .col .texte, .sec .col .texte, .sec .col .sons { margin: 0; }
@media (min-width: 900px) {
  .cote-a-cote.cote-droite { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sec-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .sec-deux > .sec-int { display: contents; }
  .sec.fond-papier.sec-deux > .sec-int, .sec.fond-rouge.sec-deux > .sec-int, .sec.fond-noir.sec-deux > .sec-int { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
}
.sec-deux { display: grid; gap: 28px; }
.sec { min-width: 0; }
.sec > .sec-int { display: grid; gap: clamp(28px, 4vw, 48px); }
.cote-a-cote.fond-papier, .cote-a-cote.fond-rouge, .cote-a-cote.fond-noir { display: block; }
@media (min-width: 900px) {
  .cote-a-cote.fond-papier > .sec-int, .cote-a-cote.fond-rouge > .sec-int, .cote-a-cote.fond-noir > .sec-int { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .cote-a-cote.cote-droite.fond-papier > .sec-int, .cote-a-cote.cote-droite.fond-rouge > .sec-int, .cote-a-cote.cote-droite.fond-noir > .sec-int { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* fonds : bande pleine largeur */
.fond-papier, .fond-rouge, .fond-noir { margin-inline: calc(-1 * var(--marge)); padding: clamp(32px, 5vw, 64px) var(--marge); }
@media (min-width: 1240px) { .fond-papier, .fond-rouge, .fond-noir { margin-inline: calc(50% - 50vw); padding-inline: max(var(--marge), calc(50vw - 620px + var(--marge))); } }
.fond-papier { background: var(--fond-doux); }
.fond-rouge { background: var(--rouge); color: #fff; }
.fond-noir { background: var(--encre); color: var(--papier); }
.fond-rouge a:hover, .fond-noir a:hover { color: inherit; opacity: .8; }
.fond-rouge .texte .role, .fond-noir .texte .role { border-color: rgba(255, 255, 255, .25); }
.fond-rouge .texte .r-role, .fond-noir .texte .r-role, .fond-rouge .son-nom, .fond-noir .son-nom, .fond-rouge figcaption, .fond-noir figcaption { color: inherit; opacity: .85; }
.fond-rouge .texte .doc a, .fond-noir .texte .doc a { border-color: currentColor; }
.fond-rouge .texte .doc a::after { color: inherit; }
.fond-rouge hr.pause, .fond-noir hr.pause { background: rgba(255, 255, 255, .3); }
.fond-rouge blockquote, .fond-noir blockquote { border-color: currentColor; }
.fond-rouge .galerie.dessins img, .fond-noir .galerie.dessins img { mix-blend-mode: normal; }
/* galeries */
.galerie figure figcaption, .photo.seule figcaption { font-size: .92rem; color: var(--gris); font-style: italic; margin-top: 6px; }
.photo.seule figcaption { text-align: center; }
.galerie.mosaique { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 45vw), 1fr)); gap: 8px; }
.galerie.mosaique::after { display: none; }
.galerie.mosaique img { aspect-ratio: 1; }
.galerie.grande { display: grid; gap: clamp(16px, 3vw, 32px); max-width: 1000px; width: 100%; margin: 0 auto; }
.galerie.grande::after { display: none; }
.galerie.grande img { aspect-ratio: auto; height: auto; }
/* vidéo envoyée en fichier */
.video video { width: 100%; aspect-ratio: 16 / 9; background: #111; display: block; }
/* citation mise en avant */
.bloc-citation { margin: 0 auto; max-width: 46rem; width: 100%; text-align: center; }
.bloc-citation blockquote { margin: 0; }
.bloc-citation p { margin: 0; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; }
.bloc-citation figcaption { margin-top: 14px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--gris); }
.fond-rouge .bloc-citation figcaption, .fond-noir .bloc-citation figcaption { color: inherit; opacity: .8; }
/* page introuvable */
.introuvable { padding: clamp(60px, 12vw, 140px) 0; text-align: center; }
.introuvable h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 18px; }
/* blocs de texte qui se suivent (texte, distribution, document) : l'écart d'un paragraphe, comme un seul texte */
.texte + .texte { margin-top: calc(.9em - clamp(28px, 4vw, 48px)); }
.texte.distribution .d-titre { margin: 0 0 .4em; }
.texte.distribution .d-inter { margin: 1em 0 .4em; font-style: italic; }

/* Placement d'un bloc photo choisi dans l'éditeur (alignement et taille). Sans réglage, rien ne change. */
.galerie.t-moyenne, .photo.seule.t-moyenne { width: 100%; max-width: 66%; margin-left: auto; margin-right: auto; }
.galerie.t-petite, .photo.seule.t-petite { width: 100%; max-width: 40%; margin-left: auto; margin-right: auto; }
@media (max-width: 699px) {
  .galerie.t-moyenne, .photo.seule.t-moyenne { max-width: 100%; }
  .galerie.t-petite, .photo.seule.t-petite { max-width: 70%; }
}
.galerie.al-gauche, .photo.seule.al-gauche { margin-left: 0; margin-right: auto; }
.galerie.al-centre, .photo.seule.al-centre, .galerie.al-justifie.t-moyenne, .galerie.al-justifie.t-petite { margin-left: auto; margin-right: auto; }
.galerie.al-droite, .photo.seule.al-droite { margin-left: auto; margin-right: 0; }
/* galerie à gauche, au centre ou à droite : photos à la même hauteur, rangées calées sur ce côté */
.galerie.al-gauche, .galerie.al-centre, .galerie.al-droite { --h: 190px; }
@media (min-width: 900px) { .galerie.al-gauche, .galerie.al-centre, .galerie.al-droite { --h: 240px; } }
.galerie.al-gauche::after, .galerie.al-centre::after, .galerie.al-droite::after, .galerie.al-justifie::after { display: none; }
.galerie.al-gauche:not(.mosaique):not(.grande) figure, .galerie.al-centre:not(.mosaique):not(.grande) figure, .galerie.al-droite:not(.mosaique):not(.grande) figure { flex: 0 1 calc(var(--r) * var(--h)); }
.galerie.al-centre { justify-content: center; }
.galerie.al-droite { justify-content: flex-end; }
.galerie.mosaique.al-gauche, .galerie.mosaique.al-centre, .galerie.mosaique.al-droite { grid-template-columns: repeat(auto-fill, min(220px, 45vw)); }
.galerie.mosaique.al-centre { justify-content: center; }
.galerie.mosaique.al-droite { justify-content: end; }
.cote-a-cote .galerie.dessins.al-gauche, .cote-a-cote .galerie.dessins.al-centre, .cote-a-cote .galerie.dessins.al-droite { display: flex; }
/* photo seule : à sa taille naturelle, collée au côté choisi ; justifiée, elle prend toute la largeur */
.photo.seule.al-gauche, .photo.seule.al-centre, .photo.seule.al-droite { max-width: 820px; }
.photo.seule.al-gauche.t-moyenne, .photo.seule.al-centre.t-moyenne, .photo.seule.al-droite.t-moyenne { max-width: 66%; }
.photo.seule.al-gauche.t-petite, .photo.seule.al-centre.t-petite, .photo.seule.al-droite.t-petite { max-width: 40%; }
.photo.seule.al-gauche img, .photo.seule.al-gauche figcaption { margin-left: 0; text-align: left; }
.photo.seule.al-droite img { margin-right: 0; }
.photo.seule.al-droite figcaption { text-align: right; }
.photo.seule.al-justifie { max-width: none; }
.photo.seule.al-justifie.t-moyenne { max-width: 66%; }
.photo.seule.al-justifie.t-petite { max-width: 40%; }
.photo.seule.al-justifie img { width: 100%; max-height: none; }
@media (max-width: 699px) {
  .photo.seule.al-gauche.t-moyenne, .photo.seule.al-centre.t-moyenne, .photo.seule.al-droite.t-moyenne { max-width: 100%; }
  .photo.seule.al-gauche.t-petite, .photo.seule.al-centre.t-petite, .photo.seule.al-droite.t-petite { max-width: 70%; }
  .photo.seule.al-justifie.t-moyenne { max-width: 100%; }
  .photo.seule.al-justifie.t-petite { max-width: 70%; }
}
