html, body {
    max-width: 100%;
    overflow-x: hidden; /* Empêche le défilement horizontal */
    position: relative;
}

/* ==========================================================================
   PALETTE DE COULEURS (Inspirée du Logo)
   ========================================================================== */
:root {
    --primary: #3a5262;    /* Bleu Ardoise / Pétrole (Couleur principale) */
    --accent: #c5a059;     /* Ocre / Doré (Couleur d'accentuation) */
    --dark: #25343f;       /* Bleu foncé pour le footer */
    --light: #f4f7f8;      /* Fond gris très clair */
    --white: #ffffff;
    --text: #2c3e50;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   RÉGLAGES GÉNÉRAUX
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 4rem 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between; /* Pousse le nom à gauche et le menu à droite */
    align-items: center;            /* Centre verticalement tout le contenu */
    padding: 0.8rem 5%;            /* Ajuste la hauteur de la barre */
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
}

.logo-container img {
    height: 60px; /* Ajuste selon la forme de ton logo */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;           /* Aligne les liens et les boutons sur la même ligne */
    gap: 25px;                     /* Gère l'espace entre chaque élément proprement */
}

.nav-links li {
    margin-left: 0;                /* On utilise gap maintenant, plus besoin de margin */
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */
/* Le style identique pour TOUS les boutons principaux */
.btn-primary {
    display: inline-block;
    background-color: var(--accent); /* Ton doré/ocre */
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* L'effet au survol : les deux boutons deviendront plus foncés de la même façon */
.btn-primary:hover {
    background-color: #a88746; /* Un doré plus sombre/saturé */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-rdv {
    background-color: var(--accent) !important;
    color: var(--white) !important;
    padding: 10px 20px !important; /* Ajustement du confort interne */
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;          /* EMPECHE LE TEXTE DE PASSER SUR 2 LIGNES */
    font-size: 0.85rem !important; /* Taille de police plus fine */
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    line-height: 1.2;             /* Recentrage vertical du texte */
}
.btn-rdv:hover {
    background-color: #a88746 !important; /* Un doré plus sombre */
    color: var(--white) !important;
}

#lang-switch {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

#lang-switch:hover {
    background: var(--accent);
    color: var(--white);
}

/* ==========================================================================
   HERO / ACCUEIL
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(58, 82, 98, 0.85), rgba(58, 82, 98, 0.85)), 
                url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?auto=format&fit=crop&w=1500');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* ==========================================================================
   SERVICES (Blocs)
   ========================================================================== */
/* Style des blocs de services transformés en carrés/cartes */
.service-block {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    
    /* Bordure en RGBA pour un contour net mais élégant */
    border: 2px solid rgba(58, 82, 98, 0.85); 
    
    /* Ombre portée pour faire ressortir le bloc du fond */
    box-shadow: 0 10px 30px rgba(58, 82, 98, 0.85);
    
    /* On garde ton liseré ocre mais on le déplace en haut pour le look "carte" */
    border-top: 8px solid var(--accent);
    
    transition: all 0.3s ease;
}

/* Effet au survol pour la page services */
.service-block:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.5); /* La bordure s'illumine en doré transparent */
    box-shadow: 0 15px 35px rgba(58, 82, 98, 0.85);
}

/* Style des titres à l'intérieur des blocs */
.service-block h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Espacement de la liste pour plus de clarté */
.service-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}

/* ==========================================================================
   GALERIE (Portfolio)
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border-bottom: 4px solid var(--accent);
    transition: 0.3s;
}

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

/* ==========================================================================
   PAGE CONTACT INDÉPENDANTE
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    border-top: 8px solid var(--accent);
}

.contact-info h3 {
    color: var(--accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form input:focus {
    border-color: var(--accent);
    outline: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--dark);
    color: #8e9ca5;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

footer p {
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE (Mobile)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .burger {
        display: block !important; /* On force l'affichage sur mobile */
    }

    /* On cache le menu normal pour qu'il ne s'affiche qu'au clic */
    .nav-links {
        display: none; 
    }

    /* Quand on clique (grâce au JS), le menu apparaît */
    .nav-links.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
}
/* Container de la grille pour aligner les carrés */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Style des carrés (cartes) ultra-visibles par défaut */
.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    
    /* 1. Bordure plus sombre et épaisse pour bien dessiner le contour */
    border: 2px solid rgba(58, 82, 98, 0.85); 
    
    /* 2. Ombre plus marquée (effet de profondeur réel) */
    box-shadow: 0 12px 24px rgba(58, 82, 98, 0.85); 
    
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 3. Bandeau d'accentuation en haut pour le style */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
}

/* 4. On garde un petit effet au survol, mais la carte est déjà forte de base */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 30px rgba(58, 82, 98, 0.85);
    border-color: var(--accent); /* La bordure change de couleur au survol */
}

/* 5. Cercle sous l'émoji pour plus de relief */
.feature-card h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: #f0f3f5; /* Un gris un poil plus foncé que le fond */
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    border: 1px solid #e1e8ed;
}
/* Style pour la section CTA (le fond) */
.cta-section {
    background: var(--primary); /* Ton bleu ardoise */
    padding: 5rem 1rem;
    text-align: center;
    color: white;
}

.cta-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Style du bouton blanc qui "pop" */
.btn-white {
    display: inline-block;
    background: var(--accent);
    color: white; /* Texte bleu sur fond blanc */
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: var(--accent); /* Devient doré au survol */
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   ADAPTATION MOBILE (Écrans de moins de 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Ajustement des titres pour qu'ils ne soient pas trop gros */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }

    /* 2. Menu de navigation en colonne */
    .nav-links {
        display: flex;
        flex-direction: column; /* Empile les liens */
        gap: 10px;
        text-align: center;
        padding: 1rem 0;
    }

    .navbar {
        height: auto; /* Laisse le menu s'agrandir en hauteur */
        flex-direction: column;
        padding: 1rem;
    }

    /* 3. Les carrés (Features & Services) */
    .features-grid {
        grid-template-columns: 1fr; /* Un seul carré par ligne */
        gap: 1.5rem;
    }

    .feature-card, .service-block {
        padding: 2rem 1.5rem; /* On réduit un peu l'espace interne */
    }

    /* 4. Le bouton CTA en bas */
    .cta-section h2 {
        font-size: 1.3rem;
    }

   /* À l'intérieur du bloc @media screen and (max-width: 768px) */

.btn-primary, .btn-rdv {
    width: auto;             /* Le bouton ne prend que la place de son texte */
    min-width: 200px;        /* Mais il garde une taille minimum pour être cliquable */
    display: inline-block;   /* Permet de le centrer */
    padding: 12px 25px;      /* On réduit un peu le rembourrage pour le mobile */
    margin: 10px auto;       /* On ajoute de l'espace autour */
}

/* Pour s'assurer que le bouton est centré dans son parent */
.hero-content, .cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Centre tout le contenu, y compris le bouton */
    text-align: center;
}
    
    /* 5. Galerie d'images sur Services */
    .gallery {
        grid-template-columns: 1fr; /* Les photos l'une sous l'autre */
    }
}
/* Cache le burger sur ordinateur */
.burger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* --- ADAPTATION MOBILE --- */
@media screen and (max-width: 768px) {
    /* On empêche le dézoom sur le body */
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Totalement caché à droite */
        top: 70px;    /* Sous la navbar */
        width: 250px; /* On fixe une largeur raisonnable (pas tout l'écran) */
        height: auto; /* Hauteur ajustée au contenu */
        background-color: var(--primary);
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        transition: 0.4s ease;
        border-radius: 0 0 0 15px; /* Arrondi sur le coin bas-gauche */
        box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
        z-index: 999;
        /* Empêche le clic à travers le menu quand il est caché */
        visibility: hidden; 
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }
}
    /* Supprime les marges à gauche des <li> pour éviter le décalage */
    .nav-links li {
        margin-left: 0; 
        width: 100%;
        text-align: center;
    }


    .burger {
        display: block;
        z-index: 1001;
    }
    /* On passe les deux colonnes (infos et formulaire) en une seule */
    .contact-wrapper {
        grid-template-columns: 1fr; 
        gap: 2rem;
        margin-top: 2rem;
    }

    /* On réduit les gros paddings internes pour gagner de la place */
    .contact-info, .contact-form {
        padding: 1.5rem; 
    }

    /* Ajustement du titre de la page */
    .page-title {
        font-size: 1.8rem;
        text-align: center;
    }

    /* On s'assure que les champs du formulaire prennent bien toute la largeur */
    .contact-form input, 
    .contact-form select, 
    .contact-form textarea {
        font-size: 16px; /* Évite le zoom automatique sur iPhone au clic */
        padding: 12px;
    }

    /* Centrage du bouton d'envoi */
    .contact-form .btn-primary {
        width: 100%;
        margin-top: 10px;
    }



    /* Animation du burger en "X" parfaitement proportionnel */
.burger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg); /* Ajusté de 8px à 9px */
}

.burger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px); /* On le décale pour une transition plus fluide */
}

.burger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg); /* Ajusté de 8px à 9px */
}
/* Le bouton qui contient les barres */
.burger {
    display: none; /* Caché sur ordinateur */
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* Le dessin des 3 barres */
.bar {
    display: block;
    width: 30px;           /* Largeur des barres */
    height: 3px;           /* Épaisseur */
    margin: 6px 0;         /* Espace entre les barres */
    background-color: var(--accent); /* Couleur dorée */
    transition: all 0.3s ease;
    border-radius: 3px;
}
.contact-info .contact-item {
    margin-bottom: 20px;
}

.contact-info a {
    color: var(--accent); /* Utilise ton doré/ocre */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.contact-info a:hover {
    color: var(--primary); /* Devient bleu au survol */
    text-decoration: underline;
}

/* Adaptation Mobile déjà demandée */
@media screen and (max-width: 768px)
{
    .contact-wrapper {
        display: flex;
        flex-direction: column; /* Empile Infos puis Formulaire */
    }
    .contact-info {
        text-align: center; /* Plus joli sur téléphone */
        padding: 20px;
    }
}
.checkbox-container {
    display: flex;
    align-items: center; /* Aligne la case et le texte sur la même ligne */
    gap: 12px;           /* Espace entre la case et le début du texte */
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;  /* On lui donne une taille fixe */
    height: 20px;
    cursor: pointer;
    flex-shrink: 0; /* Empêche la case de s'écraser si le texte est long */
}

.checkbox-container label {
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.2;
}
/* Fond qui devient foncé (Overlay) */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fond noir transparent */
    backdrop-filter: blur(5px); /* Floute un peu l'arrière-plan pour le style */
    z-index: 10000; /* Toujours au-dessus de tout */
    align-items: center;
    justify-content: center;
}

/* La boîte blanche au centre */
.modal-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 8px solid var(--accent); /* Barre dorée en haut */
    animation: fadeInModal 0.3s ease-out;
}

.modal-icon { font-size: 3rem; margin-bottom: 10px; }

.modal-box h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-box p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Bouton stylisé dans la modale */
.btn-confirm {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-confirm:hover { background: var(--accent); }

/* Animation d'apparition */
@keyframes fadeInModal {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Style du conteneur */
.lang-selector {
    position: relative;
    display: inline-block;
}

/* Le bouton principal */
.lang-selected {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Le menu déroulant (caché par défaut) */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    border-radius: 5px;
    display: none; /* Caché */
    z-index: 1000;
}

/* Éléments de la liste */
.lang-dropdown li {
    padding: 10px 20px;
    color: #333;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-dropdown li:hover {
    background-color: #f1f1f1;
}

/* Afficher quand c'est actif */
.lang-dropdown.show {
    display: block;
}
/* Animation de la flèche */
/* Style de la flèche */
.arrow {
    font-size: 0.8rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease; /* C'est ce qui crée l'effet de rotation */
}

/* Quand le menu est ouvert, on fait pivoter la flèche de 180 degrés */
.arrow.rotate {
    transform: rotate(180deg);
}

/* Le menu caché par défaut */
.lang-dropdown {
    display: none; 
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
}

/* Affichage du menu */
.lang-dropdown.show {
    display: block;
}

.lang-dropdown li {
    padding: 10px 20px;
    color: #333;
    cursor: pointer;
}

.lang-dropdown li:hover {
    background-color: var(--light);
}
/* ... (Vos styles existants) ... */

/* Style de la flèche */
.arrow {
    font-size: 0.8rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease; /* C'est ce qui crée l'effet de rotation */
}

/* Quand le menu est ouvert, on fait pivoter la flèche de 180 degrés */
.arrow.rotate {
    transform: rotate(180deg);
}

/* Le menu caché par défaut */
.lang-dropdown {
    display: none; 
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
}

/* Affichage du menu */
.lang-dropdown.show {
    display: block;
}

.lang-dropdown li {
    padding: 10px 20px;
    color: #333;
    cursor: pointer;
}

.lang-dropdown li:hover {
    background-color: var(--light);
}
.star { transition: color 0.2s; }
.star.active { color: #c5a059; } /* Ta couleur dorée */
.star:hover { transform: scale(1.1); display: inline-block; }
/* Centrage forcé de la zone d'étoiles */
/* Centrage de la section des étoiles */
/* Centrage de la section des étoiles */
.rating-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

#star-rating {
    display: flex !important;
    justify-content: center !important;
    gap: 8px;
    font-size: 2.5rem; /* On les grossit un peu pour le look */
    margin-top: 5px;
    cursor: pointer;
}

.star {
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.star.active {
    color: var(--accent);
}

.star:hover {
    transform: scale(1.2);
}
/* Centrage du contenu des avis déjà publiés */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les étoiles et le texte horizontalement */
    text-align: center;
    padding: 20px;
    justify-content: center;
}

.feature-card .stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block; /* S'assure que les étoiles prennent leur propre ligne */
    width: 100%;
}