:root {
  --site-bg: #07080a;
  --site-surface: #111318;
  --site-surface-2: #171a20;
  --site-text: #f7f7f8;
  --site-muted: #a8adb7;
  --site-border: rgba(255, 255, 255, 0.1);
  --site-accent: #e11d2e;
  --site-accent-2: #ff3b4d;
  --site-accent-soft: rgba(225, 29, 46, 0.13);
  --site-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --site-radius: 22px;
  --site-radius-sm: 14px;
  --site-max: 1180px;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--site-bg);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 29, 46, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(225, 29, 46, 0.08), transparent 28rem),
    var(--site-bg) !important;
  color: var(--site-text) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(225, 29, 46, 0.45);
  color: #fff;
}

img,
video,
iframe {
  max-width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  height: auto;
}

:where(a, button, input, textarea, select) {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(255, 59, 77, 0.5);
  outline-offset: 3px;
}

/* Navigation */
#navbar-container {
  position: relative;
  z-index: 1000;
}

.navbar {
  position: fixed !important;
  inset: 0 0 auto 0;
  width: min(calc(100% - 28px), 1240px) !important;
  height: 72px !important;
  margin: 14px auto 0 !important;
  padding: 0 16px !important;
  background: rgba(10, 11, 14, 0.78) !important;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.logo {
  margin-left: 0 !important;
  width: 78px;
  height: 48px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: visible;
}

.logo img {
  width: 52px !important;
  height: auto !important;
  max-height: 32px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.navbar ul {
  gap: 6px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.navbar ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #e8e9ed !important;
  border-radius: 11px;
  font-size: 0.96rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background: rgba(255, 255, 255, 0.075);
  color: #fff !important;
  transform: translateY(-1px);
}

.navbar ul li a.promo {
  background: linear-gradient(135deg, var(--site-accent-2), var(--site-accent));
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.22);
}

.burger {
  width: 46px;
  height: 46px;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  display: none;
  place-items: center;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: 12px !important;
  font-size: 0 !important;
}

.burger::before,
.burger::after,
.burger span {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger::before { transform: translateY(-6px); }
.burger::after { transform: translateY(6px); }
.navbar.active .burger::before { transform: rotate(45deg); }
.navbar.active .burger::after { transform: rotate(-45deg); }
.navbar.active .burger span { opacity: 0; }

/* Content surfaces */
:where(.stages-section, .info-section, .contact-section, .niveau-section, .junior-section, .adulte-section, .formule-section, .presentation, .experience-conduite, .offres-du-moment) {
  width: min(var(--site-max), calc(100% - 32px));
  margin-inline: auto !important;
}

:where(.stages-section, .info-section, .contact-section, .niveau-section, .junior-section, .adulte-section, .formule-section, .presentation, .experience-conduite) h2 {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.35rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-shadow: none !important;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .experience-card, .offre) {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius) !important;
  box-shadow: var(--site-shadow) !important;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease !important;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .experience-card, .offre):hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 59, 77, .42) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.44) !important;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card) img {
  border-radius: 14px !important;
  object-fit: contain;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card) h3 {
  color: #fff !important;
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stages-section > .stages-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  width: 100% !important;
  max-width: var(--site-max);
  margin-inline: auto !important;
  gap: 20px !important;
  padding-inline: 0 !important;
}

.stages-section > .stages-grid .stage-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 350px !important;
  height: 100%;
  margin: 0 !important;
  padding: 18px !important;
}

.stages-section > .stages-grid .stage-card img {
  display: block;
  width: 100% !important;
  height: 150px !important;
  margin: 0 auto 14px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.stages-section > .stages-grid .stage-card :where(h3, p, a) {
  max-width: 100%;
}

.stages-section > .stages-grid .stage-card .button-red {
  width: 100% !important;
  margin-top: auto !important;
  white-space: normal;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .info-section, .presentation, .experience-card) p,
:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .info-section, .presentation, .experience-card) li {
  color: var(--site-muted) !important;
}

.button-red,
.contact-form button,
button[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--site-accent-2), var(--site-accent)) !important;
  color: #fff !important;
  font-weight: 750 !important;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(225, 29, 46, 0.25);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease !important;
  max-width: 100%;
  white-space: normal;
}

.button-red:hover,
.contact-form button:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(225, 29, 46, 0.33);
}

/* Hero */
.hero {
  min-height: 720px;
  height: min(92vh, 900px) !important;
  padding-top: 100px !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,8,.15) 0%, rgba(5,6,8,.28) 48%, var(--site-bg) 100%);
  pointer-events: none;
}

.hero-video {
  filter: saturate(.92) contrast(1.02) brightness(.66) !important;
}

.hero-content {
  z-index: 2 !important;
  bottom: clamp(44px, 9vh, 110px) !important;
  max-width: 980px !important;
}

.hero h1 {
  color: #fff !important;
  font-size: clamp(2.5rem, 7vw, 5.8rem) !important;
  letter-spacing: -0.055em;
  line-height: .95;
  text-shadow: 0 8px 40px rgba(0,0,0,.45) !important;
}

.hero p {
  max-width: 720px;
  margin-inline: auto;
  color: rgba(255,255,255,.82) !important;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem) !important;
}

/* Prices and notices */
.stage-price {
  color: #fff !important;
}

.price-label {
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: var(--site-accent) !important;
}

.notice,
.highlight,
.price-box,
#stage-summary {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid var(--site-border) !important;
  border-left: 3px solid var(--site-accent) !important;
  border-radius: var(--site-radius-sm) !important;
  box-shadow: none !important;
}

/* Forms */
.contact-form {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius) !important;
  box-shadow: var(--site-shadow) !important;
}

.contact-form :where(input[type="text"], input[type="email"], textarea, select) {
  min-height: 48px;
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
}

.contact-form textarea { min-height: 140px; }
.contact-info a { color: #ff6673 !important; }

.map-container iframe {
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius) !important;
  box-shadow: var(--site-shadow);
}

/* Carousel */
.carousel-container,
.carousel {
  border-radius: var(--site-radius) !important;
  overflow: hidden;
}

.dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.28) !important;
}

.dot.active { background: var(--site-accent) !important; }

.footer {
  margin-top: 60px;
  padding: 34px 20px !important;
  color: var(--site-muted) !important;
  background: rgba(0,0,0,.2) !important;
  border-top: 1px solid var(--site-border);
}

.footer a { color: #fff !important; }
.footer a:hover { color: #ff6673 !important; }

@media (max-width: 768px) {
  body { padding-top: 88px !important; }

  .navbar {
    width: calc(100% - 20px) !important;
    height: 64px !important;
    margin-top: 10px !important;
    padding: 0 10px !important;
  }

  .logo {
    width: 68px;
    height: 42px;
    padding: 4px 7px;
  }

  .logo img {
    width: 46px !important;
    height: auto !important;
    max-height: 28px;
  }

  .burger { display: grid !important; position: relative; }

  .navbar ul {
    top: 84px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    height: auto !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 12px !important;
    gap: 4px !important;
    align-items: stretch !important;
    background: rgba(12,13,16,.96) !important;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(18px);
  }

  .navbar ul li,
  .navbar ul li a {
    width: 100%;
  }

  .navbar ul li a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .hero {
    min-height: 640px;
    height: calc(100svh - 20px) !important;
    padding-top: 70px !important;
  }

  .hero-content {
    bottom: 48px !important;
    padding-inline: 22px !important;
    max-width: 100% !important;
  }

  :where(.stages-section, .info-section, .contact-section, .niveau-section, .junior-section, .adulte-section, .formule-section, .presentation, .experience-conduite, .offres-du-moment) {
    width: min(100% - 24px, var(--site-max));
  }

  :where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .experience-card, .offre) {
    border-radius: 18px !important;
  }

  :where(.stages-section, .info-section, .contact-section, .niveau-section, .junior-section, .adulte-section, .formule-section, .presentation, .experience-conduite) h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem) !important;
    overflow-wrap: anywhere;
  }

  .contact-section {
    margin-top: 12px !important;
    padding: 28px 0 44px !important;
  }

  .contact-form {
    width: 100% !important;
    max-width: none !important;
    padding: 24px 16px !important;
  }

  .map-container,
  .map-container iframe,
  .carousel-container,
  .carousel,
  .carousel-image {
    max-width: 100% !important;
  }

  .footer {
    width: 100%;
    padding-inline: 16px !important;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Grilles internes sur tablette et ordinateur. La grille d'accueil
   possède ses propres breakpoints plus bas. */
@media (min-width: 769px) {
  .niveau-grid,
  .junior-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    width: min(var(--site-max), 100%);
    margin-inline: auto;
    gap: 22px !important;
  }

  .niveau-card,
  .junior-card {
    width: 100% !important;
    min-height: 100% !important;
    padding: 24px !important;
  }
}

/* ============================================================
   DA Circuit Auto Thurigneux — conservation noir / rouge / auto
   Cette couche garde la vidéo d’accueil et rapproche la modernisation
   de l’identité visuelle historique du site.
   ============================================================ */
:root {
  --site-bg: #050505;
  --site-surface: #101010;
  --site-surface-2: #171717;
  --site-text: #ffffff;
  --site-muted: #b8b8b8;
  --site-border: rgba(255, 255, 255, 0.10);
  --site-accent: #e60000;
  --site-accent-2: #ff2b2b;
  --site-accent-deep: #b80000;
  --site-accent-soft: rgba(230, 0, 0, 0.13);
}

/* Accueil : aucun bandeau décoratif derrière la navbar.
   La navbar reste inchangée et flotte directement au-dessus de la vidéo Hero. */
body:has(> .hero) {
  padding-top: 0 !important;
  background: var(--site-bg) !important;
}

/* Navigation : moderne, mais clairement issue de la DA noire/rouge d’origine. */
.navbar {
  background: rgba(3, 3, 3, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.48), 0 1px 0 rgba(230, 0, 0, 0.12) inset !important;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 0, 0.92), transparent);
  opacity: 0.68;
  pointer-events: none;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background: rgba(230, 0, 0, 0.11) !important;
  color: #fff !important;
}

.navbar ul li a.active {
  box-shadow: inset 0 -2px 0 var(--site-accent);
}

.navbar ul li a.promo {
  background: linear-gradient(135deg, var(--site-accent-2), var(--site-accent-deep)) !important;
  box-shadow: 0 8px 26px rgba(230, 0, 0, 0.24) !important;
}

/* Centre la barre et son groupe de liens indépendamment du logo sur ordinateur. */
@media (min-width: 769px) {
  .navbar {
    left: 50% !important;
    right: auto !important;
    margin: 14px 0 0 !important;
    transform: translateX(-50%);
  }

  .navbar > .logo {
    position: absolute;
    top: 50%;
    left: 16px;
    margin: 0 !important;
    transform: translateY(-50%);
  }

  .navbar > ul {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }
}

/* HERO : la vidéo d’origine reste l’élément principal de la page d’accueil. */
.hero {
  min-height: 720px;
  height: min(94vh, 930px) !important;
  background: #000;
}

.hero-video {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.02) contrast(1.03) brightness(.76) !important;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.24), transparent 42%, rgba(0,0,0,.14)),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.20) 52%, rgba(5,5,5,.95) 100%) !important;
}

.hero-content {
  max-width: 1050px !important;
}

.hero h1 {
  color: #fff !important;
  font-size: clamp(2.65rem, 6.6vw, 5.7rem) !important;
  letter-spacing: -0.05em !important;
  line-height: .96 !important;
  text-shadow: 0 10px 38px rgba(0, 0, 0, .58) !important;
}

.hero h1 .hero-accent {
  color: var(--site-accent-2);
  white-space: normal;
}

.hero-info {
  margin-top: 18px;
}

.hero-info p {
  margin-bottom: 0;
}

.hero p {
  color: rgba(255,255,255,.90) !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.72);
}

.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 20px;
  padding: 5px 12px;
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.72);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.hero-scroll-cue:hover {
  color: #fff;
  transform: translateY(2px);
}

.hero-scroll-arrow {
  color: var(--site-accent-2);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  animation: hero-scroll-nudge 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Boutons : rouge historique, finition plus actuelle. */
.button-red,
.contact-form button,
button[type="submit"] {
  background: linear-gradient(135deg, var(--site-accent-2), var(--site-accent-deep)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 10px 30px rgba(230, 0, 0, .25) !important;
}

.button-red:hover,
.contact-form button:hover,
button[type="submit"]:hover {
  box-shadow: 0 14px 38px rgba(230, 0, 0, .34) !important;
}

/* Titres : blanc lisible + signature rouge comme sur la DA d’origine. */
:where(.stages-section, .info-section, .contact-section, .niveau-section, .junior-section, .adulte-section, .formule-section, .presentation, .experience-conduite) h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  color: #fff !important;
}

:where(.stages-section, .info-section, .contact-section, .niveau-section, .junior-section, .adulte-section, .formule-section, .presentation, .experience-conduite) h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--site-accent);
  box-shadow: 0 0 24px rgba(230, 0, 0, .26);
}

.stages-section,
.info-section {
  padding-top: 76px !important;
  padding-bottom: 76px !important;
}

.stages-section h2 {
  margin-bottom: 46px !important;
}

/* Cartes : modernisées, mais le rouge revient comme repère visuel principal. */
:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .experience-card, .offre) {
  position: relative;
  background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,.36) !important;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .experience-card, .offre)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--site-accent), transparent);
  opacity: .84;
  pointer-events: none;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card, .experience-card, .offre):hover {
  border-color: rgba(230, 0, 0, .36) !important;
  box-shadow: 0 28px 72px rgba(0,0,0,.47), 0 0 0 1px rgba(230,0,0,.05) inset !important;
}

:where(.stage-card, .niveau-card, .junior-card, .adulte-card, .formule-card) h3 {
  color: #fff !important;
}

.stage-price,
.reduced-price {
  color: #fff !important;
}

/* Liste "Pourquoi choisir nos stages" : suppression de l’emoji au profit du rouge de marque. */
.info-section ul li::before {
  content: "✓" !important;
  color: var(--site-accent-2) !important;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(230,0,0,.22);
}

.footer {
  background: #030303 !important;
  border-top: 1px solid rgba(230,0,0,.22) !important;
}

.footer a:hover {
  color: var(--site-accent-2) !important;
}

@media (max-width: 768px) {
  .hero {
    min-height: 620px;
    height: calc(100svh - 10px) !important;
  }

  .hero-video {
    object-position: 50% center;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.5vw, 3.35rem) !important;
    overflow-wrap: anywhere;
  }

  .hero-content {
    bottom: 42px !important;
  }

  .navbar::after {
    left: 12px;
    right: 12px;
  }
}

/* ===== Correctif vidéo Hero =====
   L'ancien style.css plaçait .hero-video en z-index:-1,
   ce qui la faisait passer derrière le fond noir du document. */
.hero {
  position: relative;
  isolation: isolate;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0 !important;
  display: block;
}

.hero::after {
  z-index: 1;
}

.hero-content {
  z-index: 2 !important;
}


/* =========================================================
   FICHES STAGES — version compacte
   Garde toutes les informations mais réduit la taille visuelle
   des pages internes (Adulte, Junior, Prépa permis, Perf., Groupe).
   ========================================================= */
.stage-detail-page main {
  padding-top: 104px !important;
}

.stage-detail-page :where(.adulte-section, .formule-section) {
  padding-top: 24px !important;
  padding-bottom: 40px !important;
}

.stage-detail-page .adulte-section > h2,
.stage-detail-page .formule-section > h2 {
  margin: 0 0 24px !important;
  font-size: clamp(1.85rem, 3vw, 2.65rem) !important;
  line-height: 1.05 !important;
}

.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) {
  width: min(100% - 28px, 720px) !important;
  max-width: 720px !important;
  margin: 22px auto 0 !important;
  padding: 22px 24px 24px !important;
  border-radius: 18px !important;
  font-size: 0.92rem !important;
  line-height: 1.48 !important;
  text-align: left !important;
}

.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: 300px !important;
  margin: 0 auto 18px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px !important;
}

.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) h3 {
  margin: 4px 0 16px !important;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) p {
  margin: 9px 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.48 !important;
}

.stage-detail-page :where(.stage-details, .adulte-details, .objectifs-list, .formule-details) {
  margin: 8px 0 15px !important;
  padding-left: 19px !important;
  text-align: left !important;
}

.stage-detail-page :where(.stage-details, .adulte-details, .objectifs-list, .formule-details) li {
  margin-bottom: 6px !important;
  font-size: 0.9rem !important;
  line-height: 1.42 !important;
}

.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) strong {
  color: rgba(255,255,255,.92);
}

.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) .button-red,
.stage-detail-page :where(.stage-card, .adulte-card, .formule-card) > .button-red {
  min-height: 42px !important;
  margin: 16px auto 0 !important;
  padding: 0 16px !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
}

/* Les pages Junior/Prépa avaient des listes inline-block : on les remet
   en bloc afin d'éviter de très grandes lignes et de gros espaces. */
.stage-detail-page .stage-card ul.objectifs-list {
  display: block !important;
  width: 100% !important;
}

/* Le titre des fiches ne doit plus être masqué par la navbar fixe. */
.stage-detail-page .stage-card:first-child {
  margin-top: 18px !important;
}

@media (max-width: 768px) {
  .stage-detail-page main {
    padding-top: 22px !important;
  }

  .stage-detail-page :where(.adulte-section, .formule-section) {
    padding: 18px 10px 28px !important;
  }

  .stage-detail-page :where(.stage-card, .adulte-card, .formule-card) {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    padding: 18px 17px 20px !important;
    font-size: 0.9rem !important;
  }

  .stage-detail-page :where(.stage-card, .adulte-card, .formule-card) img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    margin-bottom: 14px !important;
  }

  .stage-detail-page :where(.stage-card, .adulte-card, .formule-card) h3 {
    font-size: 1.45rem !important;
  }

  .stage-detail-page :where(.stage-details, .adulte-details, .objectifs-list, .formule-details) li,
  .stage-detail-page :where(.stage-card, .adulte-card, .formule-card) p {
    font-size: 0.88rem !important;
  }

  .stage-detail-page :where(.stage-card, .adulte-card, .formule-card) .button-red,
  .stage-detail-page :where(.stage-card, .adulte-card, .formule-card) > .button-red {
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .stage-detail-page > #navbar-container + .stage-card {
    margin-top: 110px !important;
  }
}

/* Accueil : l’indicateur du hero descend proprement jusqu’aux offres. */
#stages {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  #stages {
    scroll-margin-top: 96px;
  }
}

/* Accueil : 1 colonne sur téléphone, 2 ou 3 sur tablette,
   puis les 5 stages sur une ligne sur grand écran. */
@media (max-width: 640px) {
  .stages-section > .stages-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .stages-section > .stages-grid .stage-card {
    width: min(100%, 390px) !important;
    min-height: 350px !important;
    margin-inline: auto !important;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .stages-section > .stages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .stages-section > .stages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1100px) {
  .stages-section > .stages-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin-inline: auto !important;
    align-items: stretch !important;
  }

  .stages-section > .stages-grid .stage-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 350px !important;
    padding: 18px 14px 20px !important;
  }

  .stages-section > .stages-grid .stage-card img {
    display: block;
    width: 100% !important;
    max-width: 180px !important;
    height: 112px !important;
    margin: 0 auto 12px !important;
    object-fit: contain !important;
  }

  .stages-section > .stages-grid .stage-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    margin: 6px 0 8px !important;
  }

  .stages-section > .stages-grid .stage-card .stage-subtitle {
    font-size: 0.90rem !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }

  .stages-section > .stages-grid .stage-card .stage-price {
    font-size: 0.98rem !important;
    margin: 8px 0 14px !important;
  }

  .stages-section > .stages-grid .stage-card .button-red {
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 0.92rem !important;
  }
}
