/* --- VARIABLES --- */
:root {
    --primary: #800000; 
    --dark: #00042a;    
    --light: #ffffff;
    --pj-blue: #0033ff; /* Bleu officiel Pages Jaunes */
    --pj-yellow: #ffda00; /* Jaune officiel Pages Jaunes */
}

/* --- BASE --- */
body { 
    font-family: 'Montserrat', sans-serif; /* Utilisation de Montserrat par défaut pour tout le corps */
    margin: 0; 
    line-height: 1.6; 
    color: #334; 
    -webkit-font-smoothing: antialiased;
    font-weight: 400; 
}

/* --- LOGO --- */
.logo {
    max-width: 500px; 
    height: auto;
    margin: 10px auto; 
    display: block;
    border-radius: 48%;
}

/* --- LE TITRE PRINCIPAL (H1) --- */
.hero h1 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    color: var(--light);
    letter-spacing: 3px;
    text-transform: uppercase;
    /* Correction de l'unité et de la valeur pour un effet plus propre */
    text-shadow: 10px 5px 5px rgba(81, 0, 0, 0.8);
    line-height: 1.1; 
    margin-bottom: 5px;
}

/* --- TITRES H2 (Le reste du site) --- */

.hero h2, .services h2, .arguments h2, .contact h2, .reviews h2, .location h2 {
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--light);
    letter-spacing: 2px;
    text-shadow: 10px 5px 5px rgba(81, 0, 0, 0.8);
}

/* --- TITRE H3 (Hero) --- */
.hero h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem; 
    letter-spacing: 3px;
    color: var(--light);
    margin: 0;
    line-height: 1;
}

/* --- TEXTE DE CORPS (Paragraphes et listes) --- */
/* Correction : suppression de la virgule erronée */
p, li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* --- SECTION SERVICES (Inversion de couleur demandée) --- */
.services {
    background-color: var(--light); /* Fond blanc */
    padding: 3rem 1rem;
    
}

.services h2 {
    color: var(--dark) !important; /* Texte noir/bleu foncé sur fond blanc */
    text-shadow: 5px 1px 8px rgba(81, 0, 0, 0.8);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 778px) {
    .hero h1 {
        font-size: 1.8rem !important;
    }
    .hero h3 {
        font-size: 2.5rem !important;
    }
    .services h2 {
        font-size: 1.5rem !important;
    }
}
/* --- HERO SECTION --- */
.hero { 
    position: relative;
    background: var(--dark); 
    color: rgb(219, 219, 219); 
    padding: 5rem; 
    text-align: center; 
}

.hero h1 { 
    font-size: 3rem; 
    margin: 0; 
    color: white;
    padding: 2rem;
}

.hero-social-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.social-top {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-top.fb { background: #1877F2; }
.social-top.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-top.snap { background: #FFFC00; color: black; }

.social-top:hover { transform: scale(1.1); filter: brightness(1.1); }

/* --- SERVICES --- */
.services { padding: 0.5rem 0.5rem; text-align: center; }
.services h2 { font-size: 2rem; margin-bottom: 2rem; color: #000000;}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 2fr)); 
    gap: 80px; 
    max-width: 1400px; 
    margin: 1rem auto; 
}

.card {
    height: 420px; 
    border-radius: 25px;
    display: flex; 
    flex-direction: column;
    padding: 35px;
    color: rgb(255, 255, 255); 
    background-size: cover;
    background-position: center;
    transition: 0.3s;
    overflow: visible;
}

.card h3 { font-family: 'Rubik Glitch', cursive; font-size: 1.4rem; font-weight: 400; }
.card:hover { border-color: var(--primary); transform: scale(1.02); }

.card-mobile { background-image: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('images/réparationsmarthonelavernosep.jpg'); }
.card-pc { background-image: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('images/dépannagepclavernose.jpg'); }
.card-assistance { background-image: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('images/assistanceinformatiquepascher.jpg'); }

.card ul { list-style: none; padding: 0; text-align: left; margin-top: 10px; }
.card li { margin-bottom: 5px; font-size: 1rem; font-weight: 300; }
.card li::before { content: "✓ "; color: #fdf497; }

/* --- CONTENEUR IMAGE DE FOND --- */
.bg-image-container {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('images/fontsection.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 rem 0;
}

/* --- SECTION AVIS --- */
.reviews { padding: 1rem 1rem; text-align: center; color: white; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- ARGUMENTS --- */
.arguments { padding: 1rem 1rem; text-align: center; color: white; }
.arg-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr)); 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto; 
}
.arg-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ZONE D'INTERVENTION --- */
.location { padding: 1rem 1rem; background: var(--dark); color: white; text-align: center; }

/* STYLE DE LA CARTE */
#map {
    height: 400px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 15px;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1; /* Pour éviter les conflits avec les menus */
}

.city-list {
    list-style: none; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px; margin: 2rem auto; max-width: 900px;
}
.city-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; gap: 10px;
}

/* --- CONTACT & BADGE --- */
.contact { padding: 1rem 1rem; text-align: center; color: white; }
.button-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-main, .btn-secondary {
    padding: 12px 25px; border-radius: 6px; text-decoration: none; transition: 0.3s;
    min-width: 200px; background: var(--primary); color: white; border: 1px solid var(--primary);
}

/* --- CORRECTIF BADGE PAGES JAUNES --- */
.pj-badge {
    display: flex !important; 
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    padding: 5px 50px !important; 
    border-radius: 25px !important; 
    text-decoration: none !important;
    margin: 20px auto !important; 
    width: fit-content !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.3s ease;
}

.pj-badge:hover { transform: scale(1.05); }

.pj-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1px;
}

.pj-icon {
    width: 45px; 
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.pj-text-white { 
    color: white !important; 
    font-weight: bold;
    margin-right: 2px;
}

.pj-jaunes { 
    background: var(--pj-yellow) !important; 
    color: var(--pj-blue) !important;
    padding: 2px 6px !important; 
    border-radius: 4px !important; 
    font-weight: bold !important;  
}

.pj-content {
    display: inline-flex; 
    align-items: center;  
    justify-content: center;
    gap: 10px;            
    width: 100%;          
}

.pj-link-text {
    display: inline;      
    color: white !important;
    font-size: 0.8rem;
    margin-top: 0;        
}

/* --- WHATSAPP & SOCIAL BAS --- */

.whatsapp-sticky {
    position: fixed; 
    bottom: 20px; 
    right: 20px;
    width: 60px; 
    height: 60px; 
    background-color: #25d366;
    color: white; 
    border-radius: 50%; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    font-size: 35px;
    z-index: 1000; 
    text-decoration: none; 
    animation: pulse-whatsapp 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.social-icons { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 20px; 
}

.social-icon {
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 50%; 
    color: white; 
    text-decoration: none; 
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.social-icon.fb:hover { background: #1877F2 !important; }
.social-icon.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.social-icon.snap:hover { background: #FFFC00 !important; color: black !important; }

/* --- FOOTER --- */
footer { 
    background-color: var(--dark); 
    text-align: center; 
    padding: 1rem; 
    color: #94a3b8; 
    font-size: 0.85rem; 
}

/* --- AJUSTEMENTS MOBILES FINAUX (Safari, Firefox & autres) --- */
@media screen and (max-width: 778px) {
    
    /* Force l'impossibilité de défiler horizontalement sur toute la page */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    .hero { 
        padding: 4rem 10px 8rem 10px !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Évite que le contenu du hero dépasse */
    }

    .logo {
        max-width: 350px !important; 
        margin: 0 auto !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    /* FIX DU TITRE : FORCÉ SUR UNE LIGNE SANS DÉBORDEMENT */
    .hero h1 { 
        font-size: 19px !important; 
        white-space: nowrap !important; 
        display: inline-block !important; 
        text-align: center !important;
        width: auto !important;
        max-width: 95vw !important;
        transform: scale(min(1, calc(90vw / 280px))); 
        transform-origin: center;
        letter-spacing: 2.5px !important; 
        line-height: 0.2 !important;
    }

    /* --- DIMINUTION DES TITRES H2 SUR MOBILE --- */
    .arguments h2, 
    .container h2, 
    .contact h2, 
    .location h2 {
        font-size: 1.5rem !important; 
        margin-bottom: 0.8rem !important;
    }

    /* CORRECTION DU BORD NOIR : On réduit le gap et on fixe le minmax */
    .grid { 
        display: grid !important; 
        grid-template-columns: 1fr !important; /* Une seule colonne propre sur mobile */
        gap: 20px !important; /* Réduction drastique du gap (était à 50px) */
        width: 100% !important;
        max-width: 100vw !important;
        margin: 1.5rem 0 !important;
        padding: 0 15px !important; /* Marge interne pour éviter de toucher les bords */
        box-sizing: border-box !important;
    }

    .pj-logo-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 3px;
    }

    .pj-icon {
        width: 30px; 
        height: auto;
        margin-right: 8px;
        vertical-align: middle;
    }

    .pj-text-white { 
        color: white !important; 
        font-weight: bold;
        margin-right: 2px;
    }

    .pj-jaunes { 
        background: var(--pj-yellow) !important; 
        color: var(--pj-blue) !important;
        padding: 2px 6px !important; 
        border-radius: 4px !important; 
        font-weight: bold !important;  
    }

    .pj-content {
        display: inline-flex; 
        align-items: center;  
        justify-content: center;
        gap: 2px;                     
    }

    .pj-link-text {
        display: inline;      
        color: white !important;
        font-size: 0.6rem;
        margin-top: 1;        
    }

    .arg-grid, .reviews-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .arg-item, .review-card {
        min-width: 0 !important;
        padding: 10px 4px !important;
    }

    .arg-item h3, .review-card p { font-size: 0.73rem !important; }
    .arg-item p { font-size: 0.6rem !important; line-height: 1.1; }

    .bg-image-container { 
        background-attachment: scroll !important; 
        background-size: cover !important;
        background-position: center center !important;
    }

    /* --- CORRECTION ZONE D'INTERVENTION --- */
    .location {
        padding: 1rem 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .location-text p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
}