/* ================================================================
   contact.css — Section Horaires (bleu) + Contact (blanc)
   ================================================================ */

/* ----------------------------------------------------------------
   SVG O partagé (pictos horaires) — réutilisé depuis services
   ---------------------------------------------------------------- */

/* ================================================================
   BANDE HORAIRES — fond bleu
   ================================================================ */
.section-horaires {
    background: #1a3963;
    padding: clamp(28px, 4vw, 48px) 0;
}

.horaires-wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(16px, 4vw, 72px);
}

/* ----------------------------------------------------------------
   Pictos gauche (même SVG O que services)
   ---------------------------------------------------------------- */
.horaires-pictos-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding-bottom: 12px;
}

.horaires-picto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.horaires-picto-circle {
    width: 84px;
    position: relative;
    flex-shrink: 0;
}

.horaires-picto-circle svg {
    display: block;
    width: 100%;
    height: auto;
    fill: #c9a87c;
}

.horaires-picto-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    font-size: .58rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.35;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   Tableau horaires
   ---------------------------------------------------------------- */
.horaires-table-col {
    border-left: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.12);
    padding-top: 4px;
    padding-bottom: 4px;
}

.horaires-title {
    font-size: .88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.4;
}

.horaires-title strong {
    color: #c9a87c;
    font-weight: 800;
}

/* Grille 2 colonnes : 3 jours à gauche, 3 à droite */
.horaires-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 5px;
}

.horaires-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.horaires-day {
    font-size: .73rem;
    font-weight: 700;
    color: #c9a87c;
    min-width: 70px;
    flex-shrink: 0;
}

.horaires-time {
    font-size: .73rem;
    color: rgba(255,255,255,.88);
    line-height: 1.4;
}

.horaires-time-sep {
    color: rgba(255,255,255,.4);
    font-size: .65rem;
    margin: 0 1px;
}

/* ----------------------------------------------------------------
   Téléphone + note RDV
   ---------------------------------------------------------------- */
.horaires-phone-col {
    padding-left: 28px;
}

/* Ligne téléphone + bouton RDV (desktop : téléphone seul, bouton caché) */
.horaires-phone-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.horaires-rdv-btn {
    display: none; /* visible uniquement sur mobile */
    flex-shrink: 0;
    font-size: .68rem;
    padding: 10px 14px;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.horaires-phone-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.horaires-phone-icon {
    width: 28px;
    height: 28px;
    fill: #c9a87c;
    flex-shrink: 0;
}

.horaires-phone {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: .04em;
    line-height: 1;
}

.horaires-phone:hover { color: #c9a87c; }

.horaires-rdv-label {
    font-size: .78rem;
    font-weight: 700;
    color: #c9a87c;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.horaires-rdv-note {
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    line-height: 1.55;
    margin: 0;
    max-width: 280px;
}

/* ================================================================
   SECTION CONTACT — fond blanc
   ================================================================ */
.section-contact {
    background: #1a3963;
    padding: 0 0 clamp(32px, 4vw, 56px);
}

.contact-wrap {
    background: #ffffff;
    padding: clamp(32px, 4vw, 56px) clamp(16px, 4vw, 72px);
    margin: 0 auto clamp(32px, 4vw, 56px);
    max-width: calc(1400px - 2 * clamp(16px, 4vw, 72px));
    border-radius: 16px;
}

/* ----------------------------------------------------------------
   Formulaire
   ---------------------------------------------------------------- */
.contact-form-col {
    padding-right: clamp(16px, 3vw, 40px);
}

.contact-form-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    color: #1a3963;
    margin: 0 0 20px;
}

.cf-row {
    display: flex;
    gap: 12px;
}

.cf-row .cf-field { flex: 1; }

.cf-field {
    margin-bottom: 10px;
}

.cf-field input,
.cf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    font-size: .82rem;
    color: #2c2c3e;
    font-family: var(--font-base);
    background: #f9fafb;
    transition: border-color .2s;
    outline: none;
}

.cf-field input:focus,
.cf-field textarea:focus {
    border-color: #1a3963;
    background: #ffffff;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #9ca3af; }

.cf-field textarea {
    resize: vertical;
    min-height: 96px;
}

/* Select custom */
.cf-select-wrap {
    position: relative;
}

.cf-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    font-size: .82rem;
    font-family: var(--font-base);
    background: #f9fafb;
    color: #9ca3af;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s;
    outline: none;
}
.cf-select-btn.has-value { color: #2c2c3e; }
.cf-select-btn:focus,
.cf-select-btn[aria-expanded="true"] { border-color: #1a3963; background: #ffffff; }

.cf-select-btn svg {
    flex-shrink: 0;
    transition: transform .2s;
}
.cf-select-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.cf-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(26,57,99,.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 100;
    overflow: hidden;
}
.cf-select-wrap.open .cf-select-list { display: block; }

.cf-select-option {
    padding: 10px 14px;
    font-size: .82rem;
    color: #2c2c3e;
    font-family: var(--font-base);
    cursor: pointer;
    transition: background .15s;
}
.cf-select-option:hover,
.cf-select-option.active { background: #f0f4fa; color: #1a3963; }
.cf-select-option.selected { font-weight: 700; color: #1a3963; }

/* Messages succès / erreur */
.cf-messages {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

.cf-messages--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cf-messages--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Ligne code + captcha */
.cf-row-code {
    align-items: center;
}

#capcha {
    width: 200px;
    height: 50px;
    flex-shrink: 0;
    border-bottom: 1px solid #ccc;
}

/* RGPD */
.cf-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 16px;
}

.cf-rgpd input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.cf-rgpd label {
    font-size: .75rem;
    color: #6b7280;
    line-height: 1.5;
    cursor: pointer;
}

.cf-rgpd a { color: #1a3963; font-weight: 700; }

/* Bouton envoyer */
.cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #1a3963;
    color: #ffffff;
    font-family: var(--font-base);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}

.cf-submit:hover { background: #0f2645; }

/* ----------------------------------------------------------------
   Adresse + carte
   ---------------------------------------------------------------- */
.contact-map-col {
    display: flex;
    flex-direction: column;
}

.contact-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-map-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: #1a3963;
    margin: 0 0 6px;
}

.contact-address {
    font-size: .85rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.contact-cta {
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: .72rem;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.contact-map-embed {
    flex: 1;
    min-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef0f3;
}

.contact-map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: none;
    display: block;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .horaires-table-col {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,.12);
        border-bottom: 1px solid rgba(255,255,255,.12);
        padding-top: 16px;
        padding-bottom: 16px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .horaires-pictos-col {
        flex-direction: row;
        justify-content: center;
    }

    .horaires-phone-col {
        padding-left: var(--gutter-half);
        text-align: center;
    }

    .horaires-phone-wrap {
        justify-content: center;
    }

    .horaires-rdv-note {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .cf-row:not(.cf-row-code) {
        flex-direction: column;
        gap: 0;
    }

    .horaires-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
    }

    .horaires-row  { gap: 1px; }
    .horaires-day  { font-size: .62rem; min-width: 52px; }
    .horaires-time { font-size: .55rem; }
    .horaires-time-sep { font-size: .50rem; }

    /* Bouton RDV visible sur mobile à côté du téléphone */
    .horaires-rdv-btn {
        display: inline-flex;
    }

    .horaires-phone-col {
        margin-top: 20px;
        text-align: left;
    }

    .horaires-phone-wrap {
        justify-content: flex-start;
    }

    .horaires-phone-row {
        margin-bottom: 0;
    }

    /* Cacher le bouton rouge dans l'en-tête de la carte */
    #contact-cta {
        display: none;
    }

    /* Inverser l'ordre map / formulaire sur mobile */
    .contact-map-col {
        order: -1;
    }

    .contact-form-col {
        padding-right: var(--gutter-half);
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .contact-map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cf-submit {
        width: 100%;
    }
}
