/* =======================================================
   TRAM-E — PAGES PROJETS RECHERCHES & CRÉATIONS
======================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}

/* =======================================================
   VARIABLES DE THÈME PAR PAGE
======================================================= */

body.page-recherche {
  font-family: "Mohave", sans-serif;
  overflow-x: hidden;
  background: #ffffff;

  --c-accent: #e833cf;
  --c-accent2: #f2b705;
  --c-dark: #1b233b;
  --c-light: #fafaf8;
  --c-mid: #ebebeb;

  --col-bg: #fafaf8;
  --col-title-color: #e85d33;
  --col-text-color: #3a3a3a;
  --col-accent: #f210ab;
  --col-accent2: #f2b705;
  --col-galerie-bg: #017ca5;
  --col-nav-bg: #fafaf8;
  --col-nav-color: #1a1a1a;
  --col-nav-active: #4095b3;
  --col-splash-bg: #e85d33;
  --col-splash-color: #fafaf8;
}

body.page-recherche.cayolar {
  --col-accent: #274551;
  --col-accent2: #4785a9;
  --col-galerie-bg: #274551;
  --col-nav-active: #274551;
  --col-splash-bg: #274551;
  --col-splash-color: #eef4f7;
}

body.page-recherche.colporteuse {
  --col-accent: #486d58;
  --col-accent2: #8ac0cb;
  --col-galerie-bg: #28291a;
  --col-nav-active: #486d58;
  --col-splash-bg: #28291a;
  --col-splash-color: #8ac0cb;
}

body.page-recherche.bitete {
  --col-accent: #486d58;
  --col-accent2: #8ac0cb;
  --col-galerie-bg: #0e4937;
  --col-nav-active: #486d58;
  --col-splash-bg: #28291a;
  --col-splash-color: #ffea00;
}

body.page-recherche.elogedelamain {
  --col-title-color: #c8a000;
  --col-accent: #c8a000;
  --col-accent2: #c8a000;
  --col-galerie-bg: #1a3652;
  --col-nav-active: #c8a000;
  --col-splash-bg: #1a3652;
  --col-splash-color: #f2c200;
}

body.page-recherche.cabaret {
  --col-splash-bg: whitesmoke;
  --col-splash-color: #f73a20;
}

/* =======================================================
   WRAPPER GÉNÉRAL
======================================================= */

.recherches-wrapper {
  width: 100%;
  overflow-x: hidden;
}
.rech-snap {
  height: 100vh;
  margin-top: -90px;
}
/* =======================================================
   HERO — PLEINE PAGE D'OUVERTURE
======================================================= */

.rech-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.rech-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.rech-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rech-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.3) 50%,
    rgba(10, 10, 10, 0.05) 100%
  );
}

.rech-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 4rem 3.5rem;
  max-width: 760px;
}

.rech-hero__eyebrow {
  font-family: "Mohave", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--col-accent2);
  margin-bottom: 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
}

a.rech-hero__eyebrow:hover {
  border: 3px solid white;
  background: white;
}

.rech-hero__title {
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  color: #fff;
  margin-bottom: 1.5rem;
}
.cabaret .rech-hero__title,
.cabaret .rech-galerie__title,
.cabaret .rech-pixels__quote,
.cabaret .rech-annees__btn,
.cabaret .rech-jour__titre,
.cabaret .rech-splash__quote,
.cabaret .poster-card__title {
  font-family: "MatrimoineFeutre", sans-serif;
}
.rech-hero__title em {
  font-style: normal;
  color: var(--col-accent2);
}

.rech-hero__intro {
  font-family: "Mohave", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
}


/* ----- Bouton retour (picto) — fixe, toujours visible peu importe le scroll ----- */
.rech-hero__back {
  position: fixed;
 top: calc(90px + 1rem);
  left: 6rem;
  z-index: 999;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.rech-hero__back:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: scale(1.2);
}
.rech-hero__back svg {
  display: block;
}

/* ----- Variante pleine page + scroll-snap (utilisable sur toutes les pages recherche) ----- */
.rech-hero--full {
  height: 100vh;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}
.rech-hero__content--center {
  text-align: center;
  padding: 0 2rem;
  max-width: none;
}
.rech-hero__title--oneline {
  white-space: nowrap;
  font-size: clamp(4rem, 10vw, 10rem);
  margin-bottom: 0;
}

/* =======================================================
   SECTION TEXTE ÉDITORIAL
======================================================= */

.rech-edito {
  position: relative;
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  background: var(--section-bg, var(--col-bg));
  overflow: hidden;
}

.rech-edito__label {
  font-family: "Mohave", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--col-accent);
  padding-top: 0.5rem;
  position: sticky;
  top: 6rem;
}

.rech-edito__body {
  font-family: "Mohave", sans-serif;
  font-size: clamp(0.6rem, 0.8vw, 0.75rem);
  line-height: 1.25;
  color: #159e5b;
}

.rech-edito__body p {
  margin-top: 1.5em;
}

.rech-edito__body strong {
  color: var(--col-accent);
  font-weight: 700;
}
.confetti-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.confetti-piece {
  position: absolute;
  opacity: 1;
}

@media (max-width: 768px) {
  .confetti-field {
    display: none;
  }
}

/* ----- Variante pleine page + scroll-snap ----- */
.rech-edito--snap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem;
  gap: 2rem;
}
.rech-edito--snap .rech-edito__forme {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  opacity: 0.5;
}
.rech-edito--snap .rech-edito__body {
    font-size: clamp(1.1rem, min(3.4vh, 2.2vw), 2rem);
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.3;
}

/* =======================================================
   SPLASH — SECTION COULEUR PLEINE LARGEUR
======================================================= */

.rech-splash {
  background: var(--col-splash-bg);
  color: var(--col-splash-color);
  padding: 6rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  height: 10vh;
  overflow: hidden;
  position: relative;
}

.rech-splash__quote {
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  max-width: 60%;
  position: relative;
  z-index: 2;
}

.rech-splash__picto {
  font-size: 1rem;
  opacity: 1;
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.rech-splash__picto img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.12;
}

/* =======================================================
   SECTION SLIDER GALERIE
======================================================= */

.rech-galerie {
  background: var(--section-bg, var(--col-galerie-bg));
  padding: 5rem 0;
}

.rech-galerie__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding: 0 4rem;
}

.rech-galerie__title {
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--col-splash-color);
}

.rech-galerie__counter {
  font-family: "Mohave", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--col-accent2);
}

.rech-galerie__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  height: 70vh;
}

.rech-galerie__preview {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.rech-galerie__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.rech-galerie__thumbs {
  overflow-y: auto;
  padding-right: 4px;
}

.rech-galerie__thumbs::-webkit-scrollbar {
  width: 6px;
}
.rech-galerie__thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.rech-galerie__thumbs::-webkit-scrollbar-thumb {
  background: var(--col-accent2);
}

.rech-galerie__thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rech-galerie__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
  display: block;
  width: 100%;
}

.rech-galerie__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rech-galerie__thumb:hover {
  opacity: 0.85;
}
.rech-galerie__thumb.active {
  opacity: 1;
  border-color: var(--col-accent2);
}

/* ----- Variante immersive pleine page + scroll-snap (image seule + nav flèches) ----- */
.rech-galerie--snap {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: whitesmoke;
}
.rech-galerie--snap img {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}
.rech-galerie__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #f477b5;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.rech-galerie__nav:hover {
  background: rgba(244, 119, 181, 0.35);
}
.rech-galerie__nav--prev {
  left: 2rem;
}
.rech-galerie__nav--next {
  right: 2rem;
}

/* =======================================================
   SCROLL SNAP — WRAPPER (hero + edito + galerie)
======================================================= */

.rech-snap {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.rech-snap::-webkit-scrollbar {
  display: none;
}
.rech-snap > section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  min-height: 100vh;
}

/* =======================================================
   PIXELS — grille interactive + texte overlay (sans ombre)
======================================================= */
.rech-pixels {
  --cell-size: 20px;
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  background: whitesmoke;
}

.rech-pixels__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--cell-size));
  grid-auto-rows: var(--cell-size);
  width: 100%;
  height: 100%;
}

.rech-pixels__grid .pixel {
  width: var(--cell-size);
  height: var(--cell-size);
  background: var(--col-bg);

}

.rech-pixels__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none; 
}

.rech-pixels__quote {
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  color: #fff;
  text-align: center;
  /* pas d'ombre : texte blanc net */
}

.rech-pixels__picto img {
  width: 140px;
  opacity: 1;
}

/* =======================================================
   SECTION ANNÉES — NAV + CONTENU
======================================================= */

.rech-annees {
  background: var(--col-bg);
}

.rech-annees__sentinel {
  height: 1px;
}

.rech-annees__nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  background: transparent;
  transition: background-color 0.3s ease;
}

.rech-annees__btn {
  flex: 1;
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #fff;
  background: var(--col-accent);
  border: none;
  padding: 1.2rem 1rem;
  cursor: pointer;
  border-radius: 0 0 20px 20px;
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.rech-annees__btn:hover {
  opacity: 0.8;
}
.rech-annees__btn.active {
  opacity: 1;
}

/* Variante arc-en-ciel — cabaret uniquement */
.cabaret .rech-annees__btn:nth-child(1) { background: #ff00e9; }
.cabaret .rech-annees__btn:nth-child(2) { background: #29bad4; }
.cabaret .rech-annees__btn:nth-child(3) { background: #db5100; }
.cabaret .rech-annees__btn:nth-child(4) { background: #f2b705; }
.cabaret .rech-annees__btn:nth-child(5) { background: #159e5b; }
.cabaret .rech-annees__btn:nth-child(6) { background: #f477b5; }

/* Variante nuancée — cayolar (dégradé dans sa propre palette bleu-anthracite) */
.cayolar .rech-annees__btn:nth-child(1) { background: #1c333f; }
.cayolar .rech-annees__btn:nth-child(2) { background: #274551; }
.cayolar .rech-annees__btn:nth-child(3) { background: #33586a; }
.cayolar .rech-annees__btn:nth-child(4) { background: #3f6c82; }
.cayolar .rech-annees__btn:nth-child(5) { background: #4785a9; }

/* Contenu années */
.rech-annees__content article {
  display: none;
}

.rech-annees__content article.active {
  display: block;
}
/* =======================================================
   FONDS PASTEL — JOURNÉES (jour le jour)
======================================================= */
.rech-jours-wrapper > .rech-jour:nth-of-type(6n+1) { --jour-bg: #ffe9f7; } /* rose pastel */
.rech-jours-wrapper > .rech-jour:nth-of-type(6n+2) { --jour-bg: #e3f6fa; } /* bleu pastel */
.rech-jours-wrapper > .rech-jour:nth-of-type(6n+3) { --jour-bg: #ffead9; } /* orange pastel */
.rech-jours-wrapper > .rech-jour:nth-of-type(6n+4) { --jour-bg: #fff7d6; } /* jaune pastel */
.rech-jours-wrapper > .rech-jour:nth-of-type(6n+5) { --jour-bg: #e6f4e9; } /* vert pastel */
.rech-jours-wrapper > .rech-jour:nth-of-type(6n+6) { --jour-bg: #fde4ef; } /* rose pastel 2 */

/* =======================================================
   MISE EN RESPIRATION — MÉDIA DES JOURNÉES
======================================================= */
.rech-jours-wrapper > .rech-jour .rech-jour__media {
  background: transparent; /* le pastel du parent transparaît */
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rech-jours-wrapper > .rech-jour .rech-video {
  width: 100%;
  height: 100%;
}

.rech-jours-wrapper > .rech-jour .rech-video__frame {
  border-radius: 16px; /* déjà une box-shadow existante, on arrondit assortie */
}

.rech-jours-wrapper > .rech-jour .rech-jour__slider {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
/* =======================================================
   BLOC JOUR — NOUVELLE STRUCTURE AÉRÉE
======================================================= */
.rech-content {
  background: var(--section-bg, var(--col-bg));
}

.rech-jour {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-bottom: 1px solid var(--col-mid);
  position: relative;
  background: var(--jour-bg, transparent);
}

.rech-jour:nth-child(even) {
  direction: rtl;
}
.rech-jour:nth-child(even) > * {
  direction: ltr;
}

.rech-jour__text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.rech-jour__titre {
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  color: var(--col-title-color);
  margin-bottom: 2rem;
}
.rech-jour__titrecorps {
  font-family: "Mohave", sans-serif;
  font-size: clamp(1.2rem, 1.3vw, 2.2rem);
  line-height: 1.1;
  padding-bottom: 0.5rem;
  color: #8d2505;
  max-width: 480px;
}

.rech-jour__corps {
  font-family: "Mohave", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: var(--col-text-color);
  max-width: 480px;
}

.rech-jour__media {
  position: relative;
  overflow: hidden;
  background: var(--col-mid);
  min-height: 60vh;
  max-height: 100vh;
}

.rech-jour__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.8s ease;
}
.year[data-year="2026"] .rech-jour__track img {
  object-fit: contain;
  background: #e85d33;
}
.year[data-year="2024"] .rech-jour__track img {
  object-fit: contain;
  background: #e85d33;
}

.year[data-year="2026"] .rech-jour__media,
.year[data-year="2024"] .rech-jour__media {
  min-height: 40vh;
  max-height: 70vh;
}

.rech-jour__slider[data-direction="vertical"] .rech-jour__track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.5s ease;
}
.rech-jour__slider[data-direction="vertical"] .rech-jour__track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
}
.rech-jour__media:hover img {
  transform: scale(1.04);
}

.rech-jour__slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.rech-jour__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rech-jour__track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Cayolar : galeries années en contain plutôt qu'en cover */
.cayolar .rech-jour__track img {
  object-fit: contain;
}

.rech-jour__prev,
.rech-jour__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  color: var(--col-dark, #1a1a1a);
}

.rech-jour__prev {
  left: 1rem;
}
.rech-jour__next {
  right: 1rem;
}

.rech-jour__prev:hover,
.rech-jour__next:hover {
  background: var(--col-accent);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

/* Cayolar : bloc année plein écran, média dominant, vidéo qui remplit tout */
.cayolar .rech-jour {
  grid-template-columns: 1fr 2fr;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
}
.cayolar .rech-jour__text {
  max-height: 100%;
  overflow-y: auto;
}
.cayolar .rech-jour__media {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
.cayolar .rech-video__frame {
  height: 100%;
  padding-bottom: 0;
}
.rech-jour__gallery {
  margin-top: 1.5rem;
}

.rech-jour__gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
}

.rech-jour__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.rech-jour__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.rech-jour__thumb {
  border: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.rech-jour__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rech-jour__thumb:hover,
.rech-jour__thumb.active {
  opacity: 1;
}
.rech-jour__text--poster {
  display: flex;
}

.poster-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
}

.poster-card__date {
  display: inline-block;
  align-self: flex-start;
  background: #f5e642;
  color: #b23a2e;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.poster-card__title {
  margin: 0 0 10px;
  font-family: "Matrimoinefeutre", sans-serif;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 800;
  color: #f477b5;
}

.poster-card__title em {
  font-style: normal;
  font-size: 1.5rem;
  color: #159e5b;
}

.poster-card__loc {
  color: #e2631d;
  font-weight: 600;
  margin: 0 0 6px;
}

.poster-card__tarif {
  color: #e2631d;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 16px;
}

.poster-card__artists {
  color: #159e5b;
  font-weight: 700;
  margin: 0 0 16px;
}

.poster-card__toggle {
  align-self: flex-start;
  background: none;
  border: 1px solid currentColor;
  color: #159e5b;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.poster-card__toggle:hover {
  background: rgba(21, 158, 91, 0.1);
}

.poster-card__details {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.poster-card__details p {
  margin: 0 0 1rem;
}

.poster-card__details--accent {
  color: #1c6e7a;
  font-weight: 500;
}

.poster-card__credits {
  color: #159e5b;
  font-size: 0.78rem;
}
.poster-card--multi {
  gap: 0;
}

.poster-event {
  display: flex;
  flex-direction: column;
}

.poster-event__sep {
  border-top: 2px dashed #f5e642;
  margin: 24px 0;
}

.poster-card__intro {
  color: #1c6e7a;
  font-weight: 600;
}

.poster-card__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.poster-card__timeline li {
  margin-bottom: 0.9rem;
  color: #1c6e7a;
}

.poster-card__timeline li strong {
  color: #e2631d;
  margin-right: 8px;
}

.poster-card__subtitle {
  color: #f477b5;
  font-weight: 800;
  margin: 12px 0 6px;
}

.poster-card__subtitle em {
  font-style: normal;
  color: #159e5b;
}

/* Vidéos des jours 2026 */
.rech-video {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

.rech-video__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rech-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rech-video__thumbs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible; 
  padding: 8px 4px 28px;
  align-items: center;
}

.rech-video__thumb {
  position: relative;
  flex: 0 0 auto;
  height: 100px;
  border: 3px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  border-radius: 12px;
  overflow: visible; 
  background: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.rech-video__thumb img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}
.rech-video__thumb::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 14px;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(8px);
  border-radius: 50%;
  z-index: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rech-video__thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  font-family: "Mohave", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  text-align: left;
}

.rech-video__thumb:hover {
  opacity: 1;
  transform: translateY(-4px);
}
.rech-video__thumb:hover::after {
  transform: scaleX(1.05);
  opacity: 0.8;
}
.rech-video__thumb.active {
  opacity: 1;
}
.rech-video__thumb.active img {
  outline: 3px solid #f477b5;
  outline-offset: 2px;
}

/* =======================================================
   SECTION INTRO SPÉCIALE (année active — intro éditoriale)
======================================================= */

.rech-jour--intro .rech-jour__text {
  background: var(--col-splash-bg);
}

.rech-jour--intro .rech-jour__titre,
.rech-jour--intro .rech-jour__corps {
  color: var(--col-splash-color);
}

.rech-jour--intro .rech-jour__text::before {
  background: var(--col-accent2);
}
/* =======================================================
   MISE EN RESPIRATION — MÉDIA DE L'INTRO ANNÉE (2025/2024/2023/2022/2021)
======================================================= */
.rech-jour--intro .rech-jour__media {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Le wrapper vidéo (div avec padding-bottom trick) OU l'image statique */
.rech-jour--intro .rech-jour__media > div,
.rech-jour--intro .rech-jour__media > img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
/* =======================================================
   TOGGLE "Voir au jour le jour"
======================================================= */

.rech-jours-toggle {
  display: inline-block;
  align-self: flex-start;
  margin-top: 2rem;
  padding: 0.85rem 2rem;
  background: var(--col-accent);
  color: #fff;
  font-family: "Mohave", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.rech-jours-toggle:hover {
  background: var(--col-accent2);
  color: var(--col-dark, #1a1a1a);
  transform: translateX(5px);
}

.rech-jours-wrapper,
#joursWrapper2025,
#joursWrapper2026,
#galerieWrapper2024 {
  border-top: 4px solid var(--col-accent);
  animation: joursSlide 0.35s ease forwards;
}

@keyframes joursSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================================
   SECTION PARALLAX
======================================================= */
.rech-parallax {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f2b705;
}

.rech-parallax__back {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.rech-parallax__back img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.layer-reactive {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
}

.layer-reactive img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =======================================================
   BEFORE / AFTER SLIDER
======================================================= */
.ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ba-after {
  position: relative;
  width: 100%;
  height: 100%;
}

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-after img,
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: white;
  pointer-events: none;
  will-change: left;
  z-index: 10;
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .ba-slider {
    min-height: 240px;
  }
}

/* =======================================================
   VIEWER 3D
======================================================= */

.viewer-3d {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* =======================================================
   GALERIE VERTICALE (lightbox globale)
======================================================= */

.gallery-expanded {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-expanded.active {
  display: flex;
}

.gallery-expanded img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.gallery-expanded .close,
.gallery-expanded .prev,
.gallery-expanded .next {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--col-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-expanded .close:hover,
.gallery-expanded .prev:hover,
.gallery-expanded .next:hover {
  transform: scale(1.1);
}

.gallery-expanded .close {
  top: 2rem;
  right: 2rem;
}
.gallery-expanded .prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-expanded .next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-expanded .prev:hover {
  transform: translateY(-50%) scale(1.1);
}
.gallery-expanded .next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* =======================================================
   SÉPARATEUR DÉCORATIF
======================================================= */

.rech-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--col-accent), var(--col-accent2), transparent);
  margin: 0;
}

/* =======================================================
   RESPONSIVE — TABLETTE (≤ 1024px)
======================================================= */

@media (max-width: 1024px) {
  .rech-hero {
    min-height: 50vh;
  }
  .rech-hero__content {
    padding: 0 3rem 3rem;
  }

  .rech-edito {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 3rem;
  }
  .rech-edito__label {
    position: static;
  }

  .rech-galerie {
    padding: 3rem 2rem;
  }
  .rech-galerie__layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .rech-galerie__preview {
    aspect-ratio: 4/3;
  }
  .rech-galerie__thumbs {
    overflow-y: visible;
    max-height: 220px;
    overflow-x: hidden;
  }
  .rech-galerie__thumbs-grid {
    grid-template-columns: repeat(5, 1fr);
  }
.rech-jours-wrapper > .rech-jour .rech-jour__media {
  padding: 1.5rem;
}
  .rech-jour {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .rech-jour:nth-child(even) {
    direction: ltr;
  }
    .rech-jour--intro .rech-jour__media {
    padding: 1.5rem;
  }
  .cayolar .rech-jour {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .cayolar .rech-jour__text {
    max-height: none;
    overflow-y: visible;
  }
  .cayolar .rech-jour__media {
    height: auto;
    min-height: 50vw;
    max-height: none;
  }
  .rech-jour__media {
    min-height: 50vw;
  }
  .rech-jour__text {
    padding: 3rem;
  }

  .poster-card {
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .poster-card__title {
    font-size: 1.5rem;
  }
  .rech-jour__gallery-thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
  .rech-video {
    height: auto;
  }

  .rech-hero__title--oneline {
    font-size: clamp(1.8rem, 7vw, 5rem);
  }
  .rech-edito--snap .rech-edito__body {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  }
}

/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {
  .rech-hero {
    min-height: 45vh;
  }
  .rech-hero__content {
    padding: 0 1.5rem 2rem;
  }
  .rech-hero__title {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }
  .rech-hero__intro {
    font-size: 1rem;
  }

  
  .rech-hero__back {
  position: fixed;
  top: calc(70px + 1rem);
  left: 3rem;
  width: 30px;
  height: 30px;
  }
  .rech-edito {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 1.5rem;
    text-align: center;
  }
  .rech-edito__forme {
    width: 30%;
    height: auto;
  }
  .rech-edito__body {
    font-size: 1.05rem;
  }

  .rech-splash {
    padding: 4rem 1.5rem;
    flex-direction: column;
    gap: 2rem;
  }
  .rech-splash__quote {
    max-width: 100%;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

.rech-galerie {
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

    .rech-galerie--snap {
    width: 100%;
    height: 100svh;
    position: relative;
    overflow: hidden;
    padding: 0;
  }
  
  .rech-galerie--snap img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    touch-action: pan-y;
  }

  .rech-galerie__nav {
    display: none !important;
  }

  .rech-galerie__header {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    margin: 0;
    padding: 0;

  }

  .rech-galerie__title {
    font-size: 2rem;
  }

  .rech-galerie__counter {
    font-size: .8rem;
  }

  .rech-galerie__layout {
    display: block;
    width: 100%;
    height: 100%;
  }

  .rech-galerie__preview {
    width: 100%;
  height: 100%;
    background: #000;
    overflow: hidden;
  }

  .rech-galerie__preview img {
    width: 100%;
    height: 100%;
  object-fit: contain;
  }

  .rech-galerie__thumbs {
    display: none;
  }

  .rech-galerie__preview {
    touch-action: pan-y;
  }
  
  .rech-annees__btn {
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
  }
.rech-jours-wrapper > .rech-jour .rech-jour__media {
  padding: 1rem;
}
  .rech-jour {
    grid-template-columns: 1fr;
  }
  .rech-jour--intro .rech-jour__media {
    padding: 1rem;
  }
  .rech-jour:nth-child(even) {
    direction: ltr;
  }
  .cayolar .rech-jour {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .cayolar .rech-jour__text {
    max-height: none;
    overflow-y: visible;
  }
  .cayolar .rech-jour__media {
    height: auto;
    min-height: 60vw;
    max-height: none;
  }
  .cayolar .rech-video__frame {
    height: auto;
    padding-bottom: 56.25%;
  }
  .rech-jour__text {
    padding: 2.5rem 1.5rem;
  }
  .rech-jour__titre {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }
  .rech-jour__corps {
    font-size: 1rem;
  }
  .rech-jour__media {
    min-height: 60vw;
  }

  .rech-jour__gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .poster-card {
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .poster-card__title {
    font-size: 1.4rem;
  }
  .poster-card__title em {
    font-size: 1.1rem;
  }
  .poster-event__sep {
    margin: 18px 0;
  }

  .rech-video {
    height: auto;
  }
  .rech-video__thumb {
    flex: 0 0 200px;
  }
  .rech-video__thumb-label {
    font-size: 0.6rem;
  }

  .rech-parallax {
    height: 35vh;
  }
  .ba-slider {
    min-height: 240px;
  }

  .rech-snap,
  .rech-snap > section,
  .rech-hero--full {
    height: 100dvh;
    min-height: 100dvh;
  }
  .rech-hero__title--oneline {
    white-space: normal;
    font-size: clamp(6rem, 9vw, 3.2rem);
  }
  .rech-edito--snap {
    padding: 2rem 1.5rem;
  }
  .rech-edito--snap .rech-edito__body {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  .rech-galerie__nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .rech-galerie__nav--prev { left: 1rem; }
  .rech-galerie__nav--next { right: 1rem; }
}