/* =============================================
   FONTS
   ============================================= */
@font-face {
  font-family: 'Magiel-Black';
  src: url('FONTS/Magiel-Black/Magiel-Black.woff') format('woff'),
    url('FONTS/Magiel-Black/Magiel-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MomoTrustSans';
  src: url('FONTS/MomoTrustSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MomoTrustSans-SemiBold';
  src: url('FONTS/MomoTrustSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #272abe;
  --white: #ffffff;
  --font-title: 'Magiel-Black', 'Impact', sans-serif;
  --font-body: 'MomoTrustSans', 'Helvetica Neue', Arial, sans-serif;
  --nav-speed: 0.6s;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.white-title {
  color: white;
}

/* =============================================
   EDIT.CHURCH STYLE NAVIGATION
   ============================================= */
.edit-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  display: flex;
  align-items: center;
  z-index: 1001;
  background-color: var(--primary);
  border-radius: 40px;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--nav-speed) cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-toggle {
  background: none;
  border: none;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  outline: none;
}

.nav-toggle img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width var(--nav-speed) cubic-bezier(0.25, 1, 0.5, 1),
    opacity var(--nav-speed) cubic-bezier(0.25, 1, 0.5, 1),
    padding var(--nav-speed) cubic-bezier(0.25, 1, 0.5, 1);
  padding-right: 0;
}

.edit-nav.is-expanded .nav-content {
  max-width: 600px;
  opacity: 1;
  padding-right: 32px;
}

.nav-content a {
  font-family: 'MomoTrustSans-SemiBold', var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  transition: opacity 0.3s ease;
}

.nav-content a:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 768px) {
  .edit-nav {
    bottom: 16px;
  }

  .nav-content {
    gap: 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .edit-nav.is-expanded .nav-content {
    padding-right: 20px;
  }
}


/* =============================================
   PROGRESS BAR & MARQUEE
   ============================================= */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #272abe;
  /* Inverse of #272abe to render as blue over white */
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease-out;
}

.marquee-header {
  position: fixed;
  top: 4px;
  /* Under progress bar */
  left: 0;
  width: 100%;
  height: 36px;
  background: var(--primary);
  overflow: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: marquee-scroll 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}

.marquee-track span::before {
  content: '◆';
  margin-right: 12px;
  font-size: 8px;
  vertical-align: middle;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =============================================
   VERTICAL SCROLL CONTAINER
   ============================================= */
.scroll-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* =============================================
   SECTIONS (generic)
   ============================================= */
#section-zero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0vh 20% 0%;
  flex-wrap: wrap;
  flex-direction: row;
}

/* ===========================================
   ZONES TENTACULES — Section 0
   ===========================================

   COMMENT MODIFIER LA ROTATION D'UN TENTACULE :
   -----------------------------------------------
   Chaque zone possède une variable CSS appelée --rotate.
   Elle définit la rotation de l'IMAGE à l'intérieur de la zone,
   SANS déplacer la zone elle-même sur la page.

   Pour changer l'angle, modifiez uniquement la valeur en degrés (deg) :
     - 0deg   = pas de rotation
     - 45deg  = incliné à 45° vers la droite
     - -30deg = incliné à 30° vers la gauche
     - 180deg = retourné à l'envers

   La rotation se fait autour du centre de l'image (transform-origin: center).
   Les deux zones sont indépendantes l'une de l'autre.
   =========================================== */

/* --- Contenant commun aux deux zones tentacules --- */
.tentacle-zone {
  /* position: absolute = la zone est placée par rapport à #section-zero */
  position: absolute;

  /* Taille en vw (vw = % de la largeur de l'écran) :
     30vw = 30% de la largeur de la fenêtre.
     Comme c'est relatif à l'écran, la taille reste
     proportionnellement identique sur tous les écrans. */
  width: 25vw;
  height: 40vw;

  /* La zone ne bloque pas les clics de l'utilisateur */
  pointer-events: none;

  /* Place les tentacules derrière le logo */
  z-index: 0;

  /* overflow: visible permet à l'image tournée de déborder légèrement
     du contenant sans être coupée */
  overflow: visible;
}

/* --- Image à l'intérieur de la zone --- */
.tentacle-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* La rotation utilise la variable --rotate définie sur la zone parente.
     transform-origin: center signifie que la rotation se fait autour
     du centre de l'image (et non depuis un coin). */
  transform-origin: center;
  transform: rotate(var(--rotate, -35deg));

  /* Transition optionnelle : si vous souhaitez animer les changements de
     rotation en JavaScript plus tard, cette ligne rend la rotation fluide. */
  transition: transform 0.6s ease;
}

/* =============================================
   TENTACULE 1 — En haut à gauche (miroir horizontal)
   =============================================
   POUR CHANGER L'ANGLE : modifiez --rotate ci-dessous.
   Exemple : --rotate: 45deg; pour incliner de 45°.

   Note : le scaleX(-1) retourne l'image horizontalement
   pour créer l'effet miroir. La rotation s'applique EN PLUS
   du miroir, de façon indépendante.
   ============================================= */
.tentacle-zone1 {
  top: 0;
  left: 0;

  /* ↓ MODIFIEZ CETTE VALEUR pour changer l'angle du tentacule gauche ↓ */
  --rotate: -175deg;

  /* scaleX(-1) = miroir horizontal (le tentacule regarde vers l'intérieur) */
  /* La rotation est gérée sur l'<img> directement pour ne pas affecter la position */
}

.tentacle-zone1 img {
  /* On applique d'abord le miroir, puis la rotation définie par --rotate */
  transform: scaleX(-1) rotate(var(--rotate, 0deg));
}

/* =============================================
   TENTACULE 2 — En bas à droite
   =============================================
   POUR CHANGER L'ANGLE : modifiez --rotate ci-dessous.
   Exemple : --rotate: -20deg; pour incliner de 20° à gauche.
   ============================================= */
.tentacle-zone2 {
  bottom: 0;
  right: 0;

  /* ↓ MODIFIEZ CETTE VALEUR pour changer l'angle du tentacule droit ↓ */
  --rotate: -70deg;
}

/* =============================================
   LOGO — Section 0 (LogoPlouf.svg)
   ==============================================
   Le logo est un élément INDÉPENDANT des tentacules.
   Modifier sa taille ici n'affecte ni la taille
   ni la position des zones .tentacle-zone1 / .tentacle-zone2.

   Le logo utilise vw (% de la largeur de l'écran)
   pour rester proportionnellement identique sur
   tous les formats d'écran (mobile, tablette, desktop).

   POUR CHANGER LA TAILLE : modifiez la valeur de width ci-dessous.
   Exemples :
     - 20vw = petit logo (20 % de la largeur de l'écran)
     - 30vw = logo moyen (30 % de la largeur de l'écran)
     - 40vw = grand logo (40 % de la largeur de l'écran)
   ============================================= */
#section-zero>img[alt="logo-plouf-bleu"] {
  /* ↓ MODIFIEZ CETTE VALEUR pour changer la taille du logo ↓
     vw = pourcentage de la largeur de la fenêtre du navigateur */
  width: 40vw;

  /* height: auto conserve les proportions originales de l'image du logo */
  height: auto;

  /* Le logo s'affiche par-dessus les tentacules grâce à z-index */
  position: relative;
  z-index: 1;
  padding-right: 1, 5vw;
  /* Le logo reste cliquable (pas de pointer-events: none ici) */
}

.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 80px 80px;
  /* Top padding clears marquee */
}

/* =============================================
   SECTION: HERO
   ============================================= */



.section--hero {
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.section--hero .hero-title {
  font-family: var(--font-title);
  font-size: clamp(60px, 10vw, 140px);
  line-height: 0.95;
  color: var(--primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section--hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.6;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.section--hero.is-visible .hero-title,
.section--hero.is-visible .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FIXED SORTING SIDEBAR
   ============================================= */
.fixed-sorting-sidebar {
  position: fixed;
  top: 50%;
  left: 1%;
  transform: translateY(-50%) translateX(-120%);
  width: auto;
  min-width: 3%;
  max-height: 85vh;
  overflow-y: auto;
  background-color: var(--primary);
  color: var(--white);
  padding: 32px 24px;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: background-color 0.4s ease, color 0.4s ease,
    opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.fixed-sorting-sidebar.sidebar-visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.fixed-sorting-sidebar.white-theme {
  background-color: var(--white);
  color: var(--primary);
}

.fixed-sorting-sidebar::-webkit-scrollbar {
  display: none;
}

.sorting-header {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 24px;
}

.sorting-filters {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0%;
}

.sorting-filters button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 16px 8px;
  /* Taller padding for vertical text */
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  /* Counter-clockwise 90deg equivalent */
  height: fit-content;
  width: fit-content;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sorting-filters button.active,
.sorting-filters button:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* White Theme Button Overrides */
.fixed-sorting-sidebar.white-theme .sorting-filters button {
  color: var(--primary);
  border-color: rgba(39, 42, 190, 0.4);
}

.fixed-sorting-sidebar.white-theme .sorting-filters button.active,
.fixed-sorting-sidebar.white-theme .sorting-filters button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* =============================================
   SECTION: SORTING RESULTS (Main Page)
   ============================================= */
.section--sorting-results {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sorting-grid-items {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.sort-item {
  background: var(--primary);
  color: var(--white);
  padding: 32px 24px;
  border-radius: 8px;
  transition: opacity 0.5s ease, transform 0.4s ease;
  cursor: pointer;
}

.sort-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(39, 42, 190, 0.2);
}

.sort-item h3 {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 12px;
}

.sort-item p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

/* Desk screen centery (no left padding) */

/* =============================================
   SECTION: SINGLE CARD (big image + text)
   ============================================= */
.section--card {
  display: flex;
  align-items: center;
  gap: 80px;
}

.section--card.reverse {
  flex-direction: row-reverse;
}

.card-image-wrapper {
  flex: 0 0 45%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.is-visible .card-image-wrapper {
  opacity: 1;
  transform: scale(1);
}

.card-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card-image-wrapper:hover img {
  transform: scale(1.05);
}

.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.section--card.reverse .card-text {
  transform: translateX(-40px);
}

.section.is-visible .card-text {
  opacity: 1;
  transform: translateX(0);
}

.card-text h2 {
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
}

.card-text p {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.7;
  opacity: 0.85;
}

.card-text .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  padding: 6px 18px;
  width: fit-content;
  transition: background 0.3s ease, color 0.3s ease;
}

.card-text .tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   SECTION: GRID (multiple vignettes)
   ============================================= */
.section--grid {
  flex-direction: column;
  gap: 40px;
}

.section--grid .grid-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 72px);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible .grid-title {
  opacity: 1;
  transform: translateY(0);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

.grid-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* Ratio conservé, hauteur calculée automatiquement */
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.grid-item:nth-child(1) {
  transition-delay: 0.1s;
}

.grid-item:nth-child(2) {
  transition-delay: 0.2s;
}

.grid-item:nth-child(3) {
  transition-delay: 0.3s;
}

.grid-item:nth-child(4) {
  transition-delay: 0.4s;
}

.grid-item:nth-child(5) {
  transition-delay: 0.5s;
}

.grid-item:nth-child(6) {
  transition-delay: 0.6s;
}

.section.is-visible .grid-item {
  opacity: 1;
  transform: translateY(0);
}

.grid-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.08);
}

.grid-item .grid-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(39, 42, 190, 0.85));
  color: var(--white);
  font-family: var(--font-title);
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.2;
}

/* =============================================
   SECTION: FULL TEXT (statement)
   ============================================= */
.section--text {
  flex-direction: column;
  text-align: center;
  gap: 24px;
}

.section--text .big-text {
  font-family: var(--font-title);
  font-size: clamp(40px, 7vw, 100px);
  line-height: 1.05;
  max-width: 80%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section--text .small-text {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.7;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.section--text.is-visible .big-text,
.section--text.is-visible .small-text {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SECTION: END / OUTRO
   ============================================= */
.section--end {
  flex-direction: column;
  text-align: center;
  gap: 16px;
  background: var(--primary);
  color: var(--white);
}

.section--end .end-title {
  font-family: var(--font-title);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section--end .end-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.section--end.is-visible .end-title {
  opacity: 1;
  transform: scale(1);
}

.section--end.is-visible .end-subtitle {
  opacity: 1;
}

/* =============================================
   SECTION NUMBER INDICATOR
   ============================================= */
.section-number {
  position: absolute;
  bottom: 50px;
  right: 40px;
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.35;
}

/* =============================================
   ARTICLE PAGE SPECIFICS
   ============================================= */

/* --------------------------------------------
   FULLPAGE SLIDE — Inspiré de aither.co
   Chaque .fullpage-slide occupe exactement 100vw × 100vh.
   L'image est en position absolue (object-fit: cover).
   L'attribut [data-border="true"] ajoute un fin cadre
   intérieur via ::after (effet "vignette de bord").
   -------------------------------------------- */
.fullpage-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image pleine page — couvre tout le conteneur */
.fullpage-slide__img {
  position: absolute;
  inset: 0;
  /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Remplit sans déformer */
  object-position: center;
  display: block;
  z-index: 0;
  transition: transform 0.6s ease;
}

/* Pas de zoom hover sur les slides pleine page */

/* Overlay sombre pour les slides --dark */
.fullpage-slide--dark .fullpage-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* --- Contenu superposé à l'image --- */
.fullpage-slide__content {
  position: relative;
  z-index: 3;
  /* Au-dessus de l'image et de la bordure */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
}

/* Centré horizontalement et verticalement */
.fullpage-slide__content--center {
  align-items: center;
  text-align: center;
}

/* Aligné à gauche */
.fullpage-slide__content--left {
  align-items: flex-start;
  text-align: left;
  align-self: flex-end;
  /* Positionne le bloc vers le bas-gauche */
  margin-bottom: 80px;
}

/* Aligné à droite */
.fullpage-slide__content--right {
  align-items: flex-end;
  text-align: right;
  align-self: flex-end;
  margin-bottom: 80px;
  margin-left: auto;
}

/* --- Typographie des slides --- */

/* Grand titre H1 (slide hero) */
.fullpage-slide__title {
  font-family: var(--font-title);
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Petits titres H2 */
.fullpage-slide__heading {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 90px);
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.fullpage-slide__heading--white {
  color: var(--white);
}

/* Sous-titre / intro */
.fullpage-slide__subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Petite étiquette catégorie */
.fullpage-slide__label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Lien "Retour" */
.fullpage-slide__back-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  padding: 12px 28px;
  transition: background 0.3s ease, color 0.3s ease;
  margin-top: 16px;
}

.fullpage-slide__back-link:hover {
  background: var(--white);
  color: var(--primary);
}


/* --------------------------------------------
   GALERIE DÉFILANTE HORIZONTALE
   Section autonome entre les slides pleine page.
   - Hauteur fixe pour normaliser les proportions
   - Width: auto (format d'origine conservé)
   - Animation CSS pure (pas de JS requis)
   - aria-hidden="true" sur les items dupliqués
   -------------------------------------------- */
.scrolling-gallery-section {
  width: 100%;
  background: var(--white);
  padding: 80px 0 60px;
  overflow: hidden;
  /* Empêche le débordement horizontal */
}

/* Titre de la galerie */
.scrolling-gallery-header {
  padding: 0 3%;
  margin-bottom: 40px;
}

.scrolling-gallery-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 72px);
  color: var(--primary);
  line-height: 1;
}

/* Wrapper qui masque le dépassement et définit la zone visible */
.scrolling-gallery-track-wrapper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.scrolling-gallery-track-wrapper:active {
  cursor: grabbing;
}

/* Piste défilante — flex horizontal, animation infinie */
.scrolling-gallery-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  /* L'espacement est géré par margin sur .gallery-item */
  /* Animation CSS : déplace la piste de 50% (= longueur de la série 1) */
  animation: gallery-scroll 35s linear infinite;
  will-change: transform;
  width: max-content;
  /* S'adapte au contenu total */
}

/* Pas de pause au survol — défilement continu */

/* Animation de défilement vers la gauche */
@keyframes gallery-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Chaque item de la galerie */
.gallery-item {
  /* Hauteur maximale — les images conservent leurs proportions d'origine */
  max-height: 460px;
  height: auto;
  width: auto;
  flex-shrink: 0;
  margin: 0 8px;
  /* Espacement de 8px de chaque côté */
  overflow: hidden;
  border-radius: 4px;
}

/* Image dans l'item
   - max-height: 100% → limité par la hauteur max du conteneur
   - width: auto       → conserve les proportions d'origine
   - object-fit: contain → pas de recadrage */
.gallery-item img {
  max-height: 460px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}


/* =============================================
   RESPONSIVE — ARTICLE / FULLPAGE
   ============================================= */

/* Tablette (769–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .fullpage-slide__content {
    padding: 32px;
  }

  .gallery-item {
    max-height: 360px;
  }

  .gallery-item img {
    max-height: 360px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {

  /* Slides pleine page */
  .fullpage-slide {
    height: 100svh;
    /* svh = viewport dynamique sur mobile */
  }

  .fullpage-slide__content {
    padding: 24px;
  }

  .fullpage-slide__content--left,
  .fullpage-slide__content--right {
    margin-bottom: 40px;
    align-items: flex-start;
    text-align: left;
  }

  /* Galerie */
  .scrolling-gallery-section {
    padding: 60px 0 40px;
  }

  .scrolling-gallery-header {
    padding: 0 1%;
    margin-bottom: 24px;
  }

  .gallery-item {
    max-height: 280px;
    margin: 0 5px;
  }

  .gallery-item img {
    max-height: 280px;
  }
}


/* ---- ARTICLE HEADER : full-viewport avec image de fond et titre superposé ---- */
.article-header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
}

.article-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.article-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 40px 24px;
  width: 100%;
}

.article-header h1 {
  font-family: var(--font-title);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  color: var(--white);
  margin: 0;
}

.article-header p {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 22px);
  max-width: 700px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.9;
}

/* ---- ARTICLE CONTENT ---- */
.article-content {
  padding: 80px 3%;
  width: 100%;
  box-sizing: border-box;
}

/* ---- ARTICLE GRID : colonne, proportions originales, marges responsives ---- */
.article-grid {
  display: flex;
  flex-direction: column;
  /* Images de droite à gauche = align-items: flex-end */
  align-items: flex-end;
  width: 100%;
  margin-bottom: 80px;
}

.article-grid img {
  /* Largeur = toute la zone moins 1% de chaque côté (espacement pourtour) */
  width: calc(100% - 2%);
  /* Marges : 1% en haut/bas (espacement), auto pour centrage horizontal */
  margin: 1% 1%;
  border-radius: 8px;
  display: block;
  /* Conserver les proportions d'origine */
  height: auto;
  object-fit: contain;
}

.article-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--primary);
}

.article-text p {
  margin-bottom: 24px;
}

.article-full-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 80px;
}

/* =============================================
   TABLET RESPONSIVE (marges intermédiaires)
   ============================================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .article-content {
    padding: 80px 2%;
  }

  .article-grid img {
    width: calc(100% - 4%);
    margin: 1% 2%;
  }
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .section {
    padding: 100px 24px 60px;
    flex-direction: column;
  }

  .section--card {
    flex-direction: column !important;
    gap: 32px;
  }

  .card-image-wrapper {
    flex: none;
    width: 100%;
    aspect-ratio: 4/5;
  }

  .card-text {
    transform: none;
  }

  .section--card.reverse .card-text {
    transform: none;
  }

  .section--grid {
    padding: 80px 24px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section--sorting {
    padding: 100px 24px 60px;
  }

  .section--text .big-text {
    max-width: 100%;
  }

  .section-number {
    bottom: 60px;
    right: 24px;
  }

  .article-header {
    min-height: 100svh;
  }

  .article-content {
    padding: 60px 1%;
  }

  .article-grid img {
    width: calc(100% - 2%);
    margin: 1% 1%;
  }

  /* Reveal animations on mobile via scroll */
  .section.is-visible .card-image-wrapper,
  .section.is-visible .card-text,
  .section.is-visible .grid-item,
  .section.is-visible .grid-title,
  .section--hero.is-visible .hero-title,
  .section--hero.is-visible .hero-subtitle,
  .section--text.is-visible .big-text,
  .section--text.is-visible .small-text,
  .section--end.is-visible .end-title,
  .section--end.is-visible .end-subtitle {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   TRÈS PETIT ÉCRAN (≤ 480px)
   ============================================= */
@media (max-width: 6.5vw) {

  /* 1 colonne sur très petit écran */
  .grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Sidebar rétrécie à max 6.5% de largeur */
  .fixed-sorting-sidebar {
    max-width: 6.5vw;
    min-width: unset;
    padding: 16px 6px;
  }
}