/* ============================================================
   ÉLEVAGE DU LIÉ – Feuille de styles commune
   Organisations des sections :
   1. Variables & Reset
   2. Navigation
   3. Hero – page d'accueil
   4. Hero – page étalons
   5. Sections communes (containers, titres, stag…)
   6. Section À propos
   7. Section Le Lieu
   8. Section Services & cartes
   9. Galerie / placeholders de photos
   10. Modals
   11. Tarifs
   12. Contact & formulaire
   13. Carte Google Maps
   14. Footer
   15. Page Étalons – composants spécifiques
   16. Pedigree
   17. Carrousel
   18. Lightbox
   19. CTA Contact (page étalons)
   20. Animations & Reveal
   21. Responsive
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   1. VARIABLES & RESET
   ────────────────────────────────────────────────────────── */
:root {
  --marine:   #1B3A5C;
  --marine2:  #152d47;
  --violet:   #7B3FA0;
  --violet2:  #5c2e78;
  --lilas:    #9B6DC5;
  --lilas-cl: #C9A8E8;
  --blanc:    #F8F5FF;
  --gris-cl:  #EDE8F7;
  --gris:     #888;
  --noir:     #111;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--blanc);
  color: var(--noir);
  overflow-x: hidden;
}

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


/* ──────────────────────────────────────────────────────────
   2. NAVIGATION
   ────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 3rem;
  background: rgba(11, 30, 52, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(155, 109, 197, 0.3);
  transition: padding .3s;
}

/* Logo dans la nav */
.nav-logo-img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(155, 109, 197, 0.5));
  object-fit: contain;
  display: block;
}

/* Liens nav desktop */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(248, 245, 255, 0.8);
  text-decoration: none;
  transition: color .3s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--lilas-cl); }

/* Bouton CTA dans la nav */
.nav-cta {
  background: var(--violet);
  color: #fff !important;
  padding: .45rem 1.2rem;
  border-radius: 2px;
  transition: background .3s !important;
}

.nav-cta:hover { background: var(--violet2) !important; }

/* Lien retour (page étalons) */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(248, 245, 255, .75);
  text-decoration: none;
  transition: color .3s;
}

.nav-back::before { content: '←'; transition: transform .3s; }
.nav-back:hover { color: var(--lilas-cl); }
.nav-back:hover::before { transform: translateX(-4px); }

/* Hamburger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all .3s;
}

/* Menu mobile (overlay plein écran) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--marine2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color .3s;
}

.nav-mobile a:hover { color: var(--lilas-cl); }

.nav-mobile-close {
  position: absolute;
  top: 5.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}


/* ──────────────────────────────────────────────────────────
   3. HERO – PAGE D'ACCUEIL
   ────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--marine2);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 40%, rgba(123,63,160,0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 5% 90%, rgba(27,58,92,0.6) 0%, transparent 60%),
    linear-gradient(135deg, #0e1f30 0%, #1B3A5C 60%, #2a1840 100%);
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 3rem 0;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lilas-cl);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.2rem; height: 1px;
  background: var(--lilas-cl);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}

.hero-title em  { font-style: italic; color: var(--lilas-cl); }
.hero-title strong { display: block; font-weight: 700; }

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(248,245,255,.65);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: fadeUp .9s .7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}

/* ──────────────────────────────────────────────────────────
   4. HERO – PAGE ÉTALONS
   ────────────────────────────────────────────────────────── */
#hero-etalons {
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: var(--marine2);
  position: relative;
  overflow: hidden;
}

.hero-etalons-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 30%, rgba(123,63,160,0.4) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(27,58,92,0.5) 0%, transparent 60%),
    linear-gradient(135deg, #0e1f30 0%, #1B3A5C 70%, #2a1840 100%);
}

.hero-etalons-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}

.hero-etalons-content {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

.hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(248,245,255,.45);
  margin-bottom: 1.5rem;
}

.hero-breadcrumb a { color: var(--lilas-cl); text-decoration: none; }
.hero-breadcrumb a:hover { text-decoration: underline; }
.hero-breadcrumb span { color: rgba(248,245,255,.3); }

.hero-etalons-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero-etalons-title em { font-style: italic; color: var(--lilas-cl); }

.hero-etalons-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(248,245,255,.6);
  max-width: 560px;
  line-height: 1.75;
}

/* Tags de types de semence */
.hero-tags {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-tag {
  border: 1px solid rgba(155,109,197,0.5);
  color: var(--lilas-cl);
  padding: .35rem .9rem;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Vignettes de sommaire des étalons */
.index-photos {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.index-photo-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 160px;
  max-width: 260px;
}

.index-photo-card img {
  width: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color .3s, transform .35s;
  display: block;
}

.index-photo-card:hover img {
  border-color: var(--lilas-cl);
  transform: translateY(-4px);
}

.index-photo-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .06em;
  text-align: center;
  transition: color .3s;
}

.index-photo-label em { font-style: italic; color: var(--lilas-cl); }
.index-photo-card:hover .index-photo-label { color: var(--lilas-cl); }


/* ──────────────────────────────────────────────────────────
   5. SECTIONS COMMUNES
   ────────────────────────────────────────────────────────── */
section { padding: 5.5rem 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Label de section court (ex: "Notre histoire") */
.stag {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.stag::before {
  content: '';
  display: block;
  width: 1.8rem; height: 1px;
  background: var(--violet);
}

/* Titre de section */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--marine);
  margin-bottom: 1.2rem;
}

.section-title em { font-style: italic; color: var(--violet); }

/* Boutons communs */
.btn-primary {
  background: var(--violet);
  color: #fff;
  padding: .85rem 1.8rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .3s;
  border-radius: 2px;
}

.btn-primary:hover {
  background: var(--violet2);
  transform: translateY(-2px);
}

.btn-ghost {
  color: rgba(248,245,255,.75);
  padding: .45rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .3s;
}

.btn-ghost::after { content: '→'; transition: transform .3s; }
.btn-ghost:hover { color: var(--lilas-cl); }
.btn-ghost:hover::after { transform: translateX(4px); }


/* ──────────────────────────────────────────────────────────
   6. SECTION À PROPOS
   ────────────────────────────────────────────────────────── */
#apropos { background: var(--blanc); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Cadre visuel gauche */
.about-visual { position: relative; }

.about-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--marine) 0%, var(--violet) 60%, var(--marine2) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-frame::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 55%; height: 40%;
  border-right: 3px solid var(--lilas);
  border-bottom: 3px solid var(--lilas);
  pointer-events: none;
}

/* Badge "Fondé en 2002" */
.about-badge {
  position: absolute;
  top: -1.5rem; right: -2rem;
  background: var(--marine);
  color: #fff;
  padding: 1.4rem;
  width: 9rem;
  text-align: center;
}

.badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--lilas-cl);
  display: block;
  line-height: 1;
}

.badge-text {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: .3rem;
}

/* Texte à propos */
.about-text p {
  font-size: .97rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gris);
  margin-bottom: 1.1rem;
}

/* Signature */
.sig {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sig-line { flex: 0 0 2.2rem; height: 1px; background: var(--violet); }

.sig-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--violet);
}


/* ──────────────────────────────────────────────────────────
   7. SECTION LE LIEU
   ────────────────────────────────────────────────────────── */
#lieu { background: var(--gris-cl); }

.lieu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.lieu-text p {
  font-size: .97rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gris);
  margin-bottom: 1.1rem;
}

/* Grille de photos du lieu */
.lieu-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  align-self: start;
}

.lieu-gallery-main { grid-column: 1/-1; }

.lieu-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
}

.lieu-gallery-main img { height: 260px; }


/* ──────────────────────────────────────────────────────────
   8. SECTION SERVICES & CARTES
   ────────────────────────────────────────────────────────── */
#services { background: var(--blanc); }

.services-header {
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(27,58,92,0.15);
}

.svc-card {
  background: var(--blanc);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all .4s;
}

.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--marine), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.svc-card:hover { background: var(--marine); }
.svc-card:hover .svc-icon { color: var(--lilas-cl); }
.svc-card:hover .svc-title { color: #fff; }
.svc-card:hover .svc-desc { color: rgba(255,255,255,.6); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  font-size: 2rem;
  margin-bottom: 1.3rem;
  display: block;
  transition: color .4s;
}

.svc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: .7rem;
  color: var(--marine);
  transition: color .4s;
}

.svc-desc {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gris);
  transition: color .4s;
}


/* ──────────────────────────────────────────────────────────
   10. MODALS
   ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(10,20,40,0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--blanc);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-top: 4px solid var(--violet);
  animation: fadeUp .35s ease;
}

.modal-close {
  position: sticky;
  top: 1rem; float: right;
  margin: 1rem 1rem 0 0;
  width: 2.2rem; height: 2.2rem;
  background: var(--marine);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  flex-shrink: 0;
}

.modal-inner { padding: 2rem 2.5rem 2.5rem; }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--marine);
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: .93rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.modal-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}


/* ──────────────────────────────────────────────────────────
   11. TARIFS
   ────────────────────────────────────────────────────────── */
#tarifs { background: var(--gris-cl); }


/* ──────────────────────────────────────────────────────────
   12. CONTACT
   ────────────────────────────────────────────────────────── */
#contact { background: var(--blanc); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 2.2rem;
}

.ci-icon {
  width: 2.8rem; height: 2.8rem;
  border: 1px solid var(--lilas-cl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--violet);
}

.ci-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: .3rem;
}

.ci-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--marine);
}

.ci-val a { color: inherit; text-decoration: none; transition: color .3s; }
.ci-val a:hover { color: var(--violet); }

/* Liens réseaux sociaux */
.social-links {
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border: 1px solid var(--lilas-cl);
  color: var(--marine);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  transition: all .3s;
}

.social-link:hover {
  background: var(--marine);
  color: var(--lilas-cl);
  border-color: var(--marine);
}

.social-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Carte Google Maps intégrée dans la section contact */
.map-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.map-info {
  background: var(--marine);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.map-info-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: .3rem;
}

.map-info-title em { font-style: italic; color: var(--lilas-cl); }

.map-info-row {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.map-info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.map-info-text {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(248,245,255,.75);
}

.map-info-text strong {
  display: block;
  font-weight: 600;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}

.map-info a { color: var(--lilas-cl); text-decoration: none; }
.map-info a:hover { text-decoration: underline; }

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.map-itinerary-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(155,109,197,0.5);
  color: var(--lilas-cl);
  padding: .6rem 1.1rem;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .3s;
  margin-top: .5rem;
}

.map-itinerary-btn:hover { background: rgba(155,109,197,0.15); }


/* ──────────────────────────────────────────────────────────
   13. FOOTER
   ────────────────────────────────────────────────────────── */
footer {
  background: var(--marine2);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .8rem;
}

.footer-logo-text em { font-style: italic; color: var(--lilas-cl); }

.footer-desc {
  font-size: .85rem;
  font-weight: 300;
  color: rgba(248,245,255,.4);
  max-width: 260px;
  line-height: 1.7;
}

.footer-col-title {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lilas-cl);
  margin-bottom: 1.3rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-links a {
  font-size: .85rem;
  color: rgba(248,245,255,.5);
  text-decoration: none;
  transition: color .3s;
}

.footer-links a:hover { color: var(--lilas-cl); }

.footer-bottom {
  border-top: 1px solid rgba(248,245,255,.1);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .75rem;
  color: rgba(248,245,255,.3);
}

.footer-copy a {
  font-size: .75rem;
  color: rgba(248,245,255,.3);
  text-decoration: none;
  transition: color .3s;
}

.footer-copy a:hover { color: var(--lilas-cl); }


/* ──────────────────────────────────────────────────────────
   14. PAGE ÉTALONS – COMPOSANTS SPÉCIFIQUES
   ────────────────────────────────────────────────────────── */

/* Bloc principal d'un étalon */
.etalon-full {
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--gris-cl);
}

.etalon-full:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* En-tête avec nom + badges */
.etalon-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.etalon-name-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--marine);
  line-height: 1.1;
}

.etalon-name-big em { font-style: italic; }

.etalon-parents-line {
  font-size: .88rem;
  color: var(--gris);
  letter-spacing: .06em;
  margin: .4rem 0 1rem;
}

.etalon-badges { display: flex; gap: .5rem; flex-wrap: wrap; }

.ebadge {
  border: 1px solid var(--lilas);
  color: var(--violet);
  padding: .3rem .85rem;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Layout 2 colonnes */
.etalon-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

/* Colonne gauche : photo principale */
.etalon-left img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.etalon-portrait-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.etalon-portrait-wrap::after {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 50%; height: 35%;
  border-right: 3px solid var(--lilas);
  border-bottom: 3px solid var(--lilas);
  pointer-events: none;
}

/* Fiche infos étalon */
.etalon-infos {
  background: var(--gris-cl);
  padding: 1.5rem;
  border-left: 3px solid var(--violet);
}

.etalon-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(155,109,197,0.2);
  font-size: .88rem;
}

.etalon-info-row:last-child { border-bottom: none; }

.etalon-info-label {
  font-weight: 600;
  color: var(--marine);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.etalon-info-val { color: var(--gris); text-align: right; }

/* Blocs de description */
.etalon-desc-block { margin-bottom: 2rem; }

.etalon-desc-block p {
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gris);
  margin-bottom: 1rem;
}

.etalon-desc-block p:last-child { margin-bottom: 0; }

/* Ligne de séparation */
.separateur {
  border: none;
  height: 1px;
  background: var(--violet2);
  width: 100%;
  margin: 40px auto;
}

/* Section galerie (photo plein-largeur + carrousel) */
.galerie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

.galerie-stag {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lilas-cl);
  margin-bottom: 2rem;
}

.galerie-stag::before {
  content: '';
  display: block;
  width: 1.8rem; height: 1px;
  background: var(--lilas-cl);
}

/* Vidéo YouTube responsive */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 2rem;
}

.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Flèche retour vers le sommaire des étalons (fixe, toujours visible) */
.btn-scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 300;
  background: var(--violet);
  color: #fff;
  border: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(123,63,160,0.4);
  transition: background .3s, transform .3s, opacity .3s;
  opacity: 0;
  pointer-events: none;
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-scroll-top:hover {
  background: var(--violet2);
  transform: translateY(-3px);
}

/* CTA Contact */
#contact-cta {
  background: var(--marine);
  padding: 5rem 0;
}

.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-stag {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lilas-cl);
  margin-bottom: 1rem;
}

.cta-stag::before {
  content: '';
  display: block;
  width: 1.8rem; height: 1px;
  background: var(--lilas-cl);
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

.cta-title em { font-style: italic; color: var(--lilas-cl); }

.cta-sub {
  font-size: .95rem;
  font-weight: 300;
  color: rgba(248,245,255,.6);
  margin-top: .8rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.btn-cta-primary {
  background: var(--violet);
  color: #fff;
  padding: 1rem 2.2rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .3s;
  white-space: nowrap;
}

.btn-cta-primary:hover {
  background: var(--violet2);
  transform: translateY(-2px);
}

.btn-cta-outline {
  border: 1px solid rgba(155,109,197,0.5);
  color: var(--lilas-cl);
  padding: .85rem 2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .3s;
  white-space: nowrap;
}

.btn-cta-outline:hover { background: rgba(155,109,197,0.15); }

/* Intro étalons */
#intro-etalons {
  padding: 3.5rem 0;
  background: var(--gris-cl);
}


/* ──────────────────────────────────────────────────────────
   15. PEDIGREE
   ────────────────────────────────────────────────────────── */
.pedigree-wrap {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  max-width: 760px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pedigree-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.pedigree-header-line {
  flex: 1;
  height: 1px;
  background: #1B3A5C;
  opacity: 0.25;
}

.pedigree-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #1B3A5C;
  white-space: nowrap;
}

/* Grille pedigree 4 colonnes × 8 lignes */
.pedigree {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.1fr 1fr;
  grid-auto-rows: auto;
  border: 1px solid rgba(27,58,92,0.25);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

/* Style commun à toutes les cellules */
.ped-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
  color: #1B3A5C;
  background: #fff;
  text-transform: uppercase;
  transition: background 0.2s;
  word-break: break-word;
  hyphens: auto;
  min-height: 2.8rem;
}

/* Cheval principal – s'étend sur 8 lignes */
.ped-cell.lvl1 {
  grid-column: 1; grid-row: 1 / 9;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: #7B3FA0; background: #F8F5FF;
  border-right: 1px solid rgba(27,58,92,0.18);
}

/* Père – lignes 1-4 */
.ped-cell.lvl2-top {
  grid-column: 2; grid-row: 1 / 5;
  font-size: 0.6rem; font-weight: 700; color: #1B3A5C;
  border-right: 1px solid rgba(27,58,92,0.18);
  border-bottom: 2px solid rgba(27,58,92,0.18);
}

/* Mère – lignes 5-8 */
.ped-cell.lvl2-bot {
  grid-column: 2; grid-row: 5 / 9;
  font-size: 0.6rem; font-weight: 700; color: #1B3A5C;
  border-right: 1px solid rgba(27,58,92,0.18);
}

/* Grands-parents */
.ped-cell.lvl3-1 { grid-column:3; grid-row:1/3; border-bottom:1px solid rgba(27,58,92,0.12); border-right:1px solid rgba(27,58,92,0.18); }
.ped-cell.lvl3-2 { grid-column:3; grid-row:3/5; border-bottom:2px solid rgba(27,58,92,0.18); border-right:1px solid rgba(27,58,92,0.18); }
.ped-cell.lvl3-3 { grid-column:3; grid-row:5/7; border-bottom:1px solid rgba(27,58,92,0.12); border-right:1px solid rgba(27,58,92,0.18); }
.ped-cell.lvl3-4 { grid-column:3; grid-row:7/9; border-right:1px solid rgba(27,58,92,0.18); }

/* Arrière-grands-parents */
.ped-cell.lvl4-1 { grid-column:4; grid-row:1; border-bottom:1px solid rgba(27,58,92,0.12); }
.ped-cell.lvl4-2 { grid-column:4; grid-row:2; border-bottom:1px solid rgba(27,58,92,0.12); }
.ped-cell.lvl4-3 { grid-column:4; grid-row:3; border-bottom:1px solid rgba(27,58,92,0.12); }
.ped-cell.lvl4-4 { grid-column:4; grid-row:4; border-bottom:2px solid rgba(27,58,92,0.18); }
.ped-cell.lvl4-5 { grid-column:4; grid-row:5; border-bottom:1px solid rgba(27,58,92,0.12); }
.ped-cell.lvl4-6 { grid-column:4; grid-row:6; border-bottom:1px solid rgba(27,58,92,0.12); }
.ped-cell.lvl4-7 { grid-column:4; grid-row:7; border-bottom:1px solid rgba(27,58,92,0.12); }
.ped-cell.lvl4-8 { grid-column:4; grid-row:8; }

.ped-cell[class*="lvl4"] {
  font-size: 0.55rem; font-weight: 400; color: #444; letter-spacing: 0.02em;
}

.ped-cell:not(.lvl1):hover { background: #EDE8F7; cursor: default; }

.pedigree-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: #888;
  text-align: right;
  font-style: italic;
}


/* ──────────────────────────────────────────────────────────
   16. CARROUSEL
   ────────────────────────────────────────────────────────── */
.carr-outer { position: relative; }
.carr-viewport { overflow: hidden; width: 100%; }

.carr-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.carr-slide { flex: 0 0 100%; cursor: pointer; }

/* Conteneur de hauteur fixe pour uniformiser les diapositives.
   object-fit: contain garantit que toute l'image est visible,
   sans rogner, quel que soit son format (portrait, paysage…).
   Le fond noir comble les espaces latéraux éventuels. */
.carr-slide {
  background: var(--gris-cl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carr-slide img {
  width: 100%;
  height: 480px;     /* hauteur fixe commune à toutes les diapositives */
  object-fit: contain; /* image entière visible, sans rognage */
  display: block;
  transition: opacity .2s;
}

/* Sur mobile, hauteur réduite pour rester confortable */
@media (max-width: 600px) {
  .carr-slide img { height: 260px; }
}

.carr-slide:hover img { opacity: .88; }

.carr-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(27,58,92,.75);
  color: #fff;
  border: none;
  width: 2.8rem; height: 2.8rem;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
  z-index: 2;
  user-select: none;
}

.carr-btn:hover { background: var(--violet); }
.carr-prev { left: .5rem; }
.carr-next { right: .5rem; }

.carr-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.carr-dot {
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--gris);
  cursor: pointer;
  transition: background .3s;
  border: none;
}

.carr-dot.active { background: var(--lilas-cl); }


/* ──────────────────────────────────────────────────────────
   17. LIGHTBOX
   ────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}

.lightbox-close {
  position: fixed;
  top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
  z-index: 901; opacity: .8; transition: opacity .2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(27,58,92,.7);
  color: #fff; border: none;
  width: 3rem; height: 3rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 901; transition: background .3s;
}

.lightbox-prev:hover, .lightbox-next:hover { background: var(--violet); }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }


/* ──────────────────────────────────────────────────────────
   18. ANIMATIONS & REVEAL AU SCROLL
   ────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

/* Classes d'animation utilisées dans les héros */
.anim-up { opacity: 0; animation: fadeUp .8s forwards; }
.anim-up.d1 { animation-delay: .15s; }
.anim-up.d2 { animation-delay: .3s; }
.anim-up.d3 { animation-delay: .45s; }

/* Reveal au scroll (IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s, transform .7s;
}

.reveal.visible { opacity: 1; transform: none; }

.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }


/* ──────────────────────────────────────────────────────────
   19. RESPONSIVE
   ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  nav { padding: .9rem 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .container,
  .hero-etalons-content,
  .cta-inner,
  .galerie-inner { padding: 0 1.5rem; }

  .hero-content { padding: 5.5rem 1.5rem 0; }

  .about-grid,
  .lieu-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

  .map-inner { grid-template-columns: 1fr; }

  .etalon-header { grid-template-columns: 1fr; gap: 1rem; }
  .etalon-body   { grid-template-columns: 1fr; gap: 2.5rem; }

  .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-actions { align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge { right: 0; top: -1rem; }
  .lieu-gallery { grid-template-columns: 1fr; }
  .lieu-gallery-main { grid-column: auto; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  .hero-actions { flex-direction: column; align-items: flex-start; gap: .8rem; }

  .btn-primary,
  .btn-ghost { font-size: .78rem; }

  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  .modal-inner { padding: 1.5rem; }
  .modal-photos { grid-template-columns: 1fr; }

  .social-links { gap: .5rem; }
  .map-frame { min-height: 280px; }

  .hero-etalons-title { font-size: clamp(2rem, 7vw, 3rem); }
  .etalon-name-big { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  .index-photos { gap: 1rem; }
  .index-photo-card { min-width: 120px; }

  .btn-scroll-top { bottom: 1rem; right: 1rem; }
  
}

@media (max-width: 380px) {
  .pedigree {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .ped-cell {
    padding: 0.3rem 0.25rem;
    font-size: 0.58rem;
    letter-spacing: 0;
    min-height: 2rem;
    word-break: break-word;
    hyphens: auto;
  }
  .ped-cell.lvl1        { font-size: 0.62rem; }
  .ped-cell.lvl2-top,
  .ped-cell.lvl2-bot    { font-size: 0.6rem; }
  .ped-cell[class*="lvl4"] { font-size: 0.55rem; }
  .pedigree-title       { font-size: 0.85rem; letter-spacing: 0.12em; }
}