/* MCC 2026 — Page contact (section mcc_contact).
   Vue : resources/views/visitors/cms-sections/mcc_contact.blade.php
   Chargée par la section elle-même (@push styles), pas par mcc2026-head. */

.mcc2026 .m-ct {
    --ct-line: var(--site-border, #e6e3dc);
    --ct-field: var(--site-surface, #ffffff);
    --ct-muted: var(--site-muted, #6b7280);
    --ct-pink: #fbe9e9;
    position: relative;
    background: var(--m-canvas, #fbfaf6);
    color: var(--m-ink);
    padding-top: 72px; /* barre d'en-tête fixe */
    overflow: hidden;
}
/* Page sans hero sombre : la barre fixe passe en bleu nuit plein (même rendu
   que `.mcc-hd.is-solid` / `.is-scrolled`) pour rester lisible sur le fond clair. */
body:has(.mcc2026 .m-ct) .mcc-hd { background: var(--m-navy); box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.mcc2026 .m-ct__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(calc(100vh - 72px), 860px);
    padding-left: max(var(--m-gutter), calc((100vw - var(--m-container)) / 2 + var(--m-gutter)));
}
.mcc2026 .m-ct--nophoto .m-ct__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding-right: max(var(--m-gutter), calc((100vw - var(--m-container)) / 2 + var(--m-gutter))); }

/* ── Colonne formulaire ─────────────────────────────────────────── */
.mcc2026 .m-ct__main {
    padding: clamp(3rem, 2rem + 3vw, 5rem) clamp(1.5rem, 1rem + 2.5vw, 3.5rem) clamp(3rem, 2rem + 3vw, 5rem) 0;
    border-right: 1px solid var(--ct-line);
    min-width: 0;
}
.mcc2026 .m-ct__eyebrow {
    display: inline-flex; align-items: center; gap: 0.8rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--m-navy);
}
.mcc2026 .m-ct__eyebrow::before { content: ''; width: 1.8rem; height: 2px; background: var(--m-red); }
.mcc2026 .m-ct__title {
    margin: 1.1rem 0 0;
    font-family: var(--m-font-display); font-weight: 700;
    font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em;
    color: var(--m-navy);
}
.mcc2026 .m-ct__title span { display: block; }
.mcc2026 .m-ct__lead { margin: 1.1rem 0 0; max-width: 34rem; font-size: 0.98rem; line-height: 1.65; color: var(--ct-muted); }

.mcc2026 .m-ct__errors { margin-top: 1.5rem; padding: 0.85rem 1rem; border: 1px solid #fca5a5; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 0.85rem; }
.mcc2026 .m-ct__errors ul { margin: 0; padding-left: 1rem; }

.mcc2026 .m-ct__form { margin-top: 2.2rem; display: grid; gap: 1.25rem; }
.mcc2026 .m-ct__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mcc2026 .m-ct__field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.mcc2026 .m-ct__field label { font-size: 0.8rem; font-weight: 600; color: var(--m-navy); }
.mcc2026 .m-ct__field label span { color: var(--m-red); }
.mcc2026 .m-ct__field input,
.mcc2026 .m-ct__field select,
.mcc2026 .m-ct__field textarea {
    width: 100%; min-width: 0; box-sizing: border-box;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--ct-line); border-radius: 6px;
    background: var(--ct-field);
    font: inherit; font-size: 0.9rem; color: var(--m-ink);
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.mcc2026 .m-ct__field select {
    appearance: none; -webkit-appearance: none;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center;
}
.mcc2026 .m-ct__field select:invalid { color: #9ca3af; }
.mcc2026 .m-ct__field select option { color: var(--m-ink); }
.mcc2026 .m-ct__field input::placeholder,
.mcc2026 .m-ct__field textarea::placeholder { color: #9ca3af; }
.mcc2026 .m-ct__field input:focus,
.mcc2026 .m-ct__field select:focus,
.mcc2026 .m-ct__field textarea:focus { border-color: var(--m-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-red, #cc0000) 8%, transparent); }
.mcc2026 .m-ct__field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.mcc2026 .m-ct__phone { display: flex; min-width: 0; }
.mcc2026 .m-ct__phone select { flex: 0 0 5.6rem; width: 5.6rem; border-radius: 6px 0 0 6px; border-right: 0; }
.mcc2026 .m-ct__phone input { flex: 1 1 auto; border-radius: 0 6px 6px 0; }

.mcc2026 .m-ct__submit {
    justify-self: start;
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.95rem 1.7rem;
    border: 0; border-radius: var(--site-radius-btn, 6px);
    background: var(--m-red); color: #fff;
    font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.mcc2026 .m-ct__submit:hover { background: var(--m-red-dark, #a30000); transform: translateY(-1px); }
.mcc2026 .m-ct__submit svg { width: 1.1rem; height: 1.1rem; }
.mcc2026 .m-ct__legal { margin: 0; max-width: 36rem; font-size: 0.74rem; line-height: 1.55; color: #9ca3af; }
.mcc2026 .m-ct__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mcc2026 .m-ct__legal a:hover { color: var(--m-red); }

/* ── Colonne coordonnées ────────────────────────────────────────── */
.mcc2026 .m-ct__info {
    padding: clamp(3rem, 2rem + 3vw, 5rem) clamp(1.25rem, 0.8rem + 1.6vw, 2.5rem);
    display: flex; flex-direction: column; gap: 1.9rem;
    min-width: 0;
}
.mcc2026 .m-ct__item { display: flex; gap: 1rem; align-items: flex-start; }
.mcc2026 .m-ct__icon {
    flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: var(--ct-pink); color: var(--m-red);
}
.mcc2026 .m-ct__icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 1.8; }
.mcc2026 .m-ct__item > div { min-width: 0; padding-top: 0.15rem; }
.mcc2026 .m-ct__item h2,
.mcc2026 .m-ct__more h2 { margin: 0 0 0.4rem; font-family: var(--m-font-display); font-size: 1rem; font-weight: 700; color: var(--m-navy); }
.mcc2026 .m-ct__item a,
.mcc2026 .m-ct__item p { display: block; margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--m-ink); text-decoration: none; overflow-wrap: break-word; }
.mcc2026 .m-ct__item a[href^="mailto:"] { font-size: 0.86rem; overflow-wrap: anywhere; }
.mcc2026 .m-ct__item a:hover { color: var(--m-red); }
.mcc2026 .m-ct__item small { display: block; margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.45; color: var(--ct-muted); }
.mcc2026 .m-ct__item a.m-ct__map { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--m-red); }
.mcc2026 .m-ct__map svg { width: 0.95rem; height: 0.95rem; transition: transform 0.2s; }
.mcc2026 .m-ct__map:hover svg { transform: translateX(3px); }

.mcc2026 .m-ct__more { margin-top: 0.3rem; padding-top: 1.9rem; border-top: 1px solid var(--ct-line); }
.mcc2026 .m-ct__more h2 { margin-bottom: 0.6rem; }
.mcc2026 .m-ct__more ul { margin: 0; padding: 0; list-style: none; }
.mcc2026 .m-ct__more li + li { border-top: 1px solid var(--ct-line); }
.mcc2026 .m-ct__more a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.95rem 0;
    font-size: 0.88rem; color: var(--m-ink); text-decoration: none;
}
.mcc2026 .m-ct__more a svg { flex: none; width: 1rem; height: 1rem; color: var(--m-red); transition: transform 0.2s; }
.mcc2026 .m-ct__more a:hover { color: var(--m-red); }
.mcc2026 .m-ct__more a:hover svg { transform: translateX(3px); }

/* ── Colonne photo + citation ───────────────────────────────────── */
.mcc2026 .m-ct__visual { position: relative; min-height: 24rem; display: flex; align-items: flex-end; }
.mcc2026 .m-ct__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcc2026 .m-ct__visual::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--m-canvas, #fbfaf6) 0%, color-mix(in srgb, var(--m-canvas, #fbfaf6) 55%, transparent) 22%, transparent 48%);
}
.mcc2026 .m-ct__quote {
    position: relative; z-index: 2;
    margin: 0 clamp(1rem, 0.5rem + 1.5vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 3rem) clamp(0.5rem, 0.2rem + 1vw, 1.25rem);
    padding: 1.6rem 1.7rem 1.5rem;
    width: 100%;
    background: var(--site-surface, #fff); border-radius: 6px;
    box-shadow: 0 18px 40px -20px rgba(0, 7, 29, 0.35);
}
.mcc2026 .m-ct__quote-mark { display: block; height: 2.1rem; font-family: Georgia, 'Times New Roman', serif; font-size: 4rem; line-height: 1; color: var(--m-red); }
.mcc2026 .m-ct__quote blockquote {
    margin: 0.4rem 0 0;
    font-size: 1rem; font-style: italic; line-height: 1.55; color: var(--m-navy);
}
.mcc2026 .m-ct__quote blockquote::after { content: ''; display: block; width: 2.2rem; height: 2px; margin-top: 1rem; background: var(--m-red); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mcc2026 .m-ct__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding-right: 0; }
    .mcc2026 .m-ct__visual { grid-column: 1 / -1; margin-left: calc(-1 * max(var(--m-gutter), calc((100vw - var(--m-container)) / 2 + var(--m-gutter)))); min-height: 26rem; justify-content: center; }
    .mcc2026 .m-ct__visual::before { background: linear-gradient(180deg, var(--m-canvas, #fbfaf6) 0%, transparent 30%); }
    .mcc2026 .m-ct__quote { max-width: 34rem; margin-inline: var(--m-gutter); }
}
@media (max-width: 760px) {
    .mcc2026 .m-ct__grid { grid-template-columns: minmax(0, 1fr); padding-inline: var(--m-gutter); }
    .mcc2026 .m-ct__main { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--ct-line); }
    .mcc2026 .m-ct__info { padding-inline: 0; }
    .mcc2026 .m-ct__visual { margin-inline: calc(-1 * var(--m-gutter)); min-height: 22rem; }
    .mcc2026 .m-ct__row { grid-template-columns: minmax(0, 1fr); }
    .mcc2026 .m-ct__submit { justify-self: stretch; justify-content: center; }
}

/* Case de consentement (CGU + loi 18-07) sous le formulaire : encadré jaune
   pâle, liens rouges. */
.mcc2026 .m-ct__consent { margin: 0.4rem 0 1.25rem !important; padding: 1rem 1.1rem; border: 1px solid #f5d98a; border-radius: 10px; background: #fff8e6; color: #1f2937; }
.mcc2026 .m-ct__consent a { color: var(--m-red, #cc0000) !important; }
.mcc2026 .m-ct__consent label { align-items: flex-start !important; }
.mcc2026 .m-ct__consent input[type="checkbox"] { margin-top: 0.2rem; }

.mcc2026 .m-ct__submit { border-radius: var(--m-radius-btn, 6px); }

/* Visiteur connecté (2026-10-04) : coordonnées verrouillées. */
.mcc2026 .m-ct__field input.m-ct__locked { background: var(--site-canvas, #f3f4f6); color: var(--site-muted, #4b5563); cursor: not-allowed; }
.mcc2026 .m-ct__locked-note { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0.65rem 0.85rem;
    border-radius: 8px; background: var(--site-canvas, #f1f5f9); color: var(--site-ink, #334155); font-size: 0.85rem; }
.mcc2026 .m-ct__locked-note svg { width: 16px; height: 16px; flex: none; }
