/* ========================================
   AH DECO AMBIANCE - Site Vitrine

   SOMMAIRE :
   1. Variables CSS (couleurs, ombres, etc.)
   2. Réinitialisation et styles de base
   3. Écran de chargement (Preloader)
   4. En-tête et Navigation
   5. Section Hero (accueil)
   6. Animations
   7. Styles communs des sections
   8. Section Services
   9. Section À Propos
   10. Section Galerie
   11. Section Témoignages
   12. Section Contact
   13. Section Carte
   14. Pied de page (Footer)
   15. Boutons flottants (retour en haut, WhatsApp)
   16. Responsive Design (adaptations mobile/tablette)
======================================== */

:root {
    /* Couleurs principales - Marron clair */
    --primary-color: #C8956C;       /* Marron clair principal */
    --primary-dark: #A0714F;        /* Marron clair foncé */
    --primary-light: #DDB592;       /* Marron très clair */

    /* Couleurs secondaires - Jaune moutarde */
    --secondary-color: #C9A227;     /* Jaune moutarde principal */
    --secondary-dark: #A68019;      /* Jaune moutarde foncé */
    --accent-color: #FBF3DC;        /* Jaune moutarde très clair (crème) */

    /* Couleurs neutres */
    --dark-color: #3D2B1F;          /* Marron foncé (presque noir) */
    --text-color: #333333;          /* Couleur du texte principal */
    --text-light: #6B5C52;          /* Couleur du texte secondaire */
    --white: #ffffff;               /* Blanc */
    --gray-light: #FBF7F2;          /* Gris très clair avec teinte chaude */
    --gray: #e9e0d6;                /* Gris clair (bordures) */

    /* Ombres */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);          /* Ombre légère */
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);   /* Ombre au survol */

    /* Transitions et coins arrondis */
    --transition: all 0.3s ease;    /* Durée des animations */
    --border-radius: 12px;          /* Coins arrondis standards */
    --border-radius-lg: 20px;       /* Coins arrondis larges */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Inclut padding et bordures dans la largeur */
}

/* Défilement fluide pour les liens ancres */
html {
    scroll-behavior: smooth;
}

/* Styles du corps de page */
body {
    font-family: 'Poppins', sans-serif;  /* Police principale */
    color: var(--text-color);
    line-height: 1.7;                     /* Hauteur de ligne */
    overflow-x: hidden;                   /* Empêche le défilement horizontal */
    background-color: var(--white);
}

/* Titres - Police décorative */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Liens */
a {
    text-decoration: none;        /* Pas de soulignement */
    color: inherit;               /* Hérite la couleur du parent */
    transition: var(--transition); /* Animation au survol */
}

/* Listes */
ul {
    list-style: none;  /* Supprime les puces */
}

/* Images */
img {
    max-width: 100%;   /* Ne dépasse pas le conteneur */
    height: auto;      /* Garde les proportions */
}

/* Conteneur principal (centre le contenu) */
.container {
    max-width: 1200px;   /* Largeur maximale */
    margin: 0 auto;      /* Centre horizontalement */
    padding: 0 20px;     /* Espacement latéral */
}

/* ========================================
   3. ÉCRAN DE CHARGEMENT (PRELOADER)
   Animation affichée pendant le chargement
======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé vert */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;  /* Au-dessus de tout */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* État caché du preloader */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

/* Animation du rouleau de peinture */
.paint-roller {
    position: relative;
    width: 80px;
    height: 80px;
    animation: roll 1.5s ease-in-out infinite; /* Animation continue */
}

/* Le rouleau (partie qui peint) */
.roller {
    width: 60px;
    height: 25px;
    background: var(--secondary-color);
    border-radius: 5px;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Le manche du rouleau */
.handle {
    width: 8px;
    height: 40px;
    background: var(--white);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

/* Animation de balancement du rouleau */
@keyframes roll {
    0%, 100% {
        transform: translateX(-20px) rotate(-10deg);
    }
    50% {
        transform: translateX(20px) rotate(10deg);
    }
}

/* ========================================
   4. EN-TÊTE ET NAVIGATION
   Barre de navigation fixe en haut
======================================== */
#header {
    position: fixed;      /* Reste en haut lors du défilement */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;        /* Au-dessus du contenu */
    transition: var(--transition);
    padding: 15px 0;
}

/* En-tête après défilement (fond blanc) */
#header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

/* Conteneur de la navigation */
.navbar {
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}

/* Texte principal du logo "AH" */
.logo-text {
    font-family: 'Allura', cursive;
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    letter-spacing: 2px;
    transition: var(--transition);
}

/* Sous-titre du logo "DECO AMBIANCE" */
.logo-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Logo après défilement (couleur marron) */
#header.scrolled .logo-text {
    color: var(--primary-color);
}

/* Menu de navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;  /* Espacement entre les liens */
}

/* Liens de navigation */
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

/* Ligne sous le lien (apparaît au survol) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* Ligne visible au survol ou si actif */
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Liens après défilement (couleur foncée) */
#header.scrolled .nav-link {
    color: var(--text-color);
}

#header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

/* Bouton téléphone dans la navigation */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-phone:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* Bouton hamburger (menu mobile) - caché par défaut */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

/* Barres du hamburger */
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center center;
}

/* Barres après défilement */
#header.scrolled .nav-toggle span {
    background: var(--text-color);
}

/* Animation du hamburger en X quand le menu est ouvert */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

/* ========================================
   5. SECTION HERO (ACCUEIL)
   Grande section d'accueil avec image de fond
======================================== */
.hero {
    position: relative;
    min-height: 100vh;    /* Hauteur minimum = hauteur de l'écran */
    display: flex;
    align-items: center;
    /* Image de fond */
    background-image: url('../image/photo de fond ah.jpg');
    background-size: cover;           /* Couvre toute la zone */
    background-position: center;      /* Centre l'image */
    background-repeat: no-repeat;     /* Pas de répétition */
    background-attachment: fixed;     /* Effet parallaxe au défilement */
    overflow: hidden;
}

/* Overlay sombre sur l'image pour améliorer la lisibilité du texte */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé marron clair semi-transparent */
    background: linear-gradient(135deg, rgba(160, 113, 79, 0.85) 0%, rgba(61, 43, 31, 0.9) 100%);
    z-index: 1;
}

/* Fond avec les gouttes de peinture */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;  /* Au-dessus de l'overlay */
}

/* Gouttes de peinture décoratives */
.paint-drip {
    position: absolute;
    top: -50px;
    width: 80px;
    height: 200px;
    background: var(--secondary-color);
    border-radius: 0 0 40px 40px;
    opacity: 0.3;
    animation: drip 3s ease-in-out infinite;
}

/* Positionnement des différentes gouttes */
.paint-drip:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.paint-drip:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
    width: 60px;
}

.paint-drip:nth-child(3) {
    right: 15%;
    animation-delay: 2s;
    width: 100px;
}

/* Animation des gouttes qui coulent */
@keyframes drip {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(30px);
    }
}

/* Contenu de la section hero */
.hero-content {
    position: relative;
    z-index: 3;  /* Au-dessus de l'overlay et du fond */
    padding: 120px 0 80px;
    width: 100%;
}

/* Texte du hero */
.hero-text {
    max-width: 700px;
}

/* Badge "Artisan Qualifié" */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);  /* Effet de flou en arrière-plan */
}

/* Titre principal */
.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Mot en surbrillance dans le titre */
.hero-title .highlight {
    color: var(--secondary-color);
    position: relative;
}

/* Description sous le titre */
.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 550px;
}

/* Conteneur des boutons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;  /* Passe à la ligne si nécessaire */
    margin-bottom: 50px;
}

/* ========================================
   BOUTONS
   Styles des boutons réutilisables
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

/* Bouton principal (fond coloré) */
.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

/* Bouton secondaire (contour) */
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Bouton pleine largeur */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Statistiques dans le hero */
.hero-stats {
    display: flex;
    gap: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chaque statistique */
.stat {
    text-align: center;
}

/* Nombre de la statistique */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.stat-t{
    color: white;
}
/* Libellé de la statistique */
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Indicateur de défilement en bas */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;  /* Au-dessus de l'overlay */
}

.hero-scroll a {
    color: var(--white);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--transition);
}

.hero-scroll a:hover {
    opacity: 1;
}

.hero-scroll span {
    display: block;
    margin-bottom: 10px;
}

/* Animation de rebond de la flèche */
.hero-scroll i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* ========================================
   6. ANIMATIONS
   Classes d'animation réutilisables
======================================== */

/* Apparition en fondu */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Apparition avec glissement vers le haut */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

/* Délais d'animation */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Animation de fondu */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Animation de glissement */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   7. STYLES COMMUNS DES SECTIONS
   Styles réutilisés dans plusieurs sections
======================================== */
section {
    padding: 100px 0;  /* Espacement vertical */
}

/* En-tête de section (titre centré) */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Badge au-dessus du titre */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Titre de section */
.section-title {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Description de section */
.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   8. SECTION SERVICES
   Grille de cartes présentant les services
======================================== */
.services {
    background: var(--gray-light);
}

/* Grille des cartes (3 colonnes) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Carte de service individuelle */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Ligne colorée en haut de la carte (apparaît au survol) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

/* Effet au survol de la carte */
.service-card:hover {
    transform: translateY(-10px);  /* Monte légèrement */
    box-shadow: var(--shadow-hover);
}

/* Ligne apparaît au survol */
.service-card:hover::before {
    transform: scaleX(1);
}

/* Icône du service */
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

/* Rotation de l'icône au survol */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Titre du service */
.service-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Description du service */
.service-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Liste des caractéristiques du service */
.service-features {
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Icône coche */
.service-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ========================================
   9. SECTION À PROPOS
   Présentation de l'entreprise
======================================== */
.about {
    background: var(--white);
}

/* Grille à 2 colonnes */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Conteneur des images */
.about-images {
    position: relative;
}

/* Empilement des images */
.image-stack {
    position: relative;
    height: 500px;
}

/* Image principale */
.image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 350px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Image secondaire (superposée) */
.image-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 250px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
}

/* Placeholder pour les images (à remplacer par de vraies images) */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.image-placeholder.secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.image-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Badge d'expérience (cercle flottant) */
.experience-badge {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 25px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow);
    animation: pulse 2s ease-in-out infinite;
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.experience-badge .text {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Animation de pulsation du badge */
@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* Contenu texte de la section à propos */
.about-content .section-badge {
    margin-bottom: 15px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Grille des caractéristiques */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

/* Chaque caractéristique */
.feature {
    display: flex;
    gap: 15px;
}

/* Icône de la caractéristique */
.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Texte de la caractéristique */
.feature-text h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   10. SECTION GALERIE
   Portfolio de réalisations
======================================== */
.gallery {
    background: var(--gray-light);
}

/* Boutons de filtre */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

/* Bouton actif ou survolé */
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Grille de la galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Élément de la galerie */
.gallery-item {
    position: relative;
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Placeholder des images de galerie */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.gallery-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

/* Couleurs différentes pour chaque élément */
.gallery-item:nth-child(2) .gallery-placeholder {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.gallery-item:nth-child(3) .gallery-placeholder {
    background: linear-gradient(135deg, #b8956a, #8a6a48);
}

.gallery-item:nth-child(4) .gallery-placeholder {
    background: linear-gradient(135deg, #c9a227, #a68019);
}

.gallery-item:nth-child(5) .gallery-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.gallery-item:nth-child(6) .gallery-placeholder {
    background: linear-gradient(135deg, #d4b896, #b09070);
}

/* Superposition avec texte (apparaît au survol) */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transform: translateY(100%);  /* Caché par défaut */
    transition: var(--transition);
}

/* Affiche le texte au survol */
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   11. SECTION TÉMOIGNAGES
   Avis des clients
======================================== */
.testimonials {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Grand guillemet décoratif en arrière-plan */
.testimonials::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 20rem;
    font-family: 'Playfair Display', serif;
    color: var(--gray);
    opacity: 0.5;
    line-height: 1;
}

/* Grille des témoignages */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Carte de témoignage */
.testimonial-card {
    background: var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Étoiles de notation */
.stars {
    margin-bottom: 20px;
}

.stars i {
    color: #ffc107;  /* Jaune doré */
    font-size: 1rem;
}

/* Texte du témoignage */
.testimonial-content p {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Auteur du témoignage */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Avatar de l'auteur */
.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 1.2rem;
}

/* Infos de l'auteur */
.author-info h5 {
    font-size: 1rem;
    color: var(--dark-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   BOUTON AVIS GOOGLE
   Styles pour le CTA vers les avis Google
======================================== */
.google-reviews-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--gray);
}

/* Bouton Google */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #333333;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-google i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #4285F4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

/* Note sous le bouton */
.google-reviews-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.google-reviews-note i {
    color: #ffc107;
    margin-right: 5px;
}

/* ========================================
   12. SECTION CONTACT
   Formulaire et informations de contact
======================================== */
.contact {
    background: var(--dark-color);
    color: var(--white);
}

/* Grille contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

/* Badge de la section contact */
.contact-info .section-badge {
    background: var(--secondary-color);
}

/* Titre de la section contact */
.contact-info .section-title {
    color: var(--white);
    text-align: left;
}

/* Description du contact */
.contact-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

/* Cartes d'information */
.info-cards {
    display: grid;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* Effet au survol des cartes d'info */
.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

/* Icône de la carte d'info */
.info-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

/* Contenu de la carte d'info */
.info-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.info-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Liens dans les infos */
.info-content a {
    color: var(--secondary-color);
}

.info-content a:hover {
    color: var(--white);
}

/* ========================================
   FORMULAIRE DE CONTACT
======================================== */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Titre du formulaire */
.contact-form h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Ligne de 2 champs côte à côte */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Groupe de champ */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Label du champ */
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Champs de saisie */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    padding-left: 45px;  /* Place pour l'icône */
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

/* Zone de texte */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Champ en focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.15);
}

/* Wrapper icône + champ */
.input-icon {
    position: relative;
}

/* Icône centrée verticalement dans le champ */
.input-icon > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

/* Icône alignée en haut pour le textarea */
.input-icon--textarea > i {
    top: 18px;
    transform: none;
}

/* Case à cocher RGPD */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Message de confirmation/erreur du formulaire */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;  /* Caché par défaut */
}

/* Message de succès */
.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

/* Message d'erreur */
.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/*  13. SECTION CARTE
   Google Maps intégré */

.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    filter: grayscale(20%);  /* Légèrement désaturé */
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* 14. PIED DE PAGE (FOOTER)*/
.footer {
    background: #2A1A0F;  /* Marron très foncé */
    color: var(--white);
    padding: 80px 0 30px;
}

/* Grille du footer (4 colonnes) */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Section marque/logo */
.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Titres des colonnes du footer */
.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Liens de navigation du footer */
.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Effet au survol des liens */
.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Infos de contact dans le footer */
.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-contact ul li i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact ul li a:hover {
    color: var(--secondary-color);
}

/* Barre du bas du footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 15. BOUTONS FLOTTANTS
   Bouton retour en haut */

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

/* Bouton visible après défilement */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}



/*  16. RESPONSIVE DESIGN
   Adaptations pour tablettes et mobiles*/

/* Tablettes (écrans jusqu'à 1024px) */
@media (max-width: 1024px) {
    /* Services : 2 colonnes au lieu de 3 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Galerie : 2 colonnes */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Témoignages : 2 colonnes */
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer : 2 colonnes */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Petites tablettes (écrans jusqu'à 900px) */
@media (max-width: 900px) {
    /* Menu mobile en plein écran */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;  /* Caché à droite */
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }

    /* Menu ouvert */
    .nav-menu.active {
        right: 0;
    }

    /* Liens du menu mobile */
    .nav-link {
        color: var(--white) !important;
        font-size: 1.1rem;
    }

    /* Afficher le bouton hamburger */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }


    /* Cacher le bouton téléphone */
    .nav-phone {
        display: none;
    }

    /* Titre hero plus petit */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
    }

    /* À propos : 1 colonne */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .image-stack {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Contact : 1 colonne */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobiles (écrans jusqu'à 768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Stats sur plusieurs lignes */
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat {
        flex: 1;
        min-width: 100px;
    }

    /* Titres de section plus petits */
    .section-title {
        font-size: 2rem;
    }

    /* Grilles en 1 colonne */
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    /* Formulaire : champs sur 1 colonne */
    .form-row {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* Très petits mobiles (écrans jusqu'à 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
        background-attachment: scroll;  /* Désactive le parallaxe sur mobile */
    }

    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    /* Boutons en colonne */
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Images plus petites */
    .image-stack {
        height: 350px;
    }

    .image-main {
        width: 90%;
        height: 280px;
    }

    .image-secondary {
        width: 70%;
        height: 180px;
    }

    .experience-badge {
        right: 5%;
        padding: 20px;
    }

    .gallery-item {
        height: 220px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

/* ANIMATIONS AU DÉFILEMENT (style AOS) */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* État animé */
[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

