/* Variables locales (prioritaires sur new-styles.css si définies) */
:root {
    --primary-color: #1198D5; /* Bleu Resiwell */
    --secondary-color: #6c757d; /* Gris Bootstrap */
    --success-color: #198754; /* Vert Bootstrap */
    --danger-color: #dc3545; /* Rouge Bootstrap */
    --warning-color: #ffc107; /* Jaune Bootstrap */
    --info-color: #0dcaf0;    /* Cyan Bootstrap */
    --light-bg: #f8f9fa;       /* Fond clair sections */
    --ultra-light-bg: #ffffff; /* Fond blanc pour cartes */
    --text-color: #495057;     /* Texte principal (gris foncé doux) */
    --heading-color: #212529;  /* Titres (noir doux) */
    --border-color: #dee2e6;    /* Bordures grises claires */
    --white: #ffffff;
    --primary-rgb: 13, 110, 253;
    --secondary-rgb: 108, 117, 125;
    --text-rgb: 73, 80, 87; /* RGB pour text-color */
    --card-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --form-focus-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.2);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem; /* Rayon arrondi standard */
    --border-radius-lg: 0.75rem;
}

/* --- Body --- */
body {
    background-color: var(--light-bg); /* Fond général gris très clair */
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 600;
}

/* --- Page Header Amélioré --- */
.page-header-contact {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(13, 138, 180, 0.9) 100%), url('images/ville.png') center center no-repeat;
    background-size: cover;
    padding: 8rem 0 7rem 0;
    position: relative;
    border-bottom: none;
    color: var(--white);
    overflow: hidden; /* Pour les formes potentielles */
}
.page-header-contact::before { /* Forme décorative */
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
}
.page-header-contact .container { /* Contenu au-dessus */
    position: relative;
    z-index: 2;
}

.page-header-contact h1 {
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 3.2rem); /* Responsive */
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2); /* Ombre texte légèrement plus marquée */
}

.page-header-contact p.lead {
     color: rgba(255, 255, 255, 0.95); /* Texte légèrement plus opaque */
     font-weight: 400;
     font-size: 1.15rem; /* Légèrement plus grand */
}

.page-header-contact .breadcrumb {
    background-color: rgba(255, 255, 255, 0.12); /* Fond légèrement plus visible */
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    display: inline-flex;
    transition: background-color 0.3s ease;
}
.page-header-contact .breadcrumb:hover {
    background-color: rgba(255, 255, 255, 0.18);
}
.page-header-contact .breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.2s ease;
}
.page-header-contact .breadcrumb a:hover {
    color: var(--white);
}
.page-header-contact .breadcrumb-item.active {
    color: var(--warning-color); /* Utilisation de l'accent jaune */
    font-weight: 500;
}

/* --- Section Générale Titre --- */
.section-title {
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.5rem); /* Taille responsive */
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1rem; /* Espace réduit avant le paragraphe */
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb),0.8), rgba(var(--primary-rgb),0.5));
    border-radius: 3px;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Contact Section Améliorée --- */
.contact-section {
    background-color: var(--light-bg);
    padding: 5rem 0 6rem 0;
}

/* Style commun des cartes */
.contact-info-wrapper, .contact-form-wrapper {
    background-color: var(--ultra-light-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: none; /* Pas de bordure par défaut */
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Pour les effets internes */
}
.contact-info-wrapper:hover, .contact-form-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

/* Colonne Informations Améliorée */
.contact-info-wrapper {
    padding: 2.5rem 2rem; /* Ajustement padding */
    background: linear-gradient(145deg, var(--ultra-light-bg) 80%, rgba(var(--primary-rgb), 0.03) 100%);
}

.contact-info-wrapper h3 {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.contact-info-wrapper .info-item {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}
.contact-info-wrapper .info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-wrapper .info-item .icon-bg {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.12));
    border-radius: var(--border-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Empêche la réduction */
}
.contact-info-wrapper .info-item:hover .icon-bg {
     background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.2));
     transform: scale(1.05) rotate(-5deg);
}

.contact-info-wrapper .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.contact-info-wrapper .info-item:hover i {
    transform: scale(1.1);
}

.contact-info-wrapper .info-item h5 {
    font-size: 1.2rem;
    font-weight: 600; /* Plus gras */
    margin-bottom: 0.4rem;
    color: var(--heading-color);
}

/* ----- !!! VÉRIFICATION VISIBILITÉ !!! ----- */
.contact-info-wrapper .info-item p,
.contact-info-wrapper .info-item p.text-muted {
    margin-bottom: 0;
    line-height: 1.65;
    color: var(--text-color) !important; /* FORCER la couleur du texte */
    font-size: 1rem;
    opacity: 1 !important; /* FORCER l'opacité */
    visibility: visible !important; /* FORCER la visibilité */
    position: static !important; /* FORCER la position */
    font-weight: 400;
}
/* ----- FIN VÉRIFICATION VISIBILITÉ ----- */


/* Colonne Formulaire Améliorée */
.contact-form-wrapper {
     padding: 2.5rem 2rem;
}
.contact-form-wrapper h3 {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

#contactForm .form-control {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 1rem 1.1rem;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#contactForm .form-control::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

#contactForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--form-focus-shadow);
    outline: 0;
    background-color: var(--white);
}

#contactForm .form-floating {
    position: relative;
}
#contactForm .form-floating > label {
    padding: 1rem 1.1rem;
    font-size: 1rem;
    color: #adb5bd;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}
#contactForm .form-floating > .form-control:focus ~ label,
#contactForm .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .75;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary-color);
    background-color: var(--white);
    padding: 0.1rem 0.4rem;
    height: auto;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
}

#contactForm textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

#contactForm #sendMessageButton {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1rem; /* Plus grand */
    padding: 0.9rem 2rem;
    border-radius: 50px; /* Bouton arrondi */
    transition: all 0.35s ease;
    background-image: linear-gradient(to right, var(--primary-color) 0%, #0a58ca 100%); /* Bleu plus profond */
    border: none;
    color: var(--white);
    box-shadow: 0 5px 18px rgba(var(--primary-rgb), 0.25);
    letter-spacing: 0.5px;
}

#contactForm #sendMessageButton:hover {
    background-image: linear-gradient(to right, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
}
#contactForm #sendMessageButton:active {
     transform: translateY(-2px) scale(1);
     box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

#contactForm #sendMessageButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background-image: none;
    background-color: var(--secondary-color);
}

/* Validation Bootstrap Améliorée */
#contactForm.was-validated .form-control:invalid {
     border-color: var(--danger-color);
     padding-right: calc(1.5em + 0.75rem);
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
     background-repeat: no-repeat;
     background-position: right calc(0.375em + 0.1875rem) center;
     background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
#contactForm.was-validated .form-control:invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
#contactForm .invalid-feedback {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--danger-color);
    margin-top: 0.3rem;
}

/* Zone de messages Améliorée */
#formMessages .alert {
    border-radius: var(--border-radius-md);
    padding: 1.1rem 1.3rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}
#formMessages .alert .btn-close {
    padding: 0.75rem 1rem;
    margin-left: auto;
}
#formMessages .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #721c24;
}
#formMessages .alert-success {
    background-color: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0a3622;
}

/* --- Map Section Améliorée --- */
.map-section {
    background-color: var(--light-bg);
    padding: 0 0 6rem 0; /* Pas de padding top si section contact est juste au dessus */
}

.map-section .section-title {
    margin-bottom: 3rem;
}

.map-container {
     overflow: hidden;
     border-radius: var(--border-radius-lg);
     box-shadow: var(--card-shadow);
     border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px; /* Hauteur fixe maintenue */
    border: none;
    filter: grayscale(15%);
    transition: filter 0.4s ease;
}
.map-container:hover iframe {
    filter: grayscale(0%);
}


/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .contact-info-wrapper, .contact-form-wrapper {
         height: auto;
         margin-bottom: 2.5rem; /* Plus d'espace */
     }
     .contact-info-wrapper:last-of-type, .contact-form-wrapper:last-of-type {
        margin-bottom: 0;
     }
     .contact-section, .map-section {
        padding: 4rem 0;
     }
     .page-header-contact {
        padding: 6rem 0 5rem 0;
     }
}

@media (max-width: 767px) {
    .page-header-contact h1 {
         font-size: clamp(2.2rem, 7vw, 2.6rem);
     }
     .section-title {
        font-size: clamp(1.7rem, 5vw, 2rem);
     }
     .contact-info-wrapper, .contact-form-wrapper {
         padding: 2rem 1.5rem;
     }
     .contact-info-wrapper h3, .contact-form-wrapper h3 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
     .page-header-contact {
        padding: 5rem 0 4rem 0;
     }
     .page-header-contact h1 {
         font-size: clamp(2rem, 8vw, 2.3rem);
     }
     .contact-info-wrapper, .contact-form-wrapper {
         padding: 1.8rem 1.2rem;
     }
     .contact-info-wrapper h3, .contact-form-wrapper h3 {
        font-size: 1.5rem;
     }
     .section-title {
        font-size: clamp(1.6rem, 6vw, 1.8rem);
        padding-bottom: 12px;
     }
     .section-title::after {
        width: 60px;
        height: 4px;
     }
     #contactForm .form-control, #contactForm .form-floating > label {
        font-size: 0.95rem;
     }
     #contactForm #sendMessageButton {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
     }
     .contact-info-wrapper .info-item .icon-bg {
        width: 50px;
        height: 50px;
     }
     .contact-info-wrapper .info-item i {
        font-size: 1.3rem;
     }
     .contact-info-wrapper h5 {
        font-size: 1.1rem;
     }
     .contact-info-wrapper .info-item p,
     .contact-info-wrapper .info-item p.text-muted {
        font-size: 0.95rem;
    }
}
