/* ==========================================================
   Équilibre14 — Design System & Styles
   Style: Modern Rustic · Equestrian Elegance
   Approach: Mobile-First Responsive
   ========================================================== */

/* --- Google Fonts Import --- */
/* Polices auto-hébergées (RGPD : aucun appel à Google Fonts) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }

/* --- Custom Properties --- */
:root {
  /* Palette */
  --white:       #FAFAFA;
  --green:       #1B3022;
  --green-light: #2A4A35;
  --green-dark:  #0F1D15;
  --taupe:       #D2B48C;
  --taupe-light: #E8D5B7;
  --taupe-dark:  #B8956A;
  --black:       #1A1A1A;
  --gray:        #6B6B6B;
  --gray-light:  #E0E0E0;

  /* Typography */
  --font-heading: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.35s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  /* Semantic aliases (used by cheval-card components) */
  --primary-color: var(--green);
  --border-color:   var(--gray-light);
  --text-color:     var(--gray);
  --surface-bg:     var(--taupe-light);
  --bg-alt:         #F5F3EF;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

ul, ol { list-style: none; }

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gray);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.text-center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-primary {
  background-color: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-taupe {
  background-color: var(--taupe);
  color: var(--green-dark);
  font-weight: 600;
}

.btn-taupe:hover {
  background-color: var(--taupe-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.navbar.scrolled {
  background-color: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--duration) var(--ease);
}

.navbar.scrolled .nav-logo {
  color: var(--green);
}

.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: filter var(--duration) var(--ease);
}

/* White logo over the dark hero; brand green once the navbar turns light */
.navbar:not(.scrolled) .nav-logo-img {
  filter: brightness(0) invert(1);
}

body.page-cheval .nav-logo-img {
  filter: none;
}

.nav-links {
  display: none;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 0.25rem 0;
}

.navbar.scrolled .nav-links a {
  color: var(--black);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--taupe);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Instagram icon in the navbar (right of FAQ) */
.nav-instagram {
  display: inline-flex;
  align-items: center;
}

.nav-instagram svg {
  display: block;
}

.nav-instagram::after {
  display: none; /* no underline bar under the icon */
}

.nav-instagram:hover {
  color: var(--taupe);
}

/* Instagram entry in the mobile menu */
.nav-mobile-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dropdown menu (desktop) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-chevron {
  transition: transform var(--duration) var(--ease);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 210px;
  list-style: none;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              visibility var(--duration) var(--ease);
  z-index: 1001;
}

/* invisible bridge so the menu stays open while moving the cursor down */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-submenu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  border-radius: 8px;
  white-space: nowrap;
}

.nav-submenu a::after { display: none; }

.nav-submenu a:hover {
  background: var(--bg-alt);
  color: var(--green);
}

/* Mobile sub-links */
.nav-mobile-sub {
  font-size: 1.15rem !important;
  opacity: 0.65;
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled .nav-toggle span {
  background-color: var(--green);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: right var(--duration) var(--ease);
  z-index: 999;
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--duration) var(--ease);
}

.nav-mobile a:hover { opacity: 1; }

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 29, 21, 0.55) 0%,
    rgba(15, 29, 21, 0.35) 50%,
    rgba(15, 29, 21, 0.65) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  padding: var(--space-md);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.hero-location {
  font-style: italic;
  color: var(--taupe-light) !important;
  font-weight: 400 !important;
  margin-bottom: var(--space-lg) !important;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   CONDITIONS DE VIE SECTION
   ============================ */
.conditions {
  background-color: var(--white);
}

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  align-items: center;
}

.conditions-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.conditions-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.conditions-image:hover img {
  transform: scale(1.03);
}

.conditions-text p {
  color: var(--gray);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.conditions-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: linear-gradient(135deg, #f5f3ef 0%, #ede8df 100%);
  border-radius: 10px;
  border-left: 4px solid var(--taupe);
  margin: var(--space-lg) 0;
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--taupe-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conditions-highlight h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.conditions-highlight p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.conditions-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f5f3ef;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  transition: transform var(--duration) var(--ease);
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--taupe-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Domaine gallery */
.domaine-gallery {
  margin-top: var(--space-xl);
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(15, 29, 21, 0.8));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
}

/* ============================
   QUI SOMMES-NOUS SECTION
   ============================ */
.qui-sommes-nous {
  background-color: #F5F3EF;
}

.temoignage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  align-items: start;
}

.temoignage-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.temoignage-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.temoignage-image:hover img {
  transform: scale(1.03);
}

.temoignage-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(15, 29, 21, 0.95));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.temoignage-header {
  margin-bottom: var(--space-lg);
}

.temoignage-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.temoignage-role {
  font-size: 0.9rem;
  color: var(--taupe-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.temoignage-quote {
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--taupe);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.temoignage-quote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.temoignage-quote p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.temoignage-quote.highlight-quote {
  border-left-color: var(--green);
  background: linear-gradient(135deg, #f0ede7 0%, var(--white) 100%);
}

.temoignage-quote.highlight-quote p {
  color: var(--black);
  font-weight: 400;
}

.temoignage-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--white);
  border-radius: 10px;
  margin-top: var(--space-md);
  color: var(--taupe-dark);
}

.temoignage-note p {
  font-size: 0.95rem;
  color: var(--gray);
}

.temoignage-note strong {
  color: var(--green);
}

/* ============================
   HORSES / NOS CHEVAUX — CAROUSEL
   ============================ */
.chevaux {
  background-color: var(--white);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  flex-wrap: nowrap;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 10px;
  flex: 1;
  min-width: 0;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-md);
  transition: transform 0.5s var(--ease);
}

.cheval-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cheval-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cheval-card-img {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.cheval-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cheval-card:hover .cheval-card-img img {
  transform: scale(1.05);
}

.cheval-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-sauve {
  background-color: var(--green);
  color: var(--white);
}

.badge-soin {
  background-color: var(--taupe);
  color: var(--green-dark);
}

.badge-adoptable {
  background-color: #E8D5B7;
  color: var(--green);
  border: 1px solid var(--taupe);
}

.cheval-card-body {
  padding: var(--space-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cheval-card-body h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.35rem;
  color: var(--green-dark);
}

.cheval-meta {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.cheval-meta .badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cheval-details {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--text-color);
  line-height: 1.5;
}

.cheval-details li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.cheval-details li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.cheval-details strong {
  font-weight: 600;
  color: var(--green-dark);
}

.cheval-story {
  font-size: 0.875rem;
  color: var(--text-color);
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.6;
  padding: var(--space-sm);
  background: var(--taupe-light);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.cheval-character {
  font-size: 0.875rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-sm);
}

/* Carousel Buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background-color: var(--green-light);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-light);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--green);
  transform: scale(1.3);
}

/* ============================
   NOUS AVONS BESOIN DE VOUS
   ============================ */
.besoin {
  background-color: #F5F3EF;
  position: relative;
}

.besoin-wrapper {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 16px;
  padding: var(--space-xl) var(--space-md);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.besoin-wrapper h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.besoin-wrapper .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.besoin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  text-align: left;
}

.besoin-card {
  padding: var(--space-lg);
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.besoin-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.besoin-card-icon {
  margin-bottom: var(--space-md);
}

.besoin-card h3 {
  color: var(--taupe-light);
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.besoin-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.besoin-fiscal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(232, 213, 183, 0.15);
  border: 1px solid rgba(232, 213, 183, 0.3);
  border-radius: 10px;
  margin-bottom: var(--space-lg);
  color: var(--taupe-light);
}

/* =========================================
   PROFILES CHEVAUX INDIVIDUELS
   ========================================= */

.cheval-profile {
  background-color: var(--bg-alt);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
}

.profile-content .cheval-meta {
  justify-content: flex-start;
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.profile-content .cheval-details {
  border-bottom: 2px solid var(--taupe);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.profile-content .cheval-story {
  border-left-width: 4px;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
  line-height: 1.7;
}

.profile-content .cheval-character {
  font-size: 1.1rem;
  background-color: var(--taupe-light);
  padding: var(--space-md);
  border-radius: 8px;
}

/* Fix navbar on horse pages where there is no dark hero section */
body.page-cheval .navbar {
  background-color: rgba(250, 250, 250, 0.97) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: var(--shadow-sm) !important;
}
body.page-cheval .navbar .nav-logo {
  color: var(--green) !important;
}
body.page-cheval .navbar .nav-links a {
  color: var(--black) !important;
}
body.page-cheval .navbar .nav-toggle span {
  background-color: var(--green) !important;
}

.besoin-fiscal p {
  font-size: 0.95rem;
  text-align: left;
}

.besoin-fiscal strong {
  color: var(--taupe);
  font-size: 1.1rem;
}

.besoin-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

/* HelloAsso donation form embed */
.besoin-don {
  background: var(--white);
  border-radius: 14px;
  padding: var(--space-lg) var(--space-md);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
  color: var(--black);
}

.besoin-don h3 {
  color: var(--green);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.besoin-don > p {
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 38rem;
  margin: 0 auto var(--space-md);
}

.helloasso-embed {
  display: flex;
  justify-content: center;
}

.helloasso-embed iframe {
  width: 100%;
  max-width: 28rem;
  min-height: 640px;
  border: none;
  border-radius: 8px;
}

.helloasso-fallback {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gray);
}

.helloasso-fallback a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  color: var(--gray);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: var(--taupe-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail a {
  color: var(--green);
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--taupe-dark);
}

.contact-maps-link {
  display: block;
  transition: color var(--duration) var(--ease);
}

.maps-hint {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--taupe-dark);
  font-weight: 400;
}

.contact-form {
  background: #F5F3EF;
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--black);
  background-color: var(--white);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--taupe);
  box-shadow: 0 0 0 3px rgba(210, 180, 140, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0B0B0;
}

/* Honeypot */
.hp-field { display: none !important; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}

.form-success.show {
  display: block;
}

.form-success .check-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray);
}

/* Contact Map */
.contact-map {
  margin-top: var(--space-xl);
}

.contact-map-link {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Clicks go through to the link (which opens Google Maps), per la maquette */
.contact-map-link iframe {
  pointer-events: none;
}

.contact-map-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--green);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.contact-map-link:hover .contact-map-hint {
  background: var(--green);
  color: var(--white);
}

/* ============================
   COÛTS — Où va votre don
   ============================ */
.couts {
  background-color: var(--white);
}

.couts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .couts-layout {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.couts-list {
  list-style: none;
}

.couts-list li,
.couts-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.couts-label {
  color: var(--black);
}

.couts-label small {
  color: var(--gray);
  font-size: 0.8em;
}

.couts-val {
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.couts-total {
  border-bottom: none;
  border-top: 2px solid var(--green);
  margin-top: 0.5rem;
}

.couts-total .couts-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.couts-total .couts-val {
  font-size: 1.3rem;
}

.couts-foot {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--gray);
}

.couts-aside {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: var(--space-lg);
}

.couts-big {
  text-align: center;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-light);
}

.couts-big-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.couts-big-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.couts-aside h3 {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.couts-aside p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--black);
}

/* ============================
   FAQ SECTION
   ============================ */
.faq {
  background-color: #F5F3EF;
}

.faq-list {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration) var(--ease);
}

.faq-item summary:hover {
  background: rgba(210, 180, 140, 0.08);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--taupe-dark);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--gray-light);
}

.faq-answer {
  padding: var(--space-md) var(--space-lg);
  animation: faqFadeIn 0.3s var(--ease);
}

.faq-answer p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background-color: var(--green);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.footer-logo {
  height: 86px;
  width: auto;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1); /* white on the dark green footer */
}

.footer p,
.footer a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer a:hover {
  color: var(--taupe-light);
}

.footer-links a {
  display: block;
  padding: 0.2rem 0;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration) var(--ease);
}

.footer .social-icon:hover {
  background-color: var(--taupe);
  border-color: var(--taupe);
  color: var(--green-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================
   RESPONSIVE — Tablet (768px+)
   ============================ */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .conditions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .temoignage-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .cheval-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .besoin-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .besoin-cta {
    flex-direction: row;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================
   RESPONSIVE — Desktop (1024px+)
   ============================ */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .cheval-card {
    flex: 0 0 calc(33.333% - 1rem);
  }

  .besoin-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .besoin-wrapper {
    padding: var(--space-2xl) var(--space-xl);
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .gallery-item img {
    height: 450px;
  }
}
