/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #5A8F7B; /* Vert Sauge apaisant */
    --secondary-color: #D4C5B0; /* Beige Sable */
    --dark-text: #2C3E50;
    --light-text: #FFFFFF;
    --bg-light: #F9F9F9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3 { font-family: var(--font-heading); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* DÉFINITION GLOBALE DU CONTENEUR */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.highlight { color: var(--primary-color); }

/* --- HEADER --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* STYLES CORRIGÉS ET RENFORCÉS POUR LE LOGO ET LE TITRE */
.site-branding {
    display: flex; 
    align-items: center; 
    min-width: 0; 
}

/* SÉLECTEUR CIBLÉ AVEC HAUTE SPÉCIFICITÉ */
.site-branding .site-logo {
    height: 45px; 
    width: auto; 
    margin-right: 12px; 
    display: block; 
    flex-shrink: 0; 
}

/* Le titre "EnerGenese" est dans un div.logo */
.site-branding .logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    letter-spacing: 1px; 
    line-height: 1; 
    flex-shrink: 0; 
}

.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.btn-rdv {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 30px;
    transition: 0.3s;
}
.btn-rdv:hover { background: #467060; transform: translateY(-2px); }

/* --- HERO SECTION (VIDÉO CORRIGÉE) --- */
.hero {
    height: 90vh;
    min-height: 400px; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 80px; 
    overflow: hidden; 
}

/* STYLES CRITIQUES POUR LA VIDÉO */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; 
    transform: translate(-50%, -50%);
    object-fit: cover; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1; 
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.5rem; font-weight: 300; margin-bottom: 2rem; letter-spacing: 2px; }

.btn-hero {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 35px;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-top: 20px;
}
.btn-hero:hover { background: #fff; color: var(--dark-text); }

/* --- SERVICES --- */
.bg-light { background-color: var(--bg-light); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; position: relative; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--primary-color);
    margin: 20px auto 0;
}

/* CENTRAGE DU TITRE ET DE LA GRILLE DANS LA SECTION PRATIQUES */
#pratiques .container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* SERVICES GRID (Centré, 2x2 - Réglages Opera/Compatibilité renforcés) */
.services-grid {
    /* Active le mode Grille */
    display: grid;
    
    /* Force 2 colonnes de largeur égale (1 fraction chacune) */
    grid-template-columns: repeat(2, 1fr); 
    
    /* Gestion de la largeur et du centrage de la grille elle-même */
    max-width: 900px; 
    width: 100%;
    margin: 0 auto; /* Centrage horizontal */
    
    /* Espace entre les cartes */
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    
    /* Assure que toutes les cartes ont la même hauteur dans la grille 2x2 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;
}
.service-card:hover { transform: translateY(-10px); }
.service-card .icon { font-size: 3rem; margin-bottom: 20px; }
.tag { 
    display: inline-block; background: var(--secondary-color); color: #fff; 
    padding: 5px 10px; font-size: 0.8rem; border-radius: 15px; margin-top: 15px; 
}


/* --- ABOUT --- */

.image-pc-fluid {
    max-width: 100%; 
    height: auto; 
}

.split-layout { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-image { flex: 1; }

.praticien-photo {
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- CONTACT --- */
.contact { background: var(--primary-color); color: #fff; }
.text-white { color: #fff; }
.text-white::after { background: #fff; }

.contact-wrapper { display: flex; flex-wrap: wrap; gap: 50px; margin-top: 40px; }
.contact-info { flex: 1; }
.contact-form { flex: 1; background: #fff; padding: 30px; border-radius: 5px; color: var(--dark-text); }

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 4px;
    font-family: var(--font-body);
}
.btn-submit {
    width: 100%; background: var(--dark-text); color: #fff;
    padding: 12px; border: none; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: #000; }

/* --- FOOTER --- */
footer { background: #222; color: #aaa; text-align: center; padding: 30px 0; font-size: 0.9rem; }

/* --- BURGER MENU (Mobile) --- */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--dark-text); margin: 5px; transition: all 0.3s ease; }

/* RESPONSIVE */
@media (max-width: 768px) {
    
    .services-grid {
        /* Passe à 1 colonne sur les écrans < 768px */
        grid-template-columns: 1fr; 
        /* Réduit un peu l'écart sur mobile */
        gap: 20px;
    }
    
    .site-branding .site-logo {
        height: 30px; 
        margin-right: 8px;
        display: block; 
        flex-shrink: 0; 
    }
    .site-branding .logo {
        font-size: 1.3rem; 
        flex-shrink: 0;
    }
    
    .nav-links {
        position: absolute; right: 0; height: 92vh; top: 8vh;
        background-color: #fff; display: flex; flex-direction: column;
        align-items: center; width: 50%; transform: translateX(100%);
        transition: transform 0.5s ease-in; box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .nav-links li { opacity: 0; margin: 30px 0; }
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }
    
    .hero h1 { font-size: 2.5rem; }
    .split-layout { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
}

@media (max-width: 480px) {
    
    .site-branding .site-logo {
        height: 25px; 
        margin-right: 5px;
    }
    .site-branding .logo {
        font-size: 1.2rem;
    }
}

.youtube-icon {
    width: 24px; 
    height: 24px;
    vertical-align: middle; 
    margin-right: 8px; 
}

.youtube-link {
    text-decoration: none; 
    color: #FF0000; 
    font-weight: bold;
}

.youtube-link:hover {
    opacity: 0.8; 
}