/*
 * Page contact (app/Views/Site/pages/contact.php et contact_success.php)
 * S'appuie sur style/css/accueil.css (classes acc-*).
 */

.ct {
    padding-bottom: 96px;
}

.ct h1 {
    margin: 0;
    font-size: clamp(36px, 4.6vw, 58px);
    line-height: 1.1;
}

.ct-lead {
    margin: 24px 0 0;
    color: #d6d6d6;
    font-size: clamp(16px, 1.4vw, 19px);
}

.ct a:not(.acc-bouton):not(.acc-lien) {
    color: #e783c6;
}

/* ---------- Mise en page : coordonnées + formulaire ---------- */

.ct-page {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: start;
    padding-top: 72px;
}

/* ---------- Coordonnées ---------- */

.ct-coordonnees {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--acc-trait);
}

.ct-coordonnees li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 4px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--acc-trait);
    color: var(--acc-titre);
}

.ct .ct-coordonnees a:not(.acc-lien) {
    color: var(--acc-titre);
    text-decoration: underline;
    text-decoration-color: var(--acc-accent);
    text-underline-offset: 4px;
}

.ct-libelle {
    padding-top: 3px;
    color: var(--acc-accent);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ct-itineraire {
    margin-top: 10px;
    font-size: 12px;
}

.ct-note {
    margin: 28px 0 0;
    font-size: 14px;
}

/* ---------- Formulaire ---------- */

.ct-carte {
    padding: 40px;
    border-top: 2px solid var(--acc-accent);
    background: var(--acc-fond-2);
}

.ct-carte h2 {
    margin-bottom: 28px;
    font-size: clamp(24px, 2.4vw, 30px);
}

.ct-ligne {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.ct-champ {
    margin-bottom: 20px;
}

.ct-champ label {
    display: block;
    margin: 0 0 8px;
    color: var(--acc-titre);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ct-facultatif {
    color: #8d8d8d;
    text-transform: none;
    letter-spacing: 0;
}

.ct-champ input,
.ct-champ select,
.ct-champ textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 2px;
    background: #121212;
    box-shadow: none;
    color: #f3f3f3;
    font-family: inherit;
    font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
    line-height: 1.5;
    transition: border-color .2s;
}

.ct-champ input,
.ct-champ select {
    height: 50px;
}

.ct-champ select {
    appearance: none;
    padding-right: 40px;
    background:
        linear-gradient(45deg, transparent 50%, #bbb 50%) right 20px center / 6px 6px no-repeat,
        linear-gradient(-45deg, transparent 50%, #bbb 50%) right 14px center / 6px 6px no-repeat,
        #121212;
}

.ct-champ select option {
    background: #121212;
    color: #f3f3f3;
}

.ct-champ textarea {
    min-height: 160px;
    resize: vertical;
}

.ct-champ input:focus,
.ct-champ select:focus,
.ct-champ textarea:focus {
    border-color: var(--acc-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 71, 164, .25);
}

.ct-champ [aria-invalid="true"] {
    border-color: #e5686f;
}

.ct-erreur,
.ct-alerte {
    margin: 8px 0 0;
    color: #f08a90;
    font-size: 14px;
}

.ct-alerte {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-left: 2px solid #e5686f;
    background: rgba(229, 104, 111, .1);
}

.ct-envoyer {
    width: 100%;
    cursor: pointer;
}

.ct-envoyer:disabled {
    opacity: .7;
    cursor: wait;
}

.ct-mentions {
    margin: 18px 0 0;
    color: #8d8d8d;
    font-size: 12px;
    line-height: 1.6;
}

/* Le badge reCAPTCHA est remplacé par la mention sous le formulaire (autorisé par Google) */
.grecaptcha-badge {
    visibility: hidden;
}

/* ---------- Page de remerciement ---------- */

.ct-merci {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    min-height: calc(100vh - 260px); /* pas de vide sous le pied de page sur grand écran */
    padding-top: 96px;
    text-align: center;
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 991px) {
    .ct-page {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ct-infos {
        max-width: 640px;
    }
}

/* ---------- Téléphone ---------- */

@media (max-width: 767px) {
    .ct {
        padding-bottom: 64px;
    }

    .ct-page {
        padding-top: 40px;
    }

    .ct-carte {
        margin: 0 -16px;
        padding: 28px 16px;
    }

    .ct-ligne {
        grid-template-columns: 1fr;
    }

    .ct-coordonnees li {
        grid-template-columns: 90px 1fr;
    }

    .ct-merci {
        padding-top: 72px;
    }
}

/* À partir de 768 px, le menu est fixe (80 px de haut) et recouvre le haut de la page */
@media (min-width: 768px) {
    .ct-page {
        padding-top: 152px;
    }

    .ct-merci {
        padding-top: 176px;
    }
}
