/* =========================================
   1. VARIABLES ET POLICES
   ========================================= */
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

   :root {
       --primary: #ff4d4d;      /* Rouge MLP EVENT */
       --dark: #0f0f0f;         /* Noir profond */
       --dark-grey: #1a1a1a;    /* Gris anthracite pour sections */
       --light: #f9f9f9;        /* Fond clair */
       --white: #ffffff;
       --bg-legal: #f4f4f4;     /* Fond pour les pages CGV */
       --gold: #ffc107;         /* Couleur des étoiles d'avis */
   }
   
   /* =========================================
      2. RESET ET BASES
      ========================================= */
   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
       font-family: 'Poppins', sans-serif;
       scroll-behavior: smooth;
   }
   
   body {
       line-height: 1.6;
       color: #333;
       overflow-x: hidden;
   }
   
   h1, h2, h3 {
       font-family: 'Montserrat', sans-serif;
       font-weight: 700;
   }
   
   /* =========================================
      3. NAVIGATION (FIXÉ POUR LES PAGES LÉGALES)
      ========================================= */
   nav {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 0 10%;
       background: #0f0f0f; /* Fond solide pour éviter les transparences bugguées sur pages blanches */
       height: 90px;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 9999; /* Z-index très élevé pour passer devant tout */
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   }
   
   .site-logo {
       height: 60px;
       width: auto;
       display: block;
   }
   
   /* Checkbox cachée pour le menu mobile */
   #menu-cb { display: none; }
   
   /* Icône "3 points" pour mobile */
   .menu-icon {
       display: none;
       cursor: pointer;
       width: 30px;
       height: 30px;
       position: relative;
       display: flex;
       align-items: center;
       justify-content: center;
   }
   
   /* Création des 3 points verticaux en CSS */
   .dots-icon {
       width: 5px;
       height: 5px;
       background-color: white;
       border-radius: 50%;
       box-shadow: 0 -8px 0 white, 0 8px 0 white; /* Les points du haut et du bas */
       transition: 0.3s ease;
   }
   
   .menu-icon:hover .dots-icon {
       background-color: var(--primary);
       box-shadow: 0 -8px 0 var(--primary), 0 8px 0 var(--primary);
   }
   
   nav ul {
       display: flex;
       list-style: none;
   }
   
   nav ul li {
       margin-left: 30px;
   }
   
   nav ul li a {
       color: var(--white);
       text-decoration: none;
       font-weight: 600;
       font-size: 0.85rem;
       text-transform: uppercase;
       letter-spacing: 1px;
       transition: 0.3s;
   }
   
   nav ul li a:hover {
       color: var(--primary);
   }
   
   /* =========================================
      4. HERO SECTION (ACCUEIL)
      ========================================= */
   header {
       height: 100vh;
       background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                   url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
       display: flex;
       align-items: center;
       justify-content: center;
       text-align: center;
       color: var(--white);
       padding: 0 20px;
   }
   
   .badge {
       background: var(--primary);
       padding: 6px 18px;
       border-radius: 50px;
       font-size: 0.75rem;
       text-transform: uppercase;
       letter-spacing: 2px;
   }
   
   .hero-content h1 {
       font-size: clamp(2rem, 5vw, 3.5rem);
       margin: 20px 0;
       line-height: 1.2;
   }
   
   .hero-btns {
       display: flex;
       gap: 15px;
       justify-content: center;
       margin-top: 30px;
   }
   
   .btn {
       padding: 15px 35px;
       border-radius: 5px;
       text-decoration: none;
       font-weight: bold;
       transition: 0.3s ease;
       display: inline-block;
       cursor: pointer;
   }
   
   .btn:first-child, .btn-submit {
       background: var(--primary);
       color: var(--white);
       border: none;
   }
   
   .btn-outline {
       border: 2px solid var(--white);
       color: var(--white);
   }
   
   .btn:hover {
       transform: translateY(-3px);
       box-shadow: 0 10px 20px rgba(0,0,0,0.3);
   }
   
   /* =========================================
      5. STATISTIQUES
      ========================================= */
   .stats {
       display: flex;
       justify-content: space-around;
       background: var(--dark);
       padding: 60px 10%;
       color: var(--white);
       text-align: center;
       flex-wrap: wrap;
       gap: 20px;
   }
   
   .stat-item h3 {
       font-size: 2.5rem;
       color: var(--primary);
       margin-bottom: 5px;
   }
   
   /* =========================================
      6. SECTIONS COMMUNES
      ========================================= */
   section {
       padding: 100px 10%;
   }
   
   .section-title {
       text-align: center;
       font-size: 2.5rem;
       margin-bottom: 60px;
       width: 100%;
       position: relative;
       padding-bottom: 20px;
   }
   
   .section-title::after {
       content: '';
       width: 80px;
       height: 4px;
       background: var(--primary);
       position: absolute;
       bottom: 0;
       left: 50%;
       transform: translateX(-50%);
   }
   
   /* =========================================
      7. SERVICES
      ========================================= */
   #services {
       background: var(--light);
   }
   
   .services-container {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
       gap: 30px;
   }
   
   .service-card {
       background: var(--white);
       padding: 50px 40px;
       border-radius: 12px;
       text-align: center;
       box-shadow: 0 10px 40px rgba(0,0,0,0.05);
       transition: 0.4s;
   }
   
   .service-card:hover {
       transform: translateY(-15px);
       background: var(--dark);
       color: var(--white);
   }
   
   .service-card i {
       font-size: 3.5rem;
       color: var(--primary);
       margin-bottom: 25px;
   }
   
   /* =========================================
      8. RÉALISATIONS (GALERIE)
      ========================================= */
   #realisations {
       background: var(--white);
   }
   
   .gallery {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
       gap: 20px;
       width: 100%;
   }
   
   .gallery-item {
       position: relative;
       overflow: hidden;
       height: 350px;
       border-radius: 10px;
       background: var(--dark);
   }
   
   .gallery-item img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform 0.6s ease;
   }
   
   .overlay {
       position: absolute;
       top: 0; left: 0;
       width: 100%; height: 100%;
       background: rgba(255, 77, 77, 0.85);
       display: flex;
       align-items: center;
       justify-content: center;
       opacity: 0;
       transition: 0.4s ease;
       color: white;
   }
   
   .overlay span {
       color: var(--white);
       font-weight: 700;
       font-size: 1.1rem;
       text-transform: uppercase;
       letter-spacing: 1px;
       border: 2px solid var(--white);
       padding: 10px 20px;
   }
   
   .gallery-item:hover img {
       transform: scale(1.15);
   }
   
   .gallery-item:hover .overlay {
       opacity: 1;
   }
   
   /* =========================================
      9. DESIGN PAGES LÉGALES (CGV)
      ========================================= */
   .legal-body { 
       background-color: var(--bg-legal); 
       padding-top: 90px; /* Évite que le contenu passe sous la nav fixe */
   }
   
   .legal-content {
       max-width: 900px;
       margin: 40px auto 60px;
       background: var(--white);
       padding: 60px;
       border-radius: 8px;
       box-shadow: 0 4px 20px rgba(0,0,0,0.05);
   }
   
   .legal-content h1 {
       font-size: 2.2rem;
       color: var(--dark);
       border-bottom: 4px solid var(--primary);
       display: inline-block;
       margin-bottom: 40px;
       padding-bottom: 10px;
   }
   
   .legal-content h2 {
       font-size: 1.4rem;
       color: var(--dark);
       margin: 35px 0 15px 0;
       display: flex;
       align-items: center;
   }
   
   .legal-content h2::before {
       content: '';
       width: 10px; height: 10px;
       background: var(--primary);
       margin-right: 15px;
       border-radius: 2px;
   }
   
   .important-clause {
       background: #fff5f5;
       border-left: 5px solid var(--primary);
       padding: 25px;
       margin: 30px 0;
       border-radius: 0 8px 8px 0;
   }
   
   .back-home {
       display: inline-block;
       margin-bottom: 30px;
       color: var(--primary);
       text-decoration: none;
       font-weight: 600;
       transition: 0.3s;
   }
   
   /* =========================================
      10. CONTACT ET FORMULAIRES
      ========================================= */
   #contact {
       background: var(--dark-grey);
       color: var(--white);
   }
   
   .contact-wrapper, .form-card {
       max-width: 800px;
       margin: 0 auto;
   }
   
   .contact-form {
       display: flex;
       flex-direction: column;
       gap: 20px;
   }
   
   .form-grid {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 20px;
   }
   
   .contact-form input, 
   .contact-form textarea,
   .form-card input,
   .form-card textarea {
       width: 100%;
       padding: 15px;
       border: 1px solid rgba(255,255,255,0.1);
       background: rgba(255,255,255,0.05);
       color: white;
       border-radius: 5px;
       font-size: 1rem;
       transition: 0.3s;
   }
   
   /* Spécifique pour formulaires sur fond blanc (Avis) */
   .form-card input, .form-card textarea {
       background: var(--light);
       color: #333;
       border: 1px solid #ddd;
   }
   
   .rgpd-check {
       display: flex;
       align-items: center;
       gap: 10px;
       font-size: 0.85rem;
       color: #888;
       text-align: left;
   }
   
   .rgpd-check input { width: auto; }
   
   /* Étoiles pour avis */
   .star-rating {
       display: flex; flex-direction: row-reverse; justify-content: center;
       gap: 10px; margin-bottom: 20px;
   }
   .star-rating input { display: none; }
   .star-rating label { font-size: 2.5rem; color: #ddd; cursor: pointer; transition: 0.2s; }
   .star-rating input:checked ~ label,
   .star-rating label:hover,
   .star-rating label:hover ~ label { color: var(--gold); }
   
   /* =========================================
      11. SECTION CONFIANCE / LOGOS
      ========================================= */
   #confiance {
       background: var(--white);
       padding: 60px 10%;
       border-top: 1px solid #eee;
   }
   
   .logos-grid {
       display: flex;
       justify-content: center;
       align-items: center;
       flex-wrap: wrap;
       gap: 40px;
       margin-top: 20px;
   }
   
   .logo-item {
       flex: 0 1 150px;
       filter: grayscale(100%);
       opacity: 0.6;
       transition: all 0.4s ease;
   }
   
   .logo-item img {
       width: 100%;
       height: auto;
       display: block;
   }
   
   .logo-item:hover {
       filter: grayscale(0%);
       opacity: 1;
       transform: scale(1.1);
   }
   
   /* =========================================
      12. FOOTER
      ========================================= */
   footer {
       background: #000;
       color: #bbb;
       padding: 60px 10% 30px;
       border-top: 1px solid rgba(255,255,255,0.1);
       text-align: center;
   }
   
   .footer-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
       gap: 40px;
       text-align: left;
       margin-bottom: 40px;
   }
   
   .footer-info h3, .footer-urgency h3 {
       color: var(--white);
       font-size: 1.1rem;
       margin-bottom: 20px;
       text-transform: uppercase;
       letter-spacing: 1px;
   }
   
   .footer-info p { margin-bottom: 10px; font-size: 0.9rem; }
   .footer-info i { color: var(--primary); margin-right: 10px; width: 20px; }
   
   .astreinte-badge {
       display: inline-flex;
       align-items: center;
       background: var(--primary);
       color: var(--white);
       padding: 8px 15px;
       border-radius: 5px;
       font-weight: bold;
       margin-bottom: 10px;
       text-transform: uppercase;
       font-size: 0.8rem;
   }
   
   .astreinte-badge i { margin-right: 8px; animation: blink 2s infinite; }
   
   @keyframes blink {
       0% { opacity: 1; }
       50% { opacity: 0.5; }
       100% { opacity: 1; }
   }
   
   .footer-links {
       border-top: 1px solid rgba(255,255,255,0.05);
       padding-top: 30px;
       margin-bottom: 20px;
   }
   
   .footer-links a { color: #bbb; text-decoration: none; margin: 0 10px; font-size: 0.85rem; }
   
   .copyright, .siret { font-size: 0.8rem; opacity: 0.6; margin-top: 10px; }
   
   /* =========================================
      13. MEDIA QUERIES (MOBILE)
      ========================================= */
   @media (max-width: 900px) {
       .menu-icon { display: flex; } /* On affiche le menu flex pour centrer le point */
       nav { padding: 0 5%; }
       nav ul {
           position: absolute;
           top: 90px;
           left: -100%;
           width: 100%;
           height: calc(100vh - 90px);
           background: var(--dark);
           flex-direction: column;
           align-items: center;
           justify-content: center;
           transition: 0.5s;
       }
       #menu-cb:checked ~ ul { left: 0; }
       nav ul li { margin: 20px 0; }
   }
   
   @media (max-width: 768px) {
       .form-grid { grid-template-columns: 1fr; }
       .footer-grid { text-align: center; }
       .footer-links { display: flex; flex-direction: column; gap: 15px; }
       .separator { display: none; }
       section { padding: 60px 20px; }
       .legal-content { margin: 20px 15px 40px; padding: 30px 20px; }
   }
   
   @media (max-width: 480px) {
       .hero-content h1 { font-size: 2.2rem; }
       .stats { padding: 40px 5%; }
   }
/* =========================================
   1. VARIABLES ET POLICES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #ff4d4d;      /* Rouge MLP EVENT */
    --dark: #0f0f0f;         /* Noir profond */
    --dark-grey: #1a1a1a;    /* Gris anthracite pour sections */
    --light: #f9f9f9;        /* Fond clair */
    --white: #ffffff;
    --bg-legal: #f4f4f4;     /* Fond pour les pages CGV */
    --gold: #ffc107;         /* Couleur des étoiles d'avis */
}

/* =========================================
   2. RESET ET BASES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 90px; /* Espace pour la nav fixe sur toutes les pages */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* =========================================
   3. NAVIGATION (OPTIMISÉE MOBILE)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    background: var(--dark); 
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000; /* Toujours au-dessus */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Checkbox pour le menu mobile (mécanisme sans JS) */
#menu-cb { 
    display: none; 
}

/* Icône "3 points" - Cachée sur Desktop */
.menu-icon {
    display: none; 
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

/* Création visuelle des 3 points */
.dots-icon {
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 -10px 0 var(--white), 0 10px 0 var(--white);
    transition: 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
header {
    height: calc(100vh - 90px);
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

/* ... (Reste des styles inchangés pour économiser de l'espace, focus sur le bug mobile) ... */

/* =========================================
   13. MEDIA QUERIES (CORRECTION BARRE MOBILE)
   ========================================= */
@media (max-width: 900px) {
    nav {
        padding: 0 20px; /* Plus d'espace sur les bords sur petit écran */
    }

    .menu-icon { 
        display: flex; /* Force l'affichage de l'icône sur mobile */
    }

    nav ul {
        position: fixed;
        top: 90px;
        left: -100%; /* Caché par défaut */
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
    }

    /* Affichage du menu quand la checkbox est cochée */
    #menu-cb:checked ~ ul { 
        left: 0; 
    }

    /* Transformation des points au clic pour feedback visuel */
    #menu-cb:checked ~ .menu-icon .dots-icon {
        transform: rotate(90deg);
        background-color: var(--primary);
        box-shadow: 0 -10px 0 var(--primary), 0 10px 0 var(--primary);
    }

    nav ul li { 
        margin: 25px 0; 
    }

    nav ul li a {
        font-size: 1.2rem; /* Plus gros sur mobile */
    }
}

/* =========================================
   PAGES LÉGALES
   ========================================= */
.legal-body { 
    background-color: var(--bg-legal); 
}

.legal-content {
    max-width: 900px;
    margin: 20px auto 60px;
    background: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
}