/* ==========================================================================
   STYLES: PAGE CONTACT (template-contact.php)
   ========================================================================== */

.contact-page {
    padding-bottom: 6rem;
}

/* --- Style Global des Cartes --- */
.card-style {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* --- 1. Hero Section --- */
.contact-hero {
    background-color: var(--color-primary-accent);
    color: #ffffff;
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-hero .subtitle {
    font-family: var(--font-sans-serif);
    font-size: 1.2rem;
    opacity: 0.9;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .intro-gold {
    color: var(--color-secondary-accent) !important;
    opacity: 1;
    font-weight: bold;
}

/* --- 2. Grille d'Informations (Infos Grid) --- */
.infos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    margin-top: -3rem;
    /* Chevauchement sur le hero (Desktop uniquement) */
    position: relative;
    z-index: 2;
}

.info-card {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: #eeeeee;
}

.icon-circle.purple {
    background-color: rgba(107, 76, 139, 0.1);
    color: var(--color-primary-accent);
}

.icon-circle.green {
    background-color: rgba(163, 177, 138, 0.2);
    color: var(--color-sage-green);
}

.icon-circle.gold {
    background-color: rgba(217, 180, 74, 0.2);
    color: var(--color-secondary-accent);
}

.icon-circle.blue {
    background-color: rgba(44, 62, 80, 0.1);
    color: var(--color-footer-bg);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary-accent);
}

.info-card p,
.info-card .hours-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
}

.hours-note {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* --- 3. Formulaire de Contact --- */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto 6rem;
    padding: 0 1rem;
    /* Empêche le formulaire de toucher les bords sur mobile */
}

.contact-form-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-accent);
}

.form-card-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
    /* CORRECTION CRUCIALE : Empêche le padding d'agrandir la div */
    width: 100%;
}

/* Style des champs (Contact Form 7) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    /* CORRECTION CRUCIALE : Force les inputs à rester dans le conteneur */
    padding: 1rem;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: #fcfcfc;
}

.wpcf7 input[type="submit"] {
    background-color: var(--color-secondary-accent);
    color: var(--color-text-dark);
    font-weight: bold;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    /* Bouton pleine largeur sur mobile, s'adaptera sur desktop */
    max-width: 300px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--color-primary-accent);
    color: #ffffff;
}

/* --- 4. Section Comment nous trouver (Location) --- */
.location-section {
    margin-bottom: 6rem;
}

.section-title-centered {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.transport-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.transport-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.transport-icon {
    font-size: 2rem;
    background: #f8f8f8;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    /* Empêche l'icône de s'écraser */
}

.transport-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.transport-item p {
    margin: 0;
    color: #666666;
}

.map-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
    /* Sécurité pour supprimer les marges fantômes iframe */
}

.map-link {
    margin-top: 1.5rem;
    font-weight: bold;
    text-decoration: underline;
}

/* --- 5. Section Réseaux Sociaux --- */
.social-section {
    margin-bottom: 6rem;
}

.social-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-card h2 {
    margin-bottom: 2rem;
}

.social-links-direct {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Permet le passage à la ligne sur mobile */
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 1.4rem;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.facebook {
    background-color: #1877F2;
}

/* --- 6. Section FAQ --- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details.faq-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

details.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-primary-accent);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cache la flèche native de <details> sur Safari/Chrome */
details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: #555555;
    border-top: 1px solid #f9f9f9;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablettes & Mobiles)
   ========================================================================== */

@media (max-width: 1024px) {
    .infos-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
        /* Annule le chevauchement sur tablette pour plus de sécurité */
    }
}

@media (max-width: 768px) {

    /* Titres */
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form-section h2,
    .section-title-centered {
        font-size: 2rem;
    }

    /* Grilles en 1 colonne */
    .infos-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustement des paddings pour gagner de l'espace */
    .form-card-container {
        padding: 1.5rem;
    }

    .card-style {
        padding: 1.5rem;
    }

    /* Google Map */
    .map-embed iframe {
        min-height: 300px;
    }
}