/**
 * Styles pour la page Contact
 * Chauffage Compare - Contact Page
 */

/* Variables globales (déjà définies dans le thème) */
/* --primary, --secondary, --tertiary, --black, --white */
/* --font-family, --radius, --radius-12, --radius-16 */

/* ==========================================================================
   HERO CONTACT
   ========================================================================== */

.section-hero-contact .hero-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-hero-contact .sous-titre {
    font-size: 20px;
    line-height: 1.6;
    color: var(--black);
    opacity: 0.85;
    margin: 0;
    font-weight: 500;
}

.section-hero-contact .hero-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--black);
    margin: 15px 0;
    text-align: left;
    background: var(--white);
    padding: 30px 40px;
    border-radius: var(--radius-12);
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary);
}

.section-hero-contact .hero-description p {
    margin: 18px 0;
}

.section-hero-contact .hero-description p:last-child {
    margin-bottom: 0;
}

.section-hero-contact .hero-description strong {
    color: var(--primary);
    font-weight: 700;
}

.section-hero-contact .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.section-hero-contact .cta-buttons .btn {
    min-width: 220px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-12);
    transition: all 0.3s ease;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.section-hero-about .cta-buttons .btn-primary {
    background: var(--tertiary);
    color: var(--primary);
}

.section-hero-about .cta-buttons .btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0px 6px 20px rgba(239, 180, 71, 0.3);
}

.section-hero-about .cta-buttons .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.section-hero-about .cta-buttons .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0px 6px 20px rgba(21, 41, 61, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .section-hero-about {
        padding: 60px 0;
    }

    .section-hero-about h1 {
        font-size: 36px;
    }

    .section-hero-about .sous-titre {
        font-size: 18px;
    }

    .section-hero-about .hero-description {
        padding: 25px 20px;
        font-size: 16px;
    }

    .section-hero-about .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-hero-about .cta-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}



/* ==========================================================================
   SECTION FORMULAIRE INTERFAST
   ========================================================================== */

.section-formulaire-interfast {
    padding: 60px 0;
    background: var(--white);
}

/* Layout avec sidebar */
.contact-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Conteneur iframe Interfast */
.interfast-iframe-container {
    background: var(--white);
    border-radius: var(--radius-16);
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}

.interfast-iframe-container iframe {
    display: block;
    width: 100%;
    border: none;
    height: 1000px;
    transition: opacity 0.3s ease;
}

.interfast-iframe-container iframe.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Sidebar Interfast */
.contact-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-16);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--tertiary);
}

.sidebar-title {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.sidebar-desc {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Boutons de sélection de formulaire */
.contact-sidebar .interfast-trigger {
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.interfast-trigger .btn-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interfast-trigger .btn-icon svg {
    width: 20px;
    height: 20px;
}

.interfast-trigger:last-of-type {
    margin-bottom: 0;
}

.interfast-trigger:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.interfast-trigger:hover .btn-icon {
    transform: scale(1.1);
}

.interfast-trigger.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Coordonnées de contact dans la sidebar */
.contact-coordinates {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--tertiary);
}

.contact-coordinates-title {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-coordinates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.contact-item a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   SECTION CARTE D'INTERVENTION
   ========================================================================== */

.section-carte-intervention {
    padding: 60px 0;
    background: var(--white);
}

.map-wrapper {
    margin: 30px 0;
}

.leaflet-map {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-12);
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Override Leaflet default styles */
.leaflet-map .leaflet-popup-content-wrapper {
    border-radius: var(--radius);
}

.leaflet-map .leaflet-popup-content {
    margin: 15px;
    font-family: var(--font-family);
}

/* Attribution Leaflet */
.leaflet-map .leaflet-control-attribution {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
}

/* Section communes */
.communes-section {
    margin-top: 40px;
}

.communes-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.communes-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.commune-tag {
    padding: 8px 16px;
    background: var(--tertiary);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--black);
    transition: all 0.2s ease;
}

.commune-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.commune-note {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
}

.commune-note a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.commune-note a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
    .contact-with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .interfast-iframe-container iframe {
        height: 800px;
    }
}

@media (max-width: 576px) {
    .section-hero-contact,
    .section-formulaire-interfast,
    .section-carte-intervention {
        padding: 40px 0;
    }

    .interfast-iframe-container iframe {
        height: 700px;
    }

    .sidebar-sticky {
        padding: 20px;
    }

    .interfast-trigger {
        padding: 14px 16px;
        font-size: 14px;
    }

    .contact-coordinates {
        margin-top: 20px;
        padding-top: 20px;
    }

    .communes-tags {
        justify-content: center;
    }

    .acf-map {
        height: 350px;
    }
}
