/* =========================================
   1. RESET & BASE
========================================= */
* { box-sizing: border-box; }

body, html { 
    margin: 0; 
    padding: 0; 
    width: 100%;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Police un peu plus moderne */
    color: #333;
    background: #f4f7f6; /* Fond très légèrement grisé plus moderne */
}

/* Images fluides */
img, iframe, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* Conteneur Principal */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.03); /* Ombre plus douce */
}

/* =========================================
   2. HEADER UNIQUE STYLISÉ
========================================= */
#custom-header {
    background: #fff;
    /* Bordure orange plus fine */
    border-bottom: 2px solid #fdb12f;
    padding: 12px 20px; /* Un peu plus d'espace */
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Légère ombre sous le header */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
}

/* --- LOGO RÉDUIT --- */
.header-logo img {
    max-height: 40px; /* RÉDUIT de 50px à 40px */
    width: auto;
    transition: transform 0.3s ease;
}
/* Petit effet sympa au survol du logo */
.header-logo a:hover img { transform: scale(1.02); }

/* Actions (Panier + Burger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Espace entre les boutons */
}

/* Boutons Communs */
.header-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 8px 16px; 
    border-radius: 50px; /* Forme "Pilule" moderne */
    cursor: pointer; transition: all 0.3s ease;
    font-weight: 700; font-size: 14px;
}

/* --- NOUVEAU STYLE PANIER "PREMIUM" --- */
.cart-btn {
    background: #fdb12f; /* Couleur principale */
    color: #222; /* Texte foncé pour contraste */
    border: none;
    box-shadow: 0 4px 10px rgba(253, 177, 47, 0.3); /* Ombre portée orange */
}
.cart-btn i { font-size: 16px; }

.cart-btn:hover { 
    background: #e67e22; color: white;
    transform: translateY(-2px); /* Léger soulèvement */
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4);
}

/* --- NOUVELLE PASTILLE INTÉGRÉE --- */
#cart-count {
    /* On reset la position absolue */
    position: static;
    top: auto; right: auto;
    
    /* Style bulle intégrée */
    background: #fff;
    color: #e67e22;
    font-size: 12px; font-weight: 800;
    min-width: 22px; height: 22px; /* Cercle parfait */
    border-radius: 50%;
    
    /* Centrage du chiffre */
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Style Burger (Harmonisé en pilule) */
.burger-btn {
    background: transparent;
    border: 2px solid #eee; /* Bordure subtile */
    color: #555;
}
.burger-btn i { font-size: 18px; }
.burger-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.burger-btn:hover {
    border-color: #fdb12f; color: #fdb12f; background: #fffbf0;
}

/* Masquer le texte MENU sur très petit écran */
@media (max-width: 360px) {
    .burger-label { display: none; }
    .header-btn { padding: 8px 12px; } /* Boutons un peu plus petits */
}


/* =========================================
   3. MENU TIROIR (DRAWER)
========================================= */
/* Sur desktop (> 960px), le menu est intégré statiquement */
@media (min-width: 961px) {
    #leftColumn {
        position: static; /* Position normale dans le flux */
        width: 280px;
        background: #fff;
        box-shadow: none; /* Pas d'ombre sur desktop */
        overflow-y: visible;
        padding-bottom: 20px;
        display: block;
        padding-top: 0;
        transition: none; /* Pas de transition sur desktop */
    }
    
    .menu-header-mobile {
        display: none; /* Masquer le header "Menu" et la croix sur desktop */
    }
    
    /* Masquer le bouton burger sur desktop aussi */
    .burger-btn {
        display: none;
    }
}

/* Sur mobile (< 960px), le menu devient un tiroir caché */
@media (max-width: 960px) {
    #leftColumn {
        position: fixed;
        top: 0;
        left: -290px; /* Caché par défaut sur mobile */
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        padding-bottom: 20px;
        padding-top: 0;
    }
    
    #leftColumn.active { 
        left: 0; 
    }
}

#menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* Fond un peu plus sombre */
    z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s;
    backdrop-filter: blur(2px); /* Effet flou moderne derrière le menu (si supporté) */
}

/* L'overlay ne s'active que sur mobile */
@media (max-width: 960px) {
    #menu-overlay.active { opacity: 1; visibility: visible; }
}

#menu { padding: 0; list-style: none; margin-top: 0; }
#menu li a {
    display: block; padding: 14px 20px;
    background: #fff; color: #444; font-weight: 600;
    border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
#menu li a:hover { background: #fdb12f; color: white; padding-left: 25px; /* Petit effet de décalage */ }

.menu-header-mobile {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; background: #fdb12f; color: white; font-size: 18px; font-weight: bold;
}
#close-menu-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
#close-menu-btn:hover { opacity: 1; }


/* =========================================
   4. LAYOUT & CONTENU
========================================= */
/* Conteneur global qui englobe tout (menu + contenu) */
@media (min-width: 961px) {
    .site-content-wrapper {
        display: flex;
        gap: 0; /* Pas d'espace entre menu et contenu */
    }
    
    /* Le menu prend sa largeur fixe */
    #leftColumn {
        flex-shrink: 0; /* Ne se réduit pas */
    }
    
    /* Le reste du contenu prend l'espace restant */
    .main-content-area {
        flex: 1;
        min-width: 0; /* Important pour le responsive */
    }
}

.ovh { display: flex; flex-wrap: wrap; padding: 30px 20px; align-items: flex-start; gap: 40px; }
#mainColumn { flex: 2; min-width: 0; }
#rightColumn { flex: 1; min-width: 300px; }
@media (max-width: 960px) {
    .ovh { flex-direction: column; padding: 20px; gap: 30px; }
    #mainColumn, #rightColumn { width: 100%; flex: auto; padding: 0; }
}

/* Styles Globaux */
.titre-vert { color: #8ec63f; font-size: 26px; font-weight: 800; margin-bottom: 25px; border-bottom: 3px solid #eee; padding-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.center { text-align: center; }
.mb10 { margin-bottom: 20px; }

/* Cartes Produits plus modernes */
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.product-card {
    background: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid transparent; transition: all 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: #fdb12f; }
.product-info h3 { font-size: 18px; margin: 0 0 15px; color: #2c3e50; font-weight: 800; }
.price { color: #e67e22; font-size: 22px; font-weight: 800; display: block; margin-bottom: 15px; }
.btn-product {
    background: #fdb12f; color: white; border: none; padding: 12px; width: 100%; border-radius: 50px; font-weight: 800; cursor: pointer; margin-top: 15px; display: block; text-align: center; box-shadow: 0 4px 10px rgba(253, 177, 47, 0.3); transition: all 0.2s;
}
.btn-product:hover { background: #e67e22; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4); }

/* Sidebar Modules */
.google-review-card, .facebook-module-container {
    background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 25px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
}
.alert-box { padding: 20px; background: #fdb12f; color: white; border-radius: 12px; font-weight: bold; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(253, 177, 47, 0.3); }

/* Footer */
#main-footer {
    background: #333; color: #ccc; padding: 40px 20px; text-align: center; font-size: 14px; border-top: 4px solid #fdb12f; margin-top: 60px;
}

/* =========================================
   5. STYLES POUR LA PAGE FAQ
========================================= */
.intro-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.faq-container {
    margin-top: 30px;
}

/* Style des boutons accordéon */
.accordion {
    background-color: #fff;
    color: #333;
    cursor: pointer;
    padding: 18px 20px;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion:after {
    content: '\002B'; /* Symbole + */
    color: #fdb12f;
    font-weight: bold;
    font-size: 20px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.accordion.active:after {
    content: "\2212"; /* Symbole - */
    transform: rotate(180deg);
}

.accordion:hover {
    background-color: #f9f9f9;
    border-color: #fdb12f;
}

.accordion.active {
    background-color: #fdb12f;
    color: white;
    border-color: #fdb12f;
}

.accordion.active:after {
    color: white;
}

/* Panneau de réponse */
.panel {
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 8px 8px;
    margin-bottom: 10px;
}

.panel p, .panel ul, .panel li {
    padding: 0 20px;
    margin: 15px 0;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.panel ul {
    padding-left: 40px;
}

.panel li {
    margin: 8px 0;
    padding: 0;
}

.panel a {
    color: #fdb12f;
    text-decoration: underline;
    font-weight: 600;
}

.panel a:hover {
    color: #e67e22;
}

/* Images dans FAQ */
.faq-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    margin: 20px 0;
}

.faq-images img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.faq-images img:hover {
    transform: scale(1.05);
}

/* Galerie pour les profils de châssis */
.faq-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 20px 0;
}

.faq-gallery-grid div {
    text-align: center;
}

.faq-gallery-grid img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.legend {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Boîte alerte orange dans FAQ */
.alert-box.orange {
    background: #ff9800;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

/* Contact box en bas de FAQ */
.contact-box-faq {
    margin-top: 40px;
    padding: 20px;
    background: #f4f4f4;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.contact-box-faq p {
    font-size: 16px;
    margin: 0;
}

.contact-box-faq a {
    color: #fdb12f;
    font-weight: bold;
}

.contact-box-faq a:hover {
    color: #e67e22;
}

/* =========================================
   6. STYLES POUR LA PAGE NOTICES
========================================= */
.content-text {
    line-height: 1.8;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #fdb12f;
    font-size: 22px;
}

/* Grille de téléchargement */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Items de téléchargement */
.dl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dl-item i {
    color: #fdb12f;
    font-size: 20px;
    flex-shrink: 0;
}

.dl-item:hover {
    background: #fdb12f;
    color: white;
    border-color: #fdb12f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 177, 47, 0.3);
}

.dl-item:hover i {
    color: white;
}

/* Highlight pour certains documents importants */
.dl-item.highlight {
    background: #fffbf0;
    border-color: #fdb12f;
    font-weight: 600;
}

.dl-item.highlight:hover {
    background: #fdb12f;
    color: white;
}

/* Responsive pour la grille de téléchargement */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}