/* ==========================================================================
   SBTA BOUAKÉ - STYLES PRINCIPAUX
   Fidélité stricte aux maquettes Figma et captures d'écran fournies
   ========================================================================== */

:root {
  --color-purple: #6E2480;       /* rgba(110, 36, 128, 1) */
  --color-purple-dark: #551c63;
  --color-green: #216C3E;        /* rgba(33, 108, 62, 1) */
  --color-green-light: #2a8a4f;
  --color-red: #E0051D;          /* rgba(224, 5, 29, 1) */
  --color-dark: #121214;
  --color-text-dark: #1f2937;
  --color-text-muted: #4b5563;
  --color-white: #ffffff;
  
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-whisper: 'Whisper', cursive;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 9px;
  --radius-hero-btn: 8px;
  --radius-sec2-card: 19px;
}

/* Reset de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-inter);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Whisper supplies its own handwritten slant; avoid synthetic bold or italic. */
.whisper-font {
  font-family: var(--font-whisper);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: normal;
}

.whisper-word {
  display: inline-block;
}

/* ==========================================================================
   PAGE 1 — SECTION HERO
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #0d0f12;
}

/* Vidéo d'arrière-plan du car */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

/* Dégradé de contraste pour garantir la lisibilité du texte sans masquer le car */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 16, 0.82) 0%,
    rgba(10, 12, 16, 0.65) 35%,
    rgba(10, 12, 16, 0.25) 60%,
    rgba(10, 12, 16, 0.05) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-top-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
}

/* Barre de navigation supérieure */
.hero-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-badge {
  background: var(--color-white);
  padding: 4px 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-logo {
  display: block;
  width: 48px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-white);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  opacity: 0.85;
}

.btn-nav-purple {
  background-color: var(--color-purple);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(110, 36, 128, 0.35);
}

.btn-nav-purple:hover {
  background-color: var(--color-purple-dark);
  transform: translateY(-1px);
}

/* Contenu textuel et CTA du Hero */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 48px 242px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-block {
  max-width: 580px;
  transform: translateY(20px);
}

.hero-eyebrow {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-inter);
  font-weight: 800;
  font-size: 54px;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-word {
  display: inline-block;
}

.hero-word-voyage {
  font-family: var(--font-whisper);
  font-size: 116px;
  line-height: 0.65;
  margin: 0 4px;
  vertical-align: baseline;
}

.hero-description {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 510px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-gold-glass {
  background: rgba(138, 107, 72, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius-hero-btn);
  transition: var(--transition-smooth);
}

.btn-gold-glass:hover {
  background: rgba(158, 125, 87, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-white-solid {
  background: var(--color-white);
  color: #1a1a1a;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius-hero-btn);
  transition: var(--transition-smooth);
}

.btn-white-solid:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}


/* ==========================================================================
   PAGE 2 — DEUXIÈME SECTION (Teaser Destinations)
   ========================================================================== */
.section-destinations-teaser {
  position: relative;
  width: 100%;
  min-height: 1024px;
  background-color: var(--color-white);
  padding: 100px 0 120px;
  overflow: hidden;
}

/* Bande décorative typique exacte issue de la maquette */
.teaser-bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.teaser-bands-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: 100%;
  pointer-events: none;
  will-change: transform, opacity;
}

.teaser-band {
  position: absolute;
  inset: 0;
}

.teaser-band-purple {
  background: var(--color-purple);
  clip-path: polygon(0 16%, 100% 78%, 100% 100%, 0 54%);
}

.teaser-band-green {
  background: var(--color-green);
  clip-path: polygon(0 54%, 100% 100%, 100% 115%, 0 69%);
}

.teaser-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* En-tête de la section 2 */
.teaser-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  max-width: 1256px;
  margin-left: auto;
  margin-right: auto;
}

.teaser-header-left {
  flex: 1;
  max-width: 520px;
}

.teaser-title-main {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 32px;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 6px;
}

.teaser-title-main .text-green {
  color: var(--color-green);
}

.teaser-title-sub {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 28px;
  color: #111827;
}

.teaser-header-right {
  flex: 1;
  max-width: 500px;
}

.teaser-desc {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: #111827;
}

/* Conteneur et Carte centrale du car */
.teaser-card-wrapper {
  max-width: 1256px;
  margin: 0 auto;
  border-radius: var(--radius-sec2-card);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.teaser-card {
  position: relative;
  width: 100%;
  height: 641px;
  background: url('../assets/images/bus_section2.png') no-repeat center center / cover;
  will-change: clip-path;
}

/* Dégradé violet sur la partie basse de la carte */
.teaser-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(
    180deg,
    rgba(110, 36, 128, 0) 0%,
    rgba(110, 36, 128, 0.45) 45%,
    rgba(110, 36, 128, 0.82) 100%
  );
  pointer-events: none;
}

/* Contenu en bas à gauche de la carte */
.teaser-card-content {
  position: absolute;
  bottom: 44px;
  left: 44px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaser-card-subtext {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.teaser-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 13px;
  padding: 12px 24px;
  color: var(--color-white);
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 18px;
  transition: var(--transition-smooth);
}

.teaser-card-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}


/* ==========================================================================
   PAGE 3 — TROISIÈME SECTION (Carrousel des destinations)
   ========================================================================== */
.section-destinations-deck {
  position: relative;
  width: 100%;
  min-height: 820px;
  background-color: var(--color-white);
  padding: 60px 0 80px;
  overflow: hidden;
}

.deck-container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
}

/* En-tête centré */
.deck-header {
  text-align: center;
  margin-bottom: 24px;
}

.deck-title {
  font-family: var(--font-inter);
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.deck-word {
  display: inline-block;
}

.deck-word-count {
  color: var(--color-purple);
  font-weight: 800;
}

.deck-word-rest {
  color: #111827;
  font-weight: 400;
}

.deck-word-voyage {
  font-family: var(--font-whisper);
  font-size: 76px;
  margin-left: 6px;
  color: #111827;
}

.deck-description {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: #2b2b2b;
  max-width: 760px;
  margin: 0 auto;
}

.deck-desc-line {
  display: block;
}

/* Barre de commandes au-dessus des cartes */
.deck-controls-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.deck-controls-bottom {
  margin: 20px 0 0;
}

.deck-state-counter {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  margin-right: 8px;
}

.nav-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #D9D9D9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  transition: var(--transition-smooth);
}

.nav-arrow-btn svg {
  width: 12px;
  height: 12px;
  stroke: #111827;
  stroke-width: 2.4;
  fill: none;
}

.nav-arrow-btn:hover:not(:disabled) {
  background-color: var(--color-purple);
  color: var(--color-white);
  transform: scale(1.08);
}

.nav-arrow-btn:hover:not(:disabled) svg {
  stroke: var(--color-white);
}

.nav-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Vue carrousel */
.deck-carousel-viewport {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
}

.deck-carousel-track {
  display: flex;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.deck-slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 272px);
  justify-content: space-between;
  gap: 20px;
}

.deck-slide-final {
  grid-template-columns: repeat(3, 272px);
  justify-content: start;
  gap: 28px;
  padding-left: 32px;
}


/* Composant Destination Card */
.dest-card {
  position: relative;
  width: 272px;
  height: 359px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background-color: #e5e7eb;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* Dégradé sombre inférieur pour contraste du prix */
.dest-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

/* Badge du nom de la ville en haut à gauche */
.dest-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dest-card-city {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--color-white);
  text-transform: uppercase;
}

/* Zone tarif en bas à gauche */
.dest-card-price-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dest-card-tag-tarif {
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

.dest-card-price {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 19px;
  color: var(--color-white);
  letter-spacing: 0.3px;
}

/* Barre d'action inférieure */
.deck-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding: 0 4px;
}

.btn-retour-green {
  background-color: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 26px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(33, 108, 62, 0.2);
}

.btn-retour-green:hover {
  background-color: var(--color-green-light);
  transform: translateY(-1px);
}

.btn-horaires-purple {
  background-color: var(--color-purple);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(110, 36, 128, 0.25);
}

.btn-horaires-purple:hover {
  background-color: var(--color-purple-dark);
  transform: translateY(-1px);
}


/* ==========================================================================
   RESPONSIVE DESIGN (Tablette & Mobile)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 46px;
  }
  .hero-word-voyage {
    font-size: 88px;
  }
  .hero-content {
    padding-bottom: 124px;
  }
  .deck-word-voyage {
    font-size: 64px;
  }
  .deck-slide {
    grid-template-columns: repeat(2, 272px);
    justify-content: center;
    gap: 24px;
  }
  .deck-slide-final {
    padding-left: 0;
  }
  .deck-slide-final .dest-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .teaser-card {
    height: 520px;
  }
}

@media (max-width: 900px) {
  .hero-header {
    padding: 20px 24px;
  }
  .nav-links {
    display: none;
  }
  .teaser-header {
    flex-direction: column;
    gap: 20px;
  }
  .teaser-desc {
    font-size: 17px;
  }
  .teaser-card {
    height: 440px;
  }
  .teaser-card-btn {
    font-size: 15px;
    padding: 10px 18px;
  }
}

@media (max-width: 640px) {
  .hero-video-wrapper {
    height: 86%;
  }
  .hero-video {
    object-position: center top;
  }
  .hero-overlay {
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.04) 0%,
      rgba(10, 12, 16, 0.04) 61%,
      rgba(13, 15, 18, 0.38) 70%,
      rgba(13, 15, 18, 0.9) 80%,
      #0d0f12 100%
    );
  }
  .hero-header {
    padding: 16px;
  }
  .btn-nav-purple {
    padding: 7px 14px;
    font-size: 11px;
  }
  .hero-content {
    padding: 10px 20px 56px;
    background: linear-gradient(
      180deg,
      rgba(13, 15, 18, 0.25) 0%,
      #0d0f12 34%,
      #0d0f12 100%
    );
    text-align: center;
  }
  .hero-text-block {
    width: 100%;
    max-width: none;
    transform: none;
  }
  .hero-eyebrow {
    margin-bottom: 12px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .hero-title {
    margin-bottom: 14px;
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.06;
  }
  .hero-word-voyage {
    font-size: clamp(46px, 13vw, 56px);
  }
  .hero-description {
    max-width: none;
    margin: 0 auto 22px;
    font-size: 11px;
    line-height: 1.35;
  }
  .hero-actions {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 14px;
  }
  .hero-actions a {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    font-size: 10px;
    line-height: 1.2;
  }
  .btn-white-solid {
    order: 0;
  }
  .btn-gold-glass {
    order: 1;
  }
  .btn-gold-glass, .btn-white-solid {
    text-align: center;
  }
  .teaser-container, .deck-container {
    padding: 0 20px;
  }
  .teaser-title-main {
    font-size: 26px;
  }
  .teaser-title-sub {
    font-size: 22px;
  }
  .deck-title {
    font-size: 28px;
  }
  .deck-word-voyage {
    font-size: 48px;
  }
  .deck-description {
    font-size: 15px;
  }
  .deck-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    gap: 12px;
  }
  .dest-card {
    width: 100%;
    max-width: none;
    height: clamp(220px, 58vw, 320px);
  }
  .deck-slide-mobile-single .dest-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 12px) / 2);
  }
  .dest-card-badge {
    top: 8px;
    left: 8px;
    padding: 4px 6px;
  }
  .dest-card-city {
    font-size: 9px;
  }
  .dest-card-price-info {
    bottom: 12px;
    left: 10px;
  }
  .dest-card-tag-tarif {
    font-size: 9px;
  }
  .dest-card-price {
    font-size: 15px;
  }
}


/* ==========================================================================
   PAGE 4 — SECTION HORAIRES DE DÉPART (Fidèle à Frame 14.png)
   ========================================================================== */
.section-horaires {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #FAF9FC;
  padding: 100px 0 120px;
  overflow: hidden;
}

/* Cercles décoratifs d'arrière-plan */
.horaires-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.horaires-circle-green {
  position: absolute;
  top: 80px;
  left: -160px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 108, 62, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(25px);
}

.horaires-circle-purple {
  position: absolute;
  top: 380px;
  right: -180px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 36, 128, 0.12) 0%, rgba(245, 240, 246, 0) 70%);
  filter: blur(25px);
}

.horaires-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* En-tête */
.horaires-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 32px;
}

.horaires-title {
  font-size: 38px;
  line-height: 1.18;
  color: var(--color-dark);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.horaires-title .text-bold {
  font-weight: 800;
}

.horaires-title .text-purple {
  color: var(--color-purple);
  font-weight: 800;
}

.horaires-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 440px;
  text-align: left;
}

/* Liste des cartes d'horaires */
.horaires-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.horaires-card {
  position: relative;
  width: 100%;
  min-height: 94px;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.horaires-card.horaires-card-abidjan {
  min-height: 112px;
}

.horaires-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* Badge ville à gauche */
.horaires-badge-city {
  margin-left: 28px;
  z-index: 1;
  flex-shrink: 0;
}

.horaires-badge-city span {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

/* Bande transparente floutée (Glassmorphism & Background Blur fidèle à Figma & Frame 14.png) */
.horaires-glass-panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 60%;
  height: 100%;
  min-height: 94px;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  padding: 10px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
}

.horaires-glass-panel.horaires-glass-panel-multi {
  min-height: 112px;
  padding: 12px 24px;
}

/* Badge rouge HEURE : */
.horaires-badge-heure {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(224, 5, 29, 0.35);
  text-transform: uppercase;
}

/* Grille et rangée des capsules d'heures */
.horaires-hours-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  max-width: 560px;
}

.horaires-hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Capsule individuelle d'heure */
.horaires-hour-pill {
  display: inline-block;
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 9px;
  padding: 6px 14px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.horaires-hour-pill:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.48);
}

/* Nombre de départs par jour */
.horaires-dep-count {
  margin-left: auto;
  color: var(--color-white);
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.horaires-dep-count strong {
  font-weight: 800;
}

/* Bas de section : notice et bouton */
.horaires-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  gap: 32px;
}

.horaires-footer-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 780px;
}

.horaires-notice-tag {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.horaires-notice-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-weight: 500;
}

.btn-gare-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-purple);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(110, 36, 128, 0.25);
}

.btn-gare-purple:hover {
  background-color: var(--color-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 36, 128, 0.35);
}

/* Responsivité de la page 4 */
@media (max-width: 992px) {
  .horaires-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .horaires-glass-panel {
    min-width: 55%;
  }
  .horaires-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .btn-gare-purple {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-horaires {
    padding: 60px 0 80px;
  }
  .horaires-title {
    font-size: 28px;
  }
  .horaires-card {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  .horaires-badge-city {
    margin: 16px 20px 12px;
  }
  .horaires-glass-panel {
    width: 100%;
    min-height: auto;
    border-radius: 0 0 15px 15px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  .horaires-dep-count {
    margin-left: 0;
    width: 100%;
    text-align: right;
    margin-top: 8px;
  }
}


/* ==========================================================================
   PAGE 5 — SERVICES COLIS
   ========================================================================== */
.section-services {
  position: relative;
  min-height: 1027px;
  padding: 52px 0 44px;
  overflow: hidden;
  isolation: isolate;
  background: #f3f7f4;
}

.services-container {
  position: relative;
  z-index: 1;
  width: min(1348px, calc(100% - 92px));
  margin: 0 auto;
}

.services-decor {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.services-decor-left {
  top: 10px;
  left: 5.5%;
  width: 565px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(197, 137, 54, 0.25), rgba(255, 255, 255, 0));
}

.services-decor-right {
  top: 112px;
  right: -280px;
  width: 565px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(197, 137, 54, 0.23), rgba(255, 255, 255, 0));
}

.services-decor-purple {
  top: 35px;
  left: 11%;
  width: 250px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(110, 36, 128, 0.12), rgba(255, 255, 255, 0));
}

.services-decor-bottom {
  top: 508px;
  left: 34%;
  width: 250px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(197, 137, 54, 0.12), rgba(255, 255, 255, 0));
}

.services-wordmark {
  position: absolute;
  z-index: -1;
  bottom: -192px;
  left: 2%;
  color: rgba(110, 36, 128, 0.14);
  font-size: clamp(260px, 34.7vw, 500px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.services-header {
  margin: 0 auto 35px;
  text-align: center;
}

.services-eyebrow,
.gare-eyebrow {
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.services-title {
  margin-top: 7px;
  color: #111111;
  font-size: clamp(24px, 2.23vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.services-title span,
.gare-header h2 span {
  color: var(--color-green);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.01fr);
  gap: clamp(36px, 7.2vw, 104px);
  padding-right: 54px;
  align-items: start;
}

.services-image {
  position: relative;
  aspect-ratio: 592 / 642;
  margin-top: 19px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.services-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.services-image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  content: "";
}

.services-image figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 29px;
  left: 20px;
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.services-card {
  min-height: 700px;
  padding: 21px 38px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(48, 54, 51, 0.04);
}

.services-card h3 {
  color: #111111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.services-card-header {
  text-align: center;
}

.services-card-header p {
  margin-top: 12px;
  color: #111111;
  font-size: 20px;
  line-height: 1.25;
}

.services-card-header strong {
  color: var(--color-green);
  font-weight: 700;
}

.services-practical {
  margin-top: 36px;
}

.services-practical p {
  margin-top: 23px;
  color: #111111;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.services-notice {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(217, 217, 217, 0.28);
}

.services-notice svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: var(--color-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.services-notice p {
  color: #111111;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.services-conditions {
  margin-top: 24px;
}

.services-conditions h3 {
  margin-bottom: 22px;
  text-align: center;
}

.services-conditions ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.services-conditions li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.services-conditions li svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: var(--color-purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.services-conditions li p {
  color: #111111;
  font-size: 14px;
  line-height: 1.2;
}

.services-conditions li strong {
  font-weight: 700;
}

.services-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 43px;
}

.services-back,
.services-gare-link,
.gare-itinerary,
.gare-contact {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.services-back {
  min-width: 90px;
  min-height: 28px;
  background: var(--color-green);
}

.services-gare-link,
.gare-contact {
  min-width: 155px;
  padding: 0 16px;
  background: var(--color-purple);
}

.services-back:hover,
.gare-itinerary:hover {
  background: var(--color-green-light);
  transform: translateY(-2px);
}

.services-gare-link:hover,
.gare-contact:hover {
  background: var(--color-purple-dark);
  transform: translateY(-2px);
}


/* ==========================================================================
   PAGE 6 — LA GARE
   ========================================================================== */
.section-gare {
  position: relative;
  min-height: 1027px;
  padding: 58px 0 80px;
  overflow: hidden;
  background: var(--color-white);
}

.gare-header {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
}

.gare-eyebrow {
  font-size: 12px;
}

.gare-header h2 {
  margin-top: 10px;
  color: #111111;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.gare-header > p:last-child {
  margin-top: 20px;
  color: #111111;
  font-size: 15px;
  line-height: 1.5;
}

.gare-layout {
  position: relative;
  width: min(1244px, calc(100% - 48px));
  height: 670px;
  margin: 52px auto 0;
}

.gare-map {
  position: absolute;
  top: -35px;
  left: -38px;
  display: block;
  width: min(85.2%, 1060px);
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.gare-gallery {
  position: absolute;
  z-index: 1;
  top: -14px;
  left: 56.27%;
  width: min(45.66%, 568px);
  height: 642px;
  padding: 55px 31px 47px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(42, 48, 62, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gare-photo {
  position: absolute;
  inset: 55px 31px 47px;
  overflow: hidden;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gare-photo.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gare-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gare-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 116px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  content: "";
}

.gare-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 31px;
  left: 12px;
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.gare-footer {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1244px, calc(100% - 48px));
  justify-content: space-between;
  align-items: center;
  margin: -26px auto 0;
  padding: 0 43px 0 20px;
}

.gare-itinerary {
  min-width: 211px;
  min-height: 55px;
  border-radius: 11px;
  background: var(--color-green);
  font-size: 16px;
}

.gare-contact {
  min-width: 155px;
  min-height: 38px;
  font-size: 12px;
}

.section-contact {
  position: relative;
  min-height: 100vh;
  padding: 64px 24px 88px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5f2 0%, #ffffff 42%);
}

.contact-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-circle {
  position: absolute;
  width: 330px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 137, 54, 0.28) 0%, rgba(197, 137, 54, 0) 72%);
}

.contact-circle-left {
  top: 28%;
  left: -145px;
}

.contact-circle-right {
  top: 44%;
  right: -150px;
}

.contact-header {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-eyebrow {
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.contact-header h2 {
  margin-top: 20px;
  color: #111111;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-title-gare {
  color: #c78a34;
}

.contact-title-faut {
  color: var(--color-green);
}

.contact-header > p:last-child {
  margin: 24px auto 0;
  color: #111111;
  font-size: 20px;
  line-height: 1.5;
}

.contact-container {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1200px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  margin: 76px auto 0;
  padding: 0 40px;
}

.contact-card {
  position: relative;
  min-width: 0;
  text-align: center;
}

.contact-card > img {
  display: block;
  width: 100%;
  height: 430px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(42, 48, 62, 0.16);
}

.contact-location {
  position: absolute;
  top: 24px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(21, 27, 37, 0.78);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-details {
  position: relative;
  min-height: 160px;
  margin-top: -110px;
  padding: 12px 24px 22px;
  border-radius: 0 0 18px 18px;
  background: rgba(25, 27, 34, 0.76);
  color: var(--color-white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-script {
  font-family: var(--font-whisper);
  font-size: 34px;
  line-height: 1.1;
}

.contact-phones {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
}

.contact-phones a {
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}

.contact-phones a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-itinerary {
  display: inline-flex;
  min-width: 155px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.contact-card:first-child .contact-itinerary {
  background: #c58936;
}

.contact-card:first-child .contact-itinerary:hover {
  background: #c58936;
}

.contact-itinerary:hover {
  background: var(--color-green-light);
  transform: translateY(-2px);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 34px max(5%, calc((100% - 1310px) / 2)) 24px;
  background: #fcf8f4;
  color: #111111;
}

.site-footer::before,
.site-footer::after {
  position: absolute;
  z-index: 0;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-footer::before {
  top: 112px;
  left: -155px;
  background: rgba(110, 36, 128, 0.12);
}

.site-footer::after {
  top: 112px;
  right: -110px;
  width: 320px;
  background: rgba(33, 108, 62, 0.16);
}

.site-footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1310px;
  min-height: 250px;
  margin: 0 auto;
}

.site-footer-logo {
  display: block;
  width: 56px;
  height: auto;
}

.site-footer-brandname {
  margin-top: 12px;
  font-size: 14px;
}

.site-footer-brand > p:last-child {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.site-footer-navigation h2,
.site-footer-stations h2 {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
}

.site-footer-navigation ul,
.site-footer-stations ul {
  padding-left: 18px;
}

.site-footer-navigation li,
.site-footer-stations li {
  margin-bottom: 4px;
  font-size: 16px;
}

.site-footer-navigation a:hover,
.site-footer-stations a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-stations h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.site-footer-stations ul + h3 {
  margin-top: 16px;
}

.site-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1310px;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 16px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.75);
  font-size: 14px;
}

.section-contact a:focus-visible,
.section-services a:focus-visible,
.section-gare a:focus-visible {
  outline: 3px solid #f0b42e;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .section-services {
    min-height: auto;
  }

  .services-container {
    width: min(900px, calc(100% - 48px));
  }

  .services-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    padding-right: 0;
  }

  .services-image {
    margin-top: 0;
  }

  .services-card {
    min-height: auto;
    padding: 24px;
  }

  .services-practical {
    margin-top: 26px;
  }

  .services-notice {
    gap: 12px;
    padding: 12px;
  }

  .services-conditions ul {
    gap: 10px;
  }

  .services-footer {
    margin-top: 32px;
  }

  .section-gare {
    min-height: 920px;
  }

  .gare-layout {
    height: 600px;
  }

  .gare-gallery {
    height: 570px;
    padding: 40px 24px;
  }

  .gare-photo {
    inset: 40px 24px;
  }

  .contact-container {
    gap: 36px;
    padding: 0 16px;
  }

  .site-footer-content {
    gap: 32px;
  }

  .contact-card > img {
    height: 360px;
  }

  .contact-phones a {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .section-services {
    padding: 48px 0 56px;
  }

  .services-container {
    width: calc(100% - 40px);
  }

  .services-header {
    margin-bottom: 28px;
  }

  .services-eyebrow {
    font-size: 13px;
  }

  .services-title {
    font-size: clamp(23px, 6vw, 30px);
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-image {
    width: min(100%, 520px);
    margin: 0 auto;
    aspect-ratio: 4 / 4.2;
  }

  .services-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 24px 22px;
  }

  .services-card h3 {
    font-size: 18px;
  }

  .services-card-header p {
    font-size: 18px;
  }

  .services-practical p {
    font-size: 15px;
  }

  .services-notice p {
    font-size: 11px;
  }

  .services-conditions li p {
    font-size: 13px;
  }

  .services-footer {
    margin-top: 28px;
  }

  .services-wordmark {
    bottom: -80px;
    left: -4%;
    font-size: 240px;
  }

  .section-gare {
    min-height: auto;
    padding: 48px 0 56px;
  }

  .section-contact {
    min-height: auto;
    padding: 48px 20px 64px;
  }

  .contact-circle {
    width: 240px;
  }

  .contact-header h2 {
    margin-top: 14px;
    font-size: clamp(26px, 7vw, 32px);
  }

  .contact-header > p:last-child {
    margin-top: 16px;
    font-size: 16px;
  }

  .contact-container {
    width: min(520px, 100%);
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 36px;
    padding: 0;
  }

  .contact-card > img {
    height: 390px;
  }

  .site-footer {
    padding: 40px 24px 20px;
  }

  .site-footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-bottom: 32px;
  }

  .site-footer-stations {
    grid-column: 1 / -1;
  }

  .contact-location {
    top: 18px;
    font-size: 16px;
  }

  .gare-header h2 {
    font-size: 28px;
  }

  .gare-header > p:last-child {
    max-width: 580px;
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
  }

  .gare-layout {
    display: flex;
    width: calc(100% - 40px);
    height: auto;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
  }

  .gare-map {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1487 / 1058;
    object-fit: contain;
  }

  .gare-gallery {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 568 / 642;
    padding: 22px;
  }

  .gare-photo {
    inset: 22px;
  }

  .gare-photo figcaption {
    bottom: 20px;
    font-size: 16px;
  }

  .gare-footer {
    width: calc(100% - 40px);
    gap: 14px;
    margin: 24px auto 0;
    padding: 0;
  }

  .gare-itinerary,
  .gare-contact {
    min-width: 0;
    flex: 1;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .services-footer {
    gap: 12px;
  }

  .services-gare-link {
    min-width: 0;
    padding: 0 12px;
  }

  .services-notice {
    align-items: flex-start;
  }

  .gare-footer {
    flex-direction: column;
  }

  .contact-card > img {
    height: 340px;
  }

  .site-footer-content {
    grid-template-columns: 1fr;
  }

  .site-footer-stations {
    grid-column: auto;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .contact-details {
    min-height: 150px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .contact-phones {
    gap: 8px;
  }

  .contact-phones a {
    font-size: 13px;
  }

  .contact-itinerary {
    width: 100%;
  }

  .gare-itinerary,
  .gare-contact {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-services *,
  .section-gare *,
  .section-contact * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Filtre des destinations par pays */
.deck-country-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 22px;
  padding: 0 16px;
}

.deck-country-btn {
  appearance: none;
  border: 1px solid #216C3E;
  border-radius: 999px;
  background: transparent;
  color: #216C3E;
  padding: 11px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.deck-country-btn:hover {
  background: rgba(33, 108, 62, 0.08);
}

.deck-country-btn.is-active {
  background: #216C3E;
  border-color: #216C3E;
  color: #FFFFFF;
}

.deck-country-btn:focus-visible {
  outline: 2px solid #6E2480;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .deck-country-filter {
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 12px;
  }

  .deck-country-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* CORRECTIONS MOBILES — SBTA BOUAKÉ */
@media (max-width: 640px) {

  /* Image de la deuxième section : davantage de hauteur */
  .teaser-card {
    height: 520px;
    background-position: center center;
  }

  /* Cartes destinations : textes plus lisibles */
  .dest-card-badge {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    max-width: calc(100% - 20px);
  }

  .dest-card-city {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.2px;
  }

  .dest-card-price-info {
    bottom: 12px;
    left: 10px;
    right: 10px;
    gap: 5px;
  }

  .dest-card-tag-tarif {
    font-size: 10px;
    line-height: 1.3;
    padding: 3px 7px;
  }

  .dest-card-price {
    font-size: 16px;
    line-height: 1.3;
  }

  /* Espacement entre les filtres et les cartes */
  .deck-country-filter {
    margin-bottom: 20px;
  }
}

/* AJUSTEMENTS MOBILES — TEXTE ET NAVIGATION DESTINATIONS */
@media (max-width: 640px) {

  /* Texte de présentation plus confortable à lire */
  .deck-description {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.65;
    text-align: center;
    padding: 0 2px;
  }

  .deck-desc-line {
    display: inline;
  }

  .deck-desc-line::after {
    content: " ";
  }

  /* Réduire l'espace sous les cartes */
  .deck-carousel-viewport {
    min-height: 0;
  }

  .deck-controls-bottom {
    margin-top: 8px;
  }

  .deck-bottom-actions {
    margin-top: 14px;
    padding: 0;
    gap: 12px;
  }

  .btn-retour-green,
  .btn-horaires-purple {
    font-size: 12px;
    padding: 10px 14px;
    text-align: center;
  }
}
