/* --- VARIABLES --- */
:root {
    --primary: #800000;      /* Bordeaux */
    --primary-hover: #a30000;
    --dark: #00042a;         /* Bleu sombre */
    --dark-alt: #000215;
    --light: #ffffff;
    --bg-gray: #f4f4f9;
    --text-main: #333333;
    --pj-blue: #0033ff;
    --pj-yellow: #ffda00;
}

/* --- BASE & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--bg-gray);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 {
    line-height: 1.2;
}

/* Titres H2 généraux (ex: MES SERVICES DE RÉPARATION sur fond clair) */
h2 {
    font-family: 'Orbitron', sans-serif; 
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
    /* Ombre semi-transparente adaptée pour l'écriture noire/bleue sur fond clair */
    text-shadow: 3px 3px 0px rgba(128, 0, 0, 0.3); 
}

/* --- HERO SECTION --- */
.hero { 
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    color: var(--light); 
    padding: 6rem 20px 4rem; 
    text-align: center; 
}

/* Titre principal H1 de la section Hero */
.hero h1 {
    font-family: 'Orbitron', sans-serif; 
    font-size: clamp(1.6rem, 5vw, 2rem);
    color: var(--light);
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Ombre rouge nette et solide */
    text-shadow: 3px 3px 0px var(--primary); 
    margin-bottom: 15px;
}

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

.social-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.social-top:hover { transform: scale(1.1); }
.social-top.fb:hover { background: #1877F2; }
.social-top.ig:hover { background: #E1306C; }
.social-top.snap:hover { background: #FFFC00; color: black; }

/* Logo unique et fusionné avec la bonne taille */
.logo {
    max-width: 450px; 
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px #00042a;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- BOUTONS --- */
.btn-main, .btn-secondary, .btn-submit {
    display: inline-block;
    padding: 12px 28px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-main, .btn-submit {
    background: var(--primary); 
    color: var(--light); 
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
}

.btn-main:hover, .btn-submit:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent; 
    color: var(--light); 
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* --- SERVICES --- */
.services { 
    padding: 5rem 20px; 
    background: var(--light); 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.card {
    border-radius: 15px;
    display: flex; 
    flex-direction: column;
    padding: 40px 30px;
    color: var(--light); 
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0, 0, 0, 0.46); /* Overlay sombre pour lisibilité */
    z-index: 1;
}

.card > * { position: relative; z-index: 2; }

.card-mobile { background-image: url('images/réparationsmarthonelavernosep.jpg'); }
.card-pc { background-image: url('images/dépannagepclavernose.jpg'); }
.card-assistance { background-image: url('images/assistanceinformatiquepascher.jpg'); }

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px #00042a;
}

.card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 15px;
    color: var(--light);
    text-shadow: 4px 4px 0px var(--primary);
    text-transform: uppercase;
}

.card ul { 
    list-style: none; 
    margin-bottom: 20px;
    flex-grow: 1;
}

.card li { 
    margin-bottom: 8px; 
    font-size: 0.95rem; 
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card li::before { 
    content: "✓"; 
    color: var(--primary); 
    font-weight: bold;
}

.price-tag {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.btn-reservation {
    display: block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
}

.btn-reservation:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.6);
}
.remote-downloads {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.remote-downloads p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.remote-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-download {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: translateY(-1px);
}

/* --- ZONE D'INTERVENTION --- */
.location { 
    padding: 4rem 20px; 
    background: var(--dark); 
    color: var(--light); 
}

/* Application de l'ombre nette pour les H2 sur fond sombre */
.location h2, .arguments h2, .reviews h2 { 
    color: var(--light); 
    text-shadow: 3px 3px 0px var(--primary);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-text { font-size: 1.1rem; }
.location-text p { margin-bottom: 15px; }

#map {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--primary);
    z-index: 1; 
}

/* --- SECTIONS SUR FOND IMAGE --- */
.bg-image-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.202)), url('images/fontsection.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- ARGUMENTS --- */
.arguments { padding: 5rem 20px; color: var(--light); }

.arg-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.arg-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.icon-large {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* --- FORMULAIRE DE DEVIS --- */
.quote-section {
    padding: 4rem 20px;
    color: var(--light);
}

/* Application de l'ombre nette pour le H2 du devis */
.quote-section h2 { 
    color: var(--light); 
    margin-bottom: 10px; 
    text-shadow: 3px 3px 0px var(--primary);
}

.quote-intro { text-align: center; margin-bottom: 40px; color: #cbd5e1; }

.quote-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

/* --- AVIS CLIENTS --- */
.reviews { padding: 4rem 20px 6rem; color: var(--light); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.review-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.08); 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stars { color: #FFD700; margin-bottom: 10px; letter-spacing: 2px; }
.client-name { display: block; margin-top: 15px; font-weight: bold; color: #cbd5e1; font-size: 0.9rem; }

/* BADGE PAGES JAUNES */
.trust-badge-container { text-align: center; }
.pj-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.pj-badge:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.15); }
.pj-icon { width: 35px; border-radius: 4px; }
.pj-text-white { color: white; font-weight: bold; }
.pj-jaunes { background: var(--pj-yellow); color: var(--pj-blue); padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-left: 2px; }
.pj-link-text { color: white; font-size: 0.9rem; }

/* --- FOOTER & SOCIAL --- */
footer { 
    background-color: var(--dark-alt); 
    text-align: center; 
    padding: 3rem 20px 2rem; 
    color: #94a3b8; 
}

.footer-contact p { margin-bottom: 5px; }

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

.social-icon {
    width: 45px; height: 45px; 
    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.2rem; transition: 0.3s;
}

.social-icon:hover { transform: translateY(-5px); }
.social-icon.fb:hover { background: #1877F2; }
.social-icon.ig:hover { background: #E1306C; }
.social-icon.snap:hover { background: #FFFC00; color: black; }

.copyright { font-size: 0.85rem; margin-top: 20px; opacity: 0.7; }

/* --- WHATSAPP FLOTTANT --- */
.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; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.whatsapp-sticky:hover { transform: scale(1.1); }

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .hero { padding: 5rem 15px 3rem; }
    .hero-social-bar { position: static; justify-content: center; margin-bottom: 20px; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .location-content { grid-template-columns: 1fr; }
    
    .quote-form { padding: 25px 15px; }
    
    .bg-image-container { background-attachment: scroll; } /* Corrige le bug de paralaxe iOS */
}

@media screen and (max-width: 768px) {
    /* Vos autres règles mobiles existent déjà ici... */

    .hero h1 {
        font-size: clamp(1.2rem, 6vw, 1.8rem); /* Taille légèrement réduite pour mobile */
        letter-spacing: 1px; /* Espacement réduit */
        word-break: break-word; /* Force le texte à aller à la ligne s'il dépasse */
        padding: 0 10px;
    }
}
