/* --- CONFIGURATION GÉNÉRALE & DESIGN SYSTEM --- */
:root {
    --bg-light: #f7f9fc;
    --white: #ffffff;
    --navy-blue: #002265;
    --industrial-red: #d92323;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --input-border: #e2e8f0;
    --input-focus: #b2c3df;
    --font-main: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Supprimer le padding global qui créait des bords indésirables */
body {
    background-color: var(--white);
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    padding: 0; /* Supprimé le padding global */
}

/* Espacement au-dessus de la section Informations */
.info-sidebar {
    margin-top: 40px; /* Espace ajouté ici */
}

/* Espacement en dessous de la section FAQ */
.faq-section {
    margin-bottom: 80px; /* Espace ajouté sous la section */
}

/* --- Global Configuration & Core Variables --- */
:root {
    --primary-blue: #0A3663;
    --accent-red: #E30013;
    --text-dark: #1E293B;
    --text-muted: #475569;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.contact-container {
    max-width: 1200px;
    margin: 40px auto; /* Centrage et respiration */
    padding: 0 20px;   /* Garde une marge sur mobiles */
}

/* --- STRUCTURE EN GRILLE (FORMULAIRE & SIDEBAR) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* --- SECTION GAUCHE : LE FORMULAIRE --- */
.form-section {
    background-color: var(--white);
    padding: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sub-title {
    color: var(--industrial-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.main-title {
    color: var(--navy-blue);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 35px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

/* Input et icônes alignés */
.input-wrapper, .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    font-size: 15px;
}

.input-wrapper input, .select-wrapper select, .form-group textarea {
    width: 100%;
    padding: 13px 15px 13px 45px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 13.5px;
    color: var(--text-dark);
    background-color: var(--white);
    transition: all 0.2s ease;
}

.input-wrapper input::placeholder, .form-group textarea::placeholder {
    color: #cbd5e0;
}

.input-wrapper input:focus, .select-wrapper select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(0, 34, 101, 0.1);
}

/* Cas particulier : Rangée Produit & Quantité */
.mixed-row {
    display: flex;
    gap: 20px;
}

.product-group {
    flex: 3;
}

.quantity-group {
    flex: 1;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 15px;
    color: var(--navy-blue);
    pointer-events: none;
    font-size: 12px;
}

/* Sélecteur de Quantité Customisé */
.quantity-selector {
    display: flex;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    overflow: hidden;
    height: 46px;
}

.qty-btn {
    background: var(--white);
    border: none;
    width: 40px;
    font-size: 16px;
    color: var(--navy-blue);
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-light);
}

.quantity-selector input {
    width: 100%;
    border: none;
    border-left: 1px solid var(--input-border);
    border-right: 1px solid var(--input-border);
    text-align: center;
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 14px;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group textarea {
    padding: 15px;
    resize: vertical;
}

/* Bouton d'envoi & zone sécurisée */
.form-submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.btn-submit {
    background-color: var(--navy-blue);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: #001745;
}

.secure-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- SIDEBAR DROITE : INFORMATIONS --- */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

/* La petite ligne rouge décorative sous les titres */
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--industrial-red);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    width: 36px;
    height: 36px;
    background-color: var(--navy-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-blue);
}

.info-item p, .info-item a {
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Spécificités bloc Horaires */
.layout-vertical {
    flex-direction: column;
    gap: 12px;
}

.schedule-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.schedule-row i {
    color: var(--navy-blue);
    font-size: 16px;
    margin-top: 2px;
}

.schedule-row.inner {
    padding-left: 31px;
}

.days {
    font-weight: 600;
    font-size: 13px;
}

.hours {
    color: var(--text-muted) !important;
}

.hours.closed {
    color: var(--industrial-red) !important;
    font-weight: 600;
}

/* Bloc d'appel d'urgence */
.assistance-block .short-red::after {
    width: 50px;
}

.assistance-p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--industrial-red);
    background-color: transparent;
    color: var(--industrial-red);
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-call:hover {
    background-color: var(--industrial-red);
    color: var(--white);
    text-decoration: none !important;
}

/* --- TITRES DE SECTIONS BAS DE PAGE --- */
.section-heading {
    color: var(--navy-blue);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--industrial-red);
}

/* --- SECTION CARTE (MAP) --- */
.map-section {
    margin-bottom: 50px;
}

.map-card-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.map-placeholder {
    height: 320px;
    background-color: #d1d5db; /* Gris neutre de fond */
    background-position: center;
    background-size: cover;
    
    /* Le filtre 'natural-elegant' */
    filter: grayscale(40%) sepia(20%) brightness(1.05) contrast(1.1);
    
    transition: filter 0.6s ease;
    position: relative;
}

/* Au survol, la carte reprend ses couleurs réelles pour plus de détails */
.map-placeholder:hover {
    filter: grayscale(0%) sepia(0%) brightness(1) contrast(1);
}


.map-card-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* Ombre subtile pour le relief */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    /* Bordure légère */
    border: 1px solid rgba(0,0,0,0.05);
}
/* Effet Pin Réaliste au centre */
.map-pin {
    position: relative;
    color: var(--navy-blue);
    font-size: 36px;
    z-index: 2;
}

.pin-pulse {
    position: absolute;
    width: 20px;
    height: 10px;
    background: rgba(0, 34, 101, 0.2);
    border-radius: 50%;
    bottom: -5px;
    left: 8px;
    transform: scale(1);
}

/* Overlay Adresse sur la carte */
.map-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.overlay-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.overlay-icon {
    color: var(--navy-blue);
    font-size: 24px;
}

.overlay-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-blue);
}

.overlay-text p {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Élément géométrique biaisé en arrière-plan */
.diagonal-decor {
    position: absolute;
    right: 240px;
    height: 100%;
    width: 45px;
    background: linear-gradient(115deg, transparent 45%, var(--navy-blue) 45%, var(--navy-blue) 55%, var(--industrial-red) 55%, var(--industrial-red) 65%, transparent 65%);
    opacity: 0.8;
}

.btn-route {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-route:hover {
    background-color: #001745;
}

/* --- SECTION FAQ (ACCORDÉONS) --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--input-focus);
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-q-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background-color: var(--navy-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.faq-question p {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-blue);
}

.faq-question i {
    color: var(--navy-blue);
    font-size: 12px;
}

/* --- LOGIQUE RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .diagonal-decor {
        display: none;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .mixed-row {
        flex-direction: row;
        gap: 15px;
    }
    .map-info-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: -10px;
    }
    .btn-route {
        width: 100%;
        justify-content: center;
    }
}


/* Style for the product input wrapper to match other fields */
.prod-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dcdcdc; /* Adjust to match your existing field borders */
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    flex: 3;
}

.prod-input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}



/* --- 5. Bottom CTA Banner --- */
.cta-banner {
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 60px;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon {
    font-size: 32px;
}

.cta-left h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.cta-left p {
    font-size: 14px;
    opacity: 0.8;
}

.btn-contact-white {
    background: #fff;
    color: var(--accent-red);
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-contact-white:hover {
    background: #f1f5f9;
}

/* Responsive Breakpoints */
@media(max-width: 992px) {
    .sector-card {
        grid-template-columns: 1fr;
    }
    .sector-img-placeholder {
        display: none;
    }
    .stats-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cta-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .cta-left {
        flex-direction: column;
    }
}




/* Style du bouton "Ajouter" */
.btn-add {
    background-color: var(--bg-light);
    color: var(--navy-blue);
    border: 1px dashed var(--navy-blue);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

/* Alignement des lignes dynamiques */
.prod-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

/* Bouton "Supprimer" (pour vos lignes ajoutées dynamiquement) */
.btn-remove {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

