/* ==========================================================================
   2. RESET & BASE (Standardisation entre les navigateurs)
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    background-color: var(--brand-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Ajout pour Firefox */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-black);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. UTILITAIRES (Classes génériques)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { 
    text-align: center; 
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--brand-gold);
    margin: 0 auto 20px;
}

/* ==========================================================================
   4. COMPOSANTS (Boutons, Switcher de langue)
   ========================================================================== */
/* Sélecteur de langue */
.lang-switch {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 30;
}

.lang-switch select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
}

/* Boutons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--brand-gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--brand-black);
}

.btn-light {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--brand-black);
}

.btn-light:hover {
    background-color: var(--brand-gold);
    color: var(--white);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    background-color: var(--brand-black);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 0;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    color: #d1d5db;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Info Bar intégrée (sous le contenu) */
.info-bar {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    border-radius: 12px;
    z-index: 10;
}

.info-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid #e5e7eb;
}

.info-item:last-child {
    border-right: none;
}

.info-item i {
    font-size: 24px;
    color: var(--brand-black);
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 12px;
    color: var(--text-light-gray);
}

/* ==========================================================================
   6. ABOUT SECTION
   ========================================================================== */
.about {
    padding: 150px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}


.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 14px;
}

.about-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
}

.stat-item .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item .number span {
    font-size: 1.5rem;
}

.stat-item .label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-black);
}

.about-image {
    position: relative;
}

.about-image img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 4px solid var(--brand-gold);
    z-index: -1;
}

/* ==========================================================================
   7. SERVICES SECTION
   ========================================================================== */
.services {
    padding: 80px 0;
    background-color: var(--brand-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
}

.services-box {
    background-color: var(--white);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 30px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.service-item > i {
    font-size: 24px;
    color: var(--brand-black);
    margin-top: 2px;
}

.service-content {
    flex: 1;
}

.service-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 8px;
}

.service-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.service-line {
    flex-grow: 1;
    border-bottom: 1px dashed #ccc;
    margin: 0 10px 5px;
}

.service-price {
    font-weight: 700;
    color: var(--brand-gold);
}

.service-content p {
    font-size: 12px;
    line-height: 1.5;
}

.services-action {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================================================
   8. BANNER PARALLAX
   ========================================================================== */
.parallax-banner {
    position: relative;
    padding: 120px 20px;
    background-image: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&q=80');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.parallax-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.parallax-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.parallax-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================================================
   9. WHY CHOOSE US & REVIEWS
   ========================================================================== */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.feature-item i {
    font-size: 40px;
    color: var(--brand-black);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 14px;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 12px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.review-platform {
    text-align: center;
}

.platform-google {
    border-right: 1px solid #e5e7eb;
    padding-right: 30px;
    text-align: right;
}

.platform-trustpilot {
    border-left: 1px solid #e5e7eb;
    padding-left: 30px;
    text-align: left;
}

.review-platform img {
    width: 30px;
    margin-bottom: 10px;
    display: inline-block;
}

.platform-google img { margin-left: auto; }
.platform-trustpilot i.fa-star { color: #00b67a; font-size: 30px; margin-bottom: 10px; }

.review-platform .platform-name {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.review-platform .score {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-black);
    line-height: 1.2;
}

.review-platform .stars {
    color: var(--brand-gold);
    font-size: 14px;
}

.platform-trustpilot .stars { color: #00b67a; }

.review-platform .subtext {
    font-size: 10px;
    color: var(--text-light-gray);
    margin-top: 5px;
}

.review-card {
    background-color: var(--brand-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px;
    text-align: center;
}

.review-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--brand-gold);
    margin: 0 auto 15px;
}

.review-card .stars {
    color: var(--brand-gold);
    font-size: 12px;
    margin-bottom: 10px;
}

.review-card p {
    font-size: 12px;
    font-style: italic;
    margin-bottom: 15px;
}

.review-card .author {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   10. MAP & FOOTER
   ========================================================================== */
.map-section {
    width: 100%;
    height: 350px;
    background-color: #eee;
}

footer {
    background-color: var(--brand-black);
    padding: 30px 20px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-light-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-light-gray);
    font-size: 16px;
}

.social-links a:hover {
    color: var(--white);
}

/* ==========================================================================
   11. FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-fab:hover {
    background-color: #1ebd5b;
    transform: scale(1.1);
    color: white;
}


/* ==========================================================================
   12. RESPONSIVE DESIGN (Adaptation Mobile & Tablette)
   ========================================================================== */

/* --- TABLETTES & PETITS ÉCRANS (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Grilles : passage de 2/3 colonnes à moins */
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Réorganisation de la section avis */
    .platform-google,
    .platform-trustpilot {
        border: none;
        padding: 0;
        text-align: center;
    }
    
    .platform-google img {
        margin: 0 auto 10px;
    }

    .review-card {
        order: -1; /* Met le commentaire client en premier sur petits écrans */
    }

    /* Info Bar : Adaptation pour éviter le débordement */
    .info-bar {
        flex-wrap: wrap;
        padding: 20px;
        bottom: -80px; 
    }

    .info-item {
        flex: 1 1 45%;
        margin-bottom: 20px;
        border-right: none;
    }

    .about {
        padding-top: 160px; /* Compense la taille de la info-bar agrandie */
    }

    .services-box {
        padding: 40px 30px;
    }
}

/* --- MOBILES (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Typographie : Réduction proportionnelle pour ne pas être "trop gros" */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-text p {
        line-height: 1.8; /* Aère les lignes du texte pour une meilleure lecture */
        margin-bottom: 30px;
    }

    .about-text {
        padding: 0 15px; /* Ajoute de l'espace sur les côtés pour ne pas coller aux bords */
        text-align: center; /* Centrer le texte sur mobile donne souvent un rendu plus harmonieux */
    }
.about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px; /* Espace sous le grand titre */
        line-height: 1.4;
    }

    /* Info Bar : Devient un bloc classique pour éviter les superpositions cassées */
.info-bar {
        position: relative;
        bottom: auto;
        transform: none;
        left: auto;
        width: calc(100% - 40px);
        margin: 0 auto;
        flex-direction: column;
        padding: 20px;
        border-radius: 8px;
        flex-shrink: 0; /* Ajout clé : empêche l'écrasement ! */
    }

    .info-item {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        padding: 20px 0;
        margin-bottom: 0;
    }

    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Réduction globale des espacements (paddings) */
    .about {
        padding: 40px 0 60px;
    }

    .features {
        padding: 60px 0;
    }

    .parallax-banner {
        padding: 80px 20px;
    }

    /* Grilles : tout passe sur 1 colonne */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Selecteur de langue */
    .lang-switch {
        top: 15px;
        right: 15px;
    }
}

/* --- PETITS MOBILES (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Typographie ultra-réduite */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    /* Boutons : prennent toute la largeur pour faciliter le clic */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 40px; /* Donne un peu d'air en haut et en bas */
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* Services */
    .services-box {
        padding: 30px 15px;
    }

    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-header {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /* Cache la ligne pointillée car elle ne s'adapte pas bien centré verticalement */
    .service-line {
        display: none; 
    }

    .service-price {
        margin-top: 5px;
    }

    .stat-item .number {
        font-size: 2rem;
    }

    /* Bouton WhatsApp ajusté pour ne pas gêner la navigation */
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}