:root {
    --sable: #e8d5b7;
    --creme: #fdfaf5;
    --vert-profond: #0a1f12; /* Vert forêt très sombre */
    --or: #d4af37;
    --terre: #5d4037;
    --font-titre: 'Playfair Display', serif;
    --font-corps: 'Montserrat', sans-serif;
}

/* ÉCRAN D'ENTRÉE (SPLASH SCREEN) */
#entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--vert-profond);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease, visibility 1.5s;
    color: var(--or);
    text-align: center;
}

#entrance-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.btn-entrer {
    margin-top: 30px;
    padding: 15px 40px;
    border: 1px solid var(--or);
    background: transparent;
    color: var(--or);
    font-family: var(--font-corps);
    text-transform: uppercase;
    letter-spacing: 5px;
    cursor: pointer;
    transition: 0.5s;
}

.btn-entrer:hover {
    background: var(--or);
    color: var(--vert-profond);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* DESIGN GÉNÉRAL */
body {
    background-color: var(--creme);
    color: var(--vert-profond);
    font-family: var(--font-corps);
    line-height: 1.7;
    overflow-x: hidden;
}

/* NAVIGATION ÉLÉGANTE */
nav {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    z-index: 100;
    transition: 0.5s;
}

nav.scrolled {
    background: rgba(253, 250, 245, 0.95);
    padding: 15px;
    border-bottom: 1px solid var(--sable);
}

nav ul { display: flex; list-style: none; }
nav ul li { margin: 0 15px; }
nav ul li a {
    text-decoration: none;
    color: var(--vert-profond);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* HERO SECTION VIBRANTE */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(10,31,18,0.4), rgba(253,250,245,1)), 
                url('votre-photo-galop.jpg') center/cover attachment: fixed;
}

.hero-content { text-align: center; }
.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-family: var(--font-titre);
    font-style: italic;
    color: var(--vert-profond);
    margin-bottom: 10px;
}

/* BLOCS DE TEXTE POÉTIQUES */
.section-vibrante {
    padding: 120px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.gold-line {
    width: 50px;
    height: 2px;
    background: var(--or);
    margin: 20px auto;
}

blockquote {
    font-family: var(--font-titre);
    font-size: 2rem;
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--sable);
    border-bottom: 1px solid var(--sable);
    margin: 50px 0;
    color: var(--terre);
}
/* AJOUTS AU FICHIER EXISTANT */

.elevage-hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('votre-image-fond.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--or);
    margin-top: 20px;
}

.container-magazine {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}

.intro-quote {
    font-family: var(--font-corps);
    font-weight: 200;
    font-size: 1.3rem;
    text-align: center;
    color: var(--terre);
    margin-bottom: 100px;
    line-height: 2;
}

.magazine-block {
    margin-bottom: 80px;
}

.title-gold {
    font-family: var(--font-titre);
    font-size: 2.8rem;
    color: var(--vert-profond);
    margin-bottom: 15px;
}

.separator-gold {
    width: 100px;
    height: 1px;
    background: var(--or);
    margin-bottom: 30px;
}

.full-width-quote {
    background: #e9ecea; /* Un gris-vert très doux */
    padding: 60px;
    text-align: center;
    font-family: var(--font-titre);
    font-size: 2rem;
    font-style: italic;
    margin: 100px 0;
    color: var(--vert-profond);
}

:root {
    --vert-profond: #0d1e15; /* Un vert presque noir, très noble */
    --sable-doux: #d9c5a0;   /* Couleur sable chaud pour le texte sur fond sombre */
    --creme-luxe: #f4f1ea;   /* Pour les sections claires */
    --or-brillant: #c5a059;
    --terre-ombre: #2c1a12;
}

/* SECTION SOMBRE VIBRANTE */
.section-dark {
    background-color: var(--vert-profond);
    color: var(--sable-doux);
    padding: 100px 10%;
    position: relative;
}

/* SECTION CLAIRE CHAUDE */
.section-light {
    background-color: var(--creme-luxe);
    color: var(--vert-profond);
    padding: 100px 10%;
}

/* TITRES VIBRANTS */
h2.title-gold {
    font-family: var(--font-titre);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-dark h2.title-gold {
    color: var(--or-brillant);
}

/* CARTES CHEVAUX STYLE "GALERIE D'ART" */
.horse-card {
    background: var(--vert-profond);
    border: 1px solid var(--or-brillant);
    color: var(--sable-doux);
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.horse-card:hover {
    background: var(--terre-ombre);
    transform: scale(1.02);
}

.horse-details h3 {
    color: var(--or-brillant);
    border-bottom: 1px solid var(--or-brillant);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.titre-gold {
    text-align: center;
    color: #c5a059;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* --- SECTION INTRO POETIQUE --- */
.intro-poetique {
    padding: 100px 20px;
    background-color: #0d1e15; /* Vert Profond */
    text-align: center;
}

.container-poetique {
    max-width: 800px;
    margin: 0 auto;
}

.sous-titre {
    color: #c5a059; /* Or Brillant */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.titre-principal {
    color: #d9c5a0; /* Sable Doux */
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 300;
    margin: 0;
}

.separateur-or {
    width: 60px;
    height: 1px;
    background: #c5a059;
    margin: 40px auto;
}

.texte-presentation {
    color: rgba(217, 197, 160, 0.8);
    font-size: 1.1rem;
    line-height: 2;
    letter-spacing: 1px;
    font-weight: 300;
}

/* --- SECTION COLLECTION PRESTIGE --- */
.collection-prestige {
    background-color: #0b1a12; /* Noir très profond */
    padding: 50px 20px 100px 20px;
}

.galerie-immersive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Style de chaque item cheval */
.cheval-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(197, 160, 89, 0.1); /* Bordure or très discrète */
    transition: 0.6s ease;
}

/* Format Vertical (Plus Haut) */
.item-vertical {
    height: 600px; /* Grande hauteur pour le prestige */
}

/* L'image elle-même */
.cheval-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garde les proportions */
    transition: 1s ease; /* Transition lente de l'image */
    filter: sepia(10%) contrast(105%); /* Petit effet pro */
}

/* Effet de zoom et de bordure au survol */
.cheval-item:hover {
    border-color: #c5a059;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.cheval-item:hover img {
    transform: scale(1.05); /* L'image zoome légèrement */
}

/* L'Overlay (Texte au survol) */
.cheval-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0b1a12, transparent); /* Dégradé noir */
    opacity: 0; /* Caché par défaut */
    transition: 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

/* Apparition de l'overlay au survol */
.cheval-item:hover .cheval-overlay {
    opacity: 1;
}

.content-overlay {
    text-align: center;
    transform: translateY(20px); /* Légère descente */
    transition: 0.5s ease;
}

.cheval-item:hover .content-overlay {
    transform: translateY(0); /* Remonte au survol */
}

/* Styles des textes de l'overlay */
.nom-cheval {
    color: #d9c5a0;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    display: block;
    font-weight: 300;
}

.caractere {
    color: #c5a059;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
}

.separateur-overlay {
    width: 40px;
    height: 1px;
    background: #c5a059;
    margin: 15px auto;
}

.desc {
    color: rgba(217, 197, 160, 0.7);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0;
}
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Pour que ça passe l'un sous l'autre sur mobile */
}
.row-reverse { flex-direction: row-reverse; }
.col-text { flex: 1; padding: 20px; min-width: 300px; }
.col-img { flex: 1; padding: 20px; text-align: center; min-width: 300px; }
.col-img img { width: 100%; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
/* --- LE CODE QUI RÉPARE LES IMAGES GÉANTES --- */
.horse-card img, 
.horse-img img, 
.img-container img {
    width: 100% !important;   /* Force l'image à prendre toute la largeur de sa colonne... */
    max-width: 100% !important; /* ...mais JAMAIS plus que sa colonne. */
    height: 300px !important; /* Force une hauteur fixe pour que toutes les cartes soient alignées */
    object-fit: cover !important; /* Coupe proprement l'image pour qu'elle remplisse les 300px sans être déformée */
    border-radius: 10px;      /* Optionnel : pour des jolis bords arrondis */
    display: block;           /* Enlève un petit espace blanc parasite sous l'image */
}