/* =============================================================
   Page "Contact" — refonte
   -------------------------------------------------------------
   Structure reprise du template Posifit (templates/contact.php) :
   écran scindé, panneau de texte à gauche, carte plein bord à
   droite, coordonnées présentées en lignes séparées par des
   filets. Traitement visuel aligné sur docshield.com : grands
   arrondis, cartes claires posées sur fond sobre, typographie
   légère et beaucoup de respiration.
   Choix éditorial : pas de formulaire, uniquement du contact
   direct. Tout est préfixé .ct- et scopé à .ct-page.
   ============================================================= */

.ct-page {
    --ct-ink: #16171F;
    --ct-ink-soft: #6B6F76;
    --ct-line: rgba(2, 3, 22, 0.09);
    --ct-radius: 28px;
    background-color: var(--color-white);
}

:where(.ct-page) section {
    background-color: transparent;
    padding: 0;
    overflow: visible;
}

.ct-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typographie commune ---------- */

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-teal);
}

.ct-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background-color: currentColor;
}

.ct-title {
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--ct-ink);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.ct-text {
    font-size: 16px;
    line-height: 1.75;
    font-weight: 300;
    color: var(--ct-ink-soft);
}

.ct-text p {
    margin: 0 0 18px;
}

.ct-text p:last-child {
    margin-bottom: 0;
}

/* ---------- Écran scindé : texte / carte ---------- */

/* Même dégradé de marque animé que .rc-cta/.rs-hero (teal -> bleu, glow qui
   se déplace). */
@keyframes ct-gradient-glow {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }
}

.ct-hero {
    position: relative;
    color: var(--color-white);
    overflow: hidden;
    background-image:
        radial-gradient(circle at 18% 20%, rgba(29, 156, 149, 0.55), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(0, 80, 143, 0.5), transparent 50%),
        linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 50%, var(--color-blue-darker) 100%);
    background-size: 200% 200%;
    animation: ct-gradient-glow 16s ease-in-out infinite;
}

.ct-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    /* Aligne la colonne de texte sur la grille du site tout en laissant la
       carte filer jusqu'au bord droit de l'écran (esprit "split screen"). */
    padding: 168px 0 96px max(24px, calc((100% - 1180px) / 2));
}

.ct-hero-breadcrumb {
    margin-bottom: 22px;
}

.ct-hero-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ct-hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65) !important;
}

.ct-hero-breadcrumb .breadcrumb-item + li:before {
    color: rgba(255, 255, 255, 0.45) !important;
}

.ct-hero-breadcrumb .breadcrumb-item.active,
.ct-hero-breadcrumb .breadcrumb-item:last-child {
    color: var(--color-white) !important;
}

.ct-hero .ct-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.ct-hero-title {
    margin: 0 0 22px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.06;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--color-white);
}

.ct-hero-lead {
    max-width: 460px;
    margin: 0;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.74);
}

/* ---------- Lignes de contact direct ---------- */

.ct-lines {
    list-style: none;
    margin: 42px 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ct-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ct-line > a,
.ct-line > div {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 4px;
    color: var(--color-white);
    text-decoration: none;
    transition: padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Le thème définit "a:not(.btn):not(.badge):hover { color: teal }" avec une
   spécificité (0,3,1) : plus élevée que ".ct-line > a:hover" (0,2,1). Sans
   ".ct-page .ct-hero" en préfixe ce survol repassait en teal (illisible sur
   le fond bleu). */
.ct-page .ct-hero .ct-line > a:hover,
.ct-page .ct-hero .ct-line > a:focus-visible {
    padding-left: 12px;
    color: var(--color-white);
}

.ct-line-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.06);
    font-size: 17px;
    line-height: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ct-line > a:hover .ct-line-icon {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.14);
}

.ct-line-label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.ct-line-value {
    display: block;
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.3;
    word-break: break-word;
}

.ct-line-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 15px;
    opacity: 0.45;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.ct-line > a:hover .ct-line-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* ---------- Carte plein bord + encart d'adresse flottant ---------- */

.ct-hero-map {
    position: relative;
    height: clamp(420px, 64vh, 640px);
    border-radius: var(--ct-radius) 0 0 var(--ct-radius);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 12, 30, 0.4);
}

.ct-hero-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ct-map-card {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 1;
    width: min(330px, calc(100% - 56px));
    padding: 24px 26px;
    border-radius: 22px;
    background-color: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 18px 44px rgba(0, 12, 30, 0.22);
    color: var(--ct-ink);
}

.ct-map-card-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-teal);
}

.ct-map-card-address {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--ct-ink-soft);
}

.ct-map-card-address strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: var(--ct-ink);
}

.ct-map-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-blue);
    text-decoration: none;
}

.ct-map-link i {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-map-link:hover {
    color: var(--color-teal);
}

.ct-map-link:hover i {
    transform: translateX(4px);
}

/* ---------- Bandeau de clôture ---------- */

/* Même couleur que #footer.inverted (juste après dans le flux) : la
   transition entre les deux se fait sans rupture, donc pas de trait de
   séparation. Le glow (::before/::after) donne du mouvement sans changer
   la teinte de fond perçue. */
.ct-follow {
    position: relative;
    padding: 110px 0 130px;
    color: var(--color-white);
    background-color: var(--color-navy-deep);
    overflow: hidden;
}

.ct-follow::before {
    content: "";
    position: absolute;
    top: -220px;
    left: -140px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: var(--color-teal);
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    animation: ct-follow-float 15s ease-in-out infinite;
}

@keyframes ct-follow-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -24px) scale(1.12);
    }
}

.ct-follow-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.ct-follow-copy {
    max-width: 600px;
}

.ct-follow .ct-eyebrow {
    color: var(--color-teal);
}

.ct-follow-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 300;
    line-height: 1.18;
    color: var(--color-white);
}

/* Mot-clé en dégradé animé, même esprit que .rc-gradient-text. */
.ct-follow-accent {
    font-weight: 500;
    background-image: linear-gradient(100deg, var(--color-teal) 0%, var(--color-blue) 45%, var(--color-teal) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ct-gradient-slide 9s ease-in-out infinite;
}

@keyframes ct-gradient-slide {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.ct-follow-text {
    margin: 0 0 34px;
    max-width: 480px;
    font-size: clamp(16px, 1vw, 17px);
    line-height: 1.75;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

.ct-follow-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Icône décorative flottante : renforce le ton "actualité qui bouge" sans
   surcharger le message. Masquée en dessous de 991px (cf. media query). */
.ct-follow-badge {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 100%);
    box-shadow: 0 22px 45px rgba(0, 61, 110, 0.45);
    font-size: 34px;
    color: var(--color-white);
}

/* Anneau en orbite : effet "engagement" sans reprendre le disque flou du fond. */
.ct-follow-badge::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    animation: ct-follow-badge-spin 22s linear infinite;
}

/* Pastille de notification pulsante. */
.ct-follow-badge::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-navy-deep);
    animation: ct-follow-badge-ping 2.4s ease-in-out infinite;
}

@keyframes ct-follow-badge-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ct-follow-badge-ping {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: 0.55;
    }
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ct-btn-solid {
    background-color: var(--color-white);
    color: var(--color-blue-darker);
}

.ct-page .ct-follow-panel a.ct-btn-solid:hover {
    transform: translateY(-2px);
    color: var(--color-blue-darker);
}

.ct-btn-ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
}

.ct-page .ct-follow-panel a.ct-btn-ghost:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

/* ---------- Adaptations ---------- */

@media (max-width: 1199px) {
    .ct-hero-grid {
        grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
        gap: 44px;
    }
}

@media (max-width: 991px) {
    .ct-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 140px 24px 80px;
    }

    .ct-hero-lead {
        max-width: none;
    }

    .ct-hero-map {
        height: clamp(360px, 52vh, 480px);
        border-radius: var(--ct-radius);
    }

    .ct-follow {
        padding: 70px 0 90px;
    }

    .ct-follow-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .ct-follow-badge {
        display: none;
    }
}

@media (max-width: 575px) {
    .ct-hero-grid {
        padding: 128px 20px 64px;
    }

    .ct-shell {
        padding: 0 20px;
    }

    .ct-line > a,
    .ct-line > div {
        gap: 14px;
        padding: 18px 2px;
    }

    .ct-line-value {
        font-size: 16px;
    }

    /* Trop étroit pour que l'encart flotte sans masquer la carte : on le pose
       sous celle-ci, à l'intérieur du même bloc arrondi. */
    .ct-hero-map {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .ct-hero-map iframe {
        height: 300px;
    }

    .ct-map-card {
        position: static;
        width: auto;
        padding: 22px 24px;
        border-radius: 0;
        background-color: var(--color-white);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    .ct-follow-actions {
        width: 100%;
    }

    .ct-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ct-hero,
    .ct-follow,
    .ct-follow::before,
    .ct-follow-accent,
    .ct-follow-badge::before,
    .ct-follow-badge::after {
        animation: none;
    }
}
