/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #1e2a36; /* Bleu très foncé, presque noir, plus moderne */
    --secondary-color: #2c3e50;
    --accent-color: #c0a16b;  /* Doré */
    --accent-hover: #a38655;
    --text-dark: #222222;
    --text-light: #555555;
    --bg-light: #ffffff;
    --bg-alt: #f4f6f8; /* Gris bleuté très clair */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 4px;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7; /* Meilleure lisibilité */
    color: var(--text-light);
    font-size: 16px;
    background-color: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- UI ELEMENTS --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 20px auto;
}

.separator.left {
    margin: 0 0 20px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.dot {
    color: var(--accent-color);
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 161, 107, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- NAVIGATION --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-nav {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-nav:hover {
    background-color: var(--accent-color);
}

.burger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    background-image: url('photo_2025-12-21_17-04-47.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallaxe desktop */
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

.hero .subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* --- STATS BAR (CORRIGÉ) --- */
.stats-bar {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 40px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    /* Suppression de la propriété incorrecte divide-x */
}

/* Ajout des lignes de séparation via des bordures classiques */
.stat-item {
    border-right: 1px solid rgba(255,255,255,0.3);
}

/* On enlève la bordure du dernier élément pour ne pas fermer le cadre */
.stat-item:last-child {
    border-right: none;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 30px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-color);
    transition: 0.4s;
}

.service-card:hover::after {
    width: 100%;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* --- METHODE (SPLIT) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout > div {
    flex: 1;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.rounded-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- GALERIE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: 0.3s;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* --- CONTACT --- */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    padding: 50px;
    color: var(--white);
    min-width: 300px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent-color);
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.info-item a, .info-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.contact-form {
    flex: 1.5;
    padding: 50px;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.full-width {
    width: 100%;
}

/* --- FOOTER --- */
footer {
    background-color: #151e26;
    color: #888;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.legal a {
    color: #666;
    margin-left: 10px;
}

.legal a:hover {
    color: var(--accent-color);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    /* CORRECTION ICI : Gestion propre des bordures sur mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0; /* On enlève l'écart pour que les lignes se touchent */
    }
    
    .stat-item {
        padding: 15px 0;
        border-right: none; /* On enlève la barre verticale */
        border-bottom: 1px solid rgba(255,255,255,0.3); /* On met une barre horizontale */
    }

    .stat-item:last-child {
        border-bottom: none;
    }
    
    .split-layout {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Correction Hero Mobile (Parallaxe désactivé) */
    .hero {
        background-attachment: scroll;
        height: auto;
        min-height: 70vh;
        padding: 120px 0 80px 0;
    }

    .nav-links {
        display: none; 
    }
    
    .burger-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
    }
}