/* ============================================================
   Page Contact — couche moderne & mobile-first
   Surcouche de styles.css (chargée après via pageCss).
   ============================================================ */

/* ---------- Hero atmosphérique ---------- */
.ctc-hero { padding-top: clamp(6.5rem, 12vh, 10rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.ctc-hero__bg img { opacity: 0.34; }
.ctc-hero__veil {
    background:
        radial-gradient(70% 80% at 88% 12%, rgba(124,59,70,0.55), transparent 58%),
        radial-gradient(60% 70% at 6% 96%, rgba(124,59,70,0.4), transparent 60%),
        linear-gradient(180deg, rgba(18,15,11,0.42), rgba(18,15,11,0.92));
}
.ctc-hero__title { text-wrap: balance; }
.ctc-hero__lead { text-wrap: pretty; }

/* Pills d'accès rapide — verre dépoli, tactiles */
.ctc-hero__actions { gap: 0.6rem; margin-top: 2.2rem; }
.ctc-quick {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(247,241,232,0.2);
}
.ctc-quick span { white-space: nowrap; }
.ctc-quick--accent { box-shadow: 0 14px 30px -14px rgba(124,59,70,0.9); }

/* ---------- Feuille de contenu qui remonte sur le hero ---------- */
.ctc-body {
    position: relative;
    z-index: 2;
    margin-top: -2.2rem;
    background: var(--paper);
    border-radius: 26px 26px 0 0;
    padding-top: clamp(2.2rem, 5vw, 3.4rem);
    box-shadow: 0 -24px 50px -40px rgba(22,19,15,0.5);
}
.ctc-body::before {
    content: "";
    position: absolute;
    top: 0.75rem; left: 50%;
    transform: translateX(-50%);
    width: 46px; height: 4px;
    border-radius: 100px;
    background: var(--line);
}

/* ---------- Formulaire ---------- */
.ctc-form { border-radius: 20px; }
.ctc-form__title { letter-spacing: -0.01em; }

/* Motifs : plus tactiles + état sélectionné marqué */
.reason-chip span { min-height: 46px; padding: 0.65rem 1.1rem; }
.reason-chip input:checked + span {
    box-shadow: 0 10px 22px -12px rgba(124,59,70,0.8);
    transform: translateY(-1px);
}
.reason-chip span { transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }

/* ---------- Colonne latérale : cohésion visuelle ---------- */
.ctc-side { gap: 1rem; }
.ctc-map { aspect-ratio: 16 / 11; }
.ctc-map iframe { min-height: 240px; }

/* ============================================================
   RESPONSIVE — mobile-first, cibles tactiles confortables
   ============================================================ */

/* Tablette : la colonne latérale passe sous le formulaire */
@media (max-width: 939px) {
    .ctc-side { margin-top: 0.4rem; }
    .ctc-map { aspect-ratio: 16 / 10; }
}

/* Grand téléphone */
@media (max-width: 620px) {
    .ctc-hero { padding-bottom: clamp(3rem, 12vw, 4.5rem); }
    .ctc-hero__actions { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
    .ctc-quick { width: 100%; justify-content: center; }
    .ctc-body { margin-top: -1.6rem; border-radius: 22px 22px 0 0; }
    .ctc-form { padding: 1.3rem 1.15rem; }
    .cform__row { gap: 0; }
    .cform-trust { gap: 0.4rem 0.9rem; }
    .cform-trust li { font-size: 0.76rem; }
    .reason-chips { gap: 0.45rem; }
    .reason-chip span { font-size: 0.86rem; }
    /* Consentement plus aéré sur mobile */
    .cform-consent { flex-direction: column; gap: 0.85rem; padding: 1.1rem; }
    .cform-consent__ic { width: 2.3rem; height: 2.3rem; }
    /* Contact direct & coordonnées : padding confort */
    .ctc-person, .ctc-coords, .ctc-cta { padding: 1.25rem 1.15rem; }
    .ctc-person__name { font-size: 1.35rem; }
    .ctc-person__callnum b { font-size: 1.1rem; }
}

/* Petit téléphone */
@media (max-width: 400px) {
    .ctc-hero__title { font-size: clamp(2.1rem, 8vw, 2.6rem); }
    .ctc-person__head { gap: 0.75rem; }
    .ctc-person__avatar { width: 2.9rem; height: 2.9rem; font-size: 1.1rem; }
    .ctc-coord { padding: 0.75rem; }
    .ctc-coord__ic { width: 2.2rem; height: 2.2rem; }
}

/* Confort tactile : pas d'effets de survol « collants » sur écrans tactiles */
@media (hover: none) {
    .ctc-quick:hover, .reason-chip span:hover, .ctc-coord:hover, .salle-card:hover { transform: none; }
}

/* ============================================================
   Bloc consentement RGPD — refonte (surcharge styles.css)
   ============================================================ */
.cform-consent {
    display: block;                       /* annule l'ancien flex-row */
    margin: 1.6rem 0 1.3rem;
    padding: 1.3rem;
    background: linear-gradient(180deg, var(--paper-2), #fff);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.cform-consent__head {
    display: flex; align-items: flex-start; gap: 0.85rem;
    margin-bottom: 1.05rem; padding-bottom: 1.05rem;
    border-bottom: 1px solid var(--line);
}
.cform-consent__ic {
    flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--accent-tint); color: var(--accent-deep); border: none;
}
.cform-consent__ic .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.cform-consent__headtxt { display: flex; flex-direction: column; gap: 0.2rem; }
.cform-consent__title { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.cform-consent__sub { font-size: 0.82rem; line-height: 1.5; color: var(--muted); }

/* Cases présentées en cartes cliquables */
.cform-consent .ccheck {
    align-items: flex-start; gap: 0.75rem; margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cform-consent .ccheck + .ccheck { margin-top: 0.6rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.cform-consent .ccheck:hover { border-color: var(--accent); }
.cform-consent .ccheck:has(input:checked) {
    border-color: var(--accent); background: #fdf6f4;
    box-shadow: 0 10px 24px -16px rgba(124,59,70,0.7);
}
.ccheck__text { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.cform-consent .ccheck--soft .ccheck__text { color: var(--muted); }

/* Badges Obligatoire / Facultatif en fin de ligne */
.ccheck__req, .ccheck__opt {
    display: inline-block; margin-left: 0.5rem; vertical-align: 0.06em;
    padding: 0.1rem 0.5rem; border-radius: 100px;
    font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.ccheck__req { background: var(--accent); color: #fff; }
.ccheck__opt { background: var(--paper-3); color: var(--muted); }

/* Note des droits : texte fluide (plus de flex qui casse le fil) */
.cform-consent__rights {
    display: block; margin: 1rem 0 0; padding-top: 0.95rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem; line-height: 1.6; color: var(--muted-2);
}
.cform-consent__rights a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* Mobile : en-tête et cases plus compacts */
@media (max-width: 620px) {
    .cform-consent { flex-direction: column; padding: 1.1rem; }
    .cform-consent__head { gap: 0.7rem; }
    .cform-consent__ic { width: 2.3rem; height: 2.3rem; }
    .ccheck__text { font-size: 0.88rem; }
}

/* ============================================================
   Contact — en-tête formulaire modernisé + consentement soigné (v2)
   ============================================================ */

/* En-tête : plus de liseré plat, un eyebrow + divise + pills de confiance */
.ctc-form::before { display: none; }
.ctc-form__head {
    margin-bottom: 1.5rem; padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--line);
}
.ctc-form__eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    margin: 0 0 0.75rem;
    font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.ctc-form__eyebrow span { width: 22px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.ctc-form__sub { margin-top: 0.55rem; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

.cform-trust { gap: 0.5rem; margin-top: 1.15rem; }
.cform-trust li {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid var(--line); border-radius: 100px;
    background: var(--paper-2);
    font-size: 0.76rem; font-weight: 500; color: var(--ink-2);
}
.cform-trust li .icon { width: 14px; height: 14px; color: var(--accent); }

/* Consentement : badge sur sa propre ligne, bien aéré du texte */
.cform-consent .ccheck { align-items: flex-start; gap: 0.9rem; padding: 1.05rem 1.1rem; }
.cform-consent .ccheck + .ccheck { margin-top: 0.85rem; }
/* La case facultative suit un <p class="field__msg"> (masqué) : on force la marge. */
.cform-consent .ccheck--soft { margin-top: 0.85rem; }
.ccheck__body { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.ccheck__text { font-size: 0.9rem; line-height: 1.6; color: var(--ink-2); }
.cform-consent .ccheck--soft .ccheck__text { color: var(--muted); }
.ccheck__tag {
    align-self: flex-start;
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.65rem; border-radius: 100px;
    font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.1;
}
.ccheck__tag--req { background: var(--accent); color: #fff; }
.ccheck__tag--opt { background: #fff; color: var(--muted); border: 1px solid var(--line); }

/* Aligne la coche avec la 1re ligne (le badge) */
.cform-consent .ccheck .ccheck__box { margin-top: 0.05rem; }
