/* ==========================================
   BORN v2b — Borne Interactive CSS
   Themes A/B/C + Layout choice cards
   Backgrounds eclairis (feedback Anthony)
   ========================================== */

/* ==========================================
   1. THEME A — Château des Rubins (démo)
   Fond clair patrimonial, accents terre cuite
   ========================================== */
:root,
[data-theme="A"] {
    --primary:        #B75B39;
    --primary-dark:   #4A2118;
    --primary-light:  #D9835B;
    --accent:         #F2C48D;
    --accent-soft:    rgba(183, 91, 57, 0.12);
    --bg-body:        #F8F3ED;
    --bg-panel:       #EFE0D4;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #FFF8F2;
    --text-primary:   #1F1B18;
    --text-secondary: #6A4A3A;
    --text-muted:     #B98B76;
    --border-card:    rgba(183, 91, 57, 0.18);
    --border-hover:   rgba(242, 196, 141, 0.7);
    --border-focus:   rgba(183, 91, 57, 0.85);
    --divider:        rgba(183, 91, 57, 0.12);
    --gradient:       linear-gradient(135deg, #8F3F28, #D9835B);
    --gradient-glow:  radial-gradient(circle at 40% 50%, rgba(183, 91, 57, 0.10) 0%, transparent 60%);
    --shadow-card:    0 0.5rem 2rem rgba(74, 33, 24, 0.12);
    --shadow-primary: 0 0 1.5rem rgba(183, 91, 57, 0.16);
    --glow-video:     rgba(183, 91, 57, 0.35);
    --glow-ring1:     rgba(183, 91, 57, 0.25);
    --glow-ring2:     rgba(183, 91, 57, 0.12);
    --glow-ring3:     rgba(183, 91, 57, 0.06);

    --font-heading:   'Raleway', sans-serif;
    --font-body:      'Source Sans 3', sans-serif;
    --radius-card:    1.25rem;
    --radius-inner:   0.875rem;
    --radius-sm:      0.5rem;
    --radius-md:      1rem;
    --radius-lg:      1.5rem;
    --radius-full:    9999px;
    --touch-target:   2.75rem;
    --transition-fast:   0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow:   0.5s ease;

    font-size: clamp(0.9rem, 1.1vw + 0.6rem, 1.2rem);
}

/* ==========================================
   2. THEME B — Vert Alpage
   Fond clair verdoyant
   ========================================== */
[data-theme="B"] {
    --primary:        #1A6B3A;
    --primary-dark:   #0A3D20;
    --primary-light:  #3DB368;
    --accent:         #C8A012;
    --accent-soft:    rgba(200, 160, 18, 0.12);
    --bg-body:        #E8F5EC;
    --bg-panel:       #D4EBD8;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F0FAF3;
    --text-primary:   #1A3528;
    --text-secondary: #3A6B50;
    --text-muted:     #7ABFA0;
    --border-card:    rgba(26, 107, 58, 0.18);
    --border-hover:   rgba(200, 160, 18, 0.55);
    --border-focus:   rgba(200, 160, 18, 0.85);
    --divider:        rgba(26, 107, 58, 0.12);
    --gradient:       linear-gradient(135deg, #1A6B3A, #2E9A54);
    --gradient-glow:  radial-gradient(circle at 40% 50%, rgba(26, 107, 58, 0.08) 0%, transparent 60%);
    --shadow-card:    0 0.5rem 2rem rgba(26, 107, 58, 0.1);
    --shadow-primary: 0 0 1.5rem rgba(61, 179, 104, 0.12);
    --glow-video:     rgba(61, 179, 104, 0.35);
    --glow-ring1:     rgba(61, 179, 104, 0.25);
    --glow-ring2:     rgba(61, 179, 104, 0.12);
    --glow-ring3:     rgba(61, 179, 104, 0.06);
}

/* ==========================================
   3. THEME C — Bleu Montagne
   Fond clair, accents bleus (alternative au thème terracotta par défaut)
   ========================================== */
[data-theme="C"] {
    --primary:        #2E6CC4;
    --primary-dark:   #0D2A52;
    --primary-light:  #5A93DC;
    --accent:         #E8B95A;
    --accent-soft:    rgba(46, 108, 196, 0.12);
    --bg-body:        #EEF3FA;
    --bg-panel:       #DDE7F2;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F5F8FC;
    --text-primary:   #0F2342;
    --text-secondary: #3F5374;
    --text-muted:     #98A6BC;
    --border-card:    rgba(46, 108, 196, 0.18);
    --border-hover:   rgba(46, 108, 196, 0.55);
    --border-focus:   rgba(46, 108, 196, 0.85);
    --divider:        rgba(46, 108, 196, 0.12);
    --gradient:       linear-gradient(135deg, #0D2A52, #2E6CC4);
    --gradient-glow:  radial-gradient(circle at 40% 50%, rgba(46, 108, 196, 0.10) 0%, transparent 60%);
    --shadow-card:    0 0.5rem 2rem rgba(13, 42, 82, 0.1);
    --shadow-primary: 0 0 1.5rem rgba(46, 108, 196, 0.18);
    --glow-video:     rgba(90, 147, 220, 0.4);
    --glow-ring1:     rgba(90, 147, 220, 0.28);
    --glow-ring2:     rgba(90, 147, 220, 0.14);
    --glow-ring3:     rgba(90, 147, 220, 0.07);
}

/* ==========================================
   4. Reset & Base (Kiosk: no scroll, 100vh)
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    touch-action: pan-x pan-y;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Viewport court (laptop avec barres navigateur, zoom Windows) : COMPACTER pour tout faire tenir sans scroll.
   En mode kiosque (borne tactile, plein écran), comportement no-scroll original conservé. */
@media (min-width: 768px) and ((max-height: 760px) or (max-width: 1023px)) {
    html:not(.kiosk-mode) { overflow-y: auto !important; }
    body:not(.kiosk-mode) {
        height: auto !important;
        min-height: 100dvh !important;
        overflow-y: auto !important;
    }
    body:not(.kiosk-mode) .assistant-hub {
        position: relative !important;
        inset: auto !important;
        justify-content: flex-start !important;
        min-height: 100vh !important;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        gap: 0.4rem !important;
    }
    /* Logo + titre + lede compactés */
    body:not(.kiosk-mode) .born-logo__official img { max-height: 60px !important; width: auto !important; }
    body:not(.kiosk-mode) .assistant-hub__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important; }
    body:not(.kiosk-mode) .assistant-hub__lede  { font-size: 0.78rem !important; max-width: 30rem !important; }
    body:not(.kiosk-mode) .assistant-hub__banner { gap: 0.2rem !important; }
    body:not(.kiosk-mode) .assistant-hub__eyebrow { font-size: 0.65rem !important; padding: 0.18rem 0.6rem !important; }

    /* Cards plus serrées */
    body:not(.kiosk-mode) .choice-hub { gap: 0.6rem !important; }
    body:not(.kiosk-mode) .choice-card--video .choice-card__media { min-height: clamp(11rem, 26vh, 14rem) !important; }
    body:not(.kiosk-mode) .choice-card--text .choice-card__media { min-height: clamp(10rem, 24vh, 13rem) !important; padding: 0.5rem !important; }
    body:not(.kiosk-mode) .choice-card--text { min-height: 0 !important; }
    body:not(.kiosk-mode) .choice-card__footer { padding: 0.55rem 0.85rem 0.65rem !important; gap: 0.4rem !important; }
    body:not(.kiosk-mode) .choice-card__title { font-size: 0.95rem !important; }
    body:not(.kiosk-mode) .choice-card__sub { font-size: 0.78rem !important; line-height: 1.3 !important; }
    body:not(.kiosk-mode) .choice-card__cta { min-height: 2.6rem !important; padding: 0.45rem 0.9rem !important; font-size: 0.8rem !important; }
    body:not(.kiosk-mode) .choice-card--text .choice-card__cta { min-height: 2.6rem !important; padding: 0.5rem 0.9rem !important; }
    /* Sur viewport très court, masquer le preview chat (bulles aperçu) pour gagner ~150px de hauteur */
    body:not(.kiosk-mode) .choice-card--text .text-preview { display: none !important; }
    body:not(.kiosk-mode) .choice-card--text .choice-card__media--text { min-height: 0 !important; padding: 0.4rem !important; }
}

/* Desktop semi-court (720-880px) : compactage LÉGER → cards gardent leur belle hauteur, on rogne juste le hero et padding */
@media (min-width: 1024px) and (min-height: 721px) and (max-height: 880px) {
    body:not(.kiosk-mode) .assistant-hub {
        padding-bottom: 1.5rem !important;
        padding-top: 1rem !important;
        gap: 0.6rem !important;
    }
    body:not(.kiosk-mode) .assistant-hub__hero {
        gap: 1rem !important;
    }
    body:not(.kiosk-mode) .assistant-hub__lede {
        display: none !important;
    }
    /* Eyebrow centré visuellement entre logo et titre : marges rééquilibrées (mesures réelles) */
    body:not(.kiosk-mode) .assistant-hub__eyebrow {
        font-size: 0.72rem !important;
        padding: 0.28rem 0.85rem !important;
        letter-spacing: 0.18em !important;
        margin-top: 0 !important;
        margin-bottom: 1.1rem !important;
    }
    body:not(.kiosk-mode) .assistant-hub__title {
        font-size: clamp(1.7rem, 2.5vw, 2.2rem) !important;
    }
    /* Logo agrandi significativement pour retrouver de la présence */
    body:not(.kiosk-mode) .born-logo__official img {
        max-height: 150px !important;
        width: auto !important;
    }
    /* Réduction discrète des cards : garde de la générosité visuelle */
    body:not(.kiosk-mode) .choice-card--video .choice-card__media {
        min-height: clamp(11rem, 28vh, 16rem) !important;
    }
    body:not(.kiosk-mode) .choice-card--text .choice-card__media {
        min-height: clamp(9rem, 24vh, 14rem) !important;
    }
}

/* Desktop court (<720px) : compactage AGRESSIF, cards plus serrées (laptop fenêtré ou résolution faible) */
@media (max-height: 720px) and (min-width: 1024px) {
    body:not(.kiosk-mode) .assistant-hub {
        padding-bottom: 1.5rem !important;
        padding-top: 1.2rem !important;
        gap: 0.4rem !important;
    }
    body:not(.kiosk-mode) .choice-card--video,
    body:not(.kiosk-mode) .choice-card--text {
        min-height: 0 !important;
    }
    body:not(.kiosk-mode) .choice-card--video .choice-card__media {
        min-height: clamp(7rem, 20vh, 11rem) !important;
    }
    body:not(.kiosk-mode) .choice-card--text .choice-card__media {
        min-height: 0 !important;
        padding: 0.4rem !important;
    }
    body:not(.kiosk-mode) .choice-card__footer {
        padding: 0.5rem 0.85rem 0.65rem !important;
        gap: 0.35rem !important;
    }
    body:not(.kiosk-mode) .choice-card__title {
        font-size: 0.9rem !important;
    }
    body:not(.kiosk-mode) .choice-card__sub {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    body:not(.kiosk-mode) .choice-card__cta,
    body:not(.kiosk-mode) .choice-card--text .choice-card__cta {
        min-height: 2.3rem !important;
        padding: 0.4rem 0.85rem !important;
        font-size: 0.75rem !important;
    }
    body:not(.kiosk-mode) .assistant-hub__title {
        font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
        margin: 0 !important;
    }
    body:not(.kiosk-mode) .assistant-hub__lede,
    body:not(.kiosk-mode) .assistant-hub__eyebrow {
        display: none !important;
    }
    body:not(.kiosk-mode) .born-logo {
        margin-top: 0 !important;
    }
    body:not(.kiosk-mode) .born-logo__official img {
        max-height: 45px !important;
        width: auto !important;
    }
}

/* Viewport encore plus court (<= 640px) : empiler les 2 cards verticalement et masquer eyebrow */
@media (max-height: 640px) {
    body:not(.kiosk-mode) .choice-hub {
        grid-template-columns: 1fr !important;
        max-width: min(48rem, 92vw) !important;
        gap: 0.5rem !important;
    }
    body:not(.kiosk-mode) .assistant-hub__eyebrow { display: none !important; }
    body:not(.kiosk-mode) .assistant-hub__lede { display: none !important; }
    body:not(.kiosk-mode) .born-logo__official img { max-height: 48px !important; }
    body:not(.kiosk-mode) .choice-card--video .choice-card__media { min-height: clamp(8rem, 22vh, 11rem) !important; }
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-body);
    background-image:
        var(--gradient-glow),
        linear-gradient(160deg, var(--bg-body) 0%, var(--bg-panel) 50%, var(--bg-body) 100%);
    transition: background-color 0.45s ease, color 0.45s ease;
}

/* ==========================================
   Background animé : montagnes + neige (effet station de ski)
   ========================================== */
.snowscape {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.snowscape__mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(30vh, 45dvh, 55vh);
    max-height: 500px;
    opacity: 0.6;
    transition: opacity 0.45s ease;
}

/* Visibilité des 2 styles SVG selon body.style-* */
.snowscape__mountains--detailed { display: none; }
body.style-detailed .snowscape__mountains--minimal { display: none; }
body.style-detailed .snowscape__mountains--detailed { display: block; }

/* Style "off" : tout désactivé */
body.style-off .snowscape__mountains,
body.style-off .snowscape__snow,
body.style-off .snowscape__petals,
body.style-off .snowscape__sun,
body.style-off .snowscape__moon,
body.style-off .snowscape__aurora,
body.style-off .snowscape__stars,
body.style-off .snowscape__3d,
body.style-off .snowscape__network {
    display: none !important;
}

/* Canvas 3D Three.js : visible uniquement en style 3d, masque les 2D */
.snowscape__3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}
body.style-3d .snowscape__3d {
    opacity: 1;
}
body.style-3d .snowscape__mountains,
body.style-3d .snowscape__snow,
body.style-3d .snowscape__petals,
body.style-3d .snowscape__aurora,
body.style-3d .snowscape__stars,
body.style-3d .snowscape__sun,
body.style-3d .snowscape__moon,
body.style-3d .snowscape__network {
    display: none !important;
}

/* Aurore boréale + Étoiles : visible uniquement en style détaillé */
.snowscape__aurora,
.snowscape__stars {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
body.style-detailed .snowscape__aurora,
body.style-detailed .snowscape__stars {
    opacity: 1;
}

/* === Style 2 = RÉSEAU DE PARTICULES CONNECTÉES (constellations animées) === */
/* Radicalement différent du Style 1 paysage : canvas 2D avec network/constellations
   couleur dynamique selon thème (--primary-light), aucune montagne visible. */

.snowscape__network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}
body.style-detailed .snowscape__network {
    opacity: 1;
}
/* En style 2, on cache TOUT le décor paysage (montagnes, soleil, lune, aurore, étoiles SVG) */
body.style-detailed .snowscape__mountains,
body.style-detailed .snowscape__sun,
body.style-detailed .snowscape__moon,
body.style-detailed .snowscape__aurora,
body.style-detailed .snowscape__stars,
body.style-detailed .snowscape__snow,
body.style-detailed .snowscape__petals {
    display: none !important;
}

/* Aurore boréale animée : gradient onduleux multi-couleurs (legacy, plus utilisé) */
.snowscape__aurora {
    position: absolute;
    inset: 0 0 45% 0;
    background:
        radial-gradient(ellipse 70% 55% at 25% 25%, rgba(120, 255, 200, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 90% 65% at 70% 18%, rgba(180, 100, 255, 0.5) 0%, transparent 65%),
        radial-gradient(ellipse 75% 40% at 50% 38%, rgba(255, 140, 220, 0.42) 0%, transparent 60%);
    filter: blur(35px);
    animation: auroraWave 18s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes auroraWave {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
        opacity: 0.85;
    }
    33% {
        transform: translateY(-4%) scale(1.08, 0.95);
        opacity: 1;
    }
    66% {
        transform: translateY(2%) scale(0.95, 1.05);
        opacity: 0.7;
    }
}

/* Étoiles scintillantes */
.snowscape__stars {
    position: absolute;
    inset: 0 0 45% 0;
    overflow: hidden;
}
.star {
    position: absolute;
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 18px rgba(160, 200, 255, 0.75),
        0 0 30px rgba(120, 180, 255, 0.45);
    animation: twinkle ease-in-out infinite alternate;
    user-select: none;
    will-change: opacity, transform;
}

/* Lune (style 2 nuit) */
.snowscape__moon {
    position: absolute;
    top: 8%;
    right: 11%;
    width: clamp(70px, 10vw, 150px);
    height: clamp(70px, 10vw, 150px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #ffffff 0%, #e8eff8 35%, #c4d2e6 70%, #94a8c4 100%);
    box-shadow:
        0 0 30px rgba(220, 235, 255, 0.8),
        0 0 70px rgba(180, 210, 250, 0.5),
        0 0 110px rgba(140, 180, 230, 0.3);
    pointer-events: none;
    display: none;
}
body.style-detailed:not(.season-summer) .snowscape__moon {
    display: block;
}
body.style-detailed:not(.season-summer) .snowscape__sun {
    display: none;
}
@keyframes twinkle {
    0%   { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.15); }
}

/* Glow halo sur sommets enneigés en style détaillé */
body.style-detailed .snowscape__mountains--detailed polygon[fill="#ffffff"] {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 14px rgba(180, 220, 255, 0.6));
}

/* (legacy : aurore/stars/moon ne sont plus utilisés — Style 2 = canvas network) */

.snowscape__snow {
    position: absolute;
    inset: 0;
}

.snowflake,
.petal {
    position: absolute;
    top: -8%;
    user-select: none;
    will-change: transform, opacity;
    --drift: 0px;
    animation: snowfall linear infinite;
}

.snowflake {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(220, 235, 255, 0.7), 0 0 14px rgba(180, 215, 255, 0.4);
}

.petal {
    color: #f8b8d4;
    text-shadow: 0 0 6px rgba(255, 200, 220, 0.55), 0 0 12px rgba(255, 180, 200, 0.3);
}

@keyframes snowfall {
    0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
    50%  { transform: translate3d(var(--drift), 50vh, 0) rotate(180deg); }
    100% { transform: translate3d(0, 110vh, 0) rotate(360deg); }
}

/* Soleil (saison été) */
.snowscape__sun {
    position: absolute;
    top: 6%;
    right: 8%;
    width: clamp(90px, 13vw, 200px);
    height: clamp(90px, 13vw, 200px);
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            rgba(255, 245, 180, 1) 0%,
            rgba(255, 220, 110, 0.85) 25%,
            rgba(255, 190, 70, 0.45) 55%,
            transparent 75%);
    filter: blur(2px);
    pointer-events: none;
    animation: sunPulse 4.5s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.92; }
}

/* Mode saison : Hiver = neige, Été = pétales + soleil. Display strict pour éviter bleed. */
.snowscape__petals,
.snowscape__sun,
.snowscape__moon,
.snowscape__aurora,
.snowscape__stars {
    display: none;
}
.snowscape__snow {
    display: block;
}

/* HIVER (par défaut) : neige visible, pas de pétales/soleil */
body.season-winter .snowscape__snow { display: block; }
body.season-winter .snowscape__petals,
body.season-winter .snowscape__sun { display: none; }

/* ÉTÉ : pétales + soleil visibles, neige cachée */
body.season-summer .snowscape__snow { display: none; }
body.season-summer .snowscape__petals { display: block; }
body.season-summer .snowscape__sun { display: block; }

/* Mountains : hiver = thème, été = vert verdoyant universel */
body.season-summer .snowscape__mountains {
    filter: hue-rotate(80deg) saturate(0.85) brightness(1.05);
}

/* Thèmes B (vert) et C (bois) : teinte montagnes ajustée (hiver uniquement) */
body:not(.season-summer)[data-theme="B"] .snowscape__mountains {
    filter: hue-rotate(60deg) saturate(0.7);
}
body:not(.season-summer)[data-theme="C"] .snowscape__mountains {
    filter: hue-rotate(-25deg) saturate(0.55) brightness(1.05);
}

/* Switcher saison (haut-droite, sous le switcher Charte) */
.season-switcher {
    position: fixed;
    /* Aligné gap 8px sous theme-switcher (theme h≈62 → top + 70px = clamp + env + 4.375rem) */
    top: calc(clamp(0.75rem, 2vh, 1.25rem) + env(safe-area-inset-top, 0px) + 4.375rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 99px;
    padding: 0.3rem 0.5rem;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
}

.season-switcher__label {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    padding-right: 0.35rem;
    user-select: none;
    white-space: nowrap;
}

.season-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    opacity: 0.5;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-card);
}

.season-btn.active {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.18);
    background: var(--bg-card);
}

.season-btn:not(.active):hover {
    opacity: 0.8;
    transform: scale(1.06);
}

/* Mode kiosk : masquer aussi le switcher saison */
body.kiosk-mode .season-switcher,
:fullscreen .season-switcher,
html:fullscreen .season-switcher,
:-webkit-full-screen .season-switcher {
    display: none !important;
}

/* Mobile : compacter switcher saison */
@media (max-width: 767px) {
    .season-switcher {
        top: calc(0.45rem + env(safe-area-inset-top, 0px) + 2.6rem);
        right: 0.45rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
        gap: 0.3rem;
    }
    .season-switcher__label { display: none; }
    .season-switcher .season-btn {
        min-width: 1.85rem;
        min-height: 1.85rem;
        font-size: 0.8rem;
    }
}

/* Switcher style d'animation (haut-droite, sous le switcher Saison) */
.style-switcher {
    position: fixed;
    /* Aligné gap 8px sous season-switcher (season h≈52 → top + 130px = clamp + env + 8.125rem) */
    top: calc(clamp(0.75rem, 2vh, 1.25rem) + env(safe-area-inset-top, 0px) + 8.125rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 99px;
    padding: 0.3rem 0.5rem;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
}

.style-switcher__label {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    padding-right: 0.35rem;
    user-select: none;
    white-space: nowrap;
}

.style-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    opacity: 0.55;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

.style-btn.active {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.18);
    background: var(--bg-card);
    color: var(--primary);
}

.style-btn:not(.active):hover {
    opacity: 0.85;
    transform: scale(1.06);
}

/* Mode kiosk : masquer aussi le switcher style */
body.kiosk-mode .style-switcher,
:fullscreen .style-switcher,
html:fullscreen .style-switcher,
:-webkit-full-screen .style-switcher {
    display: none !important;
}

/* Mobile : compacter switcher style */
@media (max-width: 767px) {
    .style-switcher {
        top: calc(0.45rem + env(safe-area-inset-top, 0px) + 5.2rem);
        right: 0.45rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
        gap: 0.3rem;
    }
    .style-switcher__label { display: none; }
    .style-switcher .style-btn {
        min-width: 1.85rem;
        min-height: 1.85rem;
        font-size: 0.65rem;
    }
}

/* ==========================================
   Bouton toggle outils (mobile uniquement)
   Sur mobile : remplace les outils visibles par un bouton compact qui les déploie
   ========================================== */
.tools-toggle {
    display: none;
    position: fixed;
    top: calc(0.45rem + env(safe-area-inset-top, 0px));
    right: 0.45rem;
    z-index: 60;
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border-card);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    padding: 0;
    transition: transform 0.18s ease, background 0.18s ease;
}
.tools-toggle:hover,
.tools-toggle:focus-visible {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}
.tools-toggle i {
    width: 18px;
    height: 18px;
}
body.tools-open .tools-toggle {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}

/* Mode kiosk : masquer aussi le bouton toggle outils */
body.kiosk-mode .tools-toggle,
:fullscreen .tools-toggle {
    display: none !important;
}

/* === Mobile (≤767px) : refonte intégrale des outils + cards compactes === */
@media (max-width: 767px) {
    /* --- Toggle outils + masquage : bouton plus gros et plus visible (44px+ tactile) --- */
    .tools-toggle {
        display: flex !important;
        width: 3rem !important;
        height: 3rem !important;
        top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
        right: 0.75rem !important;
        background: linear-gradient(135deg, #0f172a, #1e3a5f) !important;
        color: #fff !important;
        border-color: rgba(255,255,255,0.3) !important;
        box-shadow: 0 4px 14px rgba(15,23,42,0.35) !important;
    }
    .tools-toggle i {
        width: 22px !important;
        height: 22px !important;
        color: #fff !important;
    }
    body.tools-open .tools-toggle {
        background: linear-gradient(135deg, #c2410c, #ea580c) !important;
    }
    .demo-mode-btn,
    .theme-switcher,
    .season-switcher,
    .style-switcher {
        display: none !important;
    }
    body.tools-open .demo-mode-btn {
        display: inline-flex !important;
    }
    /* Mobile : bouton "Compte rendu" sticky bas, centré responsive avec max-width */
    .meeting-pdf-btn {
        top: auto !important;
        bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px)) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 2.5rem) !important;
        max-width: 360px !important;
        background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #fb923c 100%) !important;
        color: #fff !important;
        border: 1.5px solid rgba(255,255,255,0.5) !important;
        padding: 0.85rem 1.1rem !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 24px rgba(194,65,12,0.55), 0 0 0 4px rgba(194,65,12,0.18) !important;
        z-index: 60 !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        animation: meeting-pulse 2.4s ease-in-out infinite;
    }
    @keyframes meeting-pulse {
        0%, 100% { box-shadow: 0 6px 24px rgba(194,65,12,0.55), 0 0 0 0 rgba(194,65,12,0.5); }
        50%      { box-shadow: 0 6px 24px rgba(194,65,12,0.55), 0 0 0 8px rgba(194,65,12,0); }
    }
    .meeting-pdf-btn:hover, .meeting-pdf-btn:active {
        background: linear-gradient(135deg, #9a3412, #c2410c) !important;
        transform: translateX(-50%) translateY(-1px) !important;
    }
    @keyframes meeting-pulse {
        0%, 100% { box-shadow: 0 6px 24px rgba(194,65,12,0.55), 0 0 0 0 rgba(194,65,12,0.5); }
        50%      { box-shadow: 0 6px 24px rgba(194,65,12,0.55), 0 0 0 8px rgba(194,65,12,0); }
    }
    .meeting-pdf-btn i { color: #fff !important; width: 18px !important; height: 18px !important; }
    .meeting-pdf-btn .meeting-menu__chevron { width: 14px !important; height: 14px !important; }

    /* Le mini-menu déroulant : centré au-dessus du bouton */
    .meeting-menu__panel {
        top: auto !important;
        bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-width: 0 !important;
        width: calc(100% - 2.5rem) !important;
        max-width: 360px !important;
    }
    .meeting-menu.is-open .meeting-menu__panel {
        animation: meeting-menu-pop-up 0.2s ease;
    }
    @keyframes meeting-menu-pop-up {
        from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.98); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    }

    /* Marge de sécurité pour le hub afin que la barre Compte rendu ne couvre pas le contenu */
    .assistant-hub {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.tools-open .theme-switcher,
    body.tools-open .season-switcher,
    body.tools-open .style-switcher {
        display: flex !important;
    }
    /* Repositionnement mobile : switchers en cascade verticale sous le bouton tools-toggle (qui fait 48px + 12 top) */
    body.tools-open .demo-mode-btn {
        top: calc(4.5rem + env(safe-area-inset-top, 0px)) !important;
        right: 0.75rem !important;
        left: auto !important;
        bottom: auto !important;
        background: rgba(255,255,255,0.95) !important;
        color: var(--primary) !important;
    }
    body.tools-open .theme-switcher {
        top: calc(8rem + env(safe-area-inset-top, 0px)) !important;
        right: 0.75rem !important;
    }
    body.tools-open .season-switcher {
        top: calc(11.5rem + env(safe-area-inset-top, 0px)) !important;
        right: 0.75rem !important;
    }
    body.tools-open .style-switcher {
        top: calc(15rem + env(safe-area-inset-top, 0px)) !important;
        right: 0.75rem !important;
    }
    /* Backdrop semi-opaque quand tools-open. pointer-events auto = clic ferme via JS (tap outside) */
    body.tools-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,0.35);
        z-index: 49;
        pointer-events: none;
    }
    /* --- Hub : padding minimal pour gain espace utile --- */
    .assistant-hub {
        padding-top: calc(0.4rem + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 0.4rem !important;
        gap: 0.4rem !important;
    }
    /* --- Titre & logo compactés --- */
    .born-logo__official img {
        width: clamp(5rem, 18vw, 7rem) !important;
    }
    .assistant-hub__title {
        font-size: clamp(1.4rem, 6.5vw, 1.9rem) !important;
        max-width: 14ch !important;
    }
    .assistant-hub__lede {
        font-size: 0.85rem !important;
    }
    .assistant-hub__banner {
        gap: 0.3rem !important;
    }
    /* --- CARDS RÉDUITES : tout doit tenir dans 600-700px viewport --- */
    .choice-card {
        min-height: 0 !important;
    }
    .choice-card--video {
        min-height: clamp(12rem, 30dvh, 17rem) !important;
    }
    .choice-card--text {
        min-height: clamp(10rem, 22dvh, 13rem) !important;
    }
    .choice-card--video .choice-card__media {
        min-height: clamp(8rem, 22dvh, 12rem) !important;
    }
    .choice-card--text .choice-card__media {
        min-height: clamp(5rem, 12dvh, 8rem) !important;
    }
    .choice-card__footer {
        padding: 0.6rem 0.75rem !important;
    }
    .choice-card__cta {
        min-height: 2.85rem !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    .choice-card--text .choice-card__cta {
        min-height: 2.85rem !important;
        padding: 0.65rem 1rem 0.72rem !important;
    }
    .choice-card--text .choice-card__sub {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
    }
    /* --- Preview chat (texte) VISIBLE sur mobile, mais compactée --- */
    .choice-card--text .text-preview {
        display: flex !important;
        gap: 0.4rem !important;
        padding-top: 0.4rem !important;
        width: 100% !important;
    }
    .choice-card--text .text-preview__conversation {
        gap: 0.4rem !important;
        min-height: 0 !important;
    }
    .choice-card--text .text-preview__bubble {
        font-size: 0.78rem !important;
        padding: 0.5rem 0.7rem !important;
        line-height: 1.3 !important;
    }
    .choice-card--text .choice-card__media--text {
        padding: 0.6rem 0.7rem !important;
        min-height: clamp(8rem, 22vh, 11rem) !important;
        background:
            radial-gradient(circle at top, rgba(74, 143, 224, 0.20), transparent 60%),
            linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(216, 230, 245, 0.85)) !important;
    }
    /* --- Hub-hero gap réduit --- */
    .assistant-hub__hero {
        gap: 0.5rem !important;
    }
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }
button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
}
button:focus-visible {
    outline: 0.2rem solid var(--border-focus);
    outline-offset: 0.2rem;
    border-radius: 0.5rem;
}

/* ==========================================
   5. Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-height: 48px;
}

.btn--primary {
    background: var(--gradient);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow-video);
}

/* ==========================================
   6. Theme Switcher + Bouton Mode démo
   ========================================== */
.demo-mode-btn {
    position: fixed;
    top: calc(clamp(0.75rem, 2vh, 1.25rem) + env(safe-area-inset-top, 0px));
    left: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-card);
    border-radius: 99px;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.demo-mode-btn:hover {
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.demo-mode-btn:active {
    transform: translateY(0);
}
.demo-mode-btn i {
    width: 14px;
    height: 14px;
}

/* Mode kiosk : masquer TOUS les outils dev (switcher + bouton démo).
   Activé soit par URL ?kiosk (borne réelle), soit par clic bouton démo (laptop dev).
   Aussi déclenché par :fullscreen pour compat ascendante. */
body.kiosk-mode .demo-mode-btn,
body.kiosk-mode .meeting-pdf-btn,
body.kiosk-mode .theme-switcher,
:fullscreen .demo-mode-btn,
:fullscreen .meeting-pdf-btn,
:fullscreen .theme-switcher,
html:fullscreen .demo-mode-btn,
html:fullscreen .meeting-pdf-btn,
html:fullscreen .theme-switcher,
:-webkit-full-screen .demo-mode-btn,
:-webkit-full-screen .meeting-pdf-btn,
:-webkit-full-screen .theme-switcher {
    display: none !important;
}

/* ==========================================
   Bouton Compte rendu (PDF réunion)
   Style miroir de .demo-mode-btn, positionné juste en dessous.
   ========================================== */
.meeting-pdf-btn {
    position: fixed;
    /* Aligné parfaitement sur Saison à droite (même top : clamp + env + 4.375rem ≈ 88px) */
    top: calc(clamp(0.75rem, 2vh, 1.25rem) + 4.375rem + env(safe-area-inset-top, 0px));
    left: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-card);
    border-radius: 99px;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.meeting-pdf-btn:hover {
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.meeting-pdf-btn:active {
    transform: translateY(0);
}
.meeting-pdf-btn:visited {
    color: var(--primary);
}
.meeting-pdf-btn i {
    width: 14px;
    height: 14px;
}

/* ==========================================
   Mini-menu déroulant attaché au bouton "Compte rendu"
   .meeting-menu  = conteneur position-relative (rattaché au bouton)
   .meeting-menu__toggle = le bouton (réutilise styles .meeting-pdf-btn)
   .meeting-menu__panel  = popover qui descend sous le bouton
   ========================================== */
.meeting-menu {
    /* purement marqueur, le bouton est positionné fixed par .meeting-pdf-btn,
       le panel sera positionné fixed aussi via les coordonnées calc(top + hauteur). */
}
.meeting-menu__chevron {
    width: 12px !important;
    height: 12px !important;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}
.meeting-menu.is-open .meeting-menu__chevron {
    transform: rotate(180deg);
}
.meeting-menu__panel {
    position: fixed;
    /* Compte rendu top = 88px + h 53 + gap 8 = 149 → 18 + 8.1875rem */
    top: calc(clamp(0.75rem, 2vh, 1.25rem) + 8.1875rem + env(safe-area-inset-top, 0px));
    left: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 51;
    display: none;
    flex-direction: column;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 2rem));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 0.35rem;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transform-origin: top left;
    animation: meeting-menu-pop 0.18s ease;
}
.meeting-menu.is-open .meeting-menu__panel {
    display: flex;
}
@keyframes meeting-menu-pop {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.meeting-menu__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    color: var(--text-primary, #1c2330);
    text-decoration: none;
    font-family: var(--font-body);
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.meeting-menu__item:hover,
.meeting-menu__item:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    transform: translateX(1px);
    outline: none;
}
.meeting-menu__item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--primary);
}
.meeting-menu__item span {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}
.meeting-menu__item strong {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.meeting-menu__item small {
    font-size: 0.72rem;
    color: var(--text-secondary, #56607a);
    font-weight: 500;
}
/* Masquer le menu en mode kiosque (cohérent avec le bouton parent) */
body.kiosk-mode .meeting-menu__panel,
:fullscreen .meeting-menu__panel,
html:fullscreen .meeting-menu__panel,
:-webkit-full-screen .meeting-menu__panel {
    display: none !important;
}


.theme-switcher {
    position: fixed;
    top: calc(clamp(0.75rem, 2vh, 1.25rem) + env(safe-area-inset-top, 0px));
    right: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 99px;
    padding: 0.3rem 0.5rem;
    backdrop-filter: blur(0.5rem);
}

.theme-switcher__label {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    padding-right: 0.35rem;
    user-select: none;
    white-space: nowrap;
}

.theme-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    opacity: 0.5;
    color: #fff;
    cursor: pointer;
}

.theme-btn[data-theme-target="A"] { background: linear-gradient(135deg, #8F3F28, #D9835B); }
.theme-btn[data-theme-target="B"] { background: linear-gradient(135deg, #0A3D20, #2E9A54); }
.theme-btn[data-theme-target="C"] { background: linear-gradient(135deg, #0D2A52, #2E6CC4); }

.theme-btn.active {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.2);
}

.theme-btn:not(.active):hover {
    opacity: 0.8;
    transform: scale(1.08);
}

.theme-btn::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.6rem;
    white-space: nowrap;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.theme-btn:hover::after { opacity: 1; }

/* ==========================================
   7. Logo
   ========================================== */
.born-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
    animation: fadeIn 0.5s ease both;
}

.born-logo__official {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.4rem 0.85rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.born-logo__official img {
    width: clamp(7rem, 12vw, 16rem);
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================
   8. Assistant Hub (v2b: fullscreen choice layout)
   ========================================== */
.assistant-hub {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.75rem);
    gap: clamp(0.5rem, 1.5vh, 1rem);
}

.assistant-hub__hero {
    width: min(100%, 92rem);
    max-width: min(92rem, 88vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.75rem, 1.4vh, 1.15rem);
    flex: 1;
    min-height: 0;
}

.assistant-hub__banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(0.85rem, 1.7vh, 1.35rem);
    min-width: 0;
    max-width: 39rem;
    margin: 0 auto;
    text-align: center;
}

/* Kiosk (mode démo plein écran) : banner centré verticalement entre logo et cards
   via space-around sur le hero. En mode normal (laptop), le banner reste collé
   au logo (default flex-start). */
body.kiosk-mode .assistant-hub__hero,
:fullscreen .assistant-hub__hero,
html:fullscreen .assistant-hub__hero {
    justify-content: space-around;
}

.assistant-hub__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
    align-self: center;
}

.assistant-hub__title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 2.4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--text-primary);
    max-width: 14ch;
    margin: 0 auto;
}

/* Tablette + Desktop (≥ 768px) : titre sur une seule ligne (évite le wrap "Bienvenue au\nChâteau des Rubins") */
@media (min-width: 768px) {
    .assistant-hub__title {
        max-width: none;
        white-space: nowrap;
    }
}

.assistant-hub__lede {
    max-width: 34rem;
    font-size: clamp(0.93rem, 0.42vw + 0.8rem, 1.03rem);
    line-height: 1.42;
    color: var(--text-secondary);
    margin: 0 auto;
}

.assistant-hub--hidden {
    display: none !important;
}

/* ==========================================
   9. Choice Hub & Cards
   ========================================== */
.choice-hub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    width: 100%;
    max-width: min(76rem, 92vw);
    margin: 0 auto;
    min-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.choice-card--video {
    animation:
        fadeIn 0.45s 0.05s ease both,
        inviteCardPulse 3.2s ease-in-out 0.8s infinite;
}

.choice-card--text {
    animation:
        fadeIn 0.45s 0.15s ease both,
        inviteCardPulse 3.2s ease-in-out 2.4s infinite;
}

@keyframes inviteCardPulse {
    0%, 100% {
        box-shadow:
            var(--shadow-card),
            var(--shadow-primary),
            0 0 0 0 transparent,
            0 0 0 0 transparent,
            0 0 0 0 transparent,
            0 0 0 0 transparent;
    }
    50% {
        box-shadow:
            var(--shadow-card),
            var(--shadow-primary),
            0 0 0 4px color-mix(in srgb, var(--primary-light) 55%, transparent),
            0 0 0 14px color-mix(in srgb, var(--primary-light) 26%, transparent),
            0 0 70px 22px color-mix(in srgb, var(--primary-light) 50%, transparent),
            0 0 120px 40px color-mix(in srgb, var(--primary) 28%, transparent);
    }
}

/* Shimmer lumineux qui balaie la card (effet "wahou") */
.choice-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 25%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.0) 75%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
    border-radius: inherit;
    filter: blur(6px);
    mix-blend-mode: screen;
    opacity: 0;
}

.choice-card--video::after {
    animation: shimmerSweep 4.5s ease-in-out 1.5s infinite;
}

.choice-card--text::after {
    animation: shimmerSweep 4.5s ease-in-out 3.75s infinite;
}

@keyframes shimmerSweep {
    0%       { left: -120%; opacity: 0; }
    15%      { opacity: 1; }
    50%      { left: 120%; opacity: 1; }
    65%      { opacity: 0; }
    100%     { left: 120%; opacity: 0; }
}

.choice-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card), var(--shadow-primary);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    text-align: left;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.45s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: clamp(19rem, 42dvh, 26rem);
}

.choice-card--video {
    min-height: clamp(22.5rem, 48dvh, 27.5rem);
}

.choice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.02), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.choice-card:hover,
.choice-card:focus-visible {
    transform: translateY(-0.2rem) scale(1.005);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card), 0 0 3.5rem rgba(0, 0, 0, 0.08);
}

.choice-card:hover::before,
.choice-card:focus-visible::before {
    opacity: 1;
}

.choice-card:active {
    transform: translateY(0) scale(0.995);
}

.choice-card__media {
    position: relative;
    flex: 1;
    min-height: clamp(11.5rem, 24dvh, 15.5rem);
    overflow: hidden;
}

.choice-card--video .choice-card__media {
    min-height: clamp(16rem, 35dvh, 20rem);
}

.choice-card__media--video {
    background: linear-gradient(160deg, #1b4d8e 0%, #0d2a52 100%);
}

.choice-card--video .choice-card__banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.6rem, 1vw, 0.85rem) clamp(0.95rem, 1.5vw, 1.2rem) clamp(0.7rem, 1.1vw, 0.95rem);
    border: none;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(8, 22, 44, 0) 0%, rgba(8, 22, 44, 0.55) 35%, rgba(8, 22, 44, 0.92) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    pointer-events: none;
}

.choice-card--video .choice-card__banner-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.choice-card--video .choice-card__banner-mark {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 0 1.25rem rgba(255, 255, 255, 0.16);
}

.choice-card--video .choice-card__banner-meta {
    font-size: clamp(0.62rem, 0.4vw + 0.54rem, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.choice-card--video .choice-card__banner .waveform {
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 6rem;
}

.choice-card--video .choice-card__banner .waveform-bar {
    background: linear-gradient(180deg, #d8ecff 0%, #7ec4ff 100%);
    opacity: 0.92;
}

.choice-card__media--text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background:
        radial-gradient(circle at top, rgba(74, 143, 224, 0.24), transparent 52%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(216, 230, 245, 0.9));
}

.choice-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.35vw, 1.55rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: color 0.45s ease;
}

.choice-card__identity {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.82;
    margin-top: -0.25rem;
    transition: color 0.45s ease;
}

.choice-card__sub {
    font-size: clamp(0.84rem, 0.5vw + 0.72rem, 1rem);
    color: var(--text-secondary);
    line-height: 1.38;
    transition: color 0.45s ease;
}

.choice-card__sub-detail {
    font-size: 0.9em;
    opacity: 0.75;
}

.choice-card__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.72rem, 0.5vw + 0.58rem, 0.85rem);
    color: var(--text-muted);
}

.choice-card__status--overlay {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
    padding: 0.32rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(10, 22, 40, 0.55);
    color: #fff;
    backdrop-filter: blur(0.5rem);
}

.choice-card__footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(0.95rem, 1.5vw, 1.25rem);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(27, 77, 142, 0.12);
}

.choice-card--video .choice-card__footer {
    gap: 0;
    margin-top: 0;
    padding: clamp(0.85rem, 1.15vw, 1.05rem) clamp(0.9rem, 1.2vw, 1.15rem) clamp(0.95rem, 1.3vw, 1.1rem);
    background: rgba(8, 22, 44, 0.97);
    border-top: none;
}

.choice-card--text .choice-card__footer {
    gap: 0.85rem;
    padding-bottom: clamp(1.1rem, 1.7vw, 1.4rem);
    border-top: 1px solid rgba(27, 77, 142, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.choice-card--text .choice-card__content {
    gap: 0.42rem;
}

.choice-card--text .choice-card__sub {
    line-height: 1.46;
    padding-bottom: 0.08rem;
}

.choice-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choice-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), #2e6cc4);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 1rem 2rem rgba(27, 77, 142, 0.22);
}

.choice-card__cta--ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(27, 77, 142, 0.9);
    box-shadow: none;
    letter-spacing: 0.01em;
    text-transform: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.choice-card--video .choice-card__cta {
    width: 100%;
    min-width: 100%;
}

.choice-card--text .choice-card__cta {
    min-height: 3.65rem;
    padding: 0.95rem 1.2rem 1.02rem;
    line-height: 1.24;
    overflow: visible;
}

.text-preview {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: min(100%, 20rem);
    padding-top: 1.6rem;
}

.text-preview--idle {
    justify-content: flex-end;
    min-height: 100%;
}

.text-preview__conversation {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 9.75rem;
    /* overflow:hidden retiré : tronquait le texte de la bulle bot quand il dépassait 9.75rem */
}

.text-preview__bubble {
    max-width: 88%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-size: 0.92rem;
    line-height: 1.45;
    box-shadow: 0 0.9rem 1.6rem rgba(13, 42, 82, 0.08);
    transition: transform 0.42s ease, opacity 0.42s ease;
    will-change: transform, opacity;
}

.text-preview__bubble:empty {
    display: none;
}

.text-preview__bubble--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), #2e6cc4);
    color: #fff;
    border-bottom-right-radius: 0.3rem;
}

.text-preview__bubble--bot {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid rgba(27, 77, 142, 0.14);
    border-bottom-left-radius: 0.3rem;
}

.text-preview__bubble.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.12rem;
    height: 1.05em;
    margin-left: 0.22rem;
    vertical-align: -0.18em;
    border-radius: 999px;
    background: currentColor;
    animation: textIdleCaret 0.85s steps(1) infinite;
}

.text-preview--idle.is-transitioning .text-preview__bubble--user {
    transform: translate3d(0, -0.85rem, 0);
    opacity: 0;
}

.text-preview--idle.is-transitioning .text-preview__bubble--bot {
    transform: translate3d(0, -1.1rem, 0);
    opacity: 0;
}

.text-preview__input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(27, 77, 142, 0.16);
    color: var(--text-muted);
}

.text-preview__input span {
    flex: 1;
    font-size: 0.92rem;
}

.text-preview__send {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #2e6cc4);
    color: #fff;
    font-size: 0.9rem;
}

.status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: dotPulse 2.5s ease-in-out infinite;
}

/* Separateur */
.choice-sep {
    background: var(--divider);
    border-radius: 99px;
    flex-shrink: 0;
    width: 1px;
    height: auto;
    align-self: stretch;
    display: none;
    transition: background 0.45s ease;
}

/* ==========================================
   10. Animation pre-clic — Card Video
   ========================================== */

.video-speak-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: clamp(0.72rem, 0.5vw + 0.6rem, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: -0.5rem;
    animation: speakPulse 2.2s ease-in-out infinite;
    transition: color 0.45s ease;
}

.speak-mic {
    font-size: 0.9em;
    animation: micBounce 1.1s ease-in-out infinite;
}

/* Waveform */
.waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.18rem;
    height: clamp(1.5rem, 3vh, 2.2rem);
    flex-shrink: 0;
}

.waveform-bar {
    width: clamp(0.18rem, 0.4vw, 0.28rem);
    background: var(--primary-light);
    border-radius: 99px;
    opacity: 0.75;
    transition: background 0.45s ease;
    animation: wave 1.4s ease-in-out infinite;
}

.waveform-bar:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.waveform-bar:nth-child(2)  { height: 60%; animation-delay: 0.1s; }
.waveform-bar:nth-child(3)  { height: 90%; animation-delay: 0.2s; }
.waveform-bar:nth-child(4)  { height: 70%; animation-delay: 0.3s; }
.waveform-bar:nth-child(5)  { height: 100%; animation-delay: 0.4s; }
.waveform-bar:nth-child(6)  { height: 80%; animation-delay: 0.5s; }
.waveform-bar:nth-child(7)  { height: 55%; animation-delay: 0.6s; }
.waveform-bar:nth-child(8)  { height: 70%; animation-delay: 0.7s; }
.waveform-bar:nth-child(9)  { height: 90%; animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { height: 60%; animation-delay: 0.9s; }
.waveform-bar:nth-child(11) { height: 30%; animation-delay: 1.0s; }

/* Badge IA Visuelle */
.video-badge {
    position: absolute;
    top: clamp(0.75rem, 2vh, 1.1rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    padding: 0.3rem 0.65rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-card);
    border-radius: 99px;
    font-size: clamp(0.55rem, 0.35vw + 0.44rem, 0.68rem);
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--primary);
    text-transform: uppercase;
    user-select: none;
    transition: color 0.45s ease;
}

/* Card Texte — icone */
.choice-card__icon-wrap {
    width: clamp(4rem, 10vw, 6rem);
    height: clamp(4rem, 10vw, 6rem);
    border-radius: 50%;
    background: var(--gradient);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 2rem var(--glow-video);
    transition: box-shadow 0.22s ease, background 0.45s ease;
}

.choice-card:hover .choice-card__icon-wrap {
    box-shadow: 0 0 3rem var(--glow-video);
}

.choice-card__icon {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1;
    user-select: none;
}

/* ==========================================
   11. Text Chatbot (Chatbase)
   ========================================== */
.text-chatbot {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060;
    pointer-events: none;
}

.text-chatbot.active {
    pointer-events: auto;
    inset: 0;
    transform: none;
    width: 100vw;
    height: 100dvh;
}

.text-chatbot__window {
    position: relative;
    width: clamp(400px, 50vw, 700px);
    height: 80vh;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 4rem);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.text-chatbot.active .text-chatbot__window {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    max-height: 100%;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
}

.text-chatbot__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--gradient);
    color: #FFFFFF;
}

.text-chatbot__avatar {
    height: 36px;
    min-width: 36px;
    border-radius: 0.5rem;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
}

.text-chatbot__avatar img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.text-chatbot__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

.text-chatbot__status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.text-chatbot__status-dot {
    width: 7px;
    height: 7px;
    background: #4ADE80;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.text-chatbot__close {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1.4rem;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
    margin-left: auto;
}

.text-chatbot__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.text-chatbot__chatbase-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Fullscreen mode */
.text-chatbot--fullscreen .text-chatbot__window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    max-height: 100%;
    border-radius: 0;
    z-index: 1060;
    transition: none;
}

/* ==========================================
   12. Video Chatbot (LiveAvatar)
   ========================================== */
.chatbot {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    pointer-events: none;
}

.chatbot.active {
    pointer-events: auto;
}

.chatbot__window {
    position: relative;
    width: min(calc(100vw - 2rem), clamp(320px, 48vw, 680px));
    max-width: 680px;
    height: clamp(560px, 78dvh, 960px);
    max-height: calc(100dvh - 2rem);
    background: #000000;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chatbot__video-crop {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000000;
}

.chatbot__video-crop iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.chatbot.active .chatbot__window {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.chatbot__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.3rem 0.7rem;
    background: var(--gradient);
    color: #FFFFFF;
    position: relative;
    z-index: 10;
    min-height: 38px;
}

.chatbot__header-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.chatbot__header-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.chatbot__avatar {
    height: 24px;
    min-width: 24px;
    border-radius: 0.35rem;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0 2px;
}

.chatbot__avatar img {
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
}

.chatbot__name {
    flex: 1;
    min-width: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    white-space: normal;
    line-height: 1.3;
}

.chatbot__status {
    font-size: 0.7rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chatbot__status-dot {
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.chatbot__header-actions {
    display: flex;
    gap: 0.15rem;
    flex-shrink: 0;
}

.chatbot__header-actions button {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
}

.chatbot__header-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot__header-actions button i {
    width: 18px;
    height: 18px;
}

/* Fullscreen mode */
.chatbot--fullscreen {
    inset: 0;
    transform: none;
    width: 100vw;
    height: 100dvh;
}

.chatbot--fullscreen .chatbot__window,
.chatbot__window:fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    max-height: 100%;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
    z-index: 1060;
    transition: none;
}

.chatbot--fullscreen .chatbot__header-actions button[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot--fullscreen .did-container,
.chatbot__window:fullscreen .did-container {
    flex: 1;
    min-height: 0;
}

.chatbot--fullscreen .did-panel,
.chatbot__window:fullscreen .did-panel {
    min-height: 0;
}

/* ==========================================
   13. D-ID Agent Styles
   ========================================== */
.did-timer-row {
    /* Timer "5:00 restant" masqué côté UI client (page démo Rubins).
       La logique de fin de session côté JS reste active pour contrôler les coûts. */
    display: none !important;
}

.did-timer-icon {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.did-timer {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.did-timer-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    white-space: nowrap;
    margin-left: 0.1rem;
}

.did-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.did-container > * {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
}

/* Avatar LiveAvatar : cover pour remplir l'écran sans bandes noires.
   Override CIBLÉ sur les wrappers vidéo SDK uniquement (PAS sur les overlays
   .mic-gate-indicator, .nova-countdown-pill, .did-transcript, .did-end-message). */
.did-container,
.did-container > *,
.chatbot__video-crop {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* Override universel sur TOUS les media injectés par le SDK dans le chatbot
   quelle que soit la profondeur des wrappers.
   :not(.idle-video) EXCLUT le bg local idle-video (nova-idle.mp4) qui doit rester
   en object-fit: cover (sinon bandes noires sur mobile pendant l'écran "Connexion"). */
#chatbot video:not(.idle-video),
#chatbot iframe,
#chatbot canvas,
.chatbot video:not(.idle-video),
.chatbot iframe,
.chatbot canvas,
.did-container video:not(.idle-video),
.did-container iframe,
.did-container canvas,
.chatbot__video-crop video:not(.idle-video),
.chatbot__video-crop iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: #000;
}

/* Neutraliser les wrappers intermédiaires SDK qui pourraient contraindre l'aspect */
.did-container > div,
.did-container > div > div {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
}

.did-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
}

.avatar-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.avatar-stage--panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Wrapper transparent aux clicks — sinon il couvre l'iframe avatar (z:1) et
       intercepte tous les taps, rendant les boutons internes (Interrompre, etc.)
       non-cliquables. .avatar-idle reprend pointer-events:auto quand il est
       visible (état idle "Touchez RUBY"). */
    pointer-events: none;
}
.avatar-stage--panel .avatar-idle:not(.is-hidden) {
    pointer-events: auto;
}

.avatar-stage--panel .avatar-idle,
.chatbot--fullscreen .avatar-stage--panel .avatar-idle,
.chatbot__window:fullscreen .avatar-stage--panel .avatar-idle {
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.1), transparent 22%),
        radial-gradient(circle at 82% 24%, rgba(74, 143, 224, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(4, 12, 24, 1) 0%, rgba(6, 18, 36, 0.98) 50%, rgba(7, 22, 45, 1) 100%);
}

.avatar-stage--panel .idle-video,
.chatbot--fullscreen .avatar-stage--panel .idle-video,
.chatbot__window:fullscreen .avatar-stage--panel .idle-video {
    opacity: 0.92;
    mix-blend-mode: normal;
    object-position: center 10%;
}

.avatar-idle {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 80% 24%, rgba(74, 143, 224, 0.24), transparent 26%),
        radial-gradient(circle at 50% 70%, rgba(27, 77, 142, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(5, 16, 34, 0.98) 0%, rgba(7, 22, 45, 0.94) 45%, rgba(9, 28, 58, 0.98) 100%);
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    cursor: pointer;
    border-radius: inherit;
}

.avatar-stage--hero .avatar-idle {
    cursor: default;
}

.avatar-stage--hero .idle-video {
    object-position: center 10%;
    opacity: 1;
    mix-blend-mode: normal;
}

.avatar-stage--hero .idle-text-backdrop {
    padding: 1rem 1.2rem 0.95rem;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 10, 24, 0.34) 36%, rgba(2, 10, 24, 0.84) 100%);
}

.avatar-stage--hero .idle-sub,
.avatar-stage--hero .idle-cta {
    max-width: 18rem;
}

.avatar-idle.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.avatar-idle::after {
    content: "";
    position: absolute;
    inset: -15% auto -15% -35%;
    width: 65%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 100%);
    filter: blur(14px);
    animation: idleSweep 7s ease-in-out infinite;
    pointer-events: none;
}

.idle-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
    opacity: 0.72;
    mix-blend-mode: screen;
}

.idle-text-backdrop {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 1.15rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 10, 24, 0.48) 24%, rgba(2, 10, 24, 0.9) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.idle-text,
.idle-sub,
.idle-cta {
    color: #FFFFFF;
    text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.4);
}

.idle-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.idle-sub {
    font-size: 0.95rem;
    font-weight: 600;
}

.idle-cta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.idle-equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.2rem;
    height: 1.8rem;
    margin-top: 0.15rem;
}

.idle-bar {
    width: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(74, 143, 224, 0.45));
    box-shadow: 0 0 0.75rem rgba(74, 143, 224, 0.3);
    animation: idleBars 1.25s ease-in-out infinite;
}

.idle-bar--1 { height: 30%; animation-delay: 0s; }
.idle-bar--2 { height: 68%; animation-delay: 0.12s; }
.idle-bar--3 { height: 100%; animation-delay: 0.24s; }
.idle-bar--4 { height: 68%; animation-delay: 0.36s; }
.idle-bar--5 { height: 30%; animation-delay: 0.48s; }

.avatar-loading,
.avatar-error {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.25rem;
    text-align: center;
    background: rgba(2, 8, 18, 0.82);
}

.avatar-loading__spinner {
    width: 2.75rem;
    height: 2.75rem;
    border: 0.22rem solid rgba(255, 255, 255, 0.22);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Countdown pill */
.nova-countdown-pill {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-0.5rem) scale(0.96);
    width: min(calc(100% - 2rem), 22rem);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
        rgba(12, 19, 34, 0.34);
    box-shadow:
        0 0.8rem 2rem rgba(5, 10, 20, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    pointer-events: none;
    z-index: 5;
}

.nova-countdown-pill::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
    opacity: 0.9;
    z-index: -1;
}

.nova-countdown-pill--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nova-countdown-pill[data-level="warning-soft"] {
    border-color: rgba(129, 208, 255, 0.38);
    box-shadow:
        0 0.8rem 2rem rgba(11, 37, 72, 0.28),
        0 0 1.8rem rgba(74, 143, 224, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.nova-countdown-pill[data-level="warning-medium"] {
    border-color: rgba(255, 215, 140, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 244, 214, 0.22), rgba(255, 198, 87, 0.1)),
        rgba(32, 22, 10, 0.38);
    box-shadow:
        0 0.8rem 2rem rgba(33, 22, 9, 0.28),
        0 0 2rem rgba(212, 168, 48, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nova-countdown-pill[data-level="warning-final"] {
    border-color: rgba(255, 155, 155, 0.48);
    background:
        linear-gradient(135deg, rgba(255, 214, 214, 0.24), rgba(255, 107, 107, 0.12)),
        rgba(46, 11, 11, 0.42);
    box-shadow:
        0 0.9rem 2.2rem rgba(45, 10, 10, 0.34),
        0 0 2rem rgba(255, 107, 107, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* End message */
.did-end-message {
    display: none;
    text-align: center;
    padding: 2rem 1.5rem;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    position: absolute;
    inset: 0;
    z-index: 5;
}

.did-end-message--visible {
    display: flex;
}

.did-end-message p {
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.did-end-message p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.did-end-message .btn {
    margin-top: 1rem;
    min-width: 160px;
}

.did-end-close {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.did-end-countdown {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================
   14. Transcript Panel
   ========================================== */
.did-transcript {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 25%;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    z-index: 4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.did-transcript--hidden {
    display: none;
}

.did-transcript__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.did-transcript__title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.did-transcript__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.15rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
}

.did-transcript__close:hover {
    color: #fff;
}

.did-transcript__messages {
    padding: 0.4rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
    flex: 1;
}

.did-transcript__messages:empty::after {
    content: 'Les messages apparaitront ici...';
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem 0;
}

.did-transcript__msg {
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    max-width: 80%;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    word-wrap: break-word;
    font-family: var(--font-body);
}

.did-transcript__msg--user {
    align-self: flex-end;
    background: var(--primary);
    border-bottom-right-radius: 0.15rem;
}

.did-transcript__msg--avatar {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 0.15rem;
}

.chatbot__transcript-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
}

.chatbot__transcript-toggle:hover {
    opacity: 1;
}

/* ==========================================
   15. Keyframes (GPU only: transform + opacity)
   ========================================== */
@keyframes ringExpand {
    0%   { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 2.5rem var(--glow-video), 0 0 5rem rgba(0, 0, 0, 0.15); }
    50%      { box-shadow: 0 0 4rem var(--glow-video), 0 0 6.5rem rgba(0, 0, 0, 0.2), 0 0 8rem var(--glow-ring2); }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%) rotate(0deg); opacity: 0; }
    30%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { transform: translateX(100%) rotate(0deg); opacity: 0; }
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

@keyframes speakPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

@keyframes micBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.2rem); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   16. Responsive — bloc compilé unique
   Grille : xs ≤480 | sm ≤767 | md 768–1023 | lg 1024–1599 | xl ≥1600 | 2xl ≥2400
   + mobile-short (paysage mobile compact) | portrait (kiosque vertical ≥768) | reduced-motion
   Ordre cascade : md → lg → xl → 2xl → sm → xs → mobile-short → portrait → reduced-motion
   ========================================== */

/* --- md : tablette portrait / petits laptops (768–1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .assistant-hub {
        padding-top: clamp(3.5rem, 6vh, 4.5rem);
    }
    .assistant-hub__hero {
        max-width: 48rem;
    }
    .choice-hub {
        grid-template-columns: 1fr;
        max-width: 44rem;
    }
    .choice-card__media {
        min-height: clamp(18rem, 34dvh, 24rem);
    }
}

/* --- lg : desktop / laptop / tablette paysage (1024–1599px) --- */
@media (min-width: 1024px) and (max-width: 1599px) {
    .assistant-hub__hero {
        justify-content: center;
    }
    .choice-hub {
        grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.95fr);
        align-items: stretch;
        max-width: 70rem;
    }
    .choice-card--video,
    .choice-card--text {
        align-self: stretch;
    }
    .choice-card--text {
        min-height: clamp(21.5rem, 46dvh, 26rem);
    }
    .choice-card--video .choice-card__media {
        min-height: clamp(16.5rem, 36dvh, 20.5rem);
    }
    .choice-card--text .choice-card__media {
        min-height: clamp(15rem, 32dvh, 18.5rem);
    }
    .choice-card--text .choice-card__footer {
        padding: clamp(1rem, 1.35vw, 1.2rem) clamp(1rem, 1.35vw, 1.25rem) clamp(1.15rem, 1.75vw, 1.45rem);
    }
    .choice-card--video .choice-card__title,
    .choice-card--text .choice-card__title {
        font-size: clamp(1.1rem, 1.15vw, 1.4rem);
    }
    .choice-card--video .choice-card__sub,
    .choice-card--text .choice-card__sub {
        max-width: 34ch;
    }
}

/* --- xl : grand écran / kiosque paysage (≥1600px) --- */
@media (min-width: 1600px) {
    .assistant-hub__hero {
        justify-content: center;
        max-width: min(92rem, 78vw);
    }
    .choice-hub {
        grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.95fr);
        align-items: stretch;
        max-width: min(76rem, 80vw);
    }
    .choice-card--video,
    .choice-card--text {
        align-self: stretch;
    }
    .choice-card--text {
        min-height: clamp(21.5rem, 46dvh, 26rem);
    }
    .choice-card--video .choice-card__media {
        min-height: clamp(16.5rem, 36dvh, 20.5rem);
    }
    .choice-card--text .choice-card__media {
        min-height: clamp(15rem, 32dvh, 19rem);
    }
    .choice-card--text .choice-card__footer {
        padding: clamp(1rem, 1.35vw, 1.2rem) clamp(1rem, 1.35vw, 1.25rem) clamp(1.15rem, 1.75vw, 1.45rem);
    }
    .choice-card--video .choice-card__title,
    .choice-card--text .choice-card__title {
        font-size: clamp(1.15rem, 1vw, 1.5rem);
    }
    .choice-card--video .choice-card__sub,
    .choice-card--text .choice-card__sub {
        max-width: 36ch;
    }
}

/* --- 2xl : 4K (≥2400px) --- */
@media (min-width: 2400px) {
    :root {
        font-size: clamp(1.3rem, 0.7vw + 0.6rem, 2rem);
        --touch-target: 4.125rem;
    }
    .assistant-hub {
        padding: 3rem 4rem;
    }
    .assistant-hub__hero {
        max-width: 76vw;
    }
    .choice-hub {
        max-width: 78vw;
    }
    .choice-card {
        border-radius: 2rem;
    }
}

/* --- sm : mobile (≤767px) --- */
@media (max-width: 767px) {
    .theme-switcher {
        top: calc(0.45rem + env(safe-area-inset-top, 0px));
        right: 0.45rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
        gap: 0.3rem;
    }
    .theme-switcher__label {
        display: none;
    }
    .theme-switcher .theme-btn {
        min-width: 1.85rem;
        min-height: 1.85rem;
        font-size: 0.72rem;
    }
    .assistant-hub {
        padding-top: calc(clamp(3.5rem, 8vh, 5rem) + env(safe-area-inset-top, 0px));
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .assistant-hub__title {
        max-width: 11ch;
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
    .assistant-hub__lede {
        font-size: 1rem;
    }
    .assistant-hub__visual-stage {
        min-height: clamp(17rem, 42dvh, 22rem);
    }
    .born-logo {
        align-self: center;
        margin-top: 1rem;
    }
    .choice-hub {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .choice-card {
        min-height: unset;
    }
    .choice-card__media {
        min-height: clamp(15rem, 34dvh, 20rem);
    }
    .choice-card__footer {
        padding: 1rem;
    }
    .choice-card__cta {
        font-size: 0.88rem;
    }
    .choice-card--text .choice-card__footer {
        gap: 0.75rem;
        padding: 1rem 1rem 1.1rem;
    }
    .choice-card--text .choice-card__cta {
        min-height: 3.55rem;
        padding: 0.88rem 1rem 0.96rem;
    }
    .text-preview {
        width: 100%;
    }
    .chatbot {
        top: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }
    .chatbot__window {
        width: min(calc(100vw - 1rem), 100%);
        height: clamp(520px, 70dvh, 760px);
        max-height: calc(100dvh - 1rem);
        border-radius: 1.25rem;
    }
    .chatbot__header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem;
        min-height: 0;
    }
    .chatbot__header-bottom {
        gap: 0.5rem;
        align-items: flex-start;
        flex-direction: column;
    }
    .did-timer-row {
        width: 100%;
        justify-content: flex-start;
    }
}

/* --- xs : mobile compact (≤480px) --- */
@media (max-width: 480px) {
    .assistant-hub__visual-stage {
        min-height: 8rem;
    }
    .assistant-hub__title {
        font-size: clamp(1.45rem, 7vw, 1.8rem);
    }
    .assistant-hub__lede {
        font-size: 0.85rem;
        display: none;
    }
    .assistant-hub__banner {
        gap: 0.3rem;
    }
    .choice-card__media {
        min-height: 8rem;
    }
    .choice-card__footer {
        gap: 0.6rem;
    }
    .choice-card--video .choice-card__sub {
        display: none;
    }
    .choice-card--video .choice-card__media {
        min-height: 13.25rem;
    }
    .choice-card--video .choice-card__footer {
        padding: 0.7rem 0.75rem 0.85rem;
        /* Bg plein opaque (comme desktop) pour éviter la ligne blanche visible
           quand le banner (full dark) rencontrait un footer à 16% alpha laissant
           transparaître le blanc de la card. */
        background: rgba(8, 22, 44, 0.98);
        border-top: none;
    }
    /* Banner flush avec les bords de la card pour matcher le comportement desktop
       (sinon visuel "flottant" avec marges 0.7rem au lieu d'unifié au bas de la media). */
    .choice-card--video .choice-card__banner {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 0.7rem 0.95rem 0.85rem;
        gap: 0.75rem;
        border-radius: 0 !important;
    }
    .choice-card--video .choice-card__banner-mark {
        font-size: 0.92rem;
        letter-spacing: 0.18em;
    }
    .choice-card--video .choice-card__banner-meta {
        font-size: 0.54rem;
        letter-spacing: 0.06em;
    }
    .idle-text-backdrop {
        padding: 1rem 0.85rem 0.9rem;
    }
    .idle-sub {
        font-size: 0.85rem;
    }
    .idle-cta {
        font-size: 0.74rem;
    }
    .nova-countdown-pill {
        top: 0.75rem;
        width: min(calc(100% - 1.25rem), 18rem);
        padding: 0.65rem 0.85rem;
        font-size: 0.76rem;
    }
}

/* --- mobile-short : mobile paysage compact (≤767 ET ≤700 hauteur) --- */
@media (max-width: 767px) and (max-height: 700px) {
    .assistant-hub {
        padding-top: calc(2.5rem + env(safe-area-inset-top, 0px));
        gap: 0.5rem;
    }
    .assistant-hub__visual-stage {
        min-height: clamp(13rem, 30dvh, 16rem);
    }
    .born-logo__official img {
        width: 6rem;
    }
    .choice-card__media {
        min-height: clamp(13rem, 30dvh, 17rem);
    }
}

/* --- desktop-short : laptops/desktops avec viewport hauteur réduite (≥768 ET ≤820 hauteur)
   Couvre 1280×720, 1366×768, écrans avec barre navigateur épaisse, zoom ≥110%, etc.
   Compresse cards pour que CTA reste visible sans scroll. --- */
@media (min-width: 768px) and (max-height: 1000px) {
    .assistant-hub {
        padding-top: clamp(1rem, 2.5vh, 2rem);
        padding-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
        gap: clamp(1.4rem, 3vh, 2.4rem);
    }
    .assistant-hub__hero {
        gap: clamp(0.5rem, 1vh, 0.85rem);
    }
    .assistant-hub__banner {
        gap: clamp(0.7rem, 1.4vh, 1.1rem);
    }
    .assistant-hub__title {
        font-size: clamp(1.5rem, 2.5vw, 2.4rem);
        line-height: 1.05;
    }
    .assistant-hub__lede {
        font-size: clamp(0.85rem, 1vw, 1rem);
    }
    .born-logo {
        margin-top: 0;
    }
    .born-logo__official img {
        width: clamp(5.5rem, 8vw, 8.5rem);
    }
    .choice-card--video {
        min-height: 0;
    }
    .choice-card--text {
        min-height: 0;
    }
    .choice-card--video .choice-card__media {
        min-height: clamp(10rem, 32dvh, 16rem);
    }
    .choice-card--text .choice-card__media {
        min-height: clamp(9rem, 24dvh, 13rem);
    }
    .choice-card__footer {
        padding: clamp(0.6rem, 1vw, 0.95rem);
    }
    .choice-card--text .choice-card__footer {
        gap: 0.5rem;
        padding-bottom: clamp(0.75rem, 1.2vw, 1rem);
    }
    .choice-card--video .choice-card__footer {
        padding: clamp(0.6rem, 0.9vw, 0.85rem) clamp(0.75rem, 1vw, 1rem);
    }
    .choice-card__cta {
        min-height: 2.85rem;
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
    }
    .choice-card--text .choice-card__cta {
        min-height: 2.85rem;
        padding: 0.7rem 1rem 0.78rem;
    }
}

/* --- portrait : borne tactile verticale (orientation portrait, ≥768px largeur) --- */
@media (orientation: portrait) and (min-width: 768px) {
    .assistant-hub {
        justify-content: center;
        padding-top: clamp(4rem, 8vh, 7rem);
    }
    .assistant-hub__hero {
        max-width: min(92rem, 92vw);
        gap: clamp(1rem, 2vh, 2rem);
    }
    .assistant-hub__title {
        font-size: clamp(2.4rem, 5vw, 4rem);
        max-width: 16ch;
    }
    .assistant-hub__lede {
        font-size: clamp(1rem, 1.5vw, 1.3rem);
        max-width: 38rem;
    }
    .assistant-hub__visual-stage {
        min-height: clamp(20rem, 30dvh, 28rem);
    }
    .choice-hub {
        grid-template-columns: 1fr;
        max-width: min(56rem, 88vw);
        gap: clamp(1.25rem, 2.5vh, 2.5rem);
    }
    .choice-card {
        min-height: unset;
    }
    .choice-card--video {
        min-height: clamp(28rem, 40dvh, 38rem);
    }
    .choice-card--text {
        min-height: clamp(22rem, 30dvh, 30rem);
    }
    .choice-card--video .choice-card__media {
        min-height: clamp(20rem, 30dvh, 28rem);
    }
    .choice-card__media {
        min-height: clamp(16rem, 25dvh, 22rem);
    }
    .born-logo__official img {
        width: clamp(8rem, 12vw, 14rem);
    }
}

/* --- prefers-reduced-motion : accessibilité --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .text-preview__bubble {
        transition: none !important;
    }
}

/* ==========================================
   17. Touch Targets (minimum 48px)
   ========================================== */
.choice-card,
.text-chatbot__close,
.chatbot__header-actions button,
.chatbot__transcript-toggle,
.did-transcript__close,
.btn,
.theme-btn {
    min-height: 48px;
}

@keyframes textIdleCaret {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes idleSweep {
    0% { transform: translateX(0); opacity: 0; }
    18% { opacity: 0.45; }
    68% { transform: translateX(180%); opacity: 0.28; }
    100% { transform: translateX(220%); opacity: 0; }
}

@keyframes idleBars {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

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

/* Mic gating indicator — IAN-2054 — visibility boostée
   En BAS, mais AU-DESSUS du bouton Interrompre (qui occupe ~bottom:28px à 84px).
   bottom:7rem ≈ 112px → ~30px de gap au-dessus du bouton. */
.mic-gate-indicator {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mic-gate-indicator.mic-gate--muted {
    background: rgba(220, 38, 38, 0.94);
    color: #fff;
    box-shadow:
        0 4px 16px rgba(220, 38, 38, 0.55),
        0 0 32px rgba(255, 60, 60, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: micGatePulse 1.8s ease-in-out infinite;
}
.mic-gate-indicator.mic-gate--open {
    background: rgba(22, 163, 74, 0.94);
    color: #fff;
    box-shadow:
        0 4px 16px rgba(22, 163, 74, 0.45),
        0 0 24px rgba(60, 220, 100, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes micGatePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%      { transform: translateX(-50%) scale(1.05); }
}


/* ==========================================
   Démo Château des Rubins — ajustements identité
   ========================================== */
.born-logo__official img,
.chatbot__avatar img,
.text-chatbot__avatar img {
    object-fit: contain;
    padding: 0.18rem;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 0.75rem;
}
.born-logo__official img {
    max-width: min(31rem, 80vw);
    width: 100%;
    height: auto;
}
.assistant-hub__eyebrow::after {
    content: " · Observatoire des Alpes";
}


.rubins-text-placeholder {
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    background:
        radial-gradient(circle at 30% 20%, rgba(242, 196, 141, 0.22), transparent 45%),
        linear-gradient(145deg, rgba(255, 248, 242, 0.98), rgba(239, 224, 212, 0.96));
}
.rubins-text-placeholder__card {
    max-width: 34rem;
    text-align: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-card);
}
.rubins-text-placeholder__card img {
    width: min(18rem, 78%);
    height: auto;
    margin-bottom: 1.25rem;
}
.rubins-text-placeholder__card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 0.9rem;
    color: var(--primary-dark);
}
.rubins-text-placeholder__card p {
    margin: 0.55rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}
.rubins-text-placeholder__badge {
    display: inline-block;
    padding: 0.32rem 0.95rem;
    margin: 0.4rem auto 0.85rem !important;
    font-family: var(--font-heading);
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff !important;
    background: linear-gradient(135deg, #d97a4e, #b85a35);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(184, 90, 53, 0.32);
}


/* ==========================================
   Rubins mobile hotfix — 2026-05-19
   Avatar plein écran réel sur téléphone + safe areas
   ========================================== */
@media (max-width: 767px), (orientation: portrait) {
    .chatbot.chatbot--fullscreen {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        height: 100svh !important;
        transform: none !important;
        z-index: 5000 !important;
        background: #000 !important;
    }

    .chatbot.chatbot--fullscreen .chatbot__window,
    .chatbot__window:fullscreen {
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        height: 100svh !important;
        max-height: none !important;
        min-height: 100svh !important;
        border-radius: 0 !important;
        border: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #000 !important;
    }

    .chatbot.chatbot--fullscreen .chatbot__header,
    .chatbot__window:fullscreen .chatbot__header {
        min-height: 44px !important;
        padding-top: max(0.25rem, env(safe-area-inset-top, 0px)) !important;
        flex-shrink: 0 !important;
    }

    .chatbot.chatbot--fullscreen .did-panel,
    .chatbot.chatbot--fullscreen .did-container,
    .chatbot.chatbot--fullscreen .chatbot__video-crop,
    .chatbot__window:fullscreen .did-panel,
    .chatbot__window:fullscreen .did-container,
    .chatbot__window:fullscreen .chatbot__video-crop {
        flex: 1 1 auto !important;
        width: 100vw !important;
        max-width: none !important;
        min-height: 0 !important;
        height: auto !important;
        background: #000 !important;
    }

    .chatbot.chatbot--fullscreen #did-wrapper-iframe,
    .chatbot.chatbot--fullscreen .chatbot__video-crop iframe,
    .chatbot__window:fullscreen #did-wrapper-iframe,
    .chatbot__window:fullscreen .chatbot__video-crop iframe {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
        transform: none !important;
    }

    /* Mode démo (kiosk-mode) sur mobile : centrer verticalement les box au lieu de
       laisser justify-content: flex-start qui les colle en haut avec vide en bas.
       Le bandeau (logo + titre) reste en haut, mais les cards se centrent dans
       l'espace restant via justify-content: center sur le hero. */
    body.kiosk-mode .assistant-hub {
        justify-content: center !important;
        padding-top: calc(1.25rem + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: hidden !important;
    }
    body.kiosk-mode .assistant-hub__hero {
        justify-content: center !important;
        gap: clamp(1rem, 3vh, 2rem) !important;
        flex: 1 1 auto !important;
    }
    body.kiosk-mode .choice-hub {
        align-self: stretch !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: clamp(0.85rem, 2vh, 1.4rem) !important;
        padding: 0 clamp(0.5rem, 2vw, 1rem) !important;
        box-sizing: border-box !important;
    }
    body.kiosk-mode .choice-card {
        min-height: clamp(15rem, 32dvh, 22rem) !important;
    }
    body.kiosk-mode .choice-card--video {
        min-height: clamp(18rem, 38dvh, 26rem) !important;
    }
    body.kiosk-mode .choice-card__media {
        min-height: clamp(13rem, 28dvh, 18rem) !important;
    }
    body.kiosk-mode .choice-card--video .choice-card__media {
        min-height: clamp(15rem, 32dvh, 22rem) !important;
    }

    /* IMPORTANT — Override règle universelle ligne 2435-2458 qui force
       object-fit: contain sur TOUS les .chatbot video (y compris .idle-video).
       Sur mobile portrait, l'idle-video (nova-idle.mp4, source 16:9) doit rester
       en cover sinon bandes noires top/bottom pendant l'écran "Connexion à l'avatar".
       Et le .avatar-stage / .avatar-idle doit rester plein écran. */
    .chatbot .idle-video,
    .chatbot.chatbot--fullscreen .idle-video,
    .chatbot__window:fullscreen .idle-video {
        object-fit: cover !important;
        object-position: center top !important;
        width: 100% !important;
        height: 100% !important;
    }

    .chatbot.chatbot--fullscreen .avatar-stage,
    .chatbot.chatbot--fullscreen .avatar-stage--panel,
    .chatbot.chatbot--fullscreen .avatar-idle,
    .chatbot__window:fullscreen .avatar-stage,
    .chatbot__window:fullscreen .avatar-stage--panel,
    .chatbot__window:fullscreen .avatar-idle {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }
}

/* Drapeaux SVG disponibles sous le CTA "Parler avec LIA" — hint visuel */
.choice-card__langs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    opacity: 0.95;
}
.choice-card__langs svg {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    transition: transform 0.15s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.choice-card:hover .choice-card__langs svg {
    transform: translateY(-1px);
}

/* Conteneur SVG des drapeaux dans le modal de sélection */
.lang-picker__flag-emoji svg {
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ==========================================
   Sélecteur de langue avatar (modal 4 drapeaux)
   Apparait au tap sur "Parler avec Lia" — l'utilisateur choisit la langue
   avant que l'avatar ne se lance. Le choix est propagé via ?lang=xx.
   ========================================== */
.lang-picker {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lang-picker.is-open { display: flex; animation: fadeIn 0.2s ease; }
.lang-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 44, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lang-picker__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
}
.lang-picker__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.06);
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lang-picker__close:hover { background: rgba(15, 23, 42, 0.12); color: #0f172a; }
.lang-picker__title {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}
.lang-picker__sub {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
    font-style: italic;
}
.lang-picker__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.lang-picker__flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    min-height: 110px;
    -webkit-tap-highlight-color: transparent;
}
.lang-picker__flag:hover, .lang-picker__flag:focus-visible {
    background: linear-gradient(135deg, #fef7ed, #fde4cd);
    border-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.18);
}
.lang-picker__flag:active { transform: translateY(0) scale(0.98); }
.lang-picker__flag-emoji {
    font-size: 2.6rem;
    line-height: 1;
}
.lang-picker__flag-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .lang-picker__panel { padding: 1.4rem 1rem 1.2rem; }
    .lang-picker__title { font-size: 1.2rem; }
    .lang-picker__flag-emoji { font-size: 2.2rem; }
    .lang-picker__flag-label { font-size: 0.88rem; }
    .lang-picker__flag { min-height: 96px; padding: 0.85rem 0.5rem; }
}

/* ===== OVERRIDE THÈME VAL D ARLY (Bleu Montagne) — standardisation 2026-06-29 ===== */
/* ==========================================
   1. THEME A — Bleu Montagne (defaut)
   Fond clair lumineux, accents bleu montagne
   ========================================== */
:root,
[data-theme="A"] {
    --primary:        #1B4D8E;
    --primary-dark:   #0D2A52;
    --primary-light:  #4A8FE0;
    --accent:         #D4A830;
    --accent-soft:    rgba(212, 168, 48, 0.12);
    --bg-body:        #E8F0FA;
    --bg-panel:       #D8E6F5;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F0F6FF;
    --text-primary:   #1A2E50;
    --text-secondary: #4A6A8E;
    --text-muted:     #8AAAC8;
    --border-card:    rgba(27, 77, 142, 0.18);
    --border-hover:   rgba(212, 168, 48, 0.55);
    --border-focus:   rgba(212, 168, 48, 0.85);
    --divider:        rgba(27, 77, 142, 0.12);
    --gradient:       linear-gradient(135deg, #1B4D8E, #2E6CC4);
    --gradient-glow:  radial-gradient(circle at 40% 50%, rgba(27, 77, 142, 0.08) 0%, transparent 60%);
    --shadow-card:    0 0.5rem 2rem rgba(27, 77, 142, 0.1);
    --shadow-primary: 0 0 1.5rem rgba(74, 143, 224, 0.12);
    --glow-video:     rgba(74, 143, 224, 0.35);
    --glow-ring1:     rgba(74, 143, 224, 0.25);
    --glow-ring2:     rgba(74, 143, 224, 0.12);
    --glow-ring3:     rgba(74, 143, 224, 0.06);

    --font-heading:   'Raleway', sans-serif;
    --font-body:      'Source Sans 3', sans-serif;
    --radius-card:    1.25rem;
    --radius-inner:   0.875rem;
    --radius-sm:      0.5rem;
    --radius-md:      1rem;
    --radius-lg:      1.5rem;
    --radius-full:    9999px;
    --touch-target:   2.75rem;
    --transition-fast:   0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow:   0.5s ease;

    font-size: clamp(0.9rem, 1.1vw + 0.6rem, 1.2rem);
}

/* ==========================================
   2. THEME B — Vert Alpage
   Fond clair verdoyant
   ========================================== */
[data-theme="B"] {
    --primary:        #1A6B3A;
    --primary-dark:   #0A3D20;
    --primary-light:  #3DB368;
    --accent:         #C8A012;
    --accent-soft:    rgba(200, 160, 18, 0.12);
    --bg-body:        #E8F5EC;
    --bg-panel:       #D4EBD8;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #F0FAF3;
    --text-primary:   #1A3528;
    --text-secondary: #3A6B50;
    --text-muted:     #7ABFA0;
    --border-card:    rgba(26, 107, 58, 0.18);
    --border-hover:   rgba(200, 160, 18, 0.55);
    --border-focus:   rgba(200, 160, 18, 0.85);
    --divider:        rgba(26, 107, 58, 0.12);
    --gradient:       linear-gradient(135deg, #1A6B3A, #2E9A54);
    --gradient-glow:  radial-gradient(circle at 40% 50%, rgba(26, 107, 58, 0.08) 0%, transparent 60%);
    --shadow-card:    0 0.5rem 2rem rgba(26, 107, 58, 0.1);
    --shadow-primary: 0 0 1.5rem rgba(61, 179, 104, 0.12);
    --glow-video:     rgba(61, 179, 104, 0.35);
    --glow-ring1:     rgba(61, 179, 104, 0.25);
    --glow-ring2:     rgba(61, 179, 104, 0.12);
    --glow-ring3:     rgba(61, 179, 104, 0.06);
}

/* ==========================================
   3. THEME C — Bois & Neige
   Fond clair chaud
   ========================================== */
[data-theme="C"] {
    --primary:        #7A4B1E;
    --primary-dark:   #3E240C;
    --primary-light:  #C08A52;
    --accent:         #A8BFCF;
    --accent-soft:    rgba(168, 191, 207, 0.12);
    --bg-body:        #F5EFEA;
    --bg-panel:       #EBE2D8;
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #FBF7F3;
    --text-primary:   #3E2A18;
    --text-secondary: #6B5040;
    --text-muted:     #B8A898;
    --border-card:    rgba(122, 75, 30, 0.18);
    --border-hover:   rgba(168, 191, 207, 0.55);
    --border-focus:   rgba(168, 191, 207, 0.85);
    --divider:        rgba(122, 75, 30, 0.12);
    --gradient:       linear-gradient(135deg, #7A4B1E, #A8673A);
    --gradient-glow:  radial-gradient(circle at 40% 50%, rgba(122, 75, 30, 0.08) 0%, transparent 60%);
    --shadow-card:    0 0.5rem 2rem rgba(122, 75, 30, 0.1);
    --shadow-primary: 0 0 1.5rem rgba(192, 138, 82, 0.12);
    --glow-video:     rgba(192, 138, 82, 0.35);
    --glow-ring1:     rgba(192, 138, 82, 0.25);
    --glow-ring2:     rgba(192, 138, 82, 0.12);
    --glow-ring3:     rgba(192, 138, 82, 0.06);
}



/* === DÉMO/KIOSQUE écran court (test laptop/mobile ; la borne 1080×1920 garde sa pleine taille) :
   compression LÉGÈRE pour tenir, SANS écraser la box texte, réglages VISIBLES. Anthony 2026-06-29. === */
@media (max-height: 1000px) {
  html.kiosk-mode { overflow-y: auto !important; height: auto !important; }
  body.kiosk-mode { overflow-y: auto !important; overflow-x: hidden !important; height: auto !important; min-height: 100dvh !important; }
  body.kiosk-mode .assistant-hub { position: relative !important; inset: auto !important; height: auto !important; min-height: 100dvh !important; max-height: none !important; overflow: visible !important; justify-content: center !important; padding: 0.8rem 0.8rem calc(1rem + env(safe-area-inset-bottom,0px)) !important; gap: 0.55rem !important; }
  body.kiosk-mode .assistant-hub__hero { margin: 0 !important; }
  body.kiosk-mode .born-logo__official img { max-height: 56px !important; width: auto !important; }
  body.kiosk-mode .assistant-hub__title { font-size: clamp(1.2rem, 4.2vw, 1.6rem) !important; margin: 0.25rem 0 !important; line-height: 1.15 !important; }
  body.kiosk-mode .assistant-hub__lede { font-size: 0.78rem !important; margin: 0.1rem 0 !important; }
  body.kiosk-mode .assistant-hub__eyebrow { font-size: 0.62rem !important; padding: 0.14rem 0.5rem !important; }
  body.kiosk-mode .choice-hub { gap: 0.55rem !important; }
  body.kiosk-mode .choice-card--video .choice-card__media { min-height: clamp(8rem, 22vh, 12rem) !important; }
}

/* Mode démo/kiosque : MASQUER les réglages (demande Anthony — ils gênent la vue). Box texte garde sa hauteur (compression légère ci-dessus). */
body.kiosk-mode .tools-toggle,
body.kiosk-mode .theme-switcher,
body.kiosk-mode .charte-switcher,
body.kiosk-mode .season-switcher,
body.kiosk-mode .style-switcher { display: none !important; }

/* Mode démo : resserrer logo/avatar/espacement pour tenir PILE sans scroll (la box texte garde sa hauteur). Anthony 2026-06-29. */
@media (max-height: 1000px) {
  body.kiosk-mode .born-logo__official img { max-height: 44px !important; }
  body.kiosk-mode .assistant-hub { gap: 0.4rem !important; padding-top: 0.55rem !important; padding-bottom: calc(0.65rem + env(safe-area-inset-bottom,0px)) !important; }
  body.kiosk-mode .assistant-hub__lede { display: none !important; }
  body.kiosk-mode .choice-card--video .choice-card__media { min-height: clamp(6rem, 17vh, 9rem) !important; }
}

/* Mode démo : drapeaux non rognés (padding bas du footer) + avatar un poil plus petit pour le fit mobile. 2026-06-29 */
@media (max-height: 1000px) {
  body.kiosk-mode .choice-card__footer { padding-bottom: 0.9rem !important; }
  body.kiosk-mode .choice-card__langs { padding-bottom: 0.15rem !important; }
  body.kiosk-mode .choice-card--video .choice-card__media { min-height: clamp(5.5rem, 15vh, 8rem) !important; }
}

/* Pas de filtre sombre quand les réglages sont ouverts (le voile assombrissait l'écran en plein écran mobile). Anthony 2026-06-29. */
body.kiosk-mode.tools-open::after, body.kiosk-mode::after { background: transparent !important; }

/* DA : tagline du bandeau (eyebrow::after) propre au projet — override de l'« Observatoire des Alpes » de Rubins hérité via la base CSS. 2026-06-30 */
.assistant-hub__eyebrow::after { content: " · Office de Tourisme" !important; }
