/* ==========================================================================
   Discours Horizontaux – accueil
   Une salle de spectacle : le noir de la scène, la lumière ambrée des projecteurs,
   le rouge du rideau. Titres en Oswald (le dessin du logo « dh »),
   textes en Goudy, comme le livre de Libre Entente.
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  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: "Oswald";
  src: url("../fonts/oswald-ext.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Goudy";
  src: url("../fonts/goudy.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
  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: "Goudy";
  src: url("../fonts/goudy-ext.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}
@font-face {
  font-family: "Goudy";
  src: url("../fonts/goudy-italique.woff2") format("woff2");
  font-style: italic; font-weight: 400; font-display: swap;
  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: "Goudy";
  src: url("../fonts/goudy-italique-ext.woff2") format("woff2");
  font-style: italic; font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}

:root {
  --nuit: #15100E;          /* le noir de la salle */
  --planche: #1F1814;       /* le plancher de la scène */
  --craie: #F2E8D8;
  --craie-douce: #B9A995;
  --projecteur: #EDB65F;    /* lumière ambrée des photos */
  --projecteur-fonce: #D59A3C;
  --rideau: #7B1F22;
  --filet: rgba(242, 232, 216, .16);

  --titre: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "Goudy", "Iowan Old Style", Palatino, Georgia, serif;
  --marge: clamp(1.25rem, 5vw, 4rem);
  --largeur: 78rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--craie);
  font-family: var(--texte);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.6;
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--projecteur); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--projecteur); }
:focus-visible { outline: 2px solid var(--projecteur); outline-offset: 3px; border-radius: 2px; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--projecteur); color: var(--nuit); padding: .5rem 1rem; }
.evitement:focus { top: 1rem; }

/* En-tête ----------------------------------------------------------------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem max(var(--marge), calc((100vw - var(--largeur)) / 2 + var(--marge)));
  padding-top: calc(.8rem + env(safe-area-inset-top, 0px));
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.entete.pleine { background: rgba(21, 16, 14, .9); backdrop-filter: blur(8px); border-bottom-color: var(--filet); }
.entete__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.entete__logo img { width: 2rem; height: 2rem; border-radius: 3px; }
.entete__logo span { font-family: var(--titre); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; opacity: 0; transition: opacity .3s; }
.entete.pleine .entete__logo span { opacity: 1; }
.entete__nav { display: flex; gap: .3rem 1.6rem; flex-wrap: wrap; font-family: var(--titre); font-weight: 400; font-size: 1.02rem; letter-spacing: .02em; }
.entete__nav a { text-decoration: none; color: var(--craie); opacity: .85; }
.entete__nav a:hover, .entete__nav a[aria-current="true"] { color: var(--projecteur); opacity: 1; }
@media (max-width: 40rem) {
  .entete__logo span { display: none; }
  .entete__nav { gap: .2rem 1rem; font-size: .95rem; }
}

/* La scène ---------------------------------------------------------------- */
.scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.scene__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  filter: saturate(1.15) contrast(1.05);
  animation: lumieres 2.4s ease-out both;
}
/* les lumières de la salle montent : le seul effet automatique du site */
@keyframes lumieres { from { opacity: 0; filter: saturate(1.15) contrast(1.05) brightness(.2); } }

.scene__voile {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 35%, transparent 30%, rgba(21,16,14,.55) 75%),
    linear-gradient(180deg, rgba(21,16,14,.55) 0%, transparent 22%, transparent 45%, rgba(21,16,14,.92) 82%, var(--nuit) 100%);
}
.scene__texte {
  max-width: var(--largeur); width: 100%; margin-inline: auto;
  padding: 0 var(--marge) clamp(3rem, 9vh, 6rem);
  animation: entree 1.2s .9s ease-out both;
}
@keyframes entree { from { opacity: 0; transform: translateY(1rem); } }

.scene__genre {
  font-family: var(--titre); font-weight: 400; letter-spacing: .04em;
  color: var(--projecteur); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  margin-bottom: .6rem;
}
h1 {
  font-family: var(--titre); font-weight: 300;
  font-size: clamp(3.6rem, 1.5rem + 9vw, 9.5rem);
  line-height: .9; letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.scene__devise { font-style: italic; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); max-width: 26em; margin-bottom: 2rem; color: var(--craie); }

.scene__pause {
  position: absolute; right: max(var(--marge), calc((100vw - var(--largeur)) / 2 + var(--marge))); bottom: 1.2rem;
  font: inherit; font-size: .9rem; color: var(--craie-douce);
  background: rgba(21,16,14,.5); border: 1px solid var(--filet); border-radius: 2rem;
  padding: .35rem .9rem; cursor: pointer;
}
.scene__pause:hover { color: var(--craie); }
@media (max-width: 40rem) { .scene__pause { bottom: auto; top: 4.2rem; } }

/* Boutons ------------------------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.bouton {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--titre); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.2;
  padding: .8em 1.3em;
  border: 1px solid rgba(242,232,216,.55); border-radius: 2px;
  background: transparent; color: var(--craie); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bouton:hover { border-color: var(--projecteur); color: var(--projecteur); }
.bouton--plein { background: var(--projecteur); border-color: var(--projecteur); color: var(--nuit); }
.bouton--plein:hover { background: var(--craie); border-color: var(--craie); color: var(--nuit); }
.bouton[aria-pressed="true"] { border-color: var(--projecteur); color: var(--projecteur); }

/* Blocs ------------------------------------------------------------------- */
.bloc {
  max-width: var(--largeur); margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--marge) 0;
}
.titre {
  font-family: var(--titre); font-weight: 300;
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.8rem);
  line-height: 1; letter-spacing: -.005em;
  margin-bottom: 1.6rem;
}
.sous-titre { font-family: var(--titre); font-weight: 400; font-size: 1.6rem; margin: 2rem 0 -1rem; }
.chapeau { font-size: 1.35em; line-height: 1.4; }

/* Le spectacle */
.spectacle { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .spectacle { grid-template-columns: 5fr 7fr; column-gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .spectacle .sous-titre, .distribution { grid-column: 1 / -1; }
}
.spectacle__intro p { max-width: 32em; color: var(--craie); }
.spectacle__intro p + p { color: var(--craie-douce); }
.spectacle__photo { margin: 0; }
.spectacle__photo img { width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }

.distribution { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 40rem) { .distribution { grid-template-columns: 1fr; } }
.membre { position: relative; overflow: hidden; background: var(--planche); }
.membre__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
@media (max-width: 40rem) { .membre__photo { aspect-ratio: 3 / 2; } }
.membre__photo--chris { object-position: 52% 50%; }
.membre__photo--pierrot { object-position: 42% 50%; }
.membre__photo--nico { object-position: 30% 50%; }
.membre:hover .membre__photo { transform: scale(1.03); }
.membre__nom {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(21,16,14,.85));
  font-family: var(--titre); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1;
}

/* Le poème : une page de papier posée sur la scène */
.poeme {
  margin: 0 auto;
  max-width: 40rem;
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.6rem, 7vw, 5rem);
  background-color: #E6D8C2;
  background-image:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(120, 85, 50, .28)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: #231B16;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.poeme blockquote { margin: 0; }
.poeme p {
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  line-height: 1.45;
  margin: 0 0 1.4em;
}
.poeme p:last-child { margin-bottom: 0; }
.poeme figcaption {
  margin-top: 2rem;
  text-align: right;
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  color: #6B3A22;
}
.poeme figcaption::before { content: "— "; }

/* Unissons : les photos sous le texte */
.etape__galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.etape__galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--planche); }
.etape__galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.etape__galerie a:hover img { transform: scale(1.04); }
@media (min-width: 56rem) { .etape__galerie { grid-column: 2 / -1; } }
@media (max-width: 30rem) { .etape__galerie { grid-template-columns: 1fr 1fr; } }

.bouton__externe { opacity: .75; }

/* Parcours : une étape par date */
.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etape {
  position: relative;
  display: grid; gap: 1.2rem 2rem;
  padding: 0 0 clamp(3.5rem, 8vw, 6rem) 1.6rem;
  border-left: 1px solid var(--filet);
}
.etape:last-child { padding-bottom: 0; }
.etape::before {
  content: ""; position: absolute; left: -5px; top: .9rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--projecteur);
  box-shadow: 0 0 0 4px var(--nuit), 0 0 18px 2px rgba(237,182,95,.45);
}
.etape__annee {
  font-family: var(--titre); font-weight: 300; color: var(--projecteur);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; margin: 0;
}
.etape__media { display: block; }
.etape__media img { width: 100%; }
.etape__type { font-family: var(--titre); color: var(--craie-douce); letter-spacing: .03em; margin-bottom: .3rem; }
.etape h3 { font-family: var(--titre); font-weight: 300; font-size: clamp(2.2rem, 1.7rem + 2vw, 3.4rem); line-height: 1; margin-bottom: 1rem; }
.etape__texte p:not(.etape__type) { max-width: 32em; }
.etape__texte .actions { margin: 1.6rem 0 1.1rem; }
.etape__note { color: var(--craie-douce); font-size: .95em; }

@media (min-width: 56rem) {
  .etape {
    grid-template-columns: 9rem minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    padding-left: 2.4rem;
  }
  .etape__annee { padding-top: .2rem; }
  .etape__texte { padding-top: .4rem; }
  .etape--affiche .etape__media { max-width: 24rem; }
}

.affiche { overflow: hidden; }
.affiche img { box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), 0 0 0 1px var(--filet); transition: transform .5s ease; }
.affiche:hover img { transform: scale(1.015); }

/* le livre posé sous la lumière */
.album__livre {
  display: block; position: relative;
  perspective: 1400px;
  padding: clamp(1rem, 4vw, 3rem);
  background: radial-gradient(60% 55% at 50% 45%, rgba(237,182,95,.22), transparent 70%);
}
.album__livre img {
  border-radius: 2px 6px 6px 2px;
  transform: rotateY(-14deg) rotateX(3deg);
  transform-origin: left center;
  box-shadow: 24px 30px 50px -18px rgba(0,0,0,.85), 2px 0 0 rgba(255,255,255,.04) inset;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.album__livre:hover img, .album__livre:focus-visible img { transform: rotateY(-30deg) rotateX(2deg) translateX(-2%); }

.album__toile img { box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); transform: rotate(-1.5deg); max-width: 26rem; }

/* Photos */
.galerie { list-style: none; margin: 0; padding: 0; columns: 3 17rem; column-gap: .8rem; }
.galerie li { break-inside: avoid; margin-bottom: .8rem; }
.galerie a { display: block; overflow: hidden; background: var(--planche); }
.galerie img { width: 100%; transition: transform .5s ease, filter .5s ease; filter: brightness(.92); }
.galerie a:hover img { transform: scale(1.03); filter: none; }
.photos { padding-bottom: clamp(4rem, 10vw, 7rem); }
.credit { color: var(--craie-douce); font-size: .95rem; font-style: italic; margin-top: 1rem; }

.visionneuse { max-width: min(94vw, 80rem); max-height: 94svh; padding: 0; border: 0; background: var(--nuit); color: var(--craie); }
.visionneuse::backdrop { background: rgba(8, 5, 4, .9); }
.visionneuse img { max-height: calc(94svh - 5rem); width: auto; margin-inline: auto; }
.visionneuse__bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .8rem 1rem; }
.visionneuse__legende { margin: 0; font-style: italic; font-size: 1rem; color: var(--craie-douce); }
.visionneuse__commandes { display: flex; gap: .5rem; }
.visionneuse__commandes button {
  font-family: var(--titre); font-size: .95rem; color: var(--craie);
  background: none; border: 1px solid var(--filet); padding: .4em .9em; cursor: pointer;
}
.visionneuse__commandes button:hover { border-color: var(--projecteur); color: var(--projecteur); }

/* Pied */
.pied {
  border-top: 1px solid var(--filet);
  padding: 2.5rem var(--marge) calc(3rem + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: center; gap: .3rem; text-align: center;
  color: var(--craie-douce); font-size: .95rem;
}
.pied img { border-radius: 3px; margin-bottom: .6rem; }
.pied p { margin: 0; }

.pied__memoire { margin-top: 1.2rem !important; font-style: italic; color: var(--craie); }
