/* ====================== CONTACT : INTRO (une conversation) ====================== */
/* Structure .intro de l'accueil (fond encre, titre qui monte). A droite, un echange qui se joue en boucle,
   des anneaux de signal et les trois canaux de contact, cliquables. Tout est en HTML/CSS.
   Le menu est le composant commun du site (partials/header.php + front.js). */

.intro.contact-intro-hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh + 2px);
    min-height: calc(100svh + 2px);
    margin-top: calc(var(--intro-pull, 88px) * -1);
    padding: calc(var(--intro-pull, 88px) + 16px) 0 88px;
    background:
        radial-gradient(ellipse 44% 62% at 72% 50%, rgba(36, 92, 255, 0.24), transparent 72%),
        radial-gradient(ellipse 34% 40% at 6% 100%, rgba(58, 184, 255, 0.07), transparent 70%),
        linear-gradient(180deg, #071225 0%, #0b1220 100%);
}

.contact-intro-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(120, 175, 255, 0.14) 1px, transparent 1.2px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 55% 70% at 72% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 70% at 72% 50%, #000, transparent 75%);
    animation: ccFadeIn 2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    pointer-events: none;
}

.contact-intro-hero .intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 32px;
}

.contact-intro-hero .intro-copy { max-width: 540px; }

.contact-intro-hero .intro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.62);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    animation: introFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.contact-intro-hero .intro-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3ab8ff;
    animation: contactPing 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s 3 both;
}

.contact-intro-hero .intro-title {
    font-size: clamp(2.3rem, 4.3vw, 3.9rem);
    font-weight: 600;
    line-height: 1.05;
    color: #ffffff;
}

.contact-intro-hero .intro-line:nth-child(1) > span { animation-delay: 0.15s; }
.contact-intro-hero .intro-line:nth-child(2) > span { animation-delay: 0.3s; }
.contact-intro-hero .intro-lead { margin-top: 24px; }

@keyframes ccFadeIn { from { opacity: 0; } }

/* ---------- Scene ---------- */

.cc-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 640px;
    min-height: min(640px, 78svh);
    padding: 58px 0 66px;
    justify-self: end;
    animation: introFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* anneaux de signal */
.cc-rings {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cc-ring,
.cc-ripple,
.cc-orbit {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cc-ring { border: 1px solid rgba(140, 190, 255, 0.11); }
.cc-ring-1 { width: 470px; height: 470px; }
.cc-ring-2 { width: 640px; height: 640px; border-color: rgba(140, 190, 255, 0.075); }
.cc-ring-3 { width: 820px; height: 820px; border-color: rgba(140, 190, 255, 0.045); }

.cc-ripple {
    will-change: transform, opacity;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(58, 184, 255, 0.55);
    opacity: 0;
    animation: ccRipple 6.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.cc-ripple-b { animation-delay: 3.2s; }

@keyframes ccRipple {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    12% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

.cc-orbit {
    will-change: transform;
    width: 640px;
    height: 640px;
    animation: ccOrbit 46s linear infinite;
}

.cc-orbit b {
    position: absolute;
    left: 50%;
    top: 0;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #3ab8ff;
    box-shadow: 0 0 0 4px rgba(58, 184, 255, 0.14), 0 0 22px rgba(58, 184, 255, 0.9);
}

@keyframes ccOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* carte de conversation */
.cc-chat {
    position: relative;
    width: min(390px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    background: linear-gradient(180deg, #14213f, #0f1a34);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.cc-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #245cff, #3ab8ff);
    color: #ffffff;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cc-avatar i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border: 2px solid #0e1a33;
    border-radius: 50%;
    background: #35d07f;
}

/* halo : disque translucide qui grossit et s'estompe (remplace l'animation de box-shadow) */
.cc-avatar i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(53, 208, 127, 0.5);
    --ring: 3.3333;
    pointer-events: none;
    animation: ccOnline 2.4s ease-in-out infinite;
}

@keyframes ccOnline {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(var(--ring, 3)); opacity: 0; }
}

.cc-chat-id { display: grid; gap: 2px; }
.cc-chat-id b { color: #ffffff; font-size: 0.95rem; font-weight: 650; }
.cc-chat-id small { color: rgba(255, 255, 255, 0.55); font-size: 0.76rem; }

.cc-thread {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px 20px 14px;
}

/* un emplacement reserve par message : la hauteur ne bouge jamais, le texte apparait en place */
.cc-slot { display: grid; justify-items: start; }
.cc-slot-out { justify-items: end; }
.cc-slot > * { grid-area: 1 / 1; }

.cc-msg,
.cc-typing {
    margin: 0;
    opacity: 0;
    will-change: opacity, transform;
}

.cc-read {
    justify-self: end;
    margin: -4px 4px 0 0;
    opacity: 0;
}

.cc-msg {
    max-width: 82%;
    padding: 11px 15px;
    font-size: 0.88rem;
    line-height: 1.42;
    border-radius: 18px;
}

.cc-out {
    color: #ffffff;
    background: linear-gradient(135deg, #245cff, #1a4be0);
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 24px -10px rgba(36, 92, 255, 0.7);
}

.cc-in {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 6px;
}

.cc-file {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
}

.cc-file svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cc-m1 { animation: ccM1 18.2s cubic-bezier(0.34, 1.35, 0.64, 1) infinite; }
.cc-t1 { animation: ccT1 18.2s ease infinite; }
.cc-m2 { animation: ccM2 18.2s cubic-bezier(0.34, 1.35, 0.64, 1) infinite; }
.cc-m3 { animation: ccM3 18.2s cubic-bezier(0.34, 1.35, 0.64, 1) infinite; }
.cc-t2 { animation: ccT2 18.2s ease infinite; }
.cc-m4 { animation: ccM4 18.2s cubic-bezier(0.34, 1.35, 0.64, 1) infinite; }
.cc-read { animation: ccRead 18.2s ease infinite; }

.cc-typing {
    display: flex;
    width: fit-content;
    height: fit-content;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, 0.09);
}

.cc-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    animation: ccDot 1.1s ease-in-out infinite;
}

.cc-typing i:nth-child(2) { animation-delay: 0.15s; }
.cc-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes ccDot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.cc-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cc-read svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes ccM1 {
    0%, 14.73% { opacity: 0; transform: translateY(14px) scale(0.96); }
    18.24%, 93.85% { opacity: 1; transform: none; }
    97.36%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes ccT1 {
    0%, 21.76% { opacity: 0; }
    23.52%, 28.79% { opacity: 1; }
    29.67%, 100% { opacity: 0; }
}
@keyframes ccM2 {
    0%, 29.23% { opacity: 0; transform: translateY(14px) scale(0.96); }
    33.19%, 93.85% { opacity: 1; transform: none; }
    97.36%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes ccM3 {
    0%, 41.98% { opacity: 0; transform: translateY(14px) scale(0.96); }
    45.49%, 93.85% { opacity: 1; transform: none; }
    97.36%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes ccT2 {
    0%, 49.01% { opacity: 0; }
    50.77%, 56.04% { opacity: 1; }
    56.92%, 100% { opacity: 0; }
}
@keyframes ccM4 {
    0%, 56.48% { opacity: 0; transform: translateY(14px) scale(0.96); }
    60.44%, 93.85% { opacity: 1; transform: none; }
    97.36%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes ccRead {
    0%, 61.32% { opacity: 0; color: rgba(255, 255, 255, 0.5); }
    63.96% { opacity: 1; color: rgba(255, 255, 255, 0.5); }
    68.35%, 93.85% { opacity: 1; color: #3ab8ff; }
    97.36%, 100% { opacity: 0; color: #3ab8ff; }
}

.cc-compose {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 8px 8px 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.cc-compose-clip { display: grid; place-items: center; color: rgba(255, 255, 255, 0.45); }
.cc-compose svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-compose-field { flex: 1; color: rgba(255, 255, 255, 0.38); font-size: 0.84rem; }

.cc-compose-send {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #245cff;
    color: #ffffff;
    position: relative;
    animation: ccSend 18.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* onde d'envoi : anneau en calque (scale + opacity) au lieu d'un box-shadow anime */
.cc-compose-send::after {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border: 3px solid rgba(58, 184, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: ccSendRing 18.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes ccSendRing {
    0%, 13.85% { opacity: 0; transform: scale(1); }
    15.6% { opacity: 1; transform: scale(1); }
    20% { opacity: 0; transform: scale(1.875); }
    41.1% { opacity: 0; transform: scale(1); }
    42.86% { opacity: 1; transform: scale(1); }
    47.25%, 100% { opacity: 0; transform: scale(1.875); }
}

@keyframes ccSend {
    0%, 13.85% { transform: scale(1); }
    15.6% { transform: scale(0.88); }
    20% { transform: scale(1); }
    41.1% { transform: scale(1); }
    42.86% { transform: scale(0.88); }
    47.25%, 100% { transform: scale(1); }
}

/* notifications au-dessus de la conversation */
.cc-toasts {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 3%;
    display: grid;
    pointer-events: none;
}

.cc-toast {
    will-change: transform, opacity;
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 16px 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: #0e1b38;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    opacity: 0;
}

.cc-toast svg {
    box-sizing: content-box;
    width: 15px;
    height: 15px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(53, 208, 127, 0.16);
    fill: none;
    stroke: #35d07f;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-toast i {
    box-sizing: border-box;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(58, 184, 255, 0.25);
    border-top-color: #3ab8ff;
    border-radius: 50%;
    animation: ccSpin 1s linear infinite;
}

.cc-toast span { display: grid; gap: 1px; }
.cc-toast b { color: #ffffff; font-size: 0.8rem; font-weight: 600; }
.cc-toast small { color: rgba(255, 255, 255, 0.5); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }

.cc-toast-a { animation: ccToastA 18.2s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.cc-toast-b { animation: ccToastB 18.2s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

@keyframes ccSpin { to { transform: rotate(360deg); } }

@keyframes ccToastA {
    0%, 15.6% { opacity: 0; transform: translateY(-12px) scale(0.96); }
    19.12%, 27.03% { opacity: 1; transform: none; }
    30.55%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes ccToastB {
    0%, 60.44% { opacity: 0; transform: translateY(-12px) scale(0.96); }
    63.96%, 90.33% { opacity: 1; transform: none; }
    93.85%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* preuve sociale sous les boutons */
.contact-intro-hero .intro-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    animation: introFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.intro-proof-stars { color: #ffc24a; letter-spacing: 0.12em; font-size: 0.82rem; }

/* canaux de contact : cartes de verre cliquables */
.cc-chip {
    will-change: transform;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: #0e1b38;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: ccFloat 7s ease-in-out infinite, introFade 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cc-chip-wa { top: 2%; right: -2%; animation-delay: 0s, 0.9s; }
.cc-chip-tel { left: 2%; bottom: 0; animation-delay: -2.3s, 1.1s; }
.cc-chip-mail { right: 0; bottom: 0; animation-delay: -4.6s, 1.3s; }

@keyframes ccFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cc-chip:hover,
.cc-chip:focus-visible {
    animation-play-state: paused, running;
    border-color: rgba(58, 184, 255, 0.7);
    background: #142a5c;
}

.cc-chip:focus-visible { outline: 2px solid #3ab8ff; outline-offset: 3px; }

.cc-chip-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(58, 184, 255, 0.14);
    color: #3ab8ff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cc-chip-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-chip-wa .cc-chip-icon { background: rgba(53, 208, 127, 0.14); color: #35d07f; }

.cc-chip:hover .cc-chip-icon { background: #245cff; color: #ffffff; }
.cc-chip-wa:hover .cc-chip-icon { background: #1fae63; color: #ffffff; }

.cc-chip-text { display: grid; gap: 1px; }
.cc-chip-text small { color: rgba(255, 255, 255, 0.5); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.cc-chip-text b { font-size: 0.86rem; font-weight: 600; white-space: nowrap; }

.contact-intro-hero .intro-scroll { display: grid; animation: introFade 1s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both; }
.contact-intro-hero .intro-scroll:hover,
.contact-intro-hero .intro-scroll:focus-visible { color: #3ab8ff; }

@media (max-width: 960px) {
    .intro.contact-intro-hero { min-height: calc(100svh + 2px); align-items: flex-start; padding-bottom: 96px; }
    .contact-intro-hero .intro-inner { grid-template-columns: 1fr; gap: 20px; }
    .contact-intro-hero .intro-copy { max-width: 620px; }

    .cc-stage {
        justify-self: center;
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 0 0;
        min-height: 0;
    }

    .cc-rings { top: 38%; }
    .cc-ring-1 { width: 380px; height: 380px; }
    .cc-ring-2 { width: 520px; height: 520px; }
    .cc-ring-3 { display: none; }
    .cc-orbit { width: 520px; height: 520px; }
    .cc-ripple { width: 340px; height: 340px; }

    .cc-chat { flex: 0 0 100%; margin: 0 auto; }

    .cc-chip {
        position: relative;
        inset: auto;
        animation: introFade 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@media (max-width: 560px) {
    .cc-chip { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-intro-hero::before,
    .cc-stage,
    .cc-chip,
    .cc-ripple,
    .cc-orbit,
    .cc-typing i,
    .cc-avatar i,
    .cc-toast i,
    .cc-compose-send,
    .cc-compose-send::after,
    .cc-avatar i::after { animation: none; }

    .cc-ripple { display: none; }
    .cc-msg, .cc-read { opacity: 1; animation: none; transform: none; }
    .cc-typing, .cc-toast-b { display: none; }
    .cc-toast-a { opacity: 1; animation: none; }
    .cc-read { color: #3ab8ff; }
}

/* ---------- Audit responsive ---------- */

/* l'indicateur de defilement quitte le centre sur grand ecran : il ne passe plus sous les boutons de contact */
@media (min-width: 961px) {
    .contact-intro-hero .intro-scroll {
        left: max(32px, calc((100% - 1216px) / 2));
        justify-items: start;
        transform: none;
    }
}

/* tablette et mobile : notifications dans le flux (plus de chevauchement), conversation a largeur de lecture */
@media (max-width: 960px) {
    .cc-toasts {
        position: relative;
        flex: 0 0 100%;
        justify-items: center;
        min-height: 52px;
        left: auto;
    }

    .cc-chat { flex: 0 1 460px; width: 100%; max-width: 460px; }
}

@media (max-width: 560px) {
    .cc-chat { flex-basis: 100%; }
}

/* laptops peu hauts (<= 800 px) : la scene se compacte pour que le hero reste dans l'ecran, indicateur de defilement compris */
@media (min-width: 961px) and (max-height: 800px) {
    .intro.contact-intro-hero { padding-top: calc(var(--intro-pull, 88px) + 4px); padding-bottom: 76px; }
    .cc-stage { min-height: 0; padding: 50px 0 58px; }
    .cc-thread { gap: 8px; padding: 14px 20px 8px; }
    .cc-msg { padding: 9px 13px; font-size: 0.84rem; }
    .cc-chat-head { padding: 12px 18px; }
    .contact-intro-hero .intro-title { font-size: clamp(2.2rem, 4vw, 3.3rem); }
    .contact-intro-hero .intro-lead { margin-top: 18px; }
    .contact-intro-hero .intro-proof { margin-top: 18px; }
    .contact-intro-hero .intro-kicker { margin-bottom: 16px; }
}

/* ---------- Mobile : meme logique que l'intro de l'accueil (decor retire, un seul ecran lisible) ---------- */
@media (max-width: 960px) {
    /* les positions flottantes des boutons ne s'appliquent plus : rangee reguliere sous la conversation */
    .cc-chip-wa,
    .cc-chip-tel,
    .cc-chip-mail { inset: auto; top: auto; right: auto; bottom: auto; left: auto; }

    .cc-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; justify-items: stretch; }
    .cc-toasts { grid-column: 1 / -1; }
    .cc-chat { grid-column: 1 / -1; justify-self: center; }

    /* comme l'accueil : l'indicateur de defilement disparait sur mobile */
    .contact-intro-hero .intro-scroll { display: none; }
    .intro.contact-intro-hero { padding-bottom: 40px; }
}

@media (max-width: 560px) {
    .cc-toasts { display: none; }
    .cc-stage { padding-top: 0; margin-top: 8px; }
    .cc-thread { gap: 9px; padding: 16px 16px 8px; }
    .cc-msg { font-size: 0.85rem; padding: 10px 13px; }
    .cc-chat-head { padding: 13px 16px; }
    .cc-compose { margin: 0 12px 12px; }
    .cc-rings { top: 46%; }

    .cc-chip {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 72px;
        padding: 10px 6px;
        border-radius: 6px;
        text-align: center;
    }

    .cc-chip-text { justify-items: center; }
    .cc-chip-text small { font-size: 0.7rem; letter-spacing: 0.08em; }
    .cc-chip-text b { display: none; }
    .cc-chip-icon { width: 36px; height: 36px; }
}


/* ---------- Animations : saisie dans le champ, envoi, parallaxe ---------- */

/* le champ de saisie ecrit le message, puis l'envoie (meme cycle de 18,2 s que la conversation) */
.cc-compose-field {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.cc-ph {
    display: block;
    animation: ccPh 18.2s steps(1, end) infinite;
}

.cc-typed {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    border-right: 1.5px solid #3ab8ff;
    animation: ccTyped 18.2s infinite;
}

.cc-typed span { display: block; white-space: nowrap; }

@keyframes ccPh {
    0%, 0.5% { opacity: 1; }
    0.6%, 14.7% { opacity: 0; }
    14.8%, 100% { opacity: 1; }
}

@keyframes ccTyped {
    0%, 0.5% { width: 0; border-right-color: transparent; }
    0.6% { width: 0; border-right-color: #3ab8ff; }
    11.4% { width: 100%; border-right-color: #3ab8ff; }
    12.5% { width: 100%; border-right-color: transparent; }
    13.2% { width: 100%; border-right-color: #3ab8ff; }
    14.6% { width: 100%; border-right-color: #3ab8ff; }
    14.7%, 100% { width: 0; border-right-color: transparent; }
}

@media (prefers-reduced-motion: no-preference) {
    .cc-typed { animation-timing-function: steps(34, end); }
}

/* parallaxe : memes decalages que l'intro de l'accueil (variables ecrites par contact-hero.js) */
@media (prefers-reduced-motion: no-preference) {
    .contact-intro-hero .intro-copy {
        translate: 0 calc(var(--p, 0) * -34px);
        opacity: calc(1 - var(--p, 0) * 0.9);
    }

    .contact-intro-hero .cc-stage {
        translate: 0 calc(var(--p, 0) * 56px);
        opacity: calc(1 - var(--p, 0) * 0.7);
    }

    .contact-intro-hero .cc-rings {
        translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -9px);
    }

    .contact-intro-hero .cc-chat {
        translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 6px);
    }

    .contact-intro-hero .cc-chip-wa { translate: calc(var(--mx, 0) * 18px) calc(var(--my, 0) * 12px); }
    .contact-intro-hero .cc-chip-tel { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px); }
    .contact-intro-hero .cc-chip-mail { translate: calc(var(--mx, 0) * 20px) calc(var(--my, 0) * 14px); }
    .contact-intro-hero .cc-toasts { translate: calc(var(--mx, 0) * 22px) calc(var(--my, 0) * 14px); }
}

@media (prefers-reduced-motion: reduce) {
    .cc-ph { animation: none; opacity: 1; }
    .cc-typed { display: none; }
}

@media (max-width: 960px) {
    .contact-intro-hero .cc-chip-wa,
    .contact-intro-hero .cc-chip-tel,
    .contact-intro-hero .cc-chip-mail,
    .contact-intro-hero .cc-toasts,
    .contact-intro-hero .cc-chat,
    .contact-intro-hero .cc-rings { translate: none; }
}
