/* ===================================================
   CONTACT V4 - CSS ISOLÉ ET AUTONOME
   Compatible avec header/footer V4
   
   Version : 4.0.1 (Couleurs harmonisées)
   Date : 9 Décembre 2025
   
   MODIFICATION : Harmonisation couleur primaire
   - #dd0333 → #c41e3a (cohérent avec le reste du site)
   - #a00225 → #a01829 (version dark/hover)
   =================================================== */

/* Container principal - PAS de all:initial qui casse tout */
.gs-contact-v4 {
    display: block;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.gs-contact-v4 * {
    box-sizing: border-box;
}

/* Appliquer Roboto SAUF sur les icônes FontAwesome */
.gs-contact-v4 *:not(i):not(.fas):not(.far):not(.fab):not(.fal) {
    font-family: 'Roboto', Arial, sans-serif;
}

/* === BREADCRUMB === */
.gs-contact-v4 .gs-breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.gs-contact-v4 .gs-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gs-contact-v4 .gs-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.gs-contact-v4 .gs-breadcrumb li {
    font-size: 14px;
    color: #666;
}

.gs-contact-v4 .gs-breadcrumb a {
    color: #c41e3a;
    text-decoration: none;
}

.gs-contact-v4 .gs-breadcrumb a:hover {
    text-decoration: underline;
}

.gs-contact-v4 .gs-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
}

/* === CONTENEUR === */
.gs-contact-v4 .gs-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

/* === ALERTES === */
.gs-contact-v4 .gs-alert {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.gs-contact-v4 .gs-alert h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.gs-contact-v4 .gs-alert p {
    margin: 0;
    line-height: 1.6;
}

.gs-contact-v4 .gs-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.gs-contact-v4 .gs-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* === GRILLE 2 COLONNES === */
.gs-contact-v4 .gs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* === COLONNE INFOS === */
.gs-contact-v4 .gs-info h2 {
    color: #c41e3a;
    font-size: 1.8rem;
    margin: 0 0 30px 0;
    font-weight: 700;
}

.gs-contact-v4 .gs-card {
    background: #f8f9fa;
    border-left: 5px solid #c41e3a;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.gs-contact-v4 .gs-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.gs-contact-v4 .gs-card h3 i {
    color: #c41e3a;
    font-size: 1.4rem;
}

.gs-contact-v4 .gs-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

.gs-contact-v4 .gs-card a {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
}

.gs-contact-v4 .gs-card a:hover {
    text-decoration: underline;
}

/* === COLONNE FORMULAIRE === */
.gs-contact-v4 .gs-form-wrapper {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gs-contact-v4 .gs-form-wrapper h2 {
    color: #c41e3a;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.gs-contact-v4 .gs-subtitle {
    color: #666;
    margin: 0 0 30px 0;
    font-size: 0.95rem;
}

/* === CHAMPS DE FORMULAIRE === */
.gs-contact-v4 .gs-field {
    margin-bottom: 20px;
}

.gs-contact-v4 .gs-field label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.gs-contact-v4 .gs-required {
    color: #c41e3a;
}

.gs-contact-v4 .gs-field input,
.gs-contact-v4 .gs-field input[type="text"],
.gs-contact-v4 .gs-field input[type="email"],
.gs-contact-v4 .gs-field input[type="tel"],
.gs-contact-v4 .gs-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: 'Roboto', Arial, sans-serif;
    display: block;
    box-sizing: border-box;
    background: #fff;
}

.gs-contact-v4 .gs-field input:focus,
.gs-contact-v4 .gs-field textarea:focus {
    outline: none;
    border-color: #c41e3a;
}

.gs-contact-v4 .gs-field textarea {
    min-height: 120px;
    resize: vertical;
}

.gs-contact-v4 .gs-field.gs-error input,
.gs-contact-v4 .gs-field.gs-error textarea {
    border-color: #dc3545;
}

.gs-contact-v4 .gs-error-msg {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* === HONEYPOT (anti-spam) === */
.gs-contact-v4 .gs-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* === BOUTON SUBMIT === */
.gs-contact-v4 .gs-btn {
    background-color: #c41e3a;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', Arial, sans-serif;
}

.gs-contact-v4 .gs-btn:hover {
    background-color: #a01829;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.gs-contact-v4 .gs-btn i {
    color: white;
}

/* === CARTE GOOGLE MAPS === */
.gs-contact-v4 .gs-map {
    margin-top: 50px;
}

.gs-contact-v4 .gs-map h2 {
    color: #c41e3a;
    font-size: 1.8rem;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.gs-contact-v4 .gs-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 450px;
    width: 100%;
}

.gs-contact-v4 .gs-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 992px) {
    .gs-contact-v4 .gs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gs-contact-v4 .gs-container {
        padding: 0 15px 40px;
    }
    
    .gs-contact-v4 .gs-form-wrapper {
        padding: 25px;
    }
    
    .gs-contact-v4 .gs-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gs-contact-v4 .gs-map-wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .gs-contact-v4 .gs-container {
        margin: 20px auto;
    }
    
    .gs-contact-v4 .gs-info h2,
    .gs-contact-v4 .gs-form-wrapper h2,
    .gs-contact-v4 .gs-map h2 {
        font-size: 1.5rem;
    }
    
    .gs-contact-v4 .gs-card {
        padding: 20px;
    }
    
    .gs-contact-v4 .gs-form-wrapper {
        padding: 20px;
    }
    
    .gs-contact-v4 .gs-map-wrapper {
        height: 300px;
    }
}
