/* Pépinière Urbaine de Ouagadougou - Main Stylesheet */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Primary */
  --color-gold: #FFC640;
  --color-gold-dark: #D4A32F;
  --color-brown: #9C6636;
  --color-brown-dark: #7A5029;
  --color-charcoal: #363533;

  /* Colors - Neutrals */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  /* Typography */
  --font-title: 'Castoro', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;

  /* Layout */
  --max-width: 1920px;
  --content-width: 1200px;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  margin: -1px;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap !important;
  border: 0;
}

.home__seo-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  margin: 0 0 var(--spacing-sm) 0;
}

h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  line-height: 1.3;
}

h3 {
  font-size: 28px;
  line-height: 1.4;
}

p {
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0 0 var(--spacing-sm) 0;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */

.chapter-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.2;
  margin: 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 400;
  color: var(--color-brown);
  line-height: 1.3;
  margin: 0 0 var(--spacing-sm) 0;
}

.quote-text {
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  color: var(--color-gold);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   fullPage.js Navigation - Diamond Style
   ========================================================================== */

/* ==========================================================================
   Custom Chapter Navigation (8 diamond dots)
   ========================================================================== */

.chapter-nav {
  position: fixed;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  transition: opacity 0.3s ease;
}

.chapter-nav--hidden {
  opacity: 0;
  pointer-events: none;
}

.chapter-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chapter-nav li {
  margin: 0;
  padding: 0;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}

.chapter-nav__dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--color-brown);
  border: 2px solid var(--color-brown);
  border-radius: 0;
  transform: rotate(45deg);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chapter-nav a.active .chapter-nav__dot {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.chapter-nav a:hover .chapter-nav__dot {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* Up/Down triangular arrows */
.chapter-nav__arrow {
  display: block;
  width: 0;
  height: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 0;
}

.chapter-nav__arrow--up {
  margin-bottom: 18px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid var(--color-gold);
}

.chapter-nav__arrow--down {
  margin-top: 18px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--color-gold);
}

.chapter-nav__arrow:hover {
  border-bottom-color: var(--color-gold-dark);
  border-top-color: var(--color-gold-dark);
}

.chapter-nav__tooltip {
  position: absolute;
  left: 28px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-charcoal);
  background: var(--color-white);
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chapter-nav a:hover .chapter-nav__tooltip {
  opacity: 1;
}

/* ==========================================================================
   Header Bar (Top Chapter Navigation)
   ========================================================================== */

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: image-set(url('../assets/images/optimized/header_bg-1920.webp') type('image/webp'), url('../assets/images/optimized/header_bg-1920.jpg') type('image/jpeg')) center / cover no-repeat;
  height: 150px;
  padding: 0 var(--spacing-md);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(120, 80, 30, 0.7);
  z-index: 0;
}

.header-bar > * {
  position: relative;
  z-index: 1;
}

.header-bar--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.header-bar__logo {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}

.header-bar__logo img {
  height: 80px;
  width: auto;
  display: block;
}

.header-bar__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-md);
}

.header-bar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-bar__toggle:hover {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.header-bar__toggle-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: currentColor;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-bar--menu-open .header-bar__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header-bar--menu-open .header-bar__toggle-line:nth-child(2) {
  opacity: 0;
}

.header-bar--menu-open .header-bar__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-bar__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.header-bar__link:hover {
  color: var(--color-gray-200);
}

.header-bar__link.active {
  font-weight: 700;
  border-bottom-color: var(--color-gold);
}

/* ==========================================================================
   Homepage Section
   ========================================================================== */

.section--home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image - covers full viewport */
.home__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Dark overlay for text readability */
.home__background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Main content container - two-column editorial layout */
.home__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xl);
  text-align: left;
  max-width: var(--content-width);
  padding: var(--spacing-lg);
  color: var(--color-white);
}

/* Left column: title + subtitle + logo */
.home__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

/* Right column: intro + button */
.home__body {
  flex: 1;
  min-width: 0;
}

/* Logo - below title/subtitle */
.home__logo {
  width: 200px;
  height: auto;
  margin-top: var(--spacing-md);
  margin-left: 25px;
}

/* Title */
.home__title {
  margin: 0;
}

.home__title-svg {
  display: block;
  width: 320px;
  height: auto;
}

/* Introduction text */
.home__intro {
  margin-bottom: var(--spacing-lg);
  background: rgba(237, 227, 213, 0.7);
  padding: var(--spacing-md);
  border-radius: 4px;
}

.home__intro p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-black);
  margin-bottom: var(--spacing-sm);
}

.home__intro p:last-child {
  margin-bottom: 0;
}

/* Enter button - transparent with white border, gold on hover */
.home__button {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  background: transparent;
  border: 2px solid var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.home__button:hover,
.home__button:focus {
  color: var(--color-charcoal);
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.home__button:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Footer - positioned at bottom-right */
.home__footer {
  position: absolute;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 2;
}

.home__footer-link {
  display: block;
  transition: opacity 0.3s ease;
}

.home__footer-link:hover {
  opacity: 0.8;
}

.home__footer-logo {
  height: 60px;
  width: auto;
}

/* ==========================================================================
   Content Block Components
   ========================================================================== */

/* Base content block - provides consistent margins */
.content-block {
  max-width: var(--content-width);
  margin: 0 0 var(--spacing-md) 0;
  padding: 0;
}

.content-block:last-child {
  margin-bottom: 0;
}

/* Text content block - paragraph content */
.content-block--text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-charcoal);
}

.content-block--text p {
  margin: 0 0 var(--spacing-sm) 0;
}

.content-block--text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Portrait/Quote Component
   ========================================================================== */

/* Portrait container - flex layout for image and info */
.portrait {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  max-width: var(--content-width);
  margin: 0 0 var(--spacing-lg) 0;
  padding: 0;
}

/* Portrait image - circular/styled photo */
.portrait__image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
}

/* Portrait info container - name, role, and quote */
.portrait__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Portrait name - reordered below quote */
.portrait__name {
  order: 2;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: var(--spacing-sm) 0 0 0;
}

/* Portrait role - reordered below name */
.portrait__role {
  order: 3;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-gray-500);
  margin: 2px 0 0 0;
}

/* Portrait quote blockquote */
.portrait__quote {
  order: 1;
  position: relative;
  font-family: var(--font-title);
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-charcoal);
  margin: 0;
  padding: 0;
}

/* Decorative opening quote mark */
.portrait__quote::before {
  content: '';
  display: block;
  width: 30px;
  height: 23px;
  background: url('../assets/svg/quote_close.svg') no-repeat center / contain;
  margin-bottom: var(--spacing-xs);
}

/* Decorative closing quote mark - inline after last word */
.portrait__quote::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 23px;
  background: url('../assets/svg/quote_open.svg') no-repeat center / contain;
  margin-left: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   Intercalaire Component (Full-width Image with Caption)
   ========================================================================== */

/* Intercalaire figure container */
.intercalaire {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 0 var(--spacing-lg) 0;
  padding: 0;
}

.intercalaire:last-child {
  margin-bottom: 0;
}

.intercalaire--compact {
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
}

.intercalaire--compact .intercalaire__image {
  width: auto;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
  object-fit: contain;
}

/* Intercalaire image - spans full width */
.intercalaire__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Intercalaire caption */
.intercalaire figcaption,
.intercalaire__caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--color-gray-500);
  text-align: center;
  margin-top: var(--spacing-sm);
  padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Carousel Component (Nested Image Carousel)
   ========================================================================== */

/* Carousel container - separate from fullPage.js slides */
.carousel {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto var(--spacing-lg) auto;
  overflow: hidden;
  container-type: inline-size;
}

.carousel:last-child {
  margin-bottom: 0;
}

/* Slides wrapper - contains all slides in a row */
.carousel__slides {
  display: flex;
  transition: transform 0.4s ease;
}

/* Individual slide */
.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

/* Slide image */
.carousel__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Slide caption */
.carousel__caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--color-gray-500);
  text-align: center;
  margin-top: var(--spacing-sm);
  padding: 0 var(--spacing-md);
}

/* Navigation buttons - prev/next */
.carousel__prev,
.carousel__next {
  position: absolute;
  top: calc(50cqi * 9 / 16);
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--color-gold-dark);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel__prev {
  left: var(--spacing-sm);
}

.carousel__next {
  right: var(--spacing-sm);
}

.carousel__prev:hover,
.carousel__next:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.carousel__prev:focus,
.carousel__next:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Arrow icons inside buttons */
.carousel__prev::before,
.carousel__next::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--color-charcoal);
  border-right: 2px solid var(--color-charcoal);
}

.carousel__prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.carousel__next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* Pagination dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  padding: 0;
  list-style: none;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--color-gold-dark);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel__dot:hover {
  border-color: var(--color-gold);
}

.carousel__dot:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Active dot state */
.carousel__dot--active,
.carousel__dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
}


/* ==========================================================================
   Slide Variants
   ========================================================================== */

/* Light theme slides */
.slide--light {
  background-color: #EDE3D5;
  position: relative;
}

/* Chapter backgrounds: photo + motif + gradient */
.slide--light[data-chapter] {
  background: center / cover no-repeat;
}
.slide--light[data-chapter="naissance"]  { background-image: image-set(url('../assets/images/optimized/01-naissance/naissance_fond-960.webp') type('image/webp'), url('../assets/images/optimized/01-naissance/naissance_fond-960.jpg') type('image/jpeg')); }
.slide--light[data-chapter="diagnostic"] { background-image: image-set(url('../assets/images/optimized/02-diagnostic/2.0-background-1920.webp') type('image/webp'), url('../assets/images/optimized/02-diagnostic/2.0-background-1920.jpg') type('image/jpeg')); }
.slide--light[data-chapter="conception"] { background-image: image-set(url('../assets/images/optimized/03-conception/3.0-background-1920.webp') type('image/webp'), url('../assets/images/optimized/03-conception/3.0-background-1920.jpg') type('image/jpeg')); }
.slide--light[data-chapter="animation"]  { background-image: image-set(url('../assets/images/optimized/04-animation/4.0-background-960.webp') type('image/webp'), url('../assets/images/optimized/04-animation/4.0-background-960.jpg') type('image/jpeg')); }
.slide--light[data-chapter="gestion"]    { background-image: image-set(url('../assets/images/optimized/05-gestion/5.0-background-1920.webp') type('image/webp'), url('../assets/images/optimized/05-gestion/5.0-background-1920.jpg') type('image/jpeg')); }
.slide--light[data-chapter="et-apres"]   { background-image: image-set(url('../assets/images/optimized/06-et-apres/6.0-background-1920.webp') type('image/webp'), url('../assets/images/optimized/06-et-apres/6.0-background-1920.jpg') type('image/jpeg')); }

.slide--light[data-chapter]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/svg/motif.svg') center / 80px repeat;
  opacity: 0.3;
  z-index: 0;
}

.slide--light[data-chapter]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #e8e2db 60%, transparent 100%);
  z-index: 0;
}

.slide--light[data-chapter] .slide__content {
  position: relative;
  z-index: 1;
}

/* Slide content container - scrollable area within slide */
.slide__content {
  box-sizing: border-box;
  min-height: 100%;
  height: auto;
  overflow: visible;
  max-width: 60%;
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 140px;
  padding-top: 170px; /* Space for fixed header bar */
}

/* Chapter header on light slides */
.slide__chapter-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  max-width: var(--content-width);
  margin: 0 0 var(--spacing-lg) 0;
  padding: 0;
}

.slide__chapter-num {
  display: none;
}

.slide__chapter-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide__chapter-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-brown);
  margin-top: var(--spacing-xs);
}

.slide__section-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  font-style: normal;
  color: var(--color-brown);
  line-height: 1.2;
  margin: var(--spacing-md) 0;
}

/* Dark theme slides - "Pour aller plus loin" */
.slide--dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  position: relative;
}

.slide--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/svg/motif.svg') center / 80px repeat;
  opacity: 0.15;
  z-index: 0;
}

.slide--dark .content-block--text {
  color: var(--color-white);
}

.slide--dark .portrait__name,
.slide--dark .portrait__quote {
  color: var(--color-white);
}

.slide--dark .portrait__role {
  color: var(--color-gray-400);
}

.slide--dark .intercalaire__caption,
.slide--dark .intercalaire figcaption {
  color: var(--color-gray-400);
}

/* ==========================================================================
   Plus Loin Section (Dark Slides)
   ========================================================================== */

/* Main container for "Pour aller plus loin" slides */
.plus-loin {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Header section with chapter number and titles */
.plus-loin__header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  padding-top: 170px; /* Space for fixed header bar */
  padding-bottom: var(--spacing-md);
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Chapter number - gold bordered square */
.plus-loin__chapter-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-gold);
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 400;
  color: var(--color-gold);
}

/* Title wrapper for main and sub title */
.plus-loin__titles {
  flex: 1;
  min-width: 0;
}

/* Main title - chapter-specific heading */
.plus-loin__title {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
  line-height: 1.3;
}

/* Content area - panel carousel container */
.plus-loin__content {
  flex: 1;
  overflow: hidden;
  padding: 0;
  max-width: 100%;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Panel carousel track */
.panel-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

/* Individual panels */
.plus-loin__content .plus-loin-section {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0 var(--spacing-lg);
  padding-bottom: 130px;
  box-sizing: border-box;
  margin-bottom: 0;
}

/* Panel carousel navigation arrows */
.panel-carousel__prev,
.panel-carousel__next {
  position: absolute;
  bottom: var(--spacing-sm);
  z-index: 10;
  width: 56px;
  height: 56px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.panel-carousel__prev {
  left: var(--spacing-xl);
}

.panel-carousel__next {
  right: var(--spacing-xl);
}

.panel-carousel__prev:hover,
.panel-carousel__next:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Arrow icons */
.panel-carousel__prev::before,
.panel-carousel__next::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.panel-carousel__prev:hover::before,
.panel-carousel__next:hover::before {
  border-color: white;
}

.panel-carousel__prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.panel-carousel__next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* Panel carousel dots */
.panel-carousel__dots {
  position: absolute;
  bottom: calc(var(--spacing-sm) + 25px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
  width: 60%;
}

.panel-carousel__dot {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.panel-carousel__dot.active {
  background: var(--color-gold);
}

/* Footer with gold background and next chapter link */
.plus-loin__footer {
  background-color: var(--color-gold);
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  justify-content: flex-end;
}

/* Next chapter link inside footer */
.plus-loin__footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.plus-loin__footer-link:hover,
.plus-loin__footer-link:focus {
  opacity: 0.75;
}

.plus-loin__footer-link:focus {
  outline: 2px solid var(--color-charcoal);
  outline-offset: 2px;
}

/* Footer structured content */
.plus-loin__footer-label {
  font-weight: 700;
  text-transform: uppercase;
}

.plus-loin__footer-sep {
  color: var(--color-charcoal);
  opacity: 0.5;
}

.plus-loin__footer-title {
  font-weight: 400;
}

/* Arrow icon in footer link */
.plus-loin__footer-arrow {
  width: 24px;
  height: auto;
}

/* ==========================================================================
   Plus Loin Section Types
   ========================================================================== */

/* Video Section - "En vidéo" content type */
.plus-loin-section--video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Section label tag (e.g., "En vidéo", "Témoignage") */
.plus-loin-section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  background-color: var(--color-gold);
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* Section title within plus-loin sections */
.plus-loin-section__title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-gold);
  margin: 0 0 var(--spacing-md) 0;
}

/* Video player container */
.video-player {
  position: relative;
  width: 100%;
  max-width: 100%;
  background-color: var(--color-black);
}

/* Video element - responsive with max height */
.video-player video,
.video-player__video {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
}

/* Video title/caption below player */
.video-player__title {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-gray-400);
  margin-top: var(--spacing-sm);
  text-align: center;
}

/* Video player controls gradient overlay */
.video-player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   Testimonial Section - "En témoignage" content type
   ========================================================================== */

/* Testimonial section container */
.plus-loin-section--testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Testimonial component - image left, content right */
.testimonial {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

/* Portrait image - circular with gold border */
.testimonial__image {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
}

/* Info section - name, role, quote */
.testimonial__info {
  flex: 1;
  min-width: 0;
}

/* Name styling */
.testimonial__name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-white);
  margin: 0 0 var(--spacing-xs) 0;
}

/* Role styling */
.testimonial__role {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-gray-400);
  margin: 0 0 var(--spacing-md) 0;
}

/* Large quote text */
.testimonial__quote {
  position: relative;
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-white);
  margin: 0;
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--color-gold);
}

/* Decorative quote mark before */
.testimonial__quote::before {
  content: '\201C';
  position: absolute;
  left: -8px;
  top: -10px;
  font-family: var(--font-title);
  font-size: 56px;
  font-style: normal;
  color: var(--color-gold);
  line-height: 1;
}

/* Decorative quote mark after */
.testimonial__quote::after {
  content: '\201D';
  font-family: var(--font-title);
  font-size: 56px;
  font-style: normal;
  color: var(--color-gold);
  line-height: 1;
  vertical-align: -0.4em;
  margin-left: 4px;
}

/* ==========================================================================
   Image-Text Section - Two-column content with download links
   ========================================================================== */

/* Container - two column flex layout */
.plus-loin-section--image-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Image column - figure with caption */
.plus-loin-section--image-text .plus-loin-section__image {
  flex: 0 0 auto;
  width: min(100%, 1120px);
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.plus-loin-section--testimonial .plus-loin-section__image {
  margin: 0 auto;
}

.plus-loin-section__image figure {
  margin: 0;
}

.plus-loin-section--image-text .plus-loin-section__image img {
  display: block;
  width: 100%;
  height: clamp(420px, 48vh, 560px);
  flex: 0 0 auto;
  object-fit: cover;
}

.plus-loin-section__image figcaption {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--color-gray-400);
  margin-top: var(--spacing-sm);
}

/* Content column - text and tool links */
.plus-loin-section--image-text .plus-loin-section__content {
  flex: 0 0 auto;
  width: min(100%, 1120px);
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.plus-loin-section__content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-white);
  margin: 0 0 var(--spacing-sm) 0;
}

.plus-loin-section__content p:last-child {
  margin-bottom: 0;
}

/* Responsibilities list in dark theme */
.responsibilities-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0;
}

.responsibilities-list li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.responsibilities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

/* Tool download links container */
.tool-downloads {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Individual tool download link */
.tool-download {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tool-download:hover,
.tool-download:focus {
  color: var(--color-gold-dark);
}

.tool-download:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Download icon (PDF icon using inline SVG) */
.tool-download::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.tool-download__title {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tool-download__description {
  font-weight: 400;
  color: var(--color-gray-400);
  margin-left: var(--spacing-xs);
}

/* ==========================================================================
   Carousel Section - Dark theme carousel with text
   ========================================================================== */

.plus-loin-section--carousel {
  margin-bottom: var(--spacing-lg);
}

.plus-loin-section--carousel .plus-loin-section__title {
  margin-bottom: var(--spacing-md);
}

/* Carousel in dark theme - lighter styling */
.plus-loin-section--carousel .carousel {
  margin-bottom: var(--spacing-md);
}

.plus-loin-section--carousel .carousel__caption {
  color: var(--color-gray-300);
}

/* Content text after carousel */
.plus-loin-section--carousel .content-block--text p {
  color: var(--color-white);
}

/* ==========================================================================
   Microprojets Carousel Section - Card-style carousel for micro-projects
   ========================================================================== */

.plus-loin-section--microprojets {
  margin-bottom: var(--spacing-lg);
}

.plus-loin-section--microprojets .plus-loin-section__title {
  margin-bottom: var(--spacing-md);
}

/* Microprojet carousel specific */
.carousel--microprojets .carousel__slide {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.carousel--microprojets .carousel__image {
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

/* Microprojet card */
.microprojet {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: var(--spacing-md);
}

.microprojet__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.microprojet__title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-gold);
  margin: 0;
}

.microprojet__carrier {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.microprojet__meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-gray-400);
  margin: 0;
}

.microprojet__activity {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-200);
  margin: var(--spacing-xs) 0 0 0;
}

/* ==========================================================================
   Credits Section
   ========================================================================== */

.section--credits {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
}

.credits {
  max-width: var(--content-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 140px;
  padding-top: 170px; /* Space for fixed header bar */
}

.credits__header {
  text-align: left;
  margin-bottom: var(--spacing-md);
}

.credits__title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-gold);
  margin: 0;
}

/* Postfaces */
.credits__postfaces {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.credits__postface {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-gold);
  padding: var(--spacing-md);
  border-radius: 0 4px 4px 0;
}

.credits__postface-author {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-gold);
  margin: 0 0 var(--spacing-xs) 0;
}

.credits__postface-content {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-gray-200);
  margin: 0;
}

/* Credits Body - Category Grid */
.credits__body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md) var(--spacing-lg);
}

.credits__category {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.credits__category-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.credits__category-names {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credits__category-names li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
}

.credits__category-note {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--color-gray-400);
  margin: 4px 0 0 0;
}

/* External Links */
.credits__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credits__links-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-gold);
  margin: 0 0 var(--spacing-xs) 0;
}

.credits__link {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.credits__link:hover {
  color: var(--color-gold-dark);
}

.credits__link::after {
  content: " →";
  font-size: 14px;
}

/* Partner Logos */
.credits__partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credits__partner-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.credits__partner-logo:hover {
  opacity: 1;
}

/* Responsive adjustments for credits */
@media (max-width: 768px) {
  .credits__body {
    grid-template-columns: 1fr;
  }

  .credits__title {
    font-size: 36px;
  }

  .credits__partners {
    gap: var(--spacing-md);
  }

  .credits__partner-logo {
    height: 50px;
  }
}
