/* contact.css — extrait de contact.html */
        /* ============================================================
           Page Contact — styles dédiés (préfixe ct-)
           Réutilise les variables CSS et composants du site.
           ============================================================ */

        /* --- Défilement fluide vers le formulaire --- */
        html {
            scroll-behavior: smooth;
        }

        #form-container {
            scroll-margin-top: 120px;
        }

        /* --- Champ obligatoire : astérisque rouge --- */
        .ct-req {
            color: var(--error, #c0392b);
        }

        .ct-form-label .ct-req {
            margin-left: 0.15rem;
        }

        /* --- Mention "Champs obligatoires" --- */
        .ct-required-note {
            font-size: 0.8rem;
            color: var(--on-surface-variant);
            opacity: 0.85;
            margin-top: 0.5rem;
            margin-bottom: 1.25rem;
            text-align: left;
        }

        .ct-required-note .ct-req {
            color: var(--error, #c0392b);
        }

        /* --- Message d'erreur champ téléphone (validation client) --- */
        .ct-field-error {
            display: none;
            font-size: 0.82rem;
            line-height: 1.4;
            color: var(--error, #c0392b);
            margin-top: 0.35rem;
        }

        .ct-field-error.is-visible {
            display: block;
        }

        /* --- Zone de statut sous le bouton (état d'envoi / erreur) --- */
        .ct-form-status {
            display: none;
            margin-top: 1rem;
            padding: 0.85rem 1rem;
            border-radius: var(--radius-md);
            font-size: 0.9rem;
            line-height: 1.55;
            color: var(--error, #c0392b);
            background-color: var(--surface-container-low);
            border: 1px solid var(--outline-variant);
            max-width: 100%;
            box-sizing: border-box;
            overflow-wrap: break-word;
            word-break: break-word;
            text-align: left;
        }

        .ct-form-status.is-visible {
            display: block;
        }

        .ct-form-status .ct-form-status__contact {
            display: block;
            margin-top: 0.35rem;
            font-size: 0.85rem;
            opacity: 0.9;
        }

        /* --- Champs du formulaire : hauteur confortable (>= 48px) --- */
        .ct-form .form-control {
            min-height: 48px;
            font-size: 1rem;
            width: 100%;
            box-sizing: border-box;
        }

        .ct-form textarea.form-control {
            min-height: 48px;
        }

        /* --- Consentement : case facilement cliquable --- */
        .ct-consent {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        .ct-consent input[type="checkbox"] {
            margin-top: 0.25rem;
            accent-color: var(--primary);
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .ct-consent label {
            font-size: 0.88rem;
            line-height: 1.5;
            color: var(--on-surface-variant);
            cursor: pointer;
        }

        .ct-consent a {
            color: var(--primary);
            text-decoration: underline;
        }

        /* --- Bouton d'envoi --- */
        .ct-submit {
            width: 100%;
            min-height: 52px;
            margin-top: 1.25rem;
            font-size: 1rem;
        }

        /* --- Réassurance discrète avant le formulaire --- */
        .ct-reassurance {
            margin: -0.25rem 0 1rem;
            font-size: 0.82rem;
            line-height: 1.5;
            color: var(--on-surface-variant);
            opacity: 0.85;
        }

        /* Ordre des colonnes de la grille Contact (classes ct-).
           Le DOM place le formulaire en premier (ordre logique pour
           l'accessibilité : navigation clavier, lecteurs d'écran).
           Sur desktop (grille 2 colonnes), on recompose visuellement
           l'ordre d'origine : Localisation à gauche, Formulaire à droite.
           Dès que la grille passe en une seule colonne (<= 992px, cf.
           style.css), l'ordre naturel du DOM s'applique :
           Formulaire -> Localisation -> Carte. */
        .contact-grid-layout .ct-col-form {
            order: 2;
        }

        .contact-grid-layout .ct-col-localisation {
            order: 1;
        }

        /* Dès que la grille passe en une seule colonne (<= 992px, cf.
           style.css), on revient à l'ordre naturel du DOM :
           Formulaire -> Localisation -> Carte. */
        @media (max-width: 992px) {

            .contact-grid-layout .ct-col-form,
            .contact-grid-layout .ct-col-localisation {
                order: 0;
            }
        }

        /* --- Responsive mobile --- */
        @media (max-width: 768px) {
            .ct-form {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                min-width: 0;
                overflow: visible;
            }

            .ct-form .form-group {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                min-width: 0;
            }

            /* Le bouton flottant "Cookies" (position: fixed, en bas à
               gauche) ne doit jamais recouvrir le formulaire sur mobile. */
            .cookie-trigger-btn {
                display: none;
            }
        }

        @media (max-width: 576px) {
            .ct-form {
                padding: 1.25rem 1rem;
            }

            .ct-form .form-label {
                font-size: 0.85rem;
            }

            /* Espace inférieur suffisant après le bouton, notamment sur iPhone */
            .ct-form form {
                padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
            }
        }

        /* ============================================================
           État d'envoi (préfixe ct-sending-)
           Affiché pendant la transmission de la demande : spinner doré
           animé avec cœur bleu, message rassurant. Le formulaire reste
           visible mais est estompé et non interactif (aria-busy).
           ============================================================ */
        .ct-sending {
            margin: 1.25rem 0 0;
            padding: 0;
            border-radius: var(--radius-lg);
            border: 1px solid var(--outline-variant);
            background-color: var(--surface-container-lowest);
            box-shadow: var(--shadow-ambient);
            max-width: 100%;
            box-sizing: border-box;
        }

        .ct-sending__inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 2rem 1.5rem;
            gap: 0.9rem;
        }

        .ct-sending__spinner {
            position: relative;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ct-sending__spinner-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 4px solid rgba(197, 160, 89, 0.22);
            border-top-color: #C5A059;
            animation: ct-spin 0.9s linear infinite;
        }

        .ct-sending__spinner-core {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background-color: #1A2F4C;
        }

        .ct-sending__text {
            margin: 0;
            font-family: var(--font-display);
            font-size: 1.15rem;
            line-height: 1.35;
            color: var(--secondary);
        }

        .ct-sending__sub {
            margin: 0;
            font-size: 0.88rem;
            line-height: 1.5;
            color: var(--on-surface-variant);
            opacity: 0.85;
        }

        @keyframes ct-spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* --- Formulaire estompé et non interactif pendant l'envoi --- */
        .ct-form.is-sending {
            opacity: 0.55;
            pointer-events: none;
        }

        /* --- Transition subtile vers l'écran de succès --- */
        .ct-success.is-entering {
            animation: ct-success-in 0.3s ease-out;
        }

        @keyframes ct-success-in {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- Accessibilité : réduire les animations si demandé --- */
        @media (prefers-reduced-motion: reduce) {
            .ct-sending__spinner-ring {
                animation: none;
            }

            .ct-success.is-entering {
                animation: none;
            }
        }

        /* ============================================================
           Écran de confirmation (préfixe ct-success-)
           Affiché après un envoi réussi. Carte premium desktop/tablette,
           compacte sur mobile (image masquée).
           ============================================================ */

        .ct-success {
            margin: 0;
            padding: 0;
            border-radius: var(--radius-xl);
            border: 1px solid var(--outline-variant);
            background-color: var(--surface-container-lowest);
            box-shadow: var(--shadow-ambient);
            overflow: hidden;
            max-width: 100%;
            box-sizing: border-box;
        }

        .ct-success__inner {
            display: flex;
            flex-direction: column;
            padding: 2.5rem 2.75rem 2.75rem;
            gap: 1.05rem;
        }

        .ct-success__icon {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background-color: var(--primary-container);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .ct-success__icon svg {
            width: 26px;
            height: 26px;
            stroke-width: 2.5;
        }

        .ct-success__eyebrow {
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            font-weight: 600;
            color: var(--primary);
            margin-top: -0.35rem;
        }

        .ct-success__media {
            border-radius: var(--radius-lg);
            overflow: hidden;
            height: 200px;
            margin: 0.35rem 0 0.15rem;
        }

        .ct-success__media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .ct-success__title {
            font-family: var(--font-display);
            font-size: 1.85rem;
            line-height: 1.28;
            color: var(--secondary);
            margin: 0;
            max-width: 20ch;
        }

        .ct-success__text {
            font-size: 1rem;
            line-height: 1.7;
            color: var(--on-surface-variant);
            margin: 0;
            max-width: 52ch;
        }

        .ct-success__meta {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-top: 0.35rem;
            padding-top: 1rem;
            border-top: 1px solid var(--outline-variant);
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--secondary);
        }

        .ct-success__meta svg {
            flex-shrink: 0;
            color: var(--primary);
        }

        .ct-success__actions {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
            margin-top: 0.6rem;
        }

        .ct-success__actions .btn {
            min-height: 50px;
            padding: 0.9rem 1.75rem;
            font-size: 0.98rem;
            width: 100%;
            justify-content: center;
        }

        .ct-success__home-link {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--primary);
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s ease, color 0.2s ease;
            align-self: center;
            padding: 0.25rem 0.5rem;
        }

        .ct-success__home-link:hover {
            color: var(--secondary);
            border-bottom-color: var(--primary);
        }

        /* --- Tablette : même logique verticale, espacements ajustés --- */
        @media (max-width: 992px) {
            .ct-success__inner {
                padding: 2.25rem 2.25rem 2.5rem;
            }

            .ct-success__media {
                height: 220px;
            }
        }

        /* --- Mobile : compact, image conservée si élégante --- */
        @media (max-width: 576px) {
            .ct-success__inner {
                padding: 1.75rem 1.4rem 2rem;
                gap: 0.9rem;
            }

            .ct-success__title {
                font-size: 1.5rem;
            }

            .ct-success__media {
                height: 170px;
            }

            .ct-success__actions .btn {
                min-height: 48px;
            }
        }

        /* ============================================================
           Carte Google Maps (iframe Google Maps Embed — sans API ni clé)
           ============================================================ */
        .ct-map-wrap {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .ct-google-map {
            display: block;
            width: 100%;
            height: 400px;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid var(--outline-variant);
            box-shadow: var(--shadow-ambient);
            background: var(--surface-container-low);
        }

        .ct-map-consent {
            position: relative;
            display: flex;
            min-height: 400px;
            padding: 2rem;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: 18px;
            border: 1px solid var(--outline-variant);
            background: var(--surface-container-low);
            box-shadow: var(--shadow-ambient);
            box-sizing: border-box;
            overflow: hidden;
            isolation: isolate;
        }

        /* Aperçu flouté de la vraie carte en arrière-plan, pour donner un
           avant-goût de ce qu'il y a à découvrir plutôt qu'un simple fond
           uni. Le flou + l'assombrissement se font sur ce calque séparé
           (et non sur .ct-map-consent lui-même) pour que le texte au premier
           plan reste parfaitement net et lisible. */
        .ct-map-consent::before {
            content: "";
            position: absolute;
            inset: -10px;
            background-image: url('/assets/images/contact-map-preview.jpg');
            background-size: cover;
            background-position: center;
            filter: blur(7px) brightness(0.62);
            z-index: 0;
        }

        /* Sans ces deux règles, l'attribut HTML "hidden" posé/retiré en JS
           est neutralisé par les règles de display ci-dessus (même
           spécificité que la règle UA "[hidden] { display: none }", donc
           perdante) : on rescope avec une spécificité supérieure pour que
           l'attribut hidden gagne toujours. */
        .ct-map-consent[hidden] {
            display: none;
        }

        .ct-google-map[hidden] {
            display: none;
        }

        .ct-map-consent__inner {
            position: relative;
            z-index: 1;
            max-width: 420px;
            background: var(--surface, #FFFFFF);
            padding: 1.75rem 1.75rem;
            border-radius: 14px;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
        }

        .ct-map-consent__title {
            margin: 0 0 0.65rem;
            color: var(--secondary);
            font-family: var(--font-display);
            font-size: 1.3rem;
        }

        .ct-map-consent__text {
            margin: 0 0 1.25rem;
            color: var(--on-surface-variant);
            line-height: 1.55;
        }

        .ct-map-consent__button {
            min-height: 48px;
        }

        /* --- CTA sous la carte --- */
        .ct-map-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
            margin-top: 1.25rem;
        }

        .ct-map-btn {
            min-height: 52px;
            padding: 0.9rem 2.2rem;
            font-size: 1rem;
            justify-content: center;
            text-align: center;
            width: 100%;
            max-width: 420px;
        }

        /* --- Micro-réassurance discrète --- */
        .ct-map-note {
            margin: 0.9rem 0 0;
            font-size: 0.82rem;
            line-height: 1.5;
            color: var(--on-surface-variant);
            opacity: 0.85;
            text-align: center;
        }

        .ct-map-note__sep {
            margin: 0 0.4rem;
            opacity: 0.6;
        }

        /* --- Tablette : hauteur carte réduite --- */
        @media (max-width: 1024px) {

            .ct-google-map,
            .ct-map-consent {
                height: 360px;
                min-height: 360px;
            }
        }

        /* --- Mobile : hauteur carte réduite, bouton pleine largeur --- */
        @media (max-width: 576px) {

            .ct-google-map,
            .ct-map-consent {
                height: 320px;
                min-height: 320px;
            }

            .ct-map-btn {
                width: 100%;
                max-width: none;
            }
        }
    
