/* ================================
   DESIGN TOKENS — Élevage des Prés Pérotière
   ================================ */
:root {
  --navy:         #17213D;
  --navy-soft:    #2B3654;
  --navy-deep:    #0E1526;
  --steel:        #65818D;
  --steel-light:  #A9BCC3;
  --cream:        #FFF4CA;
  --cream-pale:   #FBF7EA;
  --gold:         #C9A961;
  --bg:           #FFFFFF;
  --bg-warm:      #FAF9F5;
  --text:         #1E2430;
  --text-muted:   #666E7A;
  --border:       #E5E2D8;
  --border-soft:  #EEEBE1;
  --white:        #FFFFFF;
  --font-title:   'Didot', 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
  --shadow-sm:    0 1px 3px rgba(23, 33, 61, 0.05), 0 1px 2px rgba(23, 33, 61, 0.04);
  --shadow-md:    0 12px 32px rgba(23, 33, 61, 0.08);
  --shadow-lg:    0 24px 64px rgba(23, 33, 61, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 92px;
}

/* ================================
   BASE
   ================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: var(--font-title);
  line-height: 1.14;
  margin: 0 0 1rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
}
h3, h4 {
  font-family: var(--font-title);
  line-height: 1.25;
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-style: normal;
}
p { margin: 0 0 1.15rem; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--navy); color: var(--white); }

/* ================================
   SCROLL REVEAL
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.card-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.card-grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================
   PLACEHOLDER ZONES (médias à venir)
   ================================ */
.placeholder {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--navy);
  font-family: var(--font-body);
}
.placeholder .ph-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--steel);
  margin-bottom: 0.35rem;
}
.placeholder .ph-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.placeholder .ph-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.55;
}
.placeholder--video { min-height: 400px; }
.placeholder--hero-video { border-radius: 0; border: none; }
.hero-video .placeholder--hero-video { min-height: 100vh; }
.placeholder--photo-portrait { min-height: 450px; max-width: 380px; }
.placeholder--photo-square { min-height: 320px; }
.placeholder--photo-wide { min-height: 340px; }
.placeholder--gallery-item { min-height: 220px; }
.photo-block { border-radius: 14px; overflow: hidden; }
.photo-block img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-block--square { min-height: 200px; }
.photo-block--wide { min-height: 340px; }

/* ================================
   BUTTONS
   ================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 2.25rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid var(--navy);
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 1rem 2.25rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-outline--dark {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
}
.btn-outline--dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 0.9rem 0;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: none;
  border-bottom: 1px solid var(--navy);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-secondary:hover { border-color: var(--steel); color: var(--steel); gap: 0.9rem; }

/* ================================
   LAYOUT UTILITIES
   ================================ */
.section { padding: 7rem 1.5rem; scroll-margin-top: 130px; }
[id] { scroll-margin-top: 90px; }
.section--alt { background: var(--bg-warm); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.78); }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--navy p { color: rgba(255,255,255,0.72); }
.container { max-width: 1120px; margin: 0 auto; }
.container--narrow { max-width: 760px; margin: 0 auto; }

.section-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}
.section-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); flex-shrink: 0; }
.section-tag--white { color: var(--cream); }
.section-tag--center { justify-content: center; }
[style*="text-align:center"] .section-tag,
.container--narrow .section-tag { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 1.1rem;
  line-height: 1.15;
}
.section--navy .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 3rem;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
}

/* ================================
   HEADER NAV
   ================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.on-hero {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.site-header.on-hero .nav-logo,
.site-header.on-hero .nav-links a { color: var(--white); }
.site-header.on-hero.scrolled {
  position: sticky;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
}
.site-header.on-hero.scrolled .nav-logo,
.site-header.on-hero.scrolled .nav-links a { color: var(--text); }
.site-header.on-hero.scrolled .nav-logo { color: var(--navy); }
.site-header.on-hero.scrolled .hamburger span { background: var(--text); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 2rem;
  max-width: 1360px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.9rem;
}
.nav-links a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--steel); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.nav-cta .btn-primary { padding: 0.75rem 1.5rem; font-size: 0.78rem; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; }
.site-header.on-hero .hamburger span { background: var(--white); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  gap: 0.25rem;
}
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--text); padding: 0.85rem 0; border-bottom: 1px solid var(--border-soft); display: block; }
.mobile-menu a.btn-primary { color: var(--white); border-bottom: none; text-align: center; }
.mobile-menu.open { display: flex; }

/* ================================
   HERO VIDÉO PLEIN ÉCRAN (accueil)
   ================================ */
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-video video,
.hero-video .placeholder--hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}
.hero-video .placeholder--hero-video {
  border-width: 0;
  border-radius: 0;
  background: var(--navy-deep);
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2rem;
}
.hero-video .placeholder--hero-video::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.16);
}
.hero-video .placeholder--hero-video .ph-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: var(--cream);
}
.hero-video .placeholder--hero-video .ph-label,
.hero-video .placeholder--hero-video .ph-desc {
  position: relative;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}
.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 800px;
  animation: heroRise 1.1s var(--ease) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-video-content .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.hero-video-content .hero-eyebrow::before,
.hero-video-content .hero-eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero-video-content h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.08;
}
.hero-video-content .hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  color: rgba(255,255,255,0.92);
}
.hero-video-content .hero-subtitle {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  font-style: italic;
  line-height: 1.55;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-cta-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.hero-scroll-cue {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: cueSlide 1.8s ease-in-out infinite;
}
@keyframes cueSlide {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ================================
   HERO SIMPLE (pages intérieures)
   ================================ */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4.5rem;
  text-align: center;
  background: var(--navy-deep);
  overflow: hidden;
}
.page-hero video,
.page-hero .placeholder--hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .placeholder--hero-video {
  background: var(--navy-deep);
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
}
.page-hero .placeholder--hero-video::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.14);
}
.page-hero .placeholder--hero-video .ph-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: var(--cream);
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.page-hero .placeholder--hero-video .ph-label,
.page-hero .placeholder--hero-video .ph-desc {
  position: relative;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}
.site-header.on-hero + .page-hero {
  min-height: calc(62vh + var(--header-height));
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.48) 45%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
}
.page-hero .page-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.page-hero .section-tag { justify-content: center; color: var(--cream); }
.page-hero .section-subtitle { margin: 0 auto; color: rgba(255,255,255,0.82); }

/* ================================
   CARDS / GRIDS
   ================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2.25rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--border); }
.info-card:hover::before { width: 100%; }
.info-card h3 { color: var(--navy); font-size: 1.2rem; }
.info-card p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* Souches / chevaux */
.horse-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.horse-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.horse-card .horse-media { aspect-ratio: 4/3; }
.horse-media--coming-soon { position: relative; overflow: hidden; background: var(--bg-warm); }
.horse-media--coming-soon::before {
  content: '';
  position: absolute;
  inset: -12px;
  background-image: url('/assets/img/elevage/poulain.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
}
.coming-soon-zone { position: relative; }
.coming-soon-content { filter: blur(6px); pointer-events: none; user-select: none; }
.coming-soon-badge {
  position: sticky;
  top: 45%;
  z-index: 5;
  width: fit-content;
  margin: 0 auto;
  padding: 1rem 3rem;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.horse-media--coming-soon-label {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.horse-card .horse-body { padding: 1.75rem; }
.horse-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 0.3rem; }
.horse-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.horse-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--steel);
  padding: 0.3rem 0;
  border-radius: 0;
  font-family: var(--font-body);
  position: relative;
}
.horse-tag:not(:last-child)::after { content: '·'; margin-left: 0.5rem; color: var(--border); }
.horse-card.sold { opacity: 0.55; }
.horse-tag--sold { color: var(--navy); font-weight: 700; }
.horse-card p { font-size: 0.92rem; color: var(--text-muted); }

/* Stages — deux cartes par ligne, photo + titre dépliant */
.stage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 768px) {
  .stage-list { grid-template-columns: 1fr; }
}
.stage-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.stage-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stage-card-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: none;
  background: var(--bg-warm);
}
.stage-card-media .ph-icon { width: 36px; height: 36px; font-size: 0.85rem; margin-bottom: 0; }
.stage-card-media .ph-label { font-size: 0.66rem; }
.stage-card-media .ph-desc { font-size: 0.72rem; }
.stage-card-body { padding: 1.5rem 2.25rem; }
@media (max-width: 768px) {
  .stage-card-body { padding: 1.25rem 1.75rem; }
}
.stage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
}
.stage-card-header h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.stage-card-meta { font-size: 0.78rem; color: var(--text-muted); margin: 0.3rem 0 0; }
.stage-card-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.stage-card.open .stage-card-toggle { transform: rotate(180deg); background: var(--navy); color: var(--white); }
.stage-card-description {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.stage-card-description > div { overflow: hidden; }
.stage-card-description p { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
.stage-card-description .btn-primary { margin-top: 1.25rem; padding: 0.75rem 1.75rem; font-size: 0.8rem; }
.stage-card.open .stage-card-description { grid-template-rows: 1fr; }

/* Tarifs */
.price-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--border); }
.price-card p:last-of-type { margin-bottom: 0; }
.price-card .btn-primary,
.price-card .btn-secondary { margin-top: auto; align-self: flex-start; }
.price-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; }
.price-amount { font-family: var(--font-title); font-style: italic; font-size: 2.1rem; color: var(--navy); margin: 0.5rem 0; }
.price-per { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.03em; }
.price-list { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
.price-list li:last-child { border-bottom: none; }
.price-list .amount { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* Installations list */
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.9rem; font-size: 0.96rem; }
.feature-list li::before { content: ''; width: 20px; height: 1px; background: var(--gold); margin-top: 0.65em; flex-shrink: 0; }

/* ================================
   FOOTER
   ================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.68); padding: 4.5rem 1.5rem 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto 3.5rem;
}
.footer-logo { font-family: var(--font-title); font-style: italic; font-size: 1.45rem; color: var(--cream); margin-bottom: 0.9rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: 0.88rem; margin: 0 0 0.5rem; color: rgba(255,255,255,0.68); }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ================================
   FORMS
   ================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.35rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ================================
   BACK TO TOP
   ================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--navy-deep); transform: translateY(-3px); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.78rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 5rem 1.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .section { padding: 4rem 1.25rem; }

  /* Jamais de double colonne sur mobile, sauf le footer (site / contact) */
  .card-grid { grid-template-columns: 1fr !important; }
  .container[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col { min-width: 0; }
  .footer-col ul a { word-break: break-word; }

  /* Carrousel horizontal auto-défilant (souches, formules de pension) */
  .card-grid.auto-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.1rem;
    padding-bottom: 0.5rem;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
  }
  .card-grid.auto-scroll::-webkit-scrollbar { display: none; }
  .card-grid.auto-scroll {
    align-items: stretch;
  }
  /* Confort aux écuries → Les boxes : trop d'espace blanc empilé (padding
     bas + padding haut qui s'additionnent, sans rupture de couleur nette). */
  .section--confort-ecuries { padding-bottom: 1.5rem; }
  .section--boxes { padding-top: 1.5rem; }
  .section--reservation-poulains { padding-bottom: 1.5rem; }
  .section--souches { padding-top: 1.5rem; }
  .card-grid.auto-scroll > * {
    flex: 0 0 78%;
    /* height:100% (price-card/info-card) casse le stretch flex quand le conteneur
       n'a pas de hauteur fixe : on repasse en auto pour laisser stretch égaliser. */
    height: auto;
  }
}
@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline { width: 100%; text-align: center; justify-content: center; }
}

/* ================================
   PAGES LÉGALES
   ================================ */
.legal-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; font-style: italic; }
.legal-toc {
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.legal-toc p {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 0.75rem;
}
.legal-toc a {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--navy);
  text-decoration: none;
  margin-right: 1.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}
.legal-toc a:hover { border-bottom-color: var(--navy); }
.legal-section { margin-bottom: 3rem; scroll-margin-top: 100px; }
.legal-section h2 {
  font-size: 1.5rem;
  font-style: normal;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}
.legal-section p, .legal-section li {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.legal-section ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal-section ul li::marker { color: var(--gold); }
.legal-section a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
hr.legal-divider { border: none; border-top: 1px solid var(--border); margin: 2.75rem 0; }

.fill-block {
  display: inline-block;
  background: var(--cream-pale);
  border: 1px dashed var(--steel);
  border-radius: 4px;
  padding: 0.1rem 0.6rem;
  color: var(--navy);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9em;
}
.fill-block--block {
  display: block;
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.25rem;
}
