/* Empêche le mode sombre forcé (WhatsApp WebView, Android) */
html { color-scheme: light; }

:root {
  --ocre: #C8882A;
  --ocre-dark: #9B6420;
  --ocre-light: #E8B96A;
  --terre: #6B4423;
  --terre-dark: #3D2410;
  --jaune: #F5C842;
  --bleu: #3A8FC4;
  --bleu-dark: #1D5A82;
  --vert: #4A6741;
  --creme: #F5EDD8;
  --creme-dark: #E8D8B8;
  --texte: #2A1A0A;
  --blanc: #FDFAF4;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--creme);
  color: var(--texte);
  overflow-x: hidden;
}

/* TEXTURE overlay */
body::before {
  content:'';
  position:fixed;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:9999;
  opacity:0.5;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(61,36,16,0.95);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ocre);
}

nav .nav-logo {
  font-family: 'Cinzel', serif;
  color: var(--ocre-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav ul li a {
  color: var(--creme);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

nav ul li a:hover {
  color: var(--ocre-light);
  opacity: 1;
}

/* BADGE JOUER */

.nav-jouer {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jaune);
  color: var(--terre-dark);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  animation: pulse-badge 1.6s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.nav-cta a {
  background: var(--ocre) !important;
  color: var(--terre-dark) !important;
  padding: 7px 16px;
  border-radius: 3px;
  opacity: 1 !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta a:hover {
  background: var(--jaune) !important;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--creme);
  transition: 0.3s;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 24px 60px;
  background: var(--terre-dark);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(200,136,42,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(58,143,196,0.1) 0%, transparent 50%),
    linear-gradient(180deg, #3D2410 0%, #1A0C04 100%);
}

/* Décoratif colonnes romaines */
#hero::after {
  content: 'MMDXXVI';
  position: absolute;
  bottom: 30px;
  right: 40px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--ocre);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 20px rgba(200,136,42,0.4));
  animation: fadeInDown 0.8s ease both;
}

@keyframes fadeInDown {
  from { opacity:0; transform: translateY(-30px); }
  to { opacity:1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  color: var(--ocre);
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 0.6s 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity:0; transform: translateY(10px); }
  to { opacity:1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--blanc);
  line-height: 1;
  text-shadow: 0 2px 40px rgba(200,136,42,0.3);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeIn 0.7s 0.5s ease forwards;
}

.hero-title span {
  color: var(--ocre-light);
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--creme-dark);
  letter-spacing: 0.25em;
  padding: 0 1rem;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 0.7s 0.7s ease forwards;
}

.hero-lieu {
  font-size: 0.9rem;
  color: var(--creme-dark);
  letter-spacing: 0.15em;
  margin-top: 6px;
  text-transform: uppercase;
}

.hero-lieu strong {
  color: var(--ocre-light);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 0.7s 1.1s ease forwards;
}

.badge {
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--jaune);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
}

/* Teaser vidéo dans le Hero */
.hero-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-teaser-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.45);
}

.hero-teaser-video-wrap {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200,136,42,0.2),
    0 20px 50px rgba(0,0,0,0.8),
    0 0 60px rgba(200,136,42,0.06);
}

.hero-teaser-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}


.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.7s 1.3s ease forwards;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 14px 30px;
  border-radius: 4px;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--ocre);
  color: var(--terre-dark);
  border: 2px solid var(--ocre);
}

.btn-primary:hover {
  background: var(--jaune);
  border-color: var(--jaune);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,136,42,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--creme);
  border: 2px solid rgba(245,237,216,0.4);
}

.btn-secondary:hover {
  border-color: var(--creme);
  transform: translateY(-2px);
}

/* SCROLL INDICATOR */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ocre);
  opacity: 0.6;
  animation: bounce 2s infinite;
  font-size: 1.2rem;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* SECTIONS GÉNÉRALES */
section {
  padding: 80px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--terre-dark);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--ocre), var(--jaune));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* PRÉSENTATION */
#presentation {
  background: var(--blanc);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.presentation-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4A3020;
  margin-bottom: 20px;
}

.presentation-text p:first-child::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ocre);
  float: left;
  line-height: 0.8;
  margin: 8px 12px 0 0;
}

.presentation-affiche {
  position: relative;
}

.presentation-affiche img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 20px 20px 0 var(--ocre-dark), 0 8px 40px rgba(0,0,0,0.2);
}

.stat-row {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--ocre);
  line-height: 1;
}


.stat-label {
  font-size: 0.72rem;
  color: #7A5030;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* GALERIE PHOTOS */
#galerie {
  background: var(--creme);
  padding: 80px 0;
}

#galerie .section-title {
  color: var(--terre-dark);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.galerie-item {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.galerie-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.galerie-item:hover img {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-overlay.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 14px;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 16px;
  }
}

/* PARCOURS */
#parcours {
  background: var(--terre-dark);
  color: var(--creme);
}

#parcours .section-title {
  color: var(--creme);
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.parcours-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,136,42,0.25);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.parcours-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ocre), var(--jaune));
  opacity: 0;
  transition: opacity 0.3s;
}

.parcours-card:hover {
  border-color: var(--ocre);
  background: rgba(200,136,42,0.08);
  transform: translateY(-4px);
}

.parcours-card:hover::before {
  opacity: 1;
}

.parcours-card.featured {
  border-color: var(--ocre);
  background: rgba(200,136,42,0.1);
  grid-column: span 2;
}

.parcours-card.featured::before {
  opacity: 1;
}

.card-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-distance {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blanc);
  line-height: 1;
}

.card-distance span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--creme-dark);
  margin-left: 4px;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spec-val {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--jaune);
}

.spec-label {
  font-size: 0.65rem;
  color: rgba(245,237,216,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(245,237,216,0.7);
  margin-bottom: 16px;
}

.card-infos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tag-age {
  background: rgba(58,143,196,0.2);
  color: #7AC8F0;
  border: 1px solid rgba(58,143,196,0.3);
}

.tag-depart {
  background: rgba(200,136,42,0.2);
  color: var(--ocre-light);
  border: 1px solid rgba(200,136,42,0.3);
}

.tag-tarif {
  background: rgba(74,103,65,0.3);
  color: #8EC47A;
  border: 1px solid rgba(74,103,65,0.4);
}

.tag-tarif-late {
  background: rgba(180,60,60,0.2);
  color: #F08080;
  border: 1px solid rgba(180,60,60,0.3);
  font-size: 0.62rem;
}

/* Marche nordique card */
.parcours-card.marche {
  border-color: rgba(58,143,196,0.3);
}

/* Dernière rangée parcours : carte de relief + Marche nordique */
.parcours-last-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid; /* hérite exactement les colonnes du parent */
  align-items: stretch;
}

.parcours-map-deco {
  grid-column: 1 / -2;  /* toutes les colonnes sauf la dernière */
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(200,136,42,0.25);
  background: #1a0d04;
  position: relative;
}

.parcours-map-deco > svg,
.parcours-map-deco > img {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center center;
}

.parcours-last-row > .parcours-card.marche {
  grid-column: -2 / -1; /* dernière colonne = même largeur que les autres cards */
}

@media (max-width: 768px) {
  /* Sur mobile : bascule en flex, card en haut, carte en bas */
  .parcours-last-row {
    display: flex;
    flex-direction: column;
  }
  .parcours-last-row > .parcours-card.marche {
    order: 1;
  }
  .parcours-map-deco {
    min-height: 160px;
    max-height: 200px;
    order: 2;
  }
}

/* CALCULATEUR */
#calculateur {
  background: var(--terre);
  padding: 80px 0;
}

.calc-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.calc-slider-block {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--creme-dark);
  margin-bottom: 16px;
}

.calc-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calc-bound {
  font-size: 0.75rem;
  color: var(--creme-dark);
  white-space: nowrap;
}

.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--ocre-dark);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ocre);
  border: 2px solid var(--jaune);
  cursor: pointer;
  transition: background 0.2s;
}

.calc-slider::-webkit-slider-thumb:hover {
  background: var(--jaune);
}

.calc-speed-display {
  text-align: center;
  margin-top: 18px;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--jaune);
  letter-spacing: 0.06em;
}

.calc-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--creme);
  font-size: 0.95rem;
  transition: background 0.2s;
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row:hover:not(.calc-row-header) {
  background: rgba(255,255,255,0.05);
}

.calc-row-header {
  background: rgba(0,0,0,0.2);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocre-light);
}

.calc-time {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--jaune);
  text-align: right;
  min-width: 70px;
}

.calc-barrier {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
}

.calc-barrier.ok {
  display: block;
  background: rgba(80,160,80,0.2);
  border: 1px solid rgba(80,160,80,0.4);
  color: #90d090;
}

.calc-barrier.warn {
  display: block;
  background: rgba(220,140,0,0.2);
  border: 1px solid rgba(220,140,0,0.4);
  color: #f0c060;
}

.calc-barrier.over {
  display: block;
  background: rgba(200,60,60,0.2);
  border: 1px solid rgba(200,60,60,0.4);
  color: #f08080;
}

.calc-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--creme-dark);
  opacity: 0.8;
}

@media (max-width: 600px) {
  .calc-wrapper {
    padding: 0 16px;
  }
  .calc-row {
    grid-template-columns: 1fr auto auto;
    font-size: 0.85rem;
    padding: 12px 14px;
  }
  .calc-slider-block {
    padding: 20px 16px;
  }
}

/* INSCRIPTIONS */
#inscriptions {
  background: linear-gradient(135deg, var(--creme) 0%, #EDD9AA 100%);
}

.inscription-box {
  background: var(--terre-dark);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(61,36,16,0.3);
}

.inscription-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(200,136,42,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.inscription-box h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blanc);
  margin-bottom: 12px;
}

.inscription-box p {
  color: var(--creme-dark);
  font-size: 0.95rem;
  margin-bottom: 32px;
  opacity: 0.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.inscription-deadline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--jaune);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: 4px;
  margin-bottom: 28px;
  font-weight: 600;
}

.repas-info {
  margin-top: 24px;
  font-size: 0.82rem;
  color: rgba(245,237,216,0.55);
}

.repas-info strong {
  color: var(--ocre-light);
}

/* Partage social — liens texte discrets */
.share-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(107,68,35,0.2);
}

.share-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--terre);
  margin: 0;
}

.share-sep {
  color: var(--ocre-dark);
  font-size: 0.9rem;
  line-height: 1;
}

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--terre-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.share-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.share-link:hover {
  color: var(--ocre);
}

.share-link:hover svg {
  opacity: 1;
}

/* INFOS PRATIQUES */
#infos {
  background: var(--blanc);
}

.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.info-card {
  background: var(--creme);
  border-radius: 8px;
  padding: 28px;
  border-left: 4px solid var(--ocre);
}

.info-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocre-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h4 .icon {
  font-size: 1.1rem;
}

.info-card p, .info-card li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4A3020;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card ul li::before {
  content: '→ ';
  color: var(--ocre);
  font-weight: 700;
}

/* RÈGLEMENT */
#reglement {
  background: var(--creme-dark);
}

.reglement-accordion {
  max-width: 760px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid rgba(155,100,32,0.2);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--terre-dark);
  text-transform: uppercase;
  transition: color 0.2s;
}

.accordion-header:hover {
  color: var(--ocre-dark);
}

.accordion-header .chevron {
  color: var(--ocre);
  font-size: 1rem;
  transition: transform 0.3s;
}

.accordion-header.open .chevron {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 0 0 20px;
  font-size: 0.87rem;
  line-height: 1.8;
  color: #5A3A20;
}

.accordion-body.open {
  display: block;
}

.accordion-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.accordion-body ul li {
  margin-bottom: 4px;
}

/* JEU */
#jeu {
  background: var(--creme);
  padding: 80px 24px 70px;
  overflow: hidden;
}

#jeu .jeu-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

#jeu .jeu-content { flex: 1; min-width: 0; }

#jeu .jeu-eyebrow {
  font-family: 'Cinzel', serif;
  color: var(--ocre-dark);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

#jeu .jeu-title {
  font-family: 'Cinzel', serif;
  color: var(--texte);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

#jeu .jeu-title span { color: var(--ocre); }

#jeu .jeu-desc {
  color: var(--texte);
  opacity: 0.75;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

#jeu .btn-jeu {
  display: inline-block;
  background: var(--ocre);
  color: var(--terre-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

#jeu .btn-jeu:hover { background: var(--jaune); transform: translateY(-2px); }

#jeu .jeu-cta-note {
  display: block;
  color: var(--texte);
  opacity: 0.4;
  font-size: 0.72rem;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* Mockup téléphone paysage */
#jeu .phone-wrap { flex-shrink: 0; display: flex; justify-content: center; align-items: center; }

#jeu .phone {
  position: relative;
  width: 460px;
  height: 240px;
  background: #1a0e07;
  border-radius: 32px;
  border: 3px solid #6B4423;
  box-shadow:
    0 0 0 1px rgba(200,136,42,0.3),
    inset 0 0 0 2px #2a1408,
    0 24px 64px rgba(0,0,0,0.35),
    0 4px 16px rgba(200,136,42,0.15);
}

#jeu .phone::before {
  content: '';
  position: absolute;
  top: -5px; left: 90px;
  height: 4px; width: 32px;
  background: #6B4423;
  border-radius: 2px 2px 0 0;
  box-shadow: 44px 0 0 #6B4423;
}

#jeu .phone::after {
  content: '';
  position: absolute;
  bottom: -5px; right: 80px;
  height: 4px; width: 48px;
  background: #6B4423;
  border-radius: 0 0 2px 2px;
}

#jeu .phone-notch {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 72px;
  background: #1a0e07;
  border-radius: 0 14px 14px 0;
  z-index: 3;
  border-right: 2px solid #2a1408;
}

#jeu .phone-screen {
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

#jeu .phone-screen a { display: block; height: 100%; position: relative; }

#jeu .phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

#jeu .phone-screen::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

#jeu .phone-overlay {
  position: absolute; inset: 0;
  background: rgba(61,36,16,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}

#jeu .phone-screen a:hover .phone-overlay { opacity: 1; }

#jeu .overlay-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ocre);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#jeu .overlay-play svg { width: 20px; height: 20px; fill: var(--terre-dark); margin-left: 3px; }

@media (max-width: 860px) {
  #jeu .jeu-inner { flex-direction: column; gap: 40px; align-items: center; }
  #jeu .jeu-content { text-align: center; }
  #jeu .phone { width: 340px; height: 178px; }
}

/* PARTENAIRES */
#partenaires {
  background: var(--terre-dark);
  padding: 60px 24px;
}

#partenaires .section-title {
  color: var(--creme-dark);
}

.partenaires-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.partenaire-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(200,136,42,0.2);
  border-radius: 6px;
  padding: 12px 22px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--creme-dark);
  text-transform: uppercase;
  transition: all 0.2s;
}

.partenaire-item:hover {
  border-color: var(--ocre);
  color: var(--ocre-light);
}

.partenaire-item.principal {
  background: rgba(200,136,42,0.12);
  border-color: rgba(200,136,42,0.4);
  color: var(--ocre-light);
}

/* CONTACT */
#contact {
  background: var(--creme);
  text-align: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--terre-dark);
  background: var(--blanc);
  border: 1px solid var(--ocre-dark);
  border-radius: 6px;
  padding: 16px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.contact-link:hover {
  background: var(--ocre);
  color: var(--terre-dark);
  border-color: var(--ocre);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* FOOTER */
footer {
  background: #0E0704;
  color: rgba(245,237,216,0.4);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.78rem;
  line-height: 1.8;
}

footer a {
  color: var(--ocre);
  text-decoration: none;
}

footer .footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--ocre);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}



/* HISTOIRE */
#histoire {
  background: #EDD9A8;
  padding: 80px 24px 60px;
  position: relative;
}

.histoire-deco-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 40px;
}

.histoire-deco-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ocre-dark), transparent);
  max-width: 300px;
}

.histoire-deco-ornement {
  color: var(--ocre-dark);
  font-size: 0.8rem;
  padding: 12px 0;
}

#histoire .section-title {
  color: var(--terre-dark);
}

#histoire .section-label {
  letter-spacing: 0.4em;
  font-size: 0.72rem;
}

.histoire-chapeau {
  font-size: 1.05rem;
  color: var(--terre);
  font-style: italic;
  margin-top: 16px;
  line-height: 1.7;
  text-align: center;
}

.histoire-grid-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.histoire-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.histoire-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.histoire-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--ocre-dark), 0 4px 24px rgba(61,36,16,0.18);
  border: 3px solid var(--ocre-dark);
}

.histoire-legende {
  font-size: 0.75rem;
  color: var(--terre);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  opacity: 0.8;
}

.histoire-texte {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.histoire-texte p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #3D2010;
}

.histoire-texte strong {
  color: var(--terre-dark);
  font-weight: 700;
}

.histoire-quote {
  border-left: 3px solid var(--ocre);
  padding: 12px 20px;
  margin: 4px 0;
  background: rgba(200,136,42,0.08);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--terre-dark);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-bandeau { padding: 40px 16px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }

  .histoire-grid-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .histoire-grid-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* REGLEMENT TABLE */
.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 8px;
}
.reg-table th {
  background: var(--terre-dark);
  color: var(--creme);
  padding: 8px 10px;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.reg-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(155,100,32,0.2);
  color: #4A3020;
  vertical-align: top;
}
.reg-table tr:nth-child(even) td {
  background: rgba(200,136,42,0.05);
}

.accordion-body ul {
  list-style: none;
  padding-left: 12px;
  margin-top: 8px;
}
.accordion-body ul li::before {
  content: '→ ';
  color: var(--ocre);
  font-weight: 700;
}
.accordion-body ul li {
  margin-bottom: 4px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: #4A3020;
}
.accordion-body p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #5A3A20;
}


/* PARTENAIRES CARDS */
.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.partenaire-card {
  background: #fff;
  border: 1px solid rgba(200,136,42,0.25);
  border-radius: 8px;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
}

.partenaire-card:hover {
  border-color: var(--ocre);
  box-shadow: 0 4px 20px rgba(200,136,42,0.25);
  transform: translateY(-3px);
}

.partenaire-logo {
  width: auto;
  height: 72px;
  max-width: 160px;
  object-fit: contain;
  transition: transform 0.2s;
}

.partenaire-card:hover .partenaire-logo {
  transform: scale(1.05);
}

.partenaire-name {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--terre-dark);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .partenaires-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .partenaire-logo {
    height: 55px;
    max-width: 90%;
  }
}


/* MODAL PARCOURS */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 2, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--terre-dark);
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(200,136,42,0.4);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--terre-dark);
  border-bottom: 1px solid rgba(200,136,42,0.25);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocre-light);
}

.modal-close-btn {
  background: var(--ocre);
  border: none;
  color: var(--terre-dark);
  font-size: 1.1rem;
  font-weight: 900;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  background: var(--jaune);
}

.modal-iframe-wrap {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--terre-dark);
  border-top: 1px solid rgba(200,136,42,0.2);
  flex-shrink: 0;
  gap: 12px;
}

.modal-footer-hint {
  font-size: 0.72rem;
  color: rgba(245,237,216,0.4);
  font-style: italic;
}

.modal-footer-close {
  background: var(--ocre);
  border: none;
  color: var(--terre-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-footer-close:hover {
  background: var(--jaune);
}

/* Floating close button — always visible */
.modal-float-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--ocre);
  border: 2px solid var(--jaune);
  color: var(--terre-dark);
  font-size: 1.3rem;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
}

.modal-float-close.open {
  display: flex;
}

.modal-float-close:hover {
  background: var(--jaune);
  transform: scale(1.1);
}

/* Bouton voir parcours dans les cards */
.card-btns {
  display: grid;
  grid-template-columns: max-content;
  gap: 8px;
  margin-top: 14px;
  flex-basis: 100%;
}

.btn-parcours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  background: transparent;
  border: 1px solid rgba(200,136,42,0.5);
  color: var(--ocre-light);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-parcours:hover {
  background: rgba(200,136,42,0.15);
  border-color: var(--ocre);
  color: var(--jaune);
}

.btn-parcours svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Bouton télécharger GPX dans les cards */
.btn-gpx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  background: transparent;
  border: 1px solid rgba(100,180,100,0.5);
  color: #8fbc8f !important;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
}

.btn-gpx:hover {
  background: rgba(100,180,100,0.15);
  border-color: #8fbc8f;
  color: #b5d8b5;
}

.btn-gpx-soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.btn-gpx svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-box {
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
  }
  .modal-iframe-wrap iframe {
    min-height: 380px;
  }
}


/* ESPACE TRAIL */
#espace-trail {
  background: #263A24;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

#espace-trail::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(74,103,65,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(200,136,42,0.08) 0%, transparent 50%);
  pointer-events: none;
}

#espace-trail .section-label {
  color: rgba(245,237,216,0.6);
}

#espace-trail .section-title {
  color: var(--blanc);
}

#espace-trail .section-divider {
  background: linear-gradient(90deg, var(--vert), var(--ocre));
}

.espace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}

.espace-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 80px;
}

.espace-logo-wrap {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.espace-logo-wrap img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

.espace-chapeau {
  font-size: 1rem;
  font-style: italic;
  color: rgba(245,237,216,0.75);
  line-height: 1.7;
  text-align: center;
  border-left: 3px solid var(--ocre);
  padding: 10px 16px;
  border-radius: 0 4px 4px 0;
  background: rgba(200,136,42,0.08);
}

.espace-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.espace-bloc {
  border-left: 3px solid rgba(200,136,42,0.4);
  padding-left: 20px;
}

.espace-bloc h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocre-light);
  margin-bottom: 10px;
}

.espace-bloc p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245,237,216,0.8);
}

.espace-bloc.saviez {
  border-color: var(--jaune);
  background: rgba(245,200,66,0.06);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
}

.espace-bloc.saviez h4 {
  color: var(--jaune);
}

.espace-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.espace-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,136,42,0.2);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  transition: all 0.25s;
}

.espace-stat:hover {
  background: rgba(200,136,42,0.1);
  border-color: var(--ocre);
  transform: translateY(-3px);
}

.espace-stat-val {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--jaune);
  line-height: 1;
  margin-bottom: 6px;
}

.espace-stat-label {
  font-size: 0.72rem;
  color: rgba(245,237,216,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.espace-cta {
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-bandeau { padding: 40px 16px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }

  .espace-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .espace-left {
    position: static;
  }
  .espace-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .espace-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .espace-stat-val {
    font-size: 1.4rem;
  }
}


/* GOOGLE MAPS */
.maps-wrap {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(155,100,32,0.25);
  box-shadow: 0 8px 32px rgba(61,36,16,0.12);
}

.maps-header {
  background: var(--terre-dark);
  color: var(--creme-dark);
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.05em;
}

.maps-frame iframe {
  display: block;
  width: 100%;
}

.maps-legende {
  background: var(--creme-dark);
  padding: 10px 20px;
  font-size: 0.78rem;
  color: var(--terre);
  text-align: center;
  font-style: italic;
}


/* FAQ */
#faq {
  background: #F5EDD8;
  padding: 80px 24px;
}

#faq .section-title {
  color: var(--terre-dark);
}

#faq .section-label {
  color: var(--terre);
}

#faq .section-divider {
  background: linear-gradient(90deg, transparent, var(--ocre), transparent);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 40px;
  align-items: start;
}
.faq-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(155,100,32,0.2);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terre-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(200,136,42,0.06);
}

.faq-question.open {
  background: rgba(200,136,42,0.08);
  color: var(--ocre-dark);
}

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--ocre);
  transition: transform 0.25s;
}

.faq-question.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-reponse {
  display: none;
  padding: 12px 20px 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #555;
  border-top: 1px solid rgba(155,100,32,0.12);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-bandeau { padding: 40px 16px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ÉQUIPEMENT */
#meteo {
  background: var(--terre-dark);
  padding: 60px 24px;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.equip-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,136,42,0.2);
  border-radius: 10px;
  padding: 24px;
}

.equip-card-featured {
  border-color: var(--ocre);
  background: rgba(200,136,42,0.08);
}

.equip-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocre-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equip-card-featured .equip-card-title {
  color: var(--jaune);
}

.equip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.equip-list li {
  font-size: 0.86rem;
  color: rgba(245,237,216,0.75);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.equip-list li::before {
  content: '✓';
  color: var(--ocre);
  font-weight: 900;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-bandeau { padding: 40px 16px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }

  .equip-grid { grid-template-columns: 1fr; }
}


/* FOOTER */
footer {
  background: #0D0602;
  border-top: 2px solid rgba(200,136,42,0.4);
  padding: 60px 24px 0;
  color: rgba(245,237,216,0.6);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,136,42,0.2);
}

/* Colonne 1 — Identité */
.footer-brand-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--creme);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.78rem;
  color: var(--ocre-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(245,237,216,0.45);
  font-style: italic;
}

/* Colonne 2 — Navigation */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  color: rgba(245,237,216,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a::before {
  content: '›';
  color: var(--ocre);
  font-size: 0.9rem;
}

.footer-nav-list a:hover {
  color: var(--ocre-light);
}

/* Colonne 3 — Infos */
.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(245,237,216,0.55);
  line-height: 1.5;
}

.footer-info-list .fi-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 1px;
}

.footer-info-list a {
  color: var(--ocre-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info-list a:hover {
  color: var(--jaune);
}

/* Colonne 4 — Réseaux */
.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245,237,216,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-social-list a:hover {
  color: var(--ocre-light);
}

.footer-social-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ocre);
}

/* Barre de copyright */
.footer-bottom {
  border-top: 1px solid rgba(200,136,42,0.15);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-copy {
  font-size: 0.72rem;
  color: rgba(245,237,216,0.25);
  letter-spacing: 0.06em;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.72rem;
  color: rgba(245,237,216,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--ocre-light);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h4 {
    text-align: center;
  }
  .footer-nav-list,
  .footer-info-list,
  .footer-social-list {
    align-items: center;
  }
  .footer-nav-list a,
  .footer-info-list li {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.footer-nav-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}


/* MENTIONS LÉGALES MODAL */
#ml-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,4,2,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ml-overlay.open {
  display: flex;
}

.ml-box {
  background: var(--terre-dark);
  border: 1px solid rgba(200,136,42,0.35);
  border-radius: 10px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  overflow: hidden;
}

.ml-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(200,136,42,0.2);
  flex-shrink: 0;
}

.ml-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre-light);
  margin: 0;
}

.ml-close {
  background: var(--ocre);
  border: none;
  color: var(--terre-dark);
  font-size: 1rem;
  font-weight: 900;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ml-close:hover { background: var(--jaune); }

.ml-body {
  overflow-y: auto;
  padding: 28px 32px;
  flex: 1;
}

.ml-body h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200,136,42,0.15);
}

.ml-body h4:first-child { margin-top: 0; }

.ml-body p, .ml-body li {
  font-size: 0.84rem;
  line-height: 1.8;
  color: rgba(245,237,216,0.65);
}

.ml-body ul {
  padding-left: 18px;
  margin: 6px 0;
}

.ml-body a {
  color: var(--ocre-light);
  text-decoration: none;
}

.ml-body a:hover { color: var(--jaune); }

.ml-footer-bar {
  padding: 14px 28px;
  border-top: 1px solid rgba(200,136,42,0.15);
  text-align: center;
  flex-shrink: 0;
}

.ml-footer-bar button {
  background: var(--ocre);
  border: none;
  color: var(--terre-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.ml-footer-bar button:hover { background: var(--jaune); }


/* MODAL CARTES DÉTAILLÉES */
#cartes-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,4,2,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#cartes-overlay.open {
  display: flex;
}

.cartes-box {
  background: var(--terre-dark);
  border: 1px solid rgba(200,136,42,0.35);
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  overflow: hidden;
}

.cartes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(200,136,42,0.2);
  flex-shrink: 0;
}

.cartes-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre-light);
  margin: 0;
}

.cartes-close {
  background: var(--ocre);
  border: none;
  color: var(--terre-dark);
  font-size: 1rem;
  font-weight: 900;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cartes-close:hover { background: var(--jaune); }

/* Onglets */
.cartes-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(200,136,42,0.2);
  flex-shrink: 0;
  overflow-x: auto;
}

.cartes-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.45);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cartes-tab:hover {
  color: rgba(245,237,216,0.8);
  background: rgba(200,136,42,0.05);
}

.cartes-tab.active {
  color: var(--ocre-light);
  border-bottom-color: var(--ocre);
  background: rgba(200,136,42,0.06);
}

/* Contenu iframe */
.cartes-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.cartes-iframe-wrap {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.cartes-iframe-wrap.active {
  display: block;
}

.cartes-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cartes-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(245,237,216,0.3);
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .cartes-tab { padding: 10px 12px; font-size: 0.68rem; }
  .cartes-header h3 { font-size: 0.72rem; }
}


/* PALMARÈS */
#palmares .section-label {
  color: var(--ocre-light) !important;
}
#palmares .section-title {
  color: var(--creme) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#palmares .palmares-date {
  color: rgba(245,237,216,0.55) !important;
}

#palmares {
  background: #1a0f08;
  position: relative;
  overflow: hidden;
}

#palmares::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ocre), transparent);
}

.palmares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.palmares-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,136,42,0.2);
  border-top: 3px solid var(--ocre);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.palmares-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,136,42,0.6);
  border-top-color: var(--jaune);
}

.palmares-card-header {
  background: rgba(200,136,42,0.08);
  padding: 16px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200,136,42,0.15);
}

.palmares-year {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ocre-light);
  line-height: 1;
}

.palmares-date {
  font-size: 0.72rem;
  color: rgba(245,237,216,0.4);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.palmares-dist-badge {
  background: rgba(200,136,42,0.15);
  border: 1px solid rgba(200,136,42,0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ocre-light);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}

.palmares-card-body {
  padding: 18px 20px 20px;
}

.palmares-podium-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.palmares-podium-row + .palmares-podium-row {
  border-top: 1px solid rgba(245,237,216,0.06);
}

.palmares-gender-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.palmares-podium-info {
  flex: 1;
  min-width: 0;
}

.palmares-podium-name {
  font-family: 'Raleway', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--creme);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palmares-podium-time {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--ocre-light);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.palmares-card-footer {
  padding: 0 20px 16px;
}

.palmares-results-link {
  display: block;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,136,42,0.55);
  text-decoration: none;
  padding: 8px;
  border: 1px solid rgba(200,136,42,0.15);
  border-radius: 4px;
  transition: all 0.2s;
}

.palmares-results-link:hover {
  color: var(--ocre-light);
  border-color: rgba(200,136,42,0.4);
  background: rgba(200,136,42,0.06);
}

@media (max-width: 1000px) {
  .palmares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .palmares-grid {
    grid-template-columns: 1fr;
  }
}


/* HERO DATE BLOCK */

/* NAV LOGO IMG */
.nav-logo-img {
  height: 51px;
  width: auto;
  display: block;
  border-radius: 4px;
}

/* FOOTER LOGO IMG */
.footer-logo-img {
  height: 96px;
  width: auto;
  display: block;
  border-radius: 6px;
  margin: 0 auto 12px;
}


.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 0.7s 1.1s ease forwards;
}

.countdown-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(200,136,42,0.12);
  border: 1px solid rgba(200,136,42,0.35);
  border-radius: 6px;
  padding: 12px 18px;
  min-width: 72px;
}

.countdown-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--jaune);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.5);
  margin-top: 4px;
}

.countdown-sep {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ocre);
  margin-bottom: 16px;
  opacity: 0.7;
}


/* DATE HERO */
.hero-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0 14px 0;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 0.7s 0.9s ease forwards;
  border-bottom: 1px solid rgba(200,136,42,0.45);
}
.hero-date-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}
.hero-date-separator span:not(.hero-date-star) {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,136,42,0.55));
}
.hero-date-separator span:first-child {
  background: linear-gradient(270deg, transparent, rgba(200,136,42,0.55));
}
.hero-date-star {
  color: var(--ocre);
  font-size: 0.7rem;
}
.hero-date-main {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ocre-light);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

/* ── CTA BANDEAUX ── */
.cta-bandeau {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bandeau.ocre {
  background: linear-gradient(135deg, #8B4A0A 0%, #C8882A 50%, #8B4A0A 100%);
}
.cta-bandeau.sombre {
  background: linear-gradient(135deg, #6B2502 0%, #A93A04 50%, #6B2502 100%);
}
.cta-bandeau::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-bandeau-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  font-family: 'Cinzel', serif;
}
.cta-bandeau.ocre .cta-bandeau-label { color: rgba(255,255,255,0.8); }
.cta-bandeau.sombre .cta-bandeau-label { color: rgba(255,255,255,0.85); }
.cta-bandeau-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}
.cta-bandeau.ocre .cta-bandeau-title { color: #fff; }
.cta-bandeau.sombre .cta-bandeau-title { color: #fff; }
.cta-bandeau-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-bandeau.ocre .cta-bandeau-sub { color: rgba(255,255,255,0.85); }
.cta-bandeau.sombre .cta-bandeau-sub { color: rgba(255,255,255,0.88); }
.cta-bandeau .btn-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.cta-bandeau.ocre .btn-cta {
  background: #fff;
  color: #8B4A0A;
}
.cta-bandeau.ocre .btn-cta:hover {
  background: var(--creme);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-bandeau.sombre .btn-cta {
  background: #fff;
  color: #A93A04;
}
.cta-bandeau.sombre .btn-cta:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── SECTION ECA ── */
#eca {
  background: linear-gradient(135deg, var(--jaune) 0%, #E8A020 55%, var(--ocre) 100%);
  padding: 70px 24px 60px;
  position: relative;
  overflow: hidden;
}

#eca::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

#eca .section-label { color: var(--terre-dark); opacity: 0.65; }
#eca .section-title { color: var(--terre-dark); }
#eca .section-divider { background: var(--terre-dark); opacity: 0.25; }

.eca-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.eca-logo-col {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.eca-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(61,36,16,0.2));
}

.eca-texte-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eca-texte-col p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.78;
  color: var(--terre-dark);
}

.eca-texte-col strong { font-weight: 700; }

/* Pastilles chiffres-clés */
.eca-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.eca-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(61,36,16,0.12);
  border-radius: 6px;
  padding: 7px 12px;
  min-width: 64px;
  box-shadow: 0 2px 8px rgba(61,36,16,0.1);
}

.eca-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terre-dark);
  line-height: 1;
}

.eca-stat-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terre);
  margin-top: 4px;
  text-align: center;
}

/* Citation bénévoles */
.eca-quote {
  text-align: center;
  padding: 20px 40px;
  border-top: 1px solid rgba(61,36,16,0.15);
  border-bottom: 1px solid rgba(61,36,16,0.15);
}

.eca-quote p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: var(--terre-dark);
  max-width: 700px;
  margin: 0 auto;
}

.eca-quote-mark {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  color: var(--terre-dark);
  opacity: 0.35;
  line-height: 0;
  vertical-align: -0.35rem;
}

.eca-quote-open { margin-right: 3px; }
.eca-quote-close { margin-left: 3px; vertical-align: -0.55rem; }

@media (max-width: 768px) {
  .eca-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eca-logo-col { justify-content: center; }
  .eca-logo { width: 140px; height: 140px; }
  .eca-quote { padding: 18px 16px; }
  .eca-stats { justify-content: center; }
}

/* ── NEWSLETTER ── */
.newsletter-bandeau {
  background: #2d1a0a;
  border-top: 1px solid rgba(200,136,42,0.25);
  border-bottom: 1px solid rgba(200,136,42,0.25);
  padding: 48px 20px;
  text-align: center;
}
.newsletter-bandeau h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--creme);
  margin-bottom: 8px;
}
.newsletter-bandeau p {
  color: var(--creme-dark);
  font-size: 0.92rem;
  margin-bottom: 24px;
  opacity: 0.8;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 4px;
  border: 1px solid rgba(200,136,42,0.4);
  background: rgba(255,255,255,0.06);
  color: var(--creme);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(245,237,216,0.35); }
.newsletter-form input[type="email"]:focus { border-color: var(--ocre); }
.newsletter-form button {
  padding: 14px 28px;
  background: var(--ocre);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--ocre-light); transform: translateY(-1px); }
.newsletter-msg { margin-top: 14px; font-size: 0.85rem; min-height: 20px; }
.newsletter-msg.success { color: #7ecb7e; }
.newsletter-msg.error { color: #e07070; }

/* ── SURCHARGE BREVO NEWSLETTER ── */
.newsletter-bandeau .sib-form,
.newsletter-bandeau #sib-form-container,
.newsletter-bandeau #sib-container,
.newsletter-bandeau .sib-form-container,
.newsletter-bandeau .sib-container--large,
.newsletter-bandeau #sib-container form {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.newsletter-bandeau .sib-form,
.newsletter-bandeau #sib-form-container {
  max-width: 560px;
  margin: 0 auto;
}
/* Mise en ligne : champ + bouton côte à côte, même hauteur fixe */
.newsletter-bandeau #sib-container form {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
  position: relative !important;
  padding-bottom: 22px !important; /* réserve espace pour l'erreur absolue */
}
.newsletter-bandeau #sib-container .sib-input.sib-form-block {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.newsletter-bandeau #sib-container .sib-form-block:has(button) {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Neutralise fonds, bordures et ombres des wrappers Brevo */
.newsletter-bandeau #sib-container .sib-input,
.newsletter-bandeau #sib-container .form__entry,
.newsletter-bandeau #sib-container .entry_block,
.newsletter-bandeau #sib-container .form__label-row,
.newsletter-bandeau #sib-container .entry__field {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Hauteur fixe identique sur input ET bouton */
.newsletter-bandeau #sib-container input.input,
.newsletter-bandeau .sib-form-block__button {
  height: 50px !important;
  box-sizing: border-box !important;
}
/* Champ email : fond crème, texte marron foncé */
.newsletter-bandeau #sib-container input.input {
  background: #F5EDD8 !important;
  border: 1px solid rgba(200,136,42,0.5) !important;
  border-radius: 6px !important;
  color: var(--terre-dark) !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 0.95rem !important;
  padding: 14px 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.newsletter-bandeau #sib-container input.input::placeholder { color: rgba(61,36,16,0.45) !important; }
.newsletter-bandeau #sib-container input.input:focus { border-color: var(--ocre) !important; outline: none !important; box-shadow: 0 0 0 2px rgba(200,136,42,0.2) !important; }
/* Bouton S'ABONNER : police Cinzel, immobile au clic */
.newsletter-bandeau .sib-form-block__button {
  background: var(--ocre) !important;
  color: #fff !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.12em !important;
  border-radius: 6px !important;
  border: none !important;
  padding: 0 24px !important;
  width: auto !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  margin: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transform: none !important;
  position: relative !important;
  top: 0 !important;
  vertical-align: top !important;
}
.newsletter-bandeau .sib-form-block__button:hover,
.newsletter-bandeau .sib-form-block__button:focus,
.newsletter-bandeau .sib-form-block__button:active {
  transform: none !important;
  top: 0 !important;
  outline: none !important;
}
.newsletter-bandeau .sib-form-block__button:hover { background: var(--ocre-light) !important; }
.newsletter-bandeau .sib-form-block__button:active { background: var(--ocre) !important; }
/* Messages erreur / succès */
.newsletter-bandeau #error-message { background: rgba(224,112,112,0.12) !important; border-color: rgba(224,112,112,0.4) !important; color: #e07070 !important; margin-bottom: 12px; font-family: 'Raleway', sans-serif !important; }
.newsletter-bandeau #success-message { background: rgba(126,203,126,0.12) !important; border-color: rgba(126,203,126,0.4) !important; color: #7ecb7e !important; margin-bottom: 12px; font-family: 'Raleway', sans-serif !important; }
/* Label erreur inline : positionné en absolu sous la ligne champ+bouton */
.newsletter-bandeau .entry__error {
  position: absolute !important;
  top: 54px !important;  /* juste sous les 50px du champ */
  left: 0 !important;
  display: block !important;
  color: #e07070 !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 0.78rem !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: left !important;
  overflow: visible !important;
}
.newsletter-bandeau .sib-hide-loader-icon { display: none !important; }
/* Mobile : retour à l'empilement + centrage */
@media (max-width: 560px) {
  .newsletter-bandeau #sib-container form { flex-direction: column !important; align-items: center !important; }
  .newsletter-bandeau .sib-form-block__button { width: 100% !important; }
  .newsletter-bandeau #sib-container .sib-input.sib-form-block { width: 100% !important; }
}

/* ── FORMULAIRE CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 40px auto 0;
  align-items: start;
}
.contact-form-wrap h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--ocre-light);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid rgba(200,136,42,0.4);
  background: rgba(61,36,16,0.88);
  color: var(--creme);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(245,237,216,0.55); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--ocre); }
.contact-form textarea { min-height: 120px; }
.contact-form button {
  padding: 14px 28px;
  background: var(--ocre);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}
.contact-form button:hover { background: var(--ocre-light); transform: translateY(-1px); }
.contact-form-msg { margin-top: 10px; font-size: 0.85rem; min-height: 20px; }
.contact-form-msg.success { color: #7ecb7e; }
.contact-form-msg.error { color: #e07070; }
.contact-links-wrap h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--ocre-light);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}


/* BANNIERE COOKIES */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a0f08;
  border-top: 1px solid rgba(200,136,42,0.4);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#cookie-banner.visible { opacity: 1; transform: translateY(0); }
.cookie-text { flex: 1; min-width: 200px; font-size: 0.85rem; color: var(--creme-dark); line-height: 1.5; }
.cookie-text strong { color: var(--ocre-light); font-family: 'Cinzel', serif; font-size: 0.9rem; display: block; margin-bottom: 4px; }
.cookie-text a { color: var(--ocre-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: 10px 22px; border-radius: 4px; font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border: none; transition: all 0.25s; white-space: nowrap; }
.cookie-btn.accept { background: var(--ocre); color: #fff; }
.cookie-btn.accept:hover { background: var(--ocre-light); transform: translateY(-1px); }
.cookie-btn.refuse { background: transparent; color: var(--creme-dark); border: 1px solid rgba(200,136,42,0.35); }
.cookie-btn.refuse:hover { border-color: var(--ocre); color: var(--creme); }
@media (max-width: 600px) {
  #cookie-banner { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}


/* BOUTON RETOUR EN HAUT */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(200,136,42,0.85);
  border: 1px solid rgba(200,136,42,0.5);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: rgba(200,136,42,1); transform: translateY(-2px); }
@media (max-width: 768px) {
  #back-to-top { width: 36px; height: 36px; bottom: 20px; right: 16px; font-size: 0.95rem; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-bandeau { padding: 40px 16px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }

  nav ul { display: none; }
  nav ul.open { 
    display: flex; 
    flex-direction: column; 
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    background: rgba(30,15,5,0.98);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--ocre);
  }
  .hamburger { display: flex; }
  
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .presentation-affiche {
    order: -1;
  }
  
  .parcours-card.featured {
    grid-column: span 1;
  }
  
  .inscription-box {
    padding: 32px 24px;
  }

  section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .card-distance {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-countdown {
    gap: 5px;
  }
  .countdown-bloc {
    padding: 8px 10px;
    min-width: 56px;
  }
  .countdown-sep {
    font-size: 1.3rem;
  }
}