/* L’Antre du Deck : feuille de styles
   Charte : Amarante (titres, en capitales) et Alegreya Sans (texte).
   Palette : parchemin, bois sculpté, bois clair, encre, bleu mascotte, or cuivré.
   Un seul arrondi (24 px), 14 px pour ce qui est imbriqué. */

@font-face {
  font-family: "Amarante";
  src: url("fonts/amarante-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-400-italique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette de la charte */
  --bois: #936A53;
  --bois-clair: #B58C70;
  --bleu: #32A5C8;
  --parchemin: #EDE2C6;
  --or: #E0B87D;
  --encre: #463F34;

  /* Nuances dérivées, pour le survol et les aplats */
  --bois-fonce: #7D5945;
  --or-fonce: #D4A563;
  --parchemin-clair: #F4ECDA;
  --parchemin-fonce: #E4D5B2;

  --police-titre: "Amarante", Georgia, serif;
  --police-texte: "Alegreya Sans", system-ui, sans-serif;

  --rayon: 24px;
  --rayon-imbrique: 14px;
  --ombre-pose: 0 26px 48px -24px rgb(70 63 52 / 0.6), 0 4px 12px -4px rgb(70 63 52 / 0.25);

  --duree: 200ms;
  --courbe: cubic-bezier(0.2, 0.7, 0.3, 1);

  --largeur: 1200px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --espace-section: clamp(52px, 5.5vw, 88px);

  --taille-chapeau: 1.1875rem;
  --taille-legende: 0.875rem;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--parchemin);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--police-texte);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
cite { font-style: italic; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(1.875rem, 1.25rem + 1.8vw, 2.875rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem); line-height: 1.1; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--bois-clair);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--duree) ease, background-color var(--duree) ease;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  border-radius: 4px;
}
.accroche :focus-visible,
.bande-bois :focus-visible,
.ardoise :focus-visible,
.lecteur :focus-visible,
.pied :focus-visible { outline-color: #fff; }

[id] { scroll-margin-top: 24px; }

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.evitement {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: var(--rayon-imbrique);
  background: var(--parchemin);
  color: var(--encre);
  font-weight: 700;
}
.evitement:focus { top: 16px; }

.chapeau {
  font-size: var(--taille-chapeau);
  line-height: 1.55;
  max-width: 42ch;
}

.mention {
  font-size: var(--taille-legende);
  font-weight: 500;
}

/* Le symbole de l’heure reste en minuscule dans les titres en capitales */
.unite { text-transform: none; }

/* Pictogrammes au trait fin et logos des réseaux */

.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--32 { width: 32px; height: 32px; }

.reseau {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* Boutons : toujours pleins */

.bouton {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--rayon-imbrique);
  background: var(--bois);
  color: #fff;
  font: 700 1.0625rem/1.2 var(--police-texte);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duree) ease;
}
.bouton:hover { background: var(--bois-fonce); }

.bouton--or { background: var(--or); color: var(--encre); }
.bouton--or:hover { background: var(--or-fonce); }

/* Ruban à bouts fendus, repris des miniatures de la chaîne */

.ruban {
  display: inline-block;
  padding: 7px 26px 6px;
  background: var(--parchemin);
  color: var(--encre);
  font: 400 1rem/1.2 var(--police-titre);
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%, 11px 50%);
}
.ruban--or { background: var(--or); }

/* Surlignage au feutre, une seule couleur : l’or */

mark {
  color: inherit;
  padding: 0.04em 0.12em;
  margin-inline: -0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0 5.6C24 3.4 61 5.2 100 2.8L99.6 19.6C66 21.2 31 19.4.4 21.8Z' fill='%23E3C08C'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tableaux et photos posés, avec leur légende */

.tableau img {
  width: 100%;
  height: auto;
  border-radius: var(--rayon-imbrique);
  box-shadow: var(--ombre-pose);
}
.tableau figcaption {
  margin-top: 16px;
  font-size: var(--taille-legende);
  line-height: 1.5;
}
.tableau figcaption span {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 500;
}

/* Menu replié pour téléphone et tablette */

.menu-mobile { display: none; }
.menu-mobile summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: var(--rayon-imbrique);
  background: var(--parchemin-clair);
  color: var(--encre);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--duree) ease;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary:hover { background: var(--parchemin); }
.menu-mobile[open] .ic-ouvrir,
.menu-mobile:not([open]) .ic-fermer { display: none; }
.menu-mobile ul {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 8px 20px;
  border-radius: var(--rayon);
  background: var(--parchemin-clair);
  color: var(--encre);
  list-style: none;
  box-shadow: var(--ombre-pose);
}
.menu-mobile li + li { border-top: 1.5px solid var(--parchemin-fonce); }
.menu-mobile ul a {
  display: block;
  padding: 14px 0;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

/* Haut de page : Guillaume détouré sur fond d’encre */

/* Fond de studio : une lumière chaude derrière Guillaume, les bords plus sombres, un léger grain */
.accroche {
  position: relative;
  padding-top: 128px;
  background:
    radial-gradient(ellipse 46% 62% at 29% 60%, rgb(132 114 90 / 0.6), transparent 72%),
    radial-gradient(ellipse 130% 110% at 45% 40%, transparent 48%, rgb(24 20 15 / 0.6) 100%),
    var(--encre);
  color: var(--parchemin);
  overflow: hidden;
}
.accroche::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.accroche-corps { position: relative; }

/* L’en-tête est posé par-dessus le haut de page */
.entete-site {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: var(--parchemin);
}
.entete-site :focus-visible { outline-color: #fff; }

.entete {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.marque {
  flex: none;
  border-radius: var(--rayon-imbrique);
}
.marque img { width: 100px; height: auto; }

.navigation { display: flex; align-items: center; gap: 10px; }
.navigation > ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation a:not(.bouton) {
  font-weight: 500;
  text-decoration-color: transparent;
}
.navigation a:not(.bouton):hover { text-decoration-color: var(--bois-clair); }

.accroche-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: clamp(460px, 70vh, 640px);
}

.accroche-portrait {
  position: relative;
  align-self: end;
  justify-self: center;
}
.accroche-portrait img {
  width: auto;
  height: clamp(420px, 64vh, 580px);
  max-width: none;
  /* Ombre portée sur le fond, du côté opposé à la lumière */
  filter: drop-shadow(26px 18px 34px rgb(14 11 8 / 0.55));
}
.accroche-portrait .ruban {
  position: absolute;
  right: 4%;
  bottom: 18%;
}

.accroche-texte {
  align-self: center;
  padding-block: 32px 64px;
}
.accroche h1 {
  font-size: clamp(2.5rem, 1.5rem + 2.8vw, 4rem);
  line-height: 0.95;
}
.accroche .chapeau { margin-top: 28px; }

.offre {
  margin-top: 18px;
  max-width: 42ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.actions > a:not(.bouton) { font-weight: 500; }

.prochaine {
  margin-top: 22px;
  font-weight: 500;
}
.prochaine::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--bleu);
  vertical-align: 1px;
}

/* Bande de bois : ce qui vous amène */

.bande-bois {
  padding-block: var(--espace-section);
  background: var(--bois);
  color: #fff;
}
.bande-bois .intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 20px clamp(40px, 6vw, 96px);
  align-items: end;
}
.bande-bois .note { margin-top: 48px; max-width: 60ch; }
.glisser { display: none; font-size: var(--taille-legende); font-weight: 500; }

/* La main : une carte par thème, tenue en éventail */

.main-cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: clamp(36px, 4.5vw, 56px);
  padding: 0 0 20px;
  list-style: none;
}
.carte-theme {
  --angle: 0deg;
  --decalage: 0px;
  position: relative;
  display: flex;
  padding: 10px;
  border-radius: var(--rayon);
  background: var(--parchemin-clair);
  color: var(--encre);
  box-shadow: 0 30px 50px -26px rgb(30 22 15 / 0.75), 0 4px 12px -4px rgb(30 22 15 / 0.3);
  transform: translateY(var(--decalage)) rotate(var(--angle));
  transition: transform var(--duree) var(--courbe);
}
.carte-theme:nth-child(1) { --angle: -3deg; --decalage: 18px; }
.carte-theme:nth-child(2) { --angle: -1deg; --decalage: 4px; }
.carte-theme:nth-child(3) { --angle: 1deg; --decalage: 4px; }
.carte-theme:nth-child(4) { --angle: 3deg; --decalage: 18px; }
.carte-theme:hover {
  z-index: 1;
  transform: translateY(calc(var(--decalage) - 10px)) rotate(0deg);
}

.ct-cadre {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 2px solid var(--bois-clair);
  border-radius: var(--rayon-imbrique);
}
.ct-cadre h3 { font-size: 1.1875rem; }
/* L’œuvre entière, posée dans un passe-partout couleur encre */
.ct-cadre picture {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: 8px;
  border-radius: var(--rayon-imbrique);
  background: var(--encre);
}
.ct-cadre img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ct-citation {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}
.ct-cadre p:not([class]) {
  padding-top: 12px;
  border-top: 1.5px solid var(--bois-clair);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.ct-credit {
  margin-top: auto;
  font-size: var(--taille-legende);
}

/* La carte : l’ardoise encadrée de bois, la séance posée sur son bord droit */

.table-carte {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.table-carte .ardoise { grid-column: 1 / 11; grid-row: 1; }
.table-carte .carte-seance { grid-column: 9 / 13; grid-row: 1; z-index: 1; }

.carte-seance {
  justify-self: center;
  display: grid;
  gap: 8px;
  width: min(100%, 300px);
  padding: 12px;
  border-radius: var(--rayon);
  background: var(--bois);
  box-shadow: var(--ombre-pose);
  transform: rotate(3deg);
  transition: transform var(--duree) var(--courbe);
}
.carte-seance:hover { transform: rotate(1deg); }

.cs-titre,
.cs-type,
.cs-texte {
  border-radius: var(--rayon-imbrique);
  background: var(--parchemin-clair);
}
.cs-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  font: 400 1.1875rem/1.05 var(--police-titre);
  text-transform: uppercase;
}
.cs-cout {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--or);
  font: 400 1rem/1 var(--police-titre);
}
.cs-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  border-radius: var(--rayon-imbrique);
  background: var(--encre);
}
.cs-art img { width: 124px; height: auto; }
.cs-type {
  padding: 6px 16px;
  font: 400 1.0625rem/1.2 var(--police-titre);
  text-transform: uppercase;
}
.cs-texte {
  display: grid;
  gap: 10px;
  padding: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.cs-ambiance {
  padding-top: 10px;
  border-top: 1.5px solid var(--bois-clair);
  font-style: italic;
}
.cs-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 0 10px;
  color: #fff;
  font-size: var(--taille-legende);
  font-weight: 700;
}
.cs-force {
  padding: 4px 16px;
  border-radius: var(--rayon-imbrique);
  background: var(--parchemin-clair);
  color: var(--encre);
  font: 400 1.125rem/1.2 var(--police-titre);
}

.ardoise {
  padding: 14px;
  border-radius: var(--rayon);
  background: var(--bois);
}
.ardoise-surface {
  position: relative;
  padding: clamp(24px, 3.5vw, 48px);
  padding-right: calc(16% + 48px);
  border-radius: var(--rayon-imbrique);
  background: var(--encre);
  color: var(--parchemin);
  overflow: hidden;
}
.ardoise-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.ardoise-surface > * { position: relative; }
.ardoise h2 { color: var(--parchemin); }
.ardoise .chapeau { margin-top: 16px; max-width: 46ch; }

.prix-ardoise {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 32px;
  margin-top: 26px;
  padding-bottom: 24px;
  border-bottom: 2px dotted rgb(181 140 112 / 0.7);
}
.montant {
  padding-bottom: 0.1em;
  color: var(--or);
  font: 400 clamp(3.5rem, 2.2rem + 3.6vw, 5.5rem)/0.85 var(--police-titre);
  white-space: nowrap;
  /* Trait tracé à la main sous le prix */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.6C24 3.2 47 8 70 4.8S107 3.2 118 5.8' fill='none' stroke='%23E0B87D' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / 100% 0.12em no-repeat;
}
.montant-detail {
  max-width: 28ch;
  padding-bottom: 12px;
  font-size: var(--taille-chapeau);
  line-height: 1.45;
}

.conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  margin-top: 26px;
}
.conditions > div { display: grid; gap: 6px; align-content: start; }
.conditions dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.conditions dt .ic { color: var(--or); }
.conditions .valeur {
  color: var(--or);
  font: 400 1.3125rem/1.15 var(--police-titre);
  text-transform: uppercase;
}
.conditions dd:last-child { font-size: 1rem; line-height: 1.5; }

.ardoise-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px dotted rgb(181 140 112 / 0.7);
}
.ardoise-pied .mention { max-width: 40ch; }

/* Le déroulé, dans le temps */

.section { padding-block: var(--espace-section); }

.entete-section { max-width: 46rem; }

.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 0;
  list-style: none;
}
.moments li {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 44px;
}
.moments li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bleu);
}
.moments li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 30px;
  right: -28px;
  height: 2px;
  background: var(--bois-clair);
}
.moment {
  color: var(--bois);
  font: 400 clamp(1.625rem, 1.2rem + 1vw, 2.25rem)/1 var(--police-titre);
  text-transform: uppercase;
}
.moments h3 {
  font-family: var(--police-texte);
  font-size: var(--taille-chapeau);
  font-weight: 700;
  text-transform: none;
}

/* La synthèse : une fiche d’exemple posée sur la table */
.deroule-images { margin-top: clamp(40px, 5vw, 64px); }
.synthese-bloc {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 440px);
  justify-content: center;
  gap: 32px clamp(40px, 6vw, 88px);
  align-items: center;
}
.synthese-bloc figcaption { display: grid; gap: 14px; align-content: center; max-width: 42ch; }
.synthese-bloc h3 {
  font-family: var(--police-texte);
  font-size: var(--taille-chapeau);
  font-weight: 700;
  text-transform: none;
}
.synthese-feuille {
  justify-self: center;
  width: min(100%, 440px);
  transform: rotate(-2deg);
  transition: transform var(--duree) var(--courbe);
}
.synthese-feuille:hover { transform: rotate(0deg); }
.synthese {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 26px rgb(70 63 52 / 0.32)) drop-shadow(0 3px 6px rgb(70 63 52 / 0.18));
}
/* Une seule fois, à l’apparition : le feutre passe sous la phrase clé, puis les cases se cochent */
.js .synthese .surligne {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
}
.js .synthese .coche { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .est-visible .synthese .surligne { transform: scaleX(1); transition: transform 600ms var(--courbe) 500ms; }
.js .est-visible .synthese .coche { stroke-dashoffset: 0; transition: stroke-dashoffset 300ms ease 1100ms; }
.js .est-visible .synthese .coche:nth-child(2) { transition-delay: 1350ms; }
.js .est-visible .synthese .coche:nth-child(3) { transition-delay: 1600ms; }

/* Le fondateur */

.bande-claire {
  padding-block: var(--espace-section);
  background: var(--parchemin-clair);
}

.fondateur {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.fondateur .tableau { justify-self: end; width: min(100%, 360px); }

.presentation { display: grid; gap: 24px; }

.citation blockquote {
  display: grid;
  gap: 16px;
  font-size: var(--taille-chapeau);
  line-height: 1.55;
}
.citation figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-weight: 700;
}
.citation figcaption img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 25%;
  border: 3px solid var(--bois);
  border-radius: 50%;
  outline: 2px dotted var(--or);
  outline-offset: -7px;
}

/* La chaîne : un lecteur pour regarder une vidéo sans quitter la page */

.bande-chaine {
  padding-block: var(--espace-section);
  background: var(--bois);
  color: #fff;
}
.bande-chaine :focus-visible { outline-color: #fff; }

.chaine {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(36px, 5vw, 72px);
  align-items: start;
}
.chaine-texte { display: grid; gap: 20px; align-content: start; }
.chaine-texte .bouton {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.bande-chaine .liens-reseaux a { text-decoration-color: rgb(255 255 255 / 0.5); }

.lecteur {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--encre);
  box-shadow: 0 30px 50px -26px rgb(30 22 15 / 0.75), 0 4px 12px -4px rgb(30 22 15 / 0.3);
}
.lecteur iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lecteur-affiche {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px);
  color: var(--parchemin);
  text-decoration: none;
  background-color: var(--encre);
  background-image:
    linear-gradient(rgb(70 63 52 / 0.45), rgb(70 63 52 / 0.45)),
    url("images/fond-taverne-flou.webp");
  background-image:
    linear-gradient(rgb(70 63 52 / 0.45), rgb(70 63 52 / 0.45)),
    image-set(url("images/fond-taverne-flou.avif") type("image/avif"), url("images/fond-taverne-flou.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
}
.lecteur-haut { display: grid; gap: 16px; justify-items: start; }
.lecteur-titre {
  max-width: 20ch;
  font: 400 clamp(1.375rem, 0.9rem + 1.3vw, 2rem)/1.05 var(--police-titre);
  text-transform: uppercase;
  text-wrap: balance;
}
.lecteur-pied {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
  font-weight: 700;
}
.lecteur-lire {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--or);
  color: var(--encre);
  transition: background-color var(--duree) ease, transform var(--duree) var(--courbe);
}
.lecteur-lire svg { margin-left: 3px; }
.lecteur-affiche:hover .lecteur-lire { background: var(--or-fonce); transform: scale(1.06); }

.episodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.episodes a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 2px 14px;
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--rayon-imbrique);
  background: var(--bois-fonce);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--duree) ease;
}
.episodes a:hover { background: #6E4E3C; }
.episodes a[aria-current] { background: var(--or); color: var(--encre); }
.episodes .ic { grid-row: span 3; margin-top: 2px; }
.ep-date { font: 400 1rem/1.3 var(--police-titre); text-transform: uppercase; }
.ep-titre { font-weight: 700; line-height: 1.35; }
.ep-genre { font-size: var(--taille-legende); }
.chaine-lecteur .mention { margin-top: 14px; }

.liens-reseaux {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.liens-reseaux a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Questions */

.questions {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.questions .chapeau { margin-top: 20px; }

.faq details { border-top: 2px solid var(--bois-clair); }
.faq details:last-child { border-bottom: 2px solid var(--bois-clair); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color var(--duree) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--bois); }
.faq summary .ic { color: var(--bois); transition: transform var(--duree) var(--courbe); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p {
  max-width: 62ch;
  padding-bottom: 26px;
}

/* Pied de page : la réservation sur une photo sombre et floutée, puis les liens */

.pied {
  padding-block: clamp(40px, 4.5vw, 60px) 24px;
  background-color: var(--encre);
  background-image:
    linear-gradient(rgb(70 63 52 / 0.5), rgb(70 63 52 / 0.5)),
    url("images/fond-taverne-flou.webp");
  background-image:
    linear-gradient(rgb(70 63 52 / 0.5), rgb(70 63 52 / 0.5)),
    image-set(url("images/fond-taverne-flou.avif") type("image/avif"), url("images/fond-taverne-flou.webp") type("image/webp"));
  background-size: cover;
  background-position: center;
  color: var(--parchemin);
}
.pied a { text-decoration-color: var(--bois-clair); }

/* Bandeau de réservation : le titre à gauche, l’action à droite */
.fin {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(32px, 4vw, 44px);
  border-bottom: 2px solid rgb(181 140 112 / 0.5);
}
.fin h2 { color: var(--parchemin); }
.date-seance {
  margin-top: 10px;
  color: var(--bleu);
  font: 400 clamp(1.375rem, 1.05rem + 1vw, 1.875rem)/1.1 var(--police-titre);
  text-transform: uppercase;
}
.fin-action { display: grid; gap: 16px; justify-items: start; }
.fin-action .mention { max-width: 52ch; }

/* Colonnes, sur le modèle de noxio.fr */
.pied-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 3.5vw, 40px);
}
.pied-marque { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; align-content: start; }
.pied-marque img { width: 64px; height: auto; }
.pied-marque p { max-width: 30ch; font-size: 0.9375rem; line-height: 1.5; }
.pied-marque strong {
  display: block;
  margin-bottom: 2px;
  font: 400 1.25rem/1.2 var(--police-titre);
  text-transform: uppercase;
}
.pied-titre {
  margin-bottom: 12px;
  color: var(--or);
  font-weight: 700;
}
.pied-liste {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.pied-liste--deux { grid-template-columns: repeat(2, max-content); column-gap: 28px; }
.pied-liste a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration-color: transparent;
}
.pied-liste a:hover { text-decoration-color: var(--bois-clair); }
.pied-liste .reseau { width: 18px; height: 18px; }

.mentions-legales {
  display: grid;
  gap: 6px;
  max-width: 120ch;
  color: rgb(237 226 198 / 0.72);
  font-size: 0.78rem;
  line-height: 1.55;
}

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgb(181 140 112 / 0.35);
  font-size: 0.875rem;
}
.credit a { text-decoration: none; }
.credit picture { display: inline; }
/* Le logo BEYIO à la hauteur du texte, posé sur la ligne comme sur noxio.fr */
.credit img {
  display: inline;
  width: auto;
  height: 1.05em;
  vertical-align: -0.16em;
  transition: opacity var(--duree) ease;
}
.credit a:hover img { opacity: 0.8; }
.haut-de-page { text-decoration-color: transparent; }
.haut-de-page:hover { text-decoration-color: var(--bois-clair); }

/* Apparition au défilement : fondu et montée de 16 px, une seule fois */

.js .apparait {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--courbe), transform 600ms var(--courbe);
}
.js .apparait.est-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .apparait { opacity: 1; transform: none; transition: none; }
  .carte-seance,
  .carte-theme,
  .lecteur-lire,
  .synthese-feuille,
  .faq summary .ic { transition: none; }
  .js .synthese .surligne { transform: none; transition: none; }
  .js .synthese .coche { stroke-dashoffset: 0; transition: none; }
}

/* Écrans moyens et petits */

@media (max-width: 1100px) {
  .navigation .lien-section { display: none; }
  .menu-mobile { display: block; }

  .table-carte { grid-template-columns: minmax(0, 1fr); }
  .table-carte .ardoise,
  .table-carte .carte-seance { grid-column: 1; grid-row: auto; }
  .table-carte .carte-seance { order: -1; justify-self: center; margin-bottom: -80px; transform: rotate(-2deg); }
  .table-carte .carte-seance:hover { transform: rotate(-0.5deg); }
  .ardoise-surface { padding-top: calc(80px + 32px); padding-right: clamp(24px, 3.5vw, 48px); }
  .main-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .carte-theme:nth-child(odd) { --angle: -2deg; --decalage: 0px; }
  .carte-theme:nth-child(even) { --angle: 2deg; --decalage: 0px; }
}

@media (max-width: 960px) {
  .accroche {
    background:
      radial-gradient(ellipse 80% 40% at 50% 82%, rgb(132 114 90 / 0.6), transparent 72%),
      radial-gradient(ellipse 130% 110% at 50% 50%, transparent 48%, rgb(24 20 15 / 0.6) 100%),
      var(--encre);
  }
  .accroche-corps { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .accroche-texte { order: -1; padding-block: 16px 8px; }
  .accroche-portrait img { height: clamp(320px, 78vw, 480px); }

  .bande-bois .intro,
  .fondateur,
  .chaine,
  .questions { grid-template-columns: minmax(0, 1fr); }

  .moments { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .moments li:not(:last-child)::after { display: none; }
  .synthese-bloc { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .synthese-feuille { justify-self: center; }
  .fin { grid-template-columns: minmax(0, 1fr); }
  .pied-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
  .fondateur .tableau { justify-self: start; }
}

@media (max-width: 640px) {
  .marque img { width: 84px; }
  .accroche { padding-top: 112px; }
  .table-carte .carte-seance { width: min(86%, 300px); transform: rotate(-1.5deg); }
  .conditions { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .montant-detail { padding-bottom: 0; }
  .main-cartes {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 300px);
    gap: 16px;
    margin-inline: calc(-1 * var(--gouttiere));
    padding: 16px var(--gouttiere) 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gouttiere);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .main-cartes::-webkit-scrollbar { display: none; }
  .carte-theme { scroll-snap-align: start; }
  .glisser { display: block; margin-top: 4px; }
  .bande-bois .note { margin-top: 24px; }
  .carte-theme:nth-child(odd) { --angle: -1.5deg; }
  .carte-theme:nth-child(even) { --angle: 1.5deg; }
  .pied-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
  .episodes { grid-template-columns: minmax(0, 1fr); }
  .lecteur { aspect-ratio: 4 / 3; }
  .lecteur-lire { width: 60px; height: 60px; }
  .navigation .bouton,
  .menu-mobile summary { padding: 12px 16px; }
  .actions .bouton,
  .ardoise .bouton,
  .chaine-texte .bouton,
  .fin-action .bouton { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .navigation .complement { display: none; }
}

@media (max-width: 360px) {
  .menu-mobile .libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
