/* ==========================================================================
   Theme « conversion dynamique » — formulaire guest (/call/:room)
   --------------------------------------------------------------------------
   Porte la direction artistique du modele optimize-dynamic-conversion-form :
   bandeau metier (hero) + carte qui le chevauche, accent dynamique (couleur
   du metier), etapes en barre, urgence en cartes, chips de besoin, carte de
   localisation, CTA accentue et reassurance.

   Charge uniquement sur la route /call/:room (server.js). Les ecrans d'appel,
   la visio et l'espace collaborateur ne sont pas touches.
   Commentaires sans accents (regle projet).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Jetons : palette claire + accent pilote par le metier --------------- */
#initial-screen,
.client-form-container {
    --c-bg: #f3f6fb;
    --c-surface: #ffffff;
    --c-surface-2: #f5f7fb;
    --c-ink: #0e1a2e;
    --c-ink-2: #3d4d66;
    --c-ink-3: #5f6e85;
    --c-line: #e1e7f0;
    --c-sos: #dc2626;
    --c-sos-soft: #fef1f1;
    --c-ok: #047857;

    /* Valeurs par defaut ; guest-form.js les remplace avec la couleur du metier. */
    --ac: #2563eb;
    --ac-strong: #1d4ed8;
    --ac-text: #1d4ed8;
    --ac-soft: #eff4ff;
    --ac-soft-2: #dbe6ff;
    --brand: #10365b;
    --hero-a: #2563eb;
    --hero-b: #10365b;

    --tg-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Fond de page -------------------------------------------------------- */
#initial-screen {
    background:
        radial-gradient(900px 520px at 105% -8%, color-mix(in oklab, var(--ac) 17%, transparent), transparent 62%),
        radial-gradient(760px 460px at -12% 4%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 62%),
        var(--c-bg);
    background-attachment: fixed;
    border-radius: 0;
    padding: 0;
}

.client-form-container {
    background: transparent;
    font-family: var(--tg-font);
    color: var(--c-ink);
    padding: 0;
}

/* --- Bandeau (hero) ------------------------------------------------------ */
.wc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    padding: 18px 20px 60px;
    background: linear-gradient(140deg, var(--hero-a) 0%, var(--hero-b) 100%);
    color: #fff;
}

.wc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgb(255 255 255 / .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(255 255 255 / .07) 1px, transparent 1px);
    background-size: 28px 28px;
}

.wc-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 300px;
    height: 300px;
    z-index: -1;
    border-radius: 999px;
    background: rgb(255 255 255 / .15);
    filter: blur(50px);
}

.wc-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wc-hero-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: rgb(0 0 0 / .2);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.wc-hero-site-badge {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 999px;
    background: #fff;
    color: var(--hero-b);
    font-size: .72rem;
    font-weight: 800;
}

.wc-hero-change {
    flex: none;
    padding: 6px 8px;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: rgb(255 255 255 / .92);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.wc-hero-change:hover {
    background: rgb(255 255 255 / .12);
}

.wc-hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.wc-hero-emoji {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 1.25rem;
    background: rgb(255 255 255 / .15);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3);
    font-size: 34px;
    line-height: 1;
}

.wc-hero-copy {
    min-width: 0;
}

.wc-hero-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
    white-space: normal;
}

.wc-hero-title mark {
    padding: 0 .3rem;
    border-radius: .5rem;
    background: rgb(255 255 255 / .2);
    color: #fff;
}

.wc-hero-sub {
    margin: 8px 0 0;
    font-size: .86rem;
    line-height: 1.45;
    color: rgb(255 255 255 / .92);
}

.wc-hero-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.wc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
}

.wc-badge-live {
    background: #fff;
    color: #065f46;
    font-weight: 700;
    box-shadow: 0 6px 16px rgb(0 0 0 / .12);
}

.wc-badge-wait,
.wc-badge-dept {
    background: rgb(0 0 0 / .2);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22);
}

.wc-ping {
    position: relative;
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #059669;
}

.wc-ping::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: rgb(5 150 105 / .45);
    animation: wcPing 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes wcPing {
    0% { transform: scale(.55); opacity: .7; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}

.wc-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(255 255 255 / .8);
    animation: wcBlink 1.4s ease-in-out infinite;
}

@keyframes wcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* --- Carte (chevauche le bandeau) ---------------------------------------- */
.client-form-card {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: -44px auto 0;
    padding: 18px 20px 0;
    background: var(--c-surface);
    color: var(--c-ink);
    border: 1px solid var(--c-line);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    box-shadow:
        0 1px 2px rgb(15 27 45 / .04),
        0 24px 60px -28px color-mix(in oklab, var(--ac) 45%, transparent);
}

/* --- Titres de section et libelles --------------------------------------- */
.wc-h2 {
    margin: 0 0 10px;
    font-family: var(--tg-font);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--c-ink);
}

.wc-hint {
    margin: -4px 0 12px;
    font-size: .86rem;
    line-height: 1.45;
    color: var(--c-ink-3);
}

.wc-section {
    margin-bottom: 26px;
}

.wc-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 6px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-ink-2);
}

.wc-req {
    color: var(--c-sos);
}

/* Champ avec icone a gauche (comme le modele). */
.wc-field {
    position: relative;
}

.wc-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-ink-3);
    font-size: 1rem;
    pointer-events: none;
}

.wc-field .client-input {
    padding-left: 2.7rem;
}

.wc-opt,
.wc-label .wc-opt {
    font-size: .76rem;
    font-weight: 500;
    color: var(--c-ink-3);
}

/* --- Progression ---------------------------------------------------------- */
.wc-stepper {
    padding-top: 26px;
    margin: 0 0 20px;
}

.wc-stepper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-ink-3);
}

.wc-stepper-head b {
    font-weight: 800;
    color: var(--c-ink);
}

.wc-stepper-bar {
    display: flex;
    gap: 6px;
}

.wc-stepper-bar > span {
    height: 6px;
    flex: 1;
    border-radius: 999px;
    background: var(--c-line);
    overflow: hidden;
}

.wc-stepper-bar > span.is-done {
    background: var(--ac);
}

/* --- Champs -------------------------------------------------------------- */
.client-input {
    height: 3.5rem;
    width: 100%;
    background: var(--c-surface-2);
    border: 1.5px solid var(--c-line);
    border-radius: 1rem;
    padding: 0 1rem;
    color: var(--c-ink);
    font-family: var(--tg-font);
    font-size: 16px; /* evite le zoom iOS */
    font-weight: 500;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

/* Le formulaire n'utilise plus le style "souligne" : champs encadres. */
.client-inline {
    height: 3.5rem;
    background: var(--c-surface-2);
    border: 1.5px solid var(--c-line);
    border-radius: 1rem;
    padding: 0 1rem;
    font-size: 16px;
    color: var(--c-ink);
}

.client-input::placeholder,
.client-inline::placeholder {
    color: var(--c-ink-3);
    font-weight: 400;
    opacity: .85;
}

.client-input:hover,
.client-inline:hover {
    border-color: color-mix(in oklab, var(--ac) 35%, var(--c-line));
}

.client-input:focus,
.client-inline:focus {
    border-color: var(--ac);
    background: var(--c-surface);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--ac) 20%, transparent);
    outline: none;
}

.client-textarea {
    height: auto;
    min-height: 5rem;
    padding: .8rem 1rem;
    line-height: 1.5;
    resize: none;
}

.client-input option {
    background: var(--c-surface);
    color: var(--c-ink);
}

.client-field-error {
    margin-top: 6px;
    color: var(--c-sos);
    font-size: .82rem;
    font-weight: 500;
}

/* --- Urgence -------------------------------------------------------------- */
.urgency-seg {
    border: 0;
    padding: 0;
    margin: 0;
}

.urgency-seg legend {
    padding: 0;
}

.urgency-seg-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.urgency-opt {
    position: relative;
    display: flex;
    min-height: 6.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
    background: var(--c-surface);
    border: 2px solid var(--c-line);
    border-radius: 1rem;
    color: var(--c-ink);
    font-family: var(--tg-font);
    text-align: left;
    transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}

.urgency-opt:active {
    transform: scale(.97);
}

.urgency-opt:hover {
    border-color: color-mix(in oklab, var(--ac) 40%, var(--c-line));
}

.urgency-opt-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: .75rem;
    background: var(--c-surface-2);
    color: var(--c-ink-2);
    font-size: 1rem;
    transition: background-color .2s, color .2s;
}

.urgency-opt-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.15;
}

.urgency-opt-sub {
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--c-ink-3);
}

.urgency-opt[aria-checked="true"] {
    background: var(--ac-soft);
    border-color: var(--ac);
    color: var(--c-ink);
    box-shadow: 0 8px 24px -14px var(--ac);
}

.urgency-opt[aria-checked="true"] .urgency-opt-icon {
    background: var(--ac-strong);
    color: #fff;
}

.urgency-opt.urgency-sos[aria-checked="true"] {
    background: var(--c-sos-soft);
    border-color: var(--c-sos);
    color: var(--c-sos);
    box-shadow: 0 8px 24px -12px var(--c-sos);
}

.urgency-opt.urgency-sos[aria-checked="true"] .urgency-opt-icon {
    background: var(--c-sos);
    color: #fff;
}

.urgency-opt-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--c-sos);
}

.urgency-opt.urgency-sos[aria-checked="true"] .urgency-opt-dot {
    animation: wcBlink 1.2s ease-in-out infinite;
}

/* --- Chips de besoin ------------------------------------------------------ */
.wc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.wc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--c-surface);
    border: 1.5px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-ink);
    font-family: var(--tg-font);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s, background-color .18s, color .18s;
}

.wc-chip:hover {
    border-color: color-mix(in oklab, var(--ac) 40%, var(--c-line));
    background: var(--ac-soft);
}

.wc-chip[aria-pressed="true"] {
    border-color: var(--ac);
    background: var(--ac-soft-2);
    color: var(--ac-text);
}

.wc-chip-emoji {
    font-size: 1rem;
    line-height: 1;
}

/* --- Localisation --------------------------------------------------------- */
.wc-place {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--c-surface-2);
    border: 1.5px solid var(--c-line);
    border-radius: 1rem;
}

.wc-place-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: .9rem;
    background: var(--ac-soft-2);
    color: var(--ac-text);
    font-size: 1.15rem;
}

.wc-place-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.wc-place-body strong {
    font-size: .95rem;
    font-weight: 800;
    color: var(--c-ink);
}

.wc-place-body span {
    font-size: .82rem;
    color: var(--c-ink-3);
}

.wc-place-edit {
    flex: none;
    padding: 6px 10px;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: var(--ac-text);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}

.wc-place-edit:hover {
    background: var(--ac-soft);
}

.wc-place-form {
    margin-top: 12px;
}

/* --- Boutons -------------------------------------------------------------- */
.client-form-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 3.75rem;
    padding: 12px 18px;
    background: var(--btn-bg, var(--ac-strong));
    border: 0;
    border-radius: 1.15rem;
    color: #fff;
    font-family: var(--tg-font);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -.005em;
    text-transform: none;
    box-shadow:
        0 14px 28px -14px var(--btn-bg, var(--ac-strong)),
        inset 0 1px 0 rgb(255 255 255 / .2);
    cursor: pointer;
    transition: transform .15s, filter .15s, box-shadow .2s, opacity .2s;
}

.client-form-btn[data-tone="live"] {
    --btn-bg: #047857;
}

.client-form-btn[data-tone="sos"] {
    --btn-bg: #b91c1c;
}

.client-form-btn:hover {
    background: var(--btn-bg, var(--ac-strong));
    filter: brightness(1.07);
    box-shadow:
        0 14px 28px -14px var(--btn-bg, var(--ac-strong)),
        inset 0 1px 0 rgb(255 255 255 / .2);
}

.client-form-btn:active {
    transform: scale(.985);
}

.client-form-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Reflet du modele sur les CTA principaux. */
.wc-cta::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28), transparent);
    animation: wcSweep 3.2s ease-in-out infinite;
}

@keyframes wcSweep {
    0% { transform: translateX(-120%) skewX(-18deg); }
    55%, 100% { transform: translateX(260%) skewX(-18deg); }
}

.wc-cta {
    margin-top: 6px;
}

/* CTA finale : style.css force une pilule verte (id + media query).
   Meme specificite, feuille chargee plus tard : le theme reprend la main. */
#initial-screen #create-call-btn {
    background: var(--btn-bg, var(--ac-strong));
    background-image: none;
    border: 0;
    border-radius: 1.15rem;
    color: #fff;
    padding: 12px 16px;
    font-size: 1.06rem;
    letter-spacing: -.005em;
    line-height: 1.2;
    white-space: normal;
    display: inline-flex;
    box-shadow: 0 14px 28px -14px var(--btn-bg, var(--ac-strong)), inset 0 1px 0 rgb(255 255 255 / .2);
    margin-right: 0;
}

#initial-screen #create-call-btn:hover {
    background: var(--btn-bg, var(--ac-strong));
    filter: brightness(1.07);
    box-shadow: 0 14px 28px -14px var(--btn-bg, var(--ac-strong)), inset 0 1px 0 rgb(255 255 255 / .2);
}

/* Retour : ghost du modele. */
.wc-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 14px -6px;
    padding: 8px 10px;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: var(--ac-text);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}

.wc-back:hover {
    background: var(--ac-soft);
}

/* --- Reassurance ---------------------------------------------------------- */
.wc-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: .78rem;
    font-weight: 500;
    color: var(--c-ink-3);
}

.wc-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wc-trust i {
    color: var(--c-ok);
    font-size: .9rem;
}

.wc-legal {
    max-width: 34rem;
    margin: 8px auto 18px;
    font-size: .74rem;
    line-height: 1.45;
    text-align: center;
    color: var(--c-ink-3);
}

/* --- Recapitulatif -------------------------------------------------------- */
.client-recap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: 1rem;
}

.client-recap-dot {
    /* Couleur inline posee par callForm.js (metier) : le theme impose l'accent. */
    background: var(--ac) !important;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: none;
}

.client-recap-text {
    margin: 0;
    color: var(--c-ink-2);
    font-size: .86rem;
    line-height: 1.5;
}

.client-recap-text strong {
    color: var(--c-ink);
    font-weight: 800;
}

/* --- Suggestions de metier ----------------------------------------------- */
.client-suggestions {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 1rem;
    box-shadow: 0 24px 60px -28px rgb(15 27 45 / .35);
    overflow: hidden;
}

.client-suggestion-item {
    padding: 11px 14px;
    color: var(--c-ink-2);
    font-size: .9rem;
    font-weight: 500;
}

.client-suggestion-item:hover,
.client-suggestion-item.is-active {
    background: var(--ac-soft);
    color: var(--ac-text);
}

/* --- Infos ---------------------------------------------------------------- */
.client-info-trigger {
    position: absolute;
    top: -14px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: var(--c-surface-2);
    color: var(--c-ink-3);
    margin: 0;
    z-index: 3;
}

.client-info-trigger:hover {
    border-color: var(--ac);
    color: var(--ac-text);
    background: var(--ac-soft);
}

.client-info-popover {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 1rem;
    box-shadow: 0 24px 60px -28px rgb(15 27 45 / .3);
    color: var(--c-ink-2);
    font-size: .84rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

#guest-fields {
    position: relative;
}

/* --- Express SOS ---------------------------------------------------------- */
.express-panel {
    background: var(--c-sos-soft);
    border: 2px solid color-mix(in oklab, var(--c-sos) 30%, transparent);
    border-radius: 1.5rem;
    padding: 16px;
    margin-bottom: 22px;
}

.express-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-family: var(--tg-font);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--c-sos);
}

.express-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--c-sos);
    animation: wcBlink 1.1s ease-in-out infinite;
}

.express-title {
    margin: 0 0 6px;
    font-family: var(--tg-font);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--c-ink);
}

.express-sub {
    margin-bottom: 14px;
    color: var(--c-ink-2);
    font-size: .88rem;
    line-height: 1.5;
}

/* style.css force un blanc quasi transparent (theme sombre) : illisible
   sur la carte claire. */
.express-sub strong {
    color: var(--c-ink);
    font-weight: 700;
}

.express-panel .client-input-group {
    margin-bottom: 10px;
}

.express-call-btn,
.express-call-btn:hover {
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 14px 28px -14px #b91c1c, inset 0 1px 0 rgb(255 255 255 / .2);
}

.express-switch-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--ac-text);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* --- Avertissement micro -------------------------------------------------- */
#mic-warning-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff8e6 !important;
    border: 1px solid #f0d9a0 !important;
    border-radius: 1rem !important;
    color: #8a5a00 !important;
    font-family: var(--tg-font) !important;
    font-size: .82rem;
    line-height: 1.4;
}

/* --- Focus clavier -------------------------------------------------------- */
#initial-screen :where(button, input, textarea, select, a):focus-visible {
    outline: 3px solid color-mix(in oklab, var(--ac) 55%, transparent);
    outline-offset: 2px;
    border-radius: 10px;
}

/* --- Defilement ----------------------------------------------------------- */
/* style.css fige body/`#initial-screen` pour les ecrans d'appel : sans cette
   reprise, la fin du formulaire etait coupee et impossible a atteindre. */
body.wc-guest-theme {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.wc-guest-theme #app-container,
body.wc-guest-theme .screens-wrapper,
body.wc-guest-theme #initial-screen {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

body.wc-guest-theme #initial-screen {
    min-height: 100dvh;
}

/* --- Grand ecran : deux pages cote a cote (bandeau / formulaire) ---------- */
.wc-hero-steps {
    display: none;
}

@media (min-width: 1040px) {
    body.wc-guest-theme #initial-screen {
        max-width: none !important;
        width: 100%;
        padding: 32px 24px;
    }

    .client-form-container {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 24px;
        align-items: stretch;
        max-width: 1040px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .wc-hero {
        max-width: none;
        margin: 0;
        padding: 32px 32px 28px;
        border-radius: 2rem;
        display: flex;
        flex-direction: column;
    }

    .wc-hero-main {
        margin-top: 34px;
        align-items: flex-start;
    }

    .wc-hero-emoji {
        width: 80px;
        height: 80px;
        border-radius: 1.5rem;
        font-size: 44px;
    }

    .wc-hero-title {
        font-size: 2.4rem;
        line-height: 1.08;
    }

    .wc-hero-sub {
        font-size: 1rem;
        max-width: 30rem;
    }

    .wc-hero-status {
        margin-top: 18px;
    }

    .wc-hero-steps {
        display: block;
        margin: auto 0 0;
        padding: 34px 0 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .wc-hero-steps li {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }

    .wc-hero-step-num {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        flex: none;
        border-radius: 999px;
        background: rgb(255 255 255 / .2);
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3);
        font-size: .9rem;
        font-weight: 800;
    }

    .wc-hero-steps strong {
        display: block;
        font-size: 1rem;
        font-weight: 700;
    }

    .wc-hero-steps li span span {
        display: block;
        font-size: .9rem;
        color: rgb(255 255 255 / .95);
    }

    .client-form-card {
        max-width: none;
        margin: 0;
        padding: 28px 32px 24px;
        border: 1px solid var(--c-line);
        border-radius: 2rem;
        display: flex;
        flex-direction: column;
    }

    .wc-stepper {
        padding-top: 26px;
    }

    /* Pastille d'infos : posee sur le bord haut de la carte, jamais sur le
       libelle « Votre besoin » (elle le masquait). */
    .client-info-trigger {
        top: -18px;
        right: 22px;
    }

    .wc-h2 {
        font-size: 1.25rem;
    }

    .wc-legal {
        margin-bottom: 0;
    }
}

/* Chips plus compacts : deux par ligne quand la longueur le permet, sinon la
   page s allonge d un ecran entier. */
@media (max-width: 480px) {
    .wc-chips {
        gap: 6px;
    }

    .wc-chip {
        padding: 9px 12px;
        gap: 6px;
        font-size: .8rem;
    }

    .wc-chip-emoji {
        font-size: .95rem;
    }
}

@media (max-width: 380px) {
    .wc-hero {
        padding: 14px 14px 56px;
    }

    .wc-hero-title {
        font-size: 1.28rem;
    }

    .wc-hero-emoji {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .client-form-card {
        padding: 16px 14px 0;
    }

    .urgency-opt {
        min-height: 5.8rem;
        padding: 9px 8px;
    }

    .urgency-opt-title {
        font-size: .82rem;
    }

    .urgency-opt-sub {
        font-size: .7rem;
    }

    .client-form-btn {
        font-size: .98rem;
    }
}

/* Mouvement reduit : on coupe les animations decoratives. */
@media (prefers-reduced-motion: reduce) {
    .wc-cta::after,
    .wc-ping::after,
    .wc-dot,
    .urgency-opt.urgency-sos[aria-checked="true"] .urgency-opt-dot,
    .express-dot {
        animation: none !important;
    }

    #initial-screen *,
    #initial-screen *::before,
    #initial-screen *::after {
        transition-duration: .01ms !important;
    }
}
