<style>

/* --- NAVIGATION HORIZONTALE --- */
.header-nav-horizontal {
    background: #f8f9fa; /* Gris très clair pour détacher du titre blanc */
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-container a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.nav-container a:hover {
    color: var(--blue-klyma);
}

/* État actif pour savoir sur quelle page on se trouve */
.nav-container a.active {
    color: var(--blue-klyma);
    border-bottom: 2px solid var(--blue-klyma);
}

/* Ajustement de la bannière Hero pour qu'elle colle au menu */
.contact-hero {
    padding-top: 40px !important;
}

/* === OPTIMISATION DE LA LISIBILITÉ DIAGNOST === */

/* Texte de corps article-content (paragraphes) */
.article-content p {
    font-size: 1.1rem !important; /* Environ 17.5px */
    line-height: 1.8 !important;  /* Augmente l'espace entre les lignes */
    color: #2d3436 !important;    /* Un noir plus profond pour le contraste */
    margin-bottom: 25px;
    font-weight: 400;             /* Standard, mais bien défini */
}

/* Titres H2 (Les grandes sections) */
.article-content h2 {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: var(--blue-klyma);
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px;
}

/* Titres H3 (Les sous-sections/types de pannes) */
.article-content h3 {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 35px !important;
}

/* Mise en avant des conseils (Strong) */
.article-content strong {
    font-weight: 600;
    color: var(--blue-klyma); /* On met les mots clés en bleu pour l'œil */
}

/* Texte de corps article-layout(paragraphes) */
.article-layout p {
    font-size: 1.1rem !important; /* Environ 17.5px */
    line-height: 1 !important;  /* Augmente l'espace entre les lignes */
    color: #2d3436 !important;    /* Un noir plus profond pour le contraste */
    margin-bottom: 15px;
    font-weight: 400;             /* Standard, mais bien défini */
}

/* Titres H2 (Les grandes sections) */
.article-layout h2 {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: var(--blue-klyma);
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    letter-spacing: -0.5px;
}

/* Titres H3 (Les sous-sections/types de pannes) */
.article-layout h3 {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 15px !important;
}

/* Mise en avant des conseils (Strong) */
.article-layout strong {
    font-weight: 600;
    color: var(--blue-klyma); /* On met les mots clés en bleu pour l'œil */
}

/* --- AJUSTEMENT MOBILE --- */
@media (max-width: 600px) {
    .article-content p {
        font-size: 1.05rem !important; /* Un peu plus grand que d'habitude sur mobile */
        line-height: 1.7 !important;
    }
    
    .article-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
}

/* === GRILLE D'ARTICLES (ENCYCLO) === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.article-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.08);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 71, 111, 0.15);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--blue); /* Couleur de secours */
    position: relative;
}

.difficulty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.difficulty-badge.beginner { background-color: #2ecc71;;}
.difficulty-badge.intermediate { background-color: orange; }
.difficulty-badge.expert { background: var(--red-expert); }

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    font-weight: 800;
    color: var(--orange);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tag-filter {
    padding: 8px 20px;
    background: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--grid-line);
    transition: 0.3s;
}

.tag-filter.active, .tag-filter:hover {
    background: var(--blue);
    color: white;
}


/* Style spécifique à la grille de contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Colonne infos plus étroite que le formulaire */
    gap: 40px;
    margin-top: 30px;
}

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

.urgency-tag {
    font-size: 0.75rem;
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

/* Ajustement mobile */
@media (max-width: 850px) {
    .contact-grid, .form-row {
        grid-template-columns: 1fr;
    }
}
/* === CORRECTIONS ET STYLES VISUELS CONTACT === */

.contact-hero {
    text-align: center;
    padding: 60px 20px;
    background: white; /* Fond blanc pour détacher du quadrillage */
    border-bottom: 1px solid var(--grid-line);
}

.contact-hero h1 { 
    color: var(--blue); 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
}

.contact-container {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* Style des cartes d'info à gauche */
.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.05); /* Ombre légère */
    border: 1px solid rgba(255,255,255,0.8);
}

.info-icon {
    font-size: 1.8rem;
    background: var(--bg-light);
    width: 60px; height: 60px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
}

.info-card h3 { margin: 0; font-size: 0.9rem; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.info-card p, .info-card a { margin: 5px 0 0; color: #333; font-weight: 600; text-decoration: none; }

/* Style du formulaire à droite */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 71, 111, 0.1);
}

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-weight: 800; font-size: 0.8rem; color: var(--blue); text-transform: uppercase; }

.form-group input, .form-group select, .form-group textarea {
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--bg-light);
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.form-group input:focus { border-color: var(--blue); outline: none; }

/* Bouton Envoyer */
.btn-submit {
    background: var(--orange);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(255, 149, 0, 0.3); }

	   /* === VARIABLES & BASE === */
        :root {
            --blue: #0077b6;
            --orange: #ff9500;
            --bg-light: #f0f4f8;
            --radius: 30px;
            --grid-line: rgba(0, 119, 182, 0.08);
            --grid-line-fine: rgba(0, 119, 182, 0.04);
        }

body {
    background-color: var(--bg-light);
    /* Remplacement du quadrillage par votre image */
    /*background-image: url('../assets/background/background_web_7.png'); */
    background-size: cover;          /* L'image couvre tout l'écran */
    background-position: center;     /* L'image est centrée */
    background-repeat: no-repeat;    /* Pas de répétition */
    background-attachment: fixed;    /* L'image reste fixe au scroll (optionnel) */
    
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

        /* === HEADER === */
        .site-header {
            position: sticky;
            top: 0;
            background: white;
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
            z-index: 1000;
        }

        .header-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .mini-logo {
            height: 40px; 
            width: auto;
            object-fit: contain;
        }

        .company-name {
            font-weight: 800;
            font-size: 1.5rem;
            letter-spacing: -1px;
            color: var(--blue);
            text-transform: uppercase;
        }

        .company-name span {
            color: var(--orange);
        }

        .header-ctas {
            display: flex;
            gap: 15px;
        }

        .btn-header {
            text-decoration: none;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: 800;
            font-size: 0.85rem;
            transition: 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
        }

        .btn-call { background: var(--blue); color: white; }
        .btn-quote { background: var(--orange); color: white; }
        .btn-header:hover { transform: scale(1.05); filter: brightness(1.1); }

        /* === HERO SECTION === */
        .hero-banner {
            text-align: center;
            padding: 40px 20px 10px;
        }

        .hero-banner h1 {
            font-weight: 800;
            color: var(--blue);
            font-size: 2.2rem;
            margin: 0 0 15px 0;
        }

        .trust-badges {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--blue);
        }

        .badge-item { display: flex; align-items: center; gap: 6px; }

        /* === GRILLE PRINCIPALE === */
        main.grid-container {
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr 1fr;
            gap: 20px;
            width: 95%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 0 60px 0;
            z-index: 2;
        }

/* === STYLE DES TUILES (CORRIGÉ) === */
.tile {
    position: relative;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-radius: var(--radius); /* L'arrondi est défini ici par votre variable */
    aspect-ratio: 1 / 1;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 71, 111, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    /* AJOUT DE CETTE LIGNE POUR CORRIGER LE DÉBORDEMENT */ 
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

        .tile.visible { opacity: 1; transform: translateY(0); }
        .tile:hover { transform: scale(1.03) translateY(-10px); box-shadow: 0 15px 40px rgba(0, 119, 182, 0.2); }

        .tile.has-image { 
            background-size: cover; 
            background-position: center; 
        }

        .tile.has-image::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            z-index: 1;
            border-radius: var(--radius);
        }

        .tile-large { grid-row: span 2; padding: 0 !important; aspect-ratio: auto; }
        
        .logo-overlay {
            position: relative; z-index: 1; width: 100%; height: 100%;
            display: flex; justify-content: center; align-items: center;
            background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(2px);
        }

        .video-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: contain; z-index: 0; }
        .logo-img { max-width: 80%; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1)); z-index: 2; }

        .tile h2 { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; margin: 0; z-index: 2; }
        .tile span { font-weight: 400; font-size: 0.85rem; display: block; margin-top: 5px; opacity: 0.9; z-index: 2; }
        .bg-blue { background-color: var(--blue); }

        .plus-icon {
            position: absolute; top: 20px; right: 20px; width: 28px; height: 28px;
            border: 2px solid white; border-radius: 50%; display: flex;
            justify-content: center; align-items: center; z-index: 3; transition: 0.4s;
        }

        .tile:hover .plus-icon { transform: rotate(90deg); background: white; color: var(--blue); }

        /* === FOOTER SECTION === */
        footer {
            background: white;
            padding: 60px 5% 30px;
            margin-top: 50px;
            box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .certifs-row {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 40px;
            padding-bottom: 40px;
            border-bottom: 1px solid #eee;
        }

        .certif-item {
            height: 65px;
            filter: grayscale(1);
            opacity: 0.6;
            transition: 0.3s;
        }

        .certif-item:hover {
            filter: grayscale(0);
            opacity: 1;
            transform: scale(1.1);
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .copyright {
            font-size: 0.75rem;
            font-weight: 600;
            color: #777;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--bg-light);
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            color: var(--blue);
            font-weight: 800;
            transition: 0.3s;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .social-icon:hover {
            background: var(--blue);
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,119,182,0.3);
        }

        .seo-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

        /* === RESPONSIVE === */
        @media (max-width: 900px) {
            main.grid-container { grid-template-columns: 1fr 1fr; padding: 20px; }
            .tile-large { grid-column: span 2; grid-row: span 1; height: 300px; }
        }

        @media (max-width: 600px) {
            .site-header { flex-direction: column; gap: 12px; }
            .hero-banner h1 { font-size: 1.6rem; }
            main.grid-container { grid-template-columns: 1fr; gap: 15px; }
            .tile-large { grid-column: span 1; height: 250px; }
            .footer-bottom { flex-direction: column; text-align: center; }
        }
/* Masquer les boutons sur mobile (écrans inférieurs à 992px) */
@media (max-width: 991px) {
    .header-ctas {
        display: none !important;
    }
}

/* Affichage normal sur Desktop (déjà géré par vos styles existants) */
@media (min-width: 992px) {
    .header-ctas {
        display: flex;
    }
}

/* ============================================================
   MOBILE OPTIMIZATIONS (Écrans inférieurs à 600px)
   ============================================================ */
@media (max-width: 600px) {
    /* 1. Masquer le visuel croisé (la grande tuile) */
    .tile-large, .tile.tile-large {
        display: none !important;
    }

    /* 2. Réorganiser les badges (Verts sur une ligne, Jaune en dessous) */
    .trust-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .badge-item {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }

    /* Éléments verts (Devis & Artisan) */
    .badge-item:nth-child(2), 
    .badge-item:nth-child(3) {
        order: 1 !important;
        flex: 0 1 auto !important;
    }

    /* Élément jaune (Intervention) */
    .badge-item:nth-child(1) {
        order: 2 !important;
        width: 100% !important; /* Force le passage en dessous */
        justify-content: center !important;
        /*color: #ffb100 !important;  Couleur jaune */
    }

    /* 3. Réduction du titre principal */
    .hero-banner h1 {
        font-size: 1.2rem !important;
        padding: 0 10px !important;
    }

    /* 4. Grille de menus : 2 colonnes / 3 lignes */
    /* On cible spécifiquement la grille de l'index */
    main.grid-container, .grid-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(3, auto) !important;
        gap: 12px !important;
        padding: 10px !important;
        margin-top: 0 !important;
    }

    .tile {
        aspect-ratio: 1 / 1 !important;
        padding: 15px !important;
        min-height: auto !important;
    }

    .tile h2 {
        font-size: 0.85rem !important;
    }

    .tile span {
        display: none !important; /* On cache les descriptions pour gagner de la place en 2 colonnes */
    }

    /* 5. Logos de certification sur une seule ligne */
    .certifs-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .certif-item {
        max-height: 30px !important;
        width: auto !important;
    }
}
</style>