/* ════════════════════════════════════════════════════════════════════
   L.U.M.A. V2 — interface moderne (préfixe lv2-)
   Uniquement des variables de thème : fonctionne sur les 5 thèmes.
   Le personnage (LumaCharacter) garde ses animations dans luma.css.
   ════════════════════════════════════════════════════════════════════ */

.lv2-page,
.lv2-overlay {
    --lv2-gutter: 44px; /* marge latérale : l'icône du robot sort à gauche de la colonne, qui reste de la même largeur que la saisie */
    --lv2-col: 980px; /* largeur de la colonne centrale (conversation et saisie) */
    --lv2-radius: 16px;
    --lv2-radius-sm: 10px;
    --lv2-tint: color-mix(in srgb, var(--primary) 10%, transparent);
    --lv2-tint-strong: color-mix(in srgb, var(--primary) 18%, transparent);
    --lv2-line: color-mix(in srgb, var(--border-color) 85%, transparent);
    --lv2-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Mise en page ─────────────────────────────────────────────────── */
.lv2-page {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 45px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 320px;
    background:
        radial-gradient(1200px 500px at 85% -10%, var(--lv2-tint), transparent 60%),
        var(--bg-body);
    color: var(--text-main);
    overflow: hidden;
}

.lv2-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 16px 14px;
    overflow: hidden;
    border-right: 1px solid var(--lv2-line);
}

.lv2-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

/* ── Boutons communs ──────────────────────────────────────────────── */
.lv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.55rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--lv2-radius-sm);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, opacity 0.15s;
}
.lv2-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lv2-btn:not(:disabled):active { transform: scale(0.97); }
.lv2-btn-lg { padding: 0.8rem 1rem; font-size: 0.9rem; }
.lv2-btn-primary { background: var(--primary); color: var(--text-on-primary, #fff); }
.lv2-btn-primary:not(:disabled):hover { background: var(--primary-hover, var(--primary)); }
.lv2-btn-soft { background: var(--lv2-tint); color: var(--text-main); border-color: var(--lv2-line); }
.lv2-btn-soft:not(:disabled):hover { background: var(--lv2-tint-strong); }
.lv2-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--lv2-line); }
.lv2-btn-ghost:not(:disabled):hover { color: var(--text-main); border-color: var(--primary); }

.lv2-iconbtn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: var(--lv2-radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lv2-iconbtn:hover { background: var(--lv2-tint); color: var(--text-main); }
.lv2-iconbtn.is-active { background: var(--lv2-tint-strong); color: var(--primary); }
.lv2-iconbtn-danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

.lv2-badge {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--lv2-tint-strong);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.lv2-card {
    padding: 14px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.lv2-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--text-muted); }
.lv2-card-head h3 { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Compagnon ────────────────────────────────────────────────────── */
.lv2-companion {
    overflow: hidden;
    border: 1px solid var(--lv2-line);
    border-radius: calc(var(--lv2-radius) + 6px);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.lv2-companion-stage,
.lv2-stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: 22px 0 14px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, var(--lv2-tint-strong), var(--lv2-tint));
}

.lv2-companion-glow {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    opacity: 0.22;
    filter: blur(44px);
    z-index: -1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: background 0.4s;
}

/* Ambiances du personnage (dégradés issus des variables de thème) */
.lv2-companion-pet { display: inline-flex; position: relative; z-index: 1; transform-origin: bottom center; }
.lv2-env-none { background: var(--lv2-tint); }

.lv2-companion-body { padding: 14px 16px 16px; }
.lv2-companion-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv2-companion-title h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em; }


.lv2-companion-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lv2-companion-info { grid-column: 1 / -1; }
.lv2-companion-actions .lv2-btn { min-width: 0; padding: 0.5rem 0.4rem; gap: 4px; font-size: 0.74rem; }

/* ── Recherche Free Assistance ────────────────────────────────────── */
.lv2-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius-sm);
    background: var(--bg-body);
    color: var(--text-muted);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lv2-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--lv2-tint-strong); }
.lv2-field input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.82rem;
}

.lv2-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lv2-result {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius-sm);
    background: var(--bg-body);
    transition: border-color 0.15s, background 0.15s;
}
.lv2-result:hover { border-color: var(--primary); background: var(--lv2-tint); }
.lv2-result-main { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.lv2-result-title { display: flex; gap: 6px; font-size: 0.78rem; font-weight: 600; line-height: 1.3; color: var(--text-main); }
.lv2-result-title i { color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.lv2-result-tags { padding-left: 20px; font-size: 0.66rem; color: var(--text-muted); }
.lv2-ask {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--lv2-tint-strong);
    color: var(--primary);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lv2-ask:not(:disabled):hover { background: var(--primary); color: var(--text-on-primary, #fff); }
.lv2-ask.is-on { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); cursor: default; }
.lv2-note { margin: 8px 0 0; font-size: 0.7rem; color: var(--text-muted); }
.lv2-note-error { color: var(--danger); }

/* ── En-tête du chat ──────────────────────────────────────────────── */


/* ── Fil de discussion ────────────────────────────────────────────── */
.lv2-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 24px var(--lv2-gutter); scroll-behavior: smooth; }
.lv2-thread-inner { display: flex; flex-direction: column; gap: 18px; max-width: var(--lv2-col); margin: 0 auto; }

.lv2-msg { position: relative; display: flex; gap: 12px; animation: lv2-rise 0.28s var(--lv2-ease); }
.lv2-msg-ai > .lv2-bot { position: absolute; top: 0; left: calc(-1 * var(--lv2-gutter)); }
.lv2-msg-user { justify-content: flex-end; }
.lv2-msg-main { min-width: 0; flex: 1; }

.lv2-bot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 11px;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--text-main) 40%, transparent);
}

.lv2-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--lv2-line);
    border-radius: 4px var(--lv2-radius) var(--lv2-radius) var(--lv2-radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.lv2-bubble-user {
    max-width: min(78%, 640px);
    border: none;
    border-radius: var(--lv2-radius) 4px var(--lv2-radius) var(--lv2-radius);
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--text-main)));
    color: var(--text-on-primary, #fff);
    white-space: pre-wrap;
}

.lv2-bubble strong { font-weight: 700; }
.lv2-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lv2-flag { display: inline-block; width: 1.15em; height: 1.15em; margin: 0 1px; vertical-align: -0.2em; }
.lv2-li { display: flex; gap: 8px; margin: 3px 0; }
.lv2-li-n, .lv2-li-dot { flex-shrink: 0; min-width: 1.2em; color: var(--primary); font-weight: 700; }

.lv2-msg-footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lv2-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 11px;
    border: 1px solid var(--lv2-line);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-main);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.lv2-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-chip:hover { border-color: var(--primary); background: var(--lv2-tint); }
.lv2-chip-link i { color: var(--primary); }
.lv2-chip-accent { background: var(--lv2-tint-strong); border-color: transparent; color: var(--primary); }

.lv2-thinking { display: inline-flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.82rem; }
.lv2-dots { display: inline-flex; gap: 4px; }
.lv2-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: lv2-bounce 1.1s infinite ease-in-out; }
.lv2-dots i:nth-child(2) { animation-delay: 0.15s; }
.lv2-dots i:nth-child(3) { animation-delay: 0.3s; }

/* ── Accueil de la conversation ───────────────────────────────────── */
.lv2-thread.is-empty { display: grid; place-items: center; }
.lv2-hero { width: min(760px, 100%); text-align: center; animation: lv2-rise 0.4s var(--lv2-ease); }
.lv2-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}
.lv2-hero-date i { color: var(--primary); font-size: 0.95rem; }
.lv2-hero-title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lv2-hero-title span { background: linear-gradient(90deg, var(--primary), var(--info, var(--primary))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv2-hero-sub { margin: 10px auto 26px; max-width: 520px; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.lv2-hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left; }
.lv2-hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius);
    background: var(--bg-card);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
/* Survol discret : ni déplacement ni ombre, pour ne pas faire bouger les cartes sous le curseur */
.lv2-hero-card:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--lv2-line)); background: color-mix(in srgb, var(--primary) 4%, var(--bg-card)); }
.lv2-hero-card-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: var(--lv2-tint-strong); color: var(--primary); font-size: 1.15rem; }
.lv2-hero-card-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.lv2-hero-card-text strong { font-size: 0.85rem; font-weight: 700; }
.lv2-hero-card-text small { margin-top: 2px; font-size: 0.7rem; line-height: 1.3; color: var(--text-muted); }

/* ── Sources lues par L.U.M.A. ────────────────────────────────────── */

.lv2-chip-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.lv2-chip-static { cursor: default; }
.lv2-chip-static:hover { border-color: var(--lv2-line); background: var(--bg-card); }
.lv2-chip-x { display: grid; place-items: center; width: 18px; height: 18px; margin-left: 2px; border: none; border-radius: 50%; background: var(--lv2-line); color: var(--text-muted); cursor: pointer; font-size: 0.8rem; }
.lv2-chip-x:hover { background: var(--danger); color: #fff; }

.lv2-user-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: min(78%, 640px); }
.lv2-user-wrap .lv2-bubble-user { max-width: 100%; white-space: pre-wrap; }
.lv2-attached-line { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.lv2-attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 8px; }
.lv2-attached-hint { color: var(--text-muted); font-size: 0.68rem; }


/* ── Saisie ───────────────────────────────────────────────────────── */
.lv2-composer-wrap { padding: 8px var(--lv2-gutter) 14px; }
.lv2-composer {
    max-width: var(--lv2-col);
    margin: 0 auto;
    padding: 12px 14px 10px;
    border: 1px solid var(--lv2-line);
    border-radius: calc(var(--lv2-radius) + 4px);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lv2-composer:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--lv2-tint-strong), var(--shadow-md); }
.lv2-composer textarea {
    width: 100%;
    min-height: 28px;
    max-height: 200px;
    padding: 2px 2px 8px;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
}
.lv2-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv2-composer-actions { display: flex; align-items: center; gap: 8px; }
.lv2-hint { font-size: 0.68rem; color: var(--text-muted); }
.lv2-hint kbd { padding: 1px 5px; border: 1px solid var(--lv2-line); border-radius: 5px; background: var(--bg-body); font: inherit; font-size: 0.64rem; }
.lv2-send {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary, #fff);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}
.lv2-send:disabled { opacity: 0.35; cursor: not-allowed; }
.lv2-send:not(:disabled):hover { transform: scale(1.08); }
.lv2-disclaimer { max-width: var(--lv2-col); margin: 8px auto 0; font-size: 0.68rem; color: var(--text-muted); text-align: center; }

/* ── Modales ──────────────────────────────────────────────────────── */
.lv2-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 16px;
    background: color-mix(in srgb, var(--text-main) 38%, transparent);
    backdrop-filter: blur(6px);
}
.lv2-modal {
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: min(86vh, 760px);
    border: 1px solid var(--lv2-line);
    border-radius: 22px;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--text-main) 55%, transparent);
    overflow: hidden;
}
.lv2-modal.is-wide { width: min(1040px, 100%); }
@media (min-width: 721px) {
    /* Taille fixe quel que soit l'onglet : seul le contenu s'adapte (tuiles plus grandes quand il y a peu d'éléments) */
    .lv2-modal.is-wide { height: min(700px, calc(100vh - 40px)); max-height: none; }
    .lv2-modal.is-wide .lv2-modal-body { flex: 1; min-height: 0; }
    .lv2-modal.is-wide .lv2-cust { height: 100%; min-height: 0; max-height: none; }
}
.lv2-modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--lv2-line); }
.lv2-modal-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lv2-tint-strong); color: var(--primary); font-size: 1.15rem; flex-shrink: 0; }
.lv2-modal-titles { flex: 1; min-width: 0; }
.lv2-modal-titles h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.lv2-modal-titles p { margin: 2px 0 0; font-size: 0.75rem; color: var(--text-muted); }
.lv2-modal-body { padding: 18px; overflow-y: auto; }
.lv2-actions-stack { display: flex; flex-direction: column; gap: 10px; }

/* Quêtes */

/* Paramètres */
.lv2-settings { display: flex; flex-direction: column; gap: 20px; }
.lv2-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lv2-setting-row strong { display: block; font-size: 0.9rem; }
.lv2-setting-row small { color: var(--text-muted); font-size: 0.76rem; }
.lv2-setting-group { margin: 0; padding: 0; border: none; }
.lv2-setting-group legend { margin-bottom: 8px; padding: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.lv2-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lv2-choices-2 { grid-template-columns: 1fr 1fr; }
.lv2-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius-sm);
    background: var(--bg-body);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.lv2-choice input { position: absolute; opacity: 0; pointer-events: none; }
.lv2-choice:hover { border-color: var(--primary); }
.lv2-choice.is-active { border-color: var(--primary); background: var(--lv2-tint); box-shadow: 0 0 0 1px var(--primary); }
.lv2-choice-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lv2-tint-strong); color: var(--primary); flex-shrink: 0; }
.lv2-choice-text { display: flex; flex-direction: column; min-width: 0; }
.lv2-choice-text strong { font-size: 0.82rem; }
.lv2-choice-text small { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }

.lv2-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.lv2-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.lv2-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--lv2-line); transition: background 0.2s; }
.lv2-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--lv2-ease); }
.lv2-switch input:checked + span { background: var(--primary); }
.lv2-switch input:checked + span::after { transform: translateX(18px); }

/* Personnalisation */
.lv2-modal.is-wide .lv2-modal-body { padding: 0; overflow: hidden; }
.lv2-cust { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 440px; max-height: calc(min(86vh, 760px) - 72px); }
.lv2-stage { align-content: center; border-right: 1px solid var(--lv2-line); padding: 24px 0; }
.lv2-stage-label { margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--bg-card); color: var(--text-muted); font-size: 0.68rem; font-weight: 600; }
.lv2-cust-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lv2-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px 4px; }
.lv2-tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--lv2-line); border-radius: 999px; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.78rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.15s; }
.lv2-tab:hover { color: var(--text-main); border-color: var(--primary); }
.lv2-tab.is-active { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary, #fff); }
.lv2-cust-scroll { flex: 1; min-height: 0; padding: 4px 16px 16px; overflow-y: auto; }
.lv2-section { margin: 16px 0 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.lv2-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lv2-swatch { appearance: none; -webkit-appearance: none; padding: 0; width: 30px; height: 30px; border: 2px solid var(--bg-card); border-radius: 50%; background-clip: padding-box; box-shadow: 0 0 0 1px var(--lv2-line); cursor: pointer; transition: box-shadow 0.15s; }
.lv2-swatch:hover { box-shadow: 0 0 0 2px var(--text-muted); }
.lv2-swatch.is-active, .lv2-swatch.is-active:hover { box-shadow: 0 0 0 2px var(--primary); }
.lv2-swatch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.lv2-tiles { --tile-min: 118px; --visual: 76px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr)); gap: 10px; }
.lv2-tiles.size-xs { --tile-min: 78px; --visual: 48px; gap: 8px; }
.lv2-tiles.size-sm { --tile-min: 96px; --visual: 58px; }
.lv2-tiles.size-md { --tile-min: 118px; --visual: 76px; }
.lv2-tiles.size-lg { --tile-min: 146px; --visual: 104px; gap: 12px; }
.lv2-tiles.size-xl { --tile-min: 186px; --visual: 132px; gap: 14px; }
.lv2-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius); background: var(--bg-body); color: var(--text-main); font: inherit; cursor: pointer; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.lv2-tile:not(:disabled):hover { transform: translateY(-2px); border-color: var(--primary); }
.lv2-tile.is-active { border-color: var(--primary); background: var(--lv2-tint); box-shadow: 0 0 0 1px var(--primary); }
.lv2-tile-visual { position: relative; display: grid; place-items: center; width: var(--visual, 46px); height: var(--visual, 46px); overflow: hidden; border-radius: 14px; background: var(--lv2-tint); color: var(--primary); font-size: 1.4rem; }
.lv2-tile-visual img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.lv2-tile-name { font-size: 0.74rem; font-weight: 600; text-align: center; line-height: 1.2; }
.lv2-tile-state { font-size: 0.64rem; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 3px; }
.lv2-tile-state.is-ok { color: var(--success); }

.lv2-cust-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--lv2-line); }

/* ── Transitions et animations ────────────────────────────────────── */
.lv2-fade-enter-active, .lv2-fade-leave-active { transition: opacity 0.2s, transform 0.2s; }
.lv2-fade-enter-from { opacity: 0; transform: translateY(4px); }
.lv2-fade-leave-to { opacity: 0; transform: translateY(-4px); }

.lv2-modal-enter-active, .lv2-modal-leave-active { transition: opacity 0.2s; }
.lv2-modal-enter-active .lv2-modal, .lv2-modal-leave-active .lv2-modal { transition: transform 0.25s var(--lv2-ease); }
.lv2-modal-enter-from, .lv2-modal-leave-to { opacity: 0; }
.lv2-modal-enter-from .lv2-modal, .lv2-modal-leave-to .lv2-modal { transform: translateY(14px) scale(0.98); }

@keyframes lv2-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lv2-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .lv2-msg, .lv2-dots i, .lv2-hero { animation: none; }
    .lv2-thread { scroll-behavior: auto; }
    .lv2-modal-enter-active, .lv2-modal-leave-active, .lv2-modal-enter-active .lv2-modal { transition: none; }
}

/* ── Laptop et écran partagé ──────────────────────────────────────── */
@media (max-width: 1200px) {
    .lv2-hero-grid { grid-template-columns: 1fr 1fr; }
    .lv2-page { grid-template-columns: 270px minmax(0, 1fr); }
    .lv2-thread { padding: 18px var(--lv2-gutter); }
}

/* ── Smartphone ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .lv2-page { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
    /* Compagnon + discussions : volet de gauche ouvert par le bouton flottant */
    .lv2-side {
        position: fixed;
        top: 45px;
        left: 0;
        bottom: 0;
        z-index: 40;
        width: min(340px, 92vw);
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        overflow-y: auto;
        background: var(--bg-body);
        border-right: 1px solid var(--lv2-line);
        box-shadow: 20px 0 50px -20px color-mix(in srgb, var(--text-main) 45%, transparent);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.25s var(--lv2-ease), visibility 0s 0.25s;
    }
    .lv2-side.is-open { transform: none; visibility: visible; transition: transform 0.25s var(--lv2-ease); }
    .lv2-side-backdrop { position: fixed; inset: 45px 0 0; z-index: 39; background: rgba(15, 23, 42, 0.45); }
    .lv2-page .lv2-side-close { display: inline-grid; align-self: flex-end; flex-shrink: 0; }
    .lv2-page .lv2-side-toggle { display: inline-grid; right: auto; left: 12px; }
    .lv2-companion { max-height: none; }
    .lv2-companion-stage { padding: 10px 0; }
    .lv2-convs { flex: 1 0 auto; max-height: none; min-height: 240px; }
    .lv2-page { --lv2-gutter: 0px; }
    .lv2-thread { padding: 14px; }
    .lv2-composer-wrap { padding: 6px 12px 10px; }
    .lv2-msg-ai > .lv2-bot { position: static; }
    .lv2-hint { display: none; }
    .lv2-hero-grid { grid-template-columns: 1fr 1fr; }
    .lv2-bubble-user { max-width: 88%; }
    .lv2-choices-2 { grid-template-columns: 1fr; }
    .lv2-cust { grid-template-columns: 1fr; grid-template-rows: auto; max-height: calc(86vh - 72px); overflow-y: auto; }
    .lv2-cust-left .lv2-stage { flex: none; }
    .lv2-cust-left .lv2-stage svg { width: 150px; height: 150px; }
    .lv2-stage { border-right: none; border-bottom: 1px solid var(--lv2-line); padding: 14px 0; }
    .lv2-cust-panel { overflow: visible; }
}

/* ── Questions de précision (mode interactif) ─────────────────────── */
.lv2-clarify {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    border-radius: var(--lv2-radius);
    background: linear-gradient(135deg, var(--lv2-tint), transparent);
    animation: lv2-rise 0.3s var(--lv2-ease);
}
.lv2-clarify-q { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.lv2-clarify-q i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.lv2-clarify-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lv2-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.lv2-option:not(:disabled):hover { background: var(--primary); color: var(--text-on-primary, #fff); transform: translateY(-1px); }
.lv2-option:not(:disabled):active { transform: scale(0.97); }
.lv2-option:disabled { cursor: default; }
.lv2-option-other { border-color: var(--lv2-line); color: var(--text-muted); font-weight: 600; }
.lv2-option-other:not(:disabled):hover { background: var(--lv2-tint); color: var(--text-main); border-color: var(--primary); }
.lv2-clarify.is-answered { border-color: var(--lv2-line); background: transparent; }
.lv2-clarify.is-answered .lv2-option { opacity: 0.45; border-color: var(--lv2-line); color: var(--text-muted); }

/* ── Gestionnaire de discussions (colonne de gauche) ──────────────── */
.lv2-convs { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 10px 8px; }
.lv2-convs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 10px; }
.lv2-convs-title { display: flex; align-items: center; gap: 7px; color: var(--text-muted); min-width: 0; overflow: hidden; }
.lv2-convs-title h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-convs-title h3 { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lv2-convs-count { padding: 1px 8px; border-radius: 999px; background: var(--lv2-line); color: var(--text-muted); font-size: 0.66rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv2-convs-count.is-full { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--warning); }
.lv2-convs-new { flex-shrink: 0; padding: 0.35rem 0.7rem; font-size: 0.74rem; }
.lv2-convs-new.is-current { border-color: var(--primary); }
.lv2-convs-limit { display: flex; gap: 6px; margin: 0 4px 8px; padding: 7px 9px; border-radius: var(--lv2-radius-sm); background: color-mix(in srgb, var(--warning) 10%, transparent); line-height: 1.35; }
.lv2-convs-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 2px; }
.lv2-convs-label { margin: 10px 6px 4px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.lv2-convs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lv2-convs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 10px; font-size: 0.76rem; line-height: 1.4; text-align: center; color: var(--text-muted); }
.lv2-convs-empty i { font-size: 1.6rem; color: var(--primary); opacity: 0.7; }

.lv2-conv { position: relative; display: flex; align-items: center; border-radius: var(--lv2-radius-sm); transition: background 0.15s; }
.lv2-conv:hover { background: var(--lv2-tint); }
.lv2-conv.is-active { background: var(--lv2-tint-strong); box-shadow: inset 3px 0 0 var(--primary); }
.lv2-conv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: none; background: transparent; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.lv2-conv-main:disabled { cursor: default; opacity: 0.7; }
.lv2-conv-icon { flex-shrink: 0; color: var(--text-muted); font-size: 1rem; }
.lv2-conv.is-pinned .lv2-conv-icon, .lv2-conv.is-active .lv2-conv-icon { color: var(--primary); }
.lv2-conv-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lv2-conv-title { font-size: 0.8rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv2-conv-title.is-revealing { background: linear-gradient(90deg, var(--primary), var(--info, var(--primary))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv2-conv-text small { font-size: 0.64rem; color: var(--text-muted); }
/* Boutons superposés au titre, qui s'estompe en fondu vers la droite (comme les chatbots IA) */
.lv2-conv-actions { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: flex; gap: 2px; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.lv2-conv:hover .lv2-conv-actions, .lv2-conv:focus-within .lv2-conv-actions { opacity: 1; pointer-events: auto; }
.lv2-conv:hover .lv2-conv-main, .lv2-conv:focus-within .lv2-conv-main { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 76px), transparent calc(100% - 36px)); mask-image: linear-gradient(90deg, #000 calc(100% - 76px), transparent calc(100% - 36px)); }
.lv2-conv-btn { display: grid; place-items: center; width: 26px; height: 26px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 0.95rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lv2-conv-btn:hover:not(:disabled) { background: var(--lv2-line); color: var(--text-main); }
.lv2-conv-btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.lv2-conv-btn:disabled { opacity: 0.4; cursor: default; }
.lv2-title-enter-active, .lv2-title-leave-active { transition: opacity 0.25s, transform 0.25s; }
.lv2-title-enter-from { opacity: 0; transform: translateY(5px); }
.lv2-title-leave-to { opacity: 0; transform: translateY(-5px); }

/* ── Colonne de droite : Free Assistance ──────────────────────────── */
.lv2-right { min-height: 0; padding: 16px 14px; overflow-y: auto; border-left: 1px solid var(--lv2-line); }
.lv2-right-close, .lv2-assist-toggle, .lv2-side-close, .lv2-side-toggle { display: none; }
.lv2-right .lv2-assist { position: sticky; top: 0; }

/* Écrans de moins de 1280 px : la recherche devient un tiroir ouvert par le bouton flottant */
@media (max-width: 1279px) {
    .lv2-page { grid-template-columns: 300px minmax(0, 1fr); }
    .lv2-assist-toggle { display: inline-grid; }
    .lv2-right {
        position: fixed;
        top: 45px;
        right: 0;
        bottom: 0;
        z-index: 40;
        width: min(360px, 92vw);
        background: var(--bg-body);
        border-left: 1px solid var(--lv2-line);
        box-shadow: -20px 0 50px -20px color-mix(in srgb, var(--text-main) 45%, transparent);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.25s var(--lv2-ease), visibility 0s 0.25s;
    }
    .lv2-right.is-open { transform: none; visibility: visible; transition: transform 0.25s var(--lv2-ease); }
    .lv2-right-close { display: inline-grid; position: absolute; top: 8px; right: 8px; z-index: 1; }
    .lv2-right .lv2-assist { padding-right: 38px; }
}
@media (max-width: 1200px) {
    .lv2-page { grid-template-columns: 270px minmax(0, 1fr); }
    .lv2-convs-new-label { display: none; }
}

/* ── Parcours guidés (arbre de décision) ──────────────────────────── */
.lv2-thread.is-empty { overflow-y: auto; }
.lv2-guided { width: min(760px, 100%); margin: auto; animation: lv2-rise 0.3s var(--lv2-ease); }
.lv2-guided-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lv2-guided-flow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--lv2-tint-strong); color: var(--primary); font-size: 0.78rem; font-weight: 700; }
.lv2-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.lv2-crumbs-recap { margin: 14px 0; justify-content: flex-start; }
.lv2-crumb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--lv2-line); border-radius: 999px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
.lv2-crumb i { color: var(--text-muted); font-size: 0.8rem; }
.lv2-crumb:hover { border-color: var(--primary); }
.lv2-crumb:hover i { color: var(--primary); }

.lv2-guided-body { text-align: center; }
.lv2-guided-q { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.lv2-guided-hint { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.lv2-guided-label { margin: 18px 0 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.lv2-guided-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; text-align: left; }
.lv2-guided-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius);
    background: var(--bg-card);
    color: var(--text-main);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s var(--lv2-ease), border-color 0.18s, box-shadow 0.18s;
}
.lv2-guided-option:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.lv2-guided-option-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--lv2-tint-strong); color: var(--primary); font-size: 1.05rem; }

.lv2-guided-search { max-width: 460px; margin: 22px auto 0; text-align: left; }
.lv2-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lv2-pills-scroll { max-height: 260px; overflow-y: auto; margin-top: 16px; padding: 2px; }
.lv2-pill { padding: 7px 14px; border: 1px solid var(--lv2-line); border-radius: 999px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.lv2-pill:hover { border-color: var(--primary); background: var(--primary); color: var(--text-on-primary, #fff); }

.lv2-guided-draft {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
    padding: 12px 14px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius);
    background: var(--bg-card);
    color: var(--text-main);
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: left;
    resize: vertical;
    outline: none;
}
.lv2-guided-draft:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--lv2-tint-strong); }
.lv2-guided-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

.lv2-guided-send { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 16px auto 0; text-align: left; }
.lv2-send-card {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--lv2-line);
    border-radius: var(--lv2-radius);
    background: var(--bg-card);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s var(--lv2-ease), border-color 0.18s, box-shadow 0.18s;
}
.lv2-send-card:not(:disabled):hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.lv2-send-card:disabled { opacity: 0.5; cursor: not-allowed; }
.lv2-send-card.is-recommended { border-color: var(--primary); background: linear-gradient(135deg, var(--lv2-tint-strong), var(--bg-card)); }
.lv2-send-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--lv2-tint-strong); color: var(--primary); font-size: 1.2rem; }
.lv2-send-card strong { display: block; font-size: 0.9rem; }
.lv2-send-card small { display: block; margin-top: 2px; font-size: 0.72rem; line-height: 1.3; color: var(--text-muted); }

@keyframes lv2-step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.lv2-guided-body { animation: lv2-step-in 0.22s var(--lv2-ease); }

@media (max-width: 1200px) {
    .lv2-guided-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .lv2-guided-grid { grid-template-columns: 1fr; }
    .lv2-guided-send { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .lv2-guided, .lv2-guided-body { animation: none; }
}

/* ── Réponse Type roaming : options et aperçu ─────────────────────── */
.lv2-guided-option-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.lv2-guided-option-text small { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); line-height: 1.3; }

.lv2-presets { margin: 16px 0 6px; }
.lv2-presets .lv2-pill { padding: 5px 12px; font-size: 0.76rem; }
.lv2-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px auto 0; text-align: left; max-width: 760px; }
.lv2-check-group { padding: 12px 14px; border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius); background: var(--bg-card); }
.lv2-check-group:nth-child(3) { grid-row: span 2; }
.lv2-check-group h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.lv2-check { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 2px; cursor: pointer; font-size: 0.82rem; }
.lv2-check input { position: absolute; opacity: 0; pointer-events: none; }
.lv2-check-box { display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid var(--lv2-line); border-radius: 5px; background: var(--bg-body); color: transparent; font-size: 0.8rem; transition: all 0.15s; }
.lv2-check input:checked + .lv2-check-box { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary, #fff); }
.lv2-check input:focus-visible + .lv2-check-box { box-shadow: 0 0 0 3px var(--lv2-tint-strong); }
.lv2-check-label { line-height: 1.3; }
.lv2-check-children { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 4px 28px; padding: 6px 10px; border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius-sm); background: var(--bg-body); }
.lv2-check-child { padding: 2px 0; font-size: 0.76rem; font-weight: 600; }

.lv2-roaming-state { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0; font-size: 0.85rem; color: var(--text-muted); }
.lv2-roaming-state.is-error { color: var(--danger); }
.lv2-roaming-preview { display: block; max-width: 640px; max-height: 300px; margin: 14px auto 0; overflow-y: auto; text-align: left; border-radius: var(--lv2-radius); font-size: 0.84rem; }

@media (max-width: 767px) {
    .lv2-checklist { grid-template-columns: 1fr; }
    .lv2-check-group:nth-child(3) { grid-row: auto; }
}

/* ── Aucune source officielle exacte ──────────────────────────────── */
.lv2-nosource { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-radius: var(--lv2-radius-sm); background: color-mix(in srgb, var(--warning) 10%, transparent); font-size: 0.76rem; line-height: 1.4; color: var(--text-main); }
.lv2-nosource i { flex-shrink: 0; margin-top: 1px; color: var(--warning); font-size: 1rem; }
.lv2-internal-src { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 0.74rem; color: var(--text-muted); }
.lv2-internal-src i { color: var(--primary); font-size: 0.95rem; }

/* ── Signalement d'une réponse ── */
.lv2-report { display: flex; flex-direction: column; gap: 8px; }
.lv2-report-label { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.lv2-report-label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lv2-report-quote { margin: 0 0 6px; padding: 8px 10px; border-radius: var(--lv2-radius-sm); background: var(--lv2-tint); font-size: 0.86rem; line-height: 1.4; max-height: 90px; overflow-y: auto; }
.lv2-report-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius-sm); background: transparent; color: var(--text-main); font: inherit; font-size: 0.88rem; resize: vertical; }
.lv2-report-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.lv2-report-error { margin: 0; color: var(--danger); font-size: 0.82rem; }
.lv2-report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Bouton Copier flottant en haut à droite de la bulle (visible au survol, toujours sur écran tactile) */

/* ── Personnalisation : colonne d'aperçu, outils, modèles, couleurs ── */
.lv2-cust-left { display: flex; flex-direction: column; border-right: 1px solid var(--lv2-line); min-width: 0; }
.lv2-cust-left .lv2-stage { flex: 1; border-right: none; }
.lv2-cust-tools { display: flex; justify-content: center; gap: 8px; padding: 10px; border-top: 1px solid var(--lv2-line); }
.lv2-tool { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--lv2-line); border-radius: 10px; background: transparent; color: var(--text-main); font-size: 1.05rem; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.lv2-tool:not(:disabled):hover { border-color: var(--primary); color: var(--primary); }
.lv2-tool:disabled { opacity: 0.35; cursor: default; }
.lv2-tile-visual.is-character { overflow: hidden; }
.lv2-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.lv2-preset { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius); background: var(--bg-body); color: var(--text-main); font: inherit; text-align: center; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.lv2-preset:hover { transform: translateY(-2px); border-color: var(--primary); }
.lv2-preset-visual { position: relative; display: grid; place-items: center; width: 100%; height: 118px; overflow: hidden; border-radius: var(--lv2-radius-sm); background: var(--lv2-tint); }
.lv2-preset-visual > svg.luma-svg-main { position: relative; z-index: 1; }
.lv2-preset-name { font-size: 0.82rem; font-weight: 700; }
.lv2-preset small { font-size: 0.66rem; color: var(--text-muted); line-height: 1.25; }
.lv2-colorfield { margin-bottom: 4px; }
.lv2-colorfield-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lv2-colorfield-head small { font-size: 0.68rem; color: var(--text-muted); }
.lv2-swatch-auto { display: grid; place-items: center; background: var(--lv2-tint); color: var(--text-muted); font-size: 0.9rem; }
@media (max-width: 720px) {
    .lv2-cust-left { border-right: none; border-bottom: 1px solid var(--lv2-line); }
}

/* ── Décors SVG (cyber, bureau, forêt, espace, coucher de soleil) ── */
.lv2-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.lv2-stage-scene { background: var(--lv2-tint); }
.lv2-tile-visual.is-scene { width: 100%; height: calc(var(--visual) * 0.82); border-radius: 10px; padding: 0; }
.lv-scene-twinkle { animation: lv-scene-twinkle 3.2s ease-in-out infinite; }
@keyframes lv-scene-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .lv-scene-twinkle { animation: none; } }
.lv2-stage > .luma-svg-main, .lv2-stage > .lv2-stage-label { position: relative; z-index: 1; }
.lv2-stage-scene .lv2-companion-glow { opacity: 0.22; }

/* Respiration du personnage : calque dédié (rastérisé une fois, déplacé par le GPU) pour éviter le scintillement des traits fins */
.luma-svg-main.luma-anim-breathe { will-change: transform; backface-visibility: hidden; }

.lv2-main { position: relative; }
.lv2-assist-float { position: absolute; top: 10px; right: 12px; z-index: 5; background: var(--bg-card); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.12)); }

/* ── Sources : pastilles compactes (trois visibles, le reste se déplie) ── */
.lv2-srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.lv2-srcs-label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.lv2-srcchip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--lv2-line); border-radius: 999px; background: var(--bg-card); color: var(--text-main); font-size: 0.74rem; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.lv2-srcchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.lv2-srcchip i { flex-shrink: 0; color: var(--text-muted); }
.lv2-srcchip.is-read i { color: var(--success); }
.lv2-srcchip.is-video i { color: var(--primary); }
.lv2-srcchip:hover { border-color: var(--primary); background: var(--lv2-tint); }
.lv2-srcmore { padding: 4px 9px; border: 1px dashed var(--lv2-line); border-radius: 999px; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.72rem; cursor: pointer; }
.lv2-srcmore:hover { color: var(--text-main); border-color: var(--primary); }

/* Boutons Favori, Copier (vert) et Signaler (rouge), en toutes lettres */
/* Dans le coin haut droit de la bulle : le conteneur épouse la largeur de la bulle, les boutons restent donc dans son coin même pour une réponse courte */
.lv2-bubble-wrap { position: relative; width: fit-content; max-width: 100%; }
.lv2-bubble-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.lv2-bubble-wrap:hover .lv2-bubble-tools, .lv2-bubble-tools:focus-within { opacity: 1; }
@media (hover: none) { .lv2-bubble-tools { opacity: 1; } }
.lv2-tool-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border: 1px solid; border-radius: 999px; background: var(--bg-card); font: inherit; font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.lv2-tool-btn.is-copy { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.lv2-tool-btn.is-copy:hover { background: color-mix(in srgb, var(--success) 12%, var(--bg-card)); }
.lv2-tool-btn.is-report { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.lv2-tool-btn.is-report:hover { background: color-mix(in srgb, var(--danger) 12%, var(--bg-card)); }

/* ── Recherche dans les discussions ── */
.lv2-convs-search { position: relative; margin: 0 4px 8px; }
.lv2-convs-search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.lv2-convs-search input { width: 100%; padding: 7px 10px 7px 30px; border: 1px solid var(--lv2-line); border-radius: 999px; background: var(--bg-body); color: var(--text-main); font: inherit; font-size: 0.78rem; }
.lv2-convs-search input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.lv2-conv-result { align-items: flex-start; }
.lv2-conv-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; white-space: normal; }
.lv2-spin { animation: lv2-spin 1s linear infinite; }
@keyframes lv2-spin { to { transform: rotate(360deg); } }

/* ── Réponses favorites ── */
.lv2-tool-btn.is-fav { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.lv2-tool-btn.is-fav:hover, .lv2-tool-btn.is-fav.is-on { background: color-mix(in srgb, var(--warning) 14%, var(--bg-card)); }
.lv2-favs { margin-top: 14px; padding: 12px 10px 10px; }
.lv2-favs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 8px; color: var(--text-muted); }
.lv2-favs-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lv2-favs-empty { margin: 0 4px; line-height: 1.4; }
.lv2-favs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.lv2-fav { border-radius: var(--lv2-radius-sm); }
.lv2-fav-row { display: flex; align-items: center; gap: 4px; }
.lv2-fav-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; padding: 6px 4px; border: none; background: transparent; color: var(--text-main); font: inherit; font-size: 0.78rem; font-weight: 600; text-align: left; cursor: pointer; }
.lv2-fav-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-fav-title i { flex-shrink: 0; color: var(--text-muted); }
.lv2-fav-copy { flex-shrink: 0; padding: 2px 9px; font-size: 0.68rem; }
.lv2-fav-preview { margin: 2px 4px 8px; padding: 8px 10px; font-size: 0.78rem; max-height: 220px; overflow-y: auto; }
.lv2-fav-preview { display: block; max-width: none; }

/* Fenêtre « Comment fonctionne L.U.M.A. ? » : un livre ouvert, deux pages, sans défilement */
.lv2-book {
    --paper: #fbf6e9; --paper-edge: #e6dbbf; --ink: #3a3125; --ink-soft: #6b5d48; --accent: #b4432f; --rule: rgba(90, 70, 40, 0.22);
    --shade: 60, 40, 15; --on-accent: #fff; --page-hi: rgba(255, 255, 255, 0.55);
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    width: min(1060px, 96vw); height: min(620px, 92vh);
    border-radius: 6px 14px 14px 6px; background: var(--paper);
    color: var(--ink); font-family: Georgia, 'Times New Roman', serif;
    box-shadow: 0 1px 0 var(--paper-edge), 0 3px 0 var(--page-hi), 0 4px 0 var(--paper-edge), 0 6px 0 var(--page-hi), 0 7px 0 var(--paper-edge), 0 28px 60px rgba(0, 0, 0, 0.45);
}
:root[data-theme="dark"] .lv2-book, [data-theme="dark"] .lv2-book {
    --paper: #232731; --paper-edge: #14161c; --ink: #e9ebf2; --ink-soft: #a2a8b8; --accent: #f08566; --rule: rgba(255, 255, 255, 0.14);
    --shade: 0, 0, 0; --on-accent: #1d1410; --page-hi: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 1px 0 var(--paper-edge), 0 3px 0 var(--page-hi), 0 4px 0 var(--paper-edge), 0 6px 0 var(--page-hi), 0 7px 0 var(--paper-edge), 0 30px 70px rgba(0, 0, 0, 0.65);
}
.lv2-book::before { /* reliure au centre */
    content: ''; position: absolute; inset: 0 auto 0 50%; width: 56px; transform: translateX(-50%); pointer-events: none; z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(var(--shade), 0.22) 46%, rgba(var(--shade), 0.32) 50%, rgba(var(--shade), 0.22) 54%, transparent);
}
.lv2-bpage { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 30px 40px 20px; overflow: hidden; }
.lv2-bpage-left { padding-right: 46px; background: linear-gradient(90deg, transparent 72%, rgba(var(--shade), 0.12)); }
.lv2-bpage-right { padding-left: 46px; background: linear-gradient(270deg, transparent 72%, rgba(var(--shade), 0.12)); }
.lv2-bkicker { margin: 0 0 4px; font: 600 0.68rem/1 system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.lv2-btitle { margin: 0 0 12px; font-size: 1.65rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.lv2-bintro { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.lv2-bintro::first-letter { float: left; margin: 2px 8px 0 0; font-size: 2.9rem; line-height: 0.85; font-weight: 700; color: var(--accent); }
.lv2-bh { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; font-size: 1rem; font-weight: 700; font-style: italic; color: var(--ink); }
.lv2-bh i { font-size: 1.05rem; color: var(--accent); font-style: normal; }
.lv2-bpage-right > .lv2-bh:first-child { margin-top: 0; }
.lv2-bsources, .lv2-bsteps, .lv2-blist { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); }
.lv2-bsources { list-style: upper-roman; font-size: 0.88rem; gap: 9px; }
.lv2-bsteps { list-style: decimal; }
.lv2-blist { list-style: disc; }
.lv2-bsources li::marker, .lv2-bsteps li::marker, .lv2-blist li::marker { color: var(--accent); font-weight: 700; }
.lv2-bsources strong, .lv2-blist strong { color: var(--ink); }
.lv2-btext { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }
.lv2-btext a { color: var(--accent); }
.lv2-bfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; font: 500 0.78rem system-ui, sans-serif; color: var(--ink-soft); }
.lv2-bnum { font-family: Georgia, serif; font-style: italic; font-size: 0.9rem; }
.lv2-bnext { display: none; align-items: center; gap: 2px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.lv2-bnext:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lv2-book-close { position: absolute; top: 10px; right: 12px; z-index: 6; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(var(--shade), 0.14); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.lv2-book-close:hover { background: rgba(var(--shade), 0.28); }
.lv2-book-ribbon { position: absolute; top: -4px; right: 64px; z-index: 3; width: 20px; height: 56px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }

@media (max-width: 820px) {
    .lv2-book { grid-template-columns: 1fr; width: min(520px, 96vw); height: min(640px, 92vh); border-radius: 8px; }
    .lv2-book::before { display: none; }
    .lv2-bpage, .lv2-bpage-left, .lv2-bpage-right { padding: 24px 22px 16px; }
    .lv2-bpage.is-off { display: none; }
    .lv2-bnext { display: inline-flex; }
    .lv2-btitle { font-size: 1.35rem; padding-right: 30px; }
    .lv2-bpage-right .lv2-bfoot { flex-direction: row; }
}
@media (max-height: 640px) and (min-width: 821px) {
    .lv2-bpage { padding-top: 22px; padding-bottom: 14px; }
    .lv2-btitle { font-size: 1.35rem; margin-bottom: 8px; padding-bottom: 8px; }
    .lv2-bsources, .lv2-bsteps, .lv2-blist, .lv2-btext { font-size: 0.8rem; gap: 4px; }
}

/* Inclinaison pendant la saisie : la respiration anime déjà « transform » (avec !important), l'ancienne règle
   « transform: rotate » ne pouvait donc jamais s'appliquer. Les propriétés rotate et translate s'y ajoutent sans conflit. */
.luma-svg-main.luma-tilt { rotate: 9deg; translate: 0 -2px; }
@media (prefers-reduced-motion: reduce) { .luma-svg-main.luma-tilt { rotate: none; translate: none; } }

/* ── Animations passives de L.U.M.A. (groupe interne : le svg porte déjà la respiration) ───────── */
.luma-react { transform-box: view-box; transform-origin: 50px 88px; }
.luma-fx-jump { animation: luma-fx-jump 0.8s cubic-bezier(0.3, 1.5, 0.5, 1); }
.luma-fx-flip { transform-origin: 50px 55px; animation: luma-fx-flip 0.9s ease-in-out; }
.luma-fx-startle { animation: luma-fx-startle 0.5s ease-out; }
.luma-fx-hiccup { animation: luma-fx-hiccup 0.5s ease-in-out 3; }
.luma-fx-purr { animation: luma-fx-purr 0.12s linear infinite; }
.luma-fx-stretch { animation: luma-fx-stretch 1.6s ease-in-out; }
.luma-fx-yawn { animation: luma-fx-yawn 2.6s ease-in-out; }
@keyframes luma-fx-jump {
    0% { transform: translateY(0) scale(1, 1); }
    18% { transform: translateY(2px) scale(1.06, 0.92); }
    50% { transform: translateY(-14px) scale(0.96, 1.05); }
    78% { transform: translateY(0) scale(1.05, 0.94); }
    100% { transform: none; }
}
@keyframes luma-fx-flip {
    0% { transform: translateY(0) rotate(0deg); }
    45% { transform: translateY(-16px) rotate(200deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
@keyframes luma-fx-startle { 0% { transform: none; } 30% { transform: translateY(-9px) scale(1.04); } 100% { transform: none; } }
@keyframes luma-fx-hiccup { 0%, 100% { transform: none; } 40% { transform: translateY(-4px) scale(1.03, 0.97); } }
@keyframes luma-fx-purr { 0% { transform: translateX(-0.6px); } 50% { transform: translateX(0.6px); } 100% { transform: translateX(-0.6px); } }
@keyframes luma-fx-stretch { 0%, 100% { transform: none; } 35%, 70% { transform: scale(0.95, 1.09); } }
@keyframes luma-fx-yawn { 0%, 100% { transform: none; } 40%, 65% { transform: translateY(-1px) scale(1.03, 1.02); } }

.luma-mouth-yawn { transform-box: fill-box; transform-origin: center; transform: scale(1.5, 1.9); transition: transform 0.3s ease; }
.luma-antenna-move { transform-box: fill-box; transform-origin: 50% 100%; }
.luma-antenna-perk { animation: luma-ant-perk 1.2s ease-out; }
.luma-antenna-buzz { animation: luma-ant-buzz 0.8s linear; }
@keyframes luma-ant-perk {
    0% { transform: rotate(-35deg); } 30% { transform: rotate(12deg); } 55% { transform: rotate(-6deg); }
    80% { transform: rotate(3deg); } 100% { transform: rotate(0deg); }
}
@keyframes luma-ant-buzz {
    0%, 100% { transform: rotate(0deg); } 12% { transform: rotate(8deg); } 25% { transform: rotate(-8deg); }
    37% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } 62% { transform: rotate(5deg); } 75% { transform: rotate(-4deg); }
}

.luma-pop { transform-box: fill-box; transform-origin: center; animation: luma-pop 0.5s ease-out both; }
@keyframes luma-pop { 0% { transform: scale(0.2); opacity: 0; } 55% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.luma-dream { animation: luma-dream 3.5s ease-in-out both; }
@keyframes luma-dream { 0% { opacity: 0; transform: translateY(4px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-3px); } }
.luma-steam { animation: luma-steam 2s ease-in-out infinite; }
.luma-steam-2 { animation-delay: 0.9s; }
@keyframes luma-steam { 0% { opacity: 0; transform: translateY(2px); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-4px); } }
.luma-confetti { animation: luma-confetti 3.2s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes luma-confetti { 0% { transform: translateY(-12px) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(112px) rotate(360deg); opacity: 0.9; } }
.luma-balloon { animation: luma-bob 3s ease-in-out infinite; }
.luma-bob { animation: luma-bob 2.4s ease-in-out infinite; }
@keyframes luma-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.luma-loupe { animation: luma-loupe 1.4s ease-in-out infinite alternate; }
@keyframes luma-loupe { from { transform: translate(-6px, 3px) rotate(-6deg); } to { transform: translate(4px, -2px) rotate(6deg); } }
.luma-wing { transform-box: fill-box; transform-origin: center; animation: luma-flap 0.18s linear infinite alternate; }
@keyframes luma-flap { from { transform: scaleX(1); } to { transform: scaleX(0.3); } }
.luma-tear { animation: luma-tear 1.8s ease-in infinite; }
@keyframes luma-tear { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
.luma-book-page { transform-box: fill-box; transform-origin: left center; animation: luma-page 1.4s ease-in-out infinite alternate; }
@keyframes luma-page { from { transform: scaleX(1); } to { transform: scaleX(0.55); } }

@media (prefers-reduced-motion: reduce) {
    .luma-react, .luma-antenna-move, .luma-dream, .luma-steam, .luma-confetti, .luma-balloon, .luma-bob,
    .luma-loupe, .luma-wing, .luma-tear, .luma-book-page, .luma-pop { animation: none !important; }
    .luma-mouth-yawn { transform: none; }
}
.lv2-hero-birthday { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: var(--primary); }

/* ── Banc d'essai du personnage (super admin), fixé en bas à droite ───────────────────────────── */
.lv2-lab { position: fixed; right: 16px; bottom: 16px; z-index: 900; font-size: 0.78rem; }
.lv2-lab-toggle {
    display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 12px;
    border: 1px solid var(--lv2-line); border-radius: 999px; background: var(--bg-card); color: var(--text-main);
    font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-md);
}
.lv2-lab-toggle i { color: var(--primary); font-size: 1rem; }
.lv2-lab-card {
    width: 320px; max-height: min(560px, calc(100vh - 90px)); margin-bottom: 8px; overflow-y: auto; padding: 12px 14px 14px;
    border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius); background: var(--bg-card); color: var(--text-main);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.35);
}
.lv2-lab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lv2-lab-head strong { font-size: 0.86rem; }
.lv2-lab-head small { color: var(--text-muted); }
.lv2-lab-card h4 { margin: 12px 0 6px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.lv2-lab-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.lv2-lab-btn {
    padding: 4px 9px; border: 1px solid var(--lv2-line); border-radius: 8px; background: transparent; color: var(--text-main);
    font: inherit; cursor: pointer; transition: border-color 0.12s, background-color 0.12s;
}
.lv2-lab-btn:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.lv2-lab-btn.is-on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 16%, transparent); font-weight: 700; }
.lv2-lab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.lv2-lab-row select { padding: 4px 6px; border: 1px solid var(--lv2-line); border-radius: 6px; background: var(--bg-card); color: var(--text-main); font: inherit; }
@media (max-width: 767px) { .lv2-lab { right: 8px; bottom: 76px; } .lv2-lab-card { width: min(320px, calc(100vw - 16px)); } }
.luma-yawn-air { transform-box: fill-box; transform-origin: left center; animation: luma-yawn-air 2.4s ease-out both; }
@keyframes luma-yawn-air {
    0% { transform: scale(0.15) translate(-6px, -3px); opacity: 0; }
    22% { opacity: 1; }
    100% { transform: scale(1.3) translate(6px, 5px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .luma-yawn-air { animation: none !important; } }

/* ── Fonds d'ambiance animés (les décors figés des boutiques n'animent rien) ───────────────────── */
.lv2-scene .lv-flicker { animation: lv-flicker 4.5s steps(1, end) infinite; }
.lv2-scene .lv-drift { animation: lv-drift 16s linear infinite; }
.lv2-scene .lv-cloud { animation: lv-drift 80s linear infinite; }
.lv2-scene .lv-fly { animation: lv-fly 24s linear infinite; }
.lv2-scene .lv-bat { animation: lv-fly 12s linear infinite; }
.lv2-scene .lv-breathe { animation: lv-breathe 5s ease-in-out infinite; }
.lv2-scene .lv-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: lv-sway 5s ease-in-out infinite; }
.lv2-scene .lv-spin-slow { transform-box: view-box; animation: lv-spin 90s linear infinite; }
.lv2-scene .lv-fall { animation: lv-fall 9s linear infinite; }
.lv2-scene .lv-snow { animation: lv-snow 8s linear infinite; }
.lv2-scene .lv-shoot { animation: lv-shoot 9s ease-in infinite; opacity: 0; }
.lv2-scene .lv-shimmer { animation: lv-shimmer 2.8s ease-in-out infinite; }
.lv2-scene .lv-draw { stroke-dasharray: 90; animation: lv-draw 4.5s ease-in-out infinite; }
.lv2-scene .lv-wave-ring { transform-box: fill-box; transform-origin: center; animation: lv-ring 3s ease-out infinite; }
.lv2-scene .lv-pulse { stroke-dasharray: 2 74; animation: lv-pulse 6s linear infinite; }
.lv2-scene .lv-aurora { animation: lv-aurora 12s ease-in-out infinite alternate; }
.lv2-scene.is-still * { animation: none !important; }
@keyframes lv-flicker { 0%, 100% { opacity: 0.9; } 8% { opacity: 0.35; } 10% { opacity: 0.9; } 52% { opacity: 0.9; } 54% { opacity: 0.2; } 56% { opacity: 0.9; } }
@keyframes lv-drift { from { transform: translateX(-40px); } to { transform: translateX(340px); } }
@keyframes lv-fly { from { transform: translate(-50px, 8px); } 50% { transform: translate(150px, -6px); } to { transform: translate(350px, 6px); } }
@keyframes lv-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes lv-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.4deg); } }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@keyframes lv-fall { from { transform: translate(0, -12px) rotate(0deg); opacity: 0; } 10% { opacity: 1; } to { transform: translate(40px, 215px) rotate(300deg); opacity: 0.8; } }
@keyframes lv-snow { from { transform: translate(0, -6px); opacity: 0; } 10% { opacity: 0.9; } to { transform: translate(-14px, 210px); opacity: 0.7; } }
@keyframes lv-shoot { 0%, 68% { transform: translate(0, 0); opacity: 0; } 70% { opacity: 1; } 84% { transform: translate(170px, 86px); opacity: 0; } 100% { transform: translate(170px, 86px); opacity: 0; } }
@keyframes lv-shimmer { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }
@keyframes lv-draw { 0% { stroke-dashoffset: 90; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -90; } }
@keyframes lv-pulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -76; } }
@keyframes lv-ring { from { transform: scale(0.35); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes lv-aurora { from { transform: translateX(-16px) scaleY(0.9); opacity: 0.6; } to { transform: translateX(16px) scaleY(1.12); opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .lv2-scene * { animation: none !important; } }
.lv2-scene .lv-rise { animation: lv-rise 11s linear infinite; }
.lv2-scene .lv-rain { animation: lv-rain 0.9s linear infinite; }
.lv2-scene .lv-flash { animation: lv-flash 9s linear infinite; }
@keyframes lv-rise { from { transform: translateY(0); opacity: 0; } 12% { opacity: 0.9; } to { transform: translateY(-225px); opacity: 0; } }
@keyframes lv-rain { from { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } to { transform: translate(-30px, 215px); opacity: 0.4; } }
@keyframes lv-flash { 0%, 91%, 95%, 100% { opacity: 0; } 92% { opacity: 0.28; } 93% { opacity: 0.05; } 94% { opacity: 0.22; } }

/* ── Personnalisation : fenêtre plus large, tous les onglets sur une seule ligne ───────────────── */
.lv2-modal.is-wide { width: min(1240px, 100%); }
.lv2-cust { grid-template-columns: 280px minmax(0, 1fr); }
.lv2-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lv2-tabs::-webkit-scrollbar { display: none; }
.lv2-tab { flex: none; white-space: nowrap; padding: 6px 9px; }
.lv2-note { overflow-wrap: anywhere; }
@media (max-width: 720px) { .lv2-cust { grid-template-columns: 1fr; } }

/* ── Bulles de texte du petit personnage (carte de la page L.U.M.A. et mini chat) ───────────────── */
.lv2-speech {
    position: absolute; z-index: 3; width: max-content; max-width: 170px; color: var(--text-main);
    font-size: 0.76rem; font-weight: 600; line-height: 1.35; text-align: left; white-space: normal; pointer-events: none;
    rotate: -1.2deg; /* la bulle est légèrement de travers, comme en BD */
}
.lv2-speech-text { position: relative; display: block; padding: 8px 14px 9px; }
/* Contour d'une seule pièce (pointe comprise), dessiné par le composant d'après la taille du texte */
.lv2-speech-shape { position: absolute; top: 0; left: 0; overflow: visible; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.22)); }
.lv2-speech-shape path { fill: var(--bg-card); stroke: var(--text-main); stroke-width: 2; stroke-linejoin: round; }
.lv2-speech.is-card { top: 10px; right: 10px; }
.lv2-speech.is-widget { right: calc(100% - 14px); bottom: 58px; max-width: 200px; }
.lvw-bubble.has-speech .lvw-hint { display: none; }
.lv2-speech-enter-active, .lv2-speech-leave-active { transition: opacity 0.25s, translate 0.25s, scale 0.25s; }
.lv2-speech-enter-from, .lv2-speech-leave-to { opacity: 0; translate: 0 6px; scale: 0.96; }
@media (prefers-reduced-motion: reduce) { .lv2-speech-enter-active, .lv2-speech-leave-active { transition: none; } }
/* Bulle sortie du cadre de la carte : à droite du personnage, pointe vers sa bouche */
.lv2-speech.is-outside { position: fixed; z-index: 1200; top: 0; left: 0; max-width: 220px; font-size: 0.8rem; }
/* Aperçu d'une bulle (Nexus) : dans le flux de la page */
.lv2-speech.is-preview { position: relative; display: inline-block; max-width: 280px; margin-left: 14px; }

/* ── Images et vidéos des sources (colonne de droite) ── */
.lv2-timings { margin: 6px 0 0; font-size: 0.68rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lv2-tool-btn.is-media { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.lv2-tool-btn.is-media:hover, .lv2-tool-btn.is-media.is-on { background: color-mix(in srgb, var(--primary) 12%, var(--bg-card)); }
.lv2-media { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lv2-line); }
.lv2-media-head { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; }
.lv2-media-head i { color: var(--primary); }
.lv2-media-for { margin: -6px 0 0; font-size: 0.72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-media-group { display: flex; flex-direction: column; gap: 6px; }
.lv2-media-title { font-size: 0.76rem; font-weight: 600; color: var(--text-main); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-media-title:hover { color: var(--primary); text-decoration: underline; }
.lv2-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lv2-media-thumb { padding: 4px; border: 1px solid var(--lv2-line); border-radius: var(--lv2-radius-sm); background: color-mix(in srgb, var(--text-main) 4%, var(--bg-card)); overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; }
.lv2-media-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lv2-media-thumb:hover { border-color: var(--primary); }
.lv2-media-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--lv2-radius-sm); overflow: hidden; background: var(--bg-card); }
.lv2-media-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv2-media-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lv2-media-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lv2-media-play i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.6rem; color: var(--text-on-primary, #fff); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); transition: transform 0.15s var(--lv2-ease); }
.lv2-media-play:hover i { transform: translate(-50%, -50%) scale(1.1); }
.lv2-media-thumb { position: relative; }
.lv2-media-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--text-main) 35%, transparent); color: var(--bg-card); font-size: 1.3rem; opacity: 0; transition: opacity 0.15s; }
.lv2-media-thumb:hover .lv2-media-zoom, .lv2-media-thumb:focus-visible .lv2-media-zoom { opacity: 1; }
@media (max-width: 767px) {
    .lv2-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Visite guidée d'accueil (contenu de la bulle) ── */
@keyframes lob-blink { 50% { opacity: 0; } }

/* ── Identifiant d'abonné détecté : message censuré et avertissement RGPD ── */
.lv2-bubble-censored {
    display: inline-flex; align-items: center; gap: 6px;
    background: color-mix(in srgb, var(--danger) 8%, transparent);
    border: 1px dashed color-mix(in srgb, var(--danger) 45%, transparent);
    color: var(--danger); font-size: 0.82rem; font-style: italic; opacity: 0.85;
}
.lv2-privacy { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; line-height: 1.5; }
.lv2-privacy p { margin: 0; }
.lv2-privacy-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); }
.lv2-privacy-actions { display: flex; justify-content: flex-end; }

/* Fenêtre « Paramètres » : même livre que « Comment fonctionne L.U.M.A. ? », choix en boutons côte à côte */
.lv2-bpage-settings .lv2-btitle { margin-bottom: 4px; }
.lv2-bset { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.lv2-bset-label, .lv2-bsw strong { font: 600 0.84rem system-ui, sans-serif; color: var(--ink); }
.lv2-bseg { display: flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: rgba(var(--shade), 0.06); }
.lv2-bseg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 7px 8px; border: 0; border-left: 1px solid var(--rule); background: transparent; color: var(--ink-soft); font: 500 0.8rem system-ui, sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lv2-bseg-btn:first-child { border-left: 0; }
.lv2-bseg-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-bseg-btn i { color: var(--accent); font-size: 0.95rem; flex-shrink: 0; }
.lv2-bseg-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lv2-bseg-btn.is-on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.lv2-bseg-btn.is-on i { color: var(--on-accent); }
.lv2-bset-hint { min-height: 1.1em; font: 400 0.74rem/1.3 system-ui, sans-serif; color: var(--ink-soft); }
.lv2-bsw { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.lv2-bsw small { display: block; font: 400 0.74rem/1.3 system-ui, sans-serif; color: var(--ink-soft); }
.lv2-bpage-settings .lv2-switch span { background: var(--rule); box-shadow: inset 0 0 0 1px var(--rule); }
.lv2-bpage-settings .lv2-switch input:checked + span { background: var(--accent); box-shadow: none; }
.lv2-bbtn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font: 600 0.8rem system-ui, sans-serif; cursor: pointer; }
.lv2-bbtn:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 820px) {
    .lv2-bpage-settings { overflow-y: auto; }
}
@media (max-height: 640px) and (min-width: 821px) {
    .lv2-bset, .lv2-bsw { margin-bottom: 7px; }
    .lv2-bseg-btn { padding: 5px 8px; }
    .lv2-bset-hint { display: none; }
}

/* Livre unique (Paramètres = pages 1-2, Comment ça marche = pages 3-4) : feuille qui se tourne autour de la reliure */
.lv2-book-flip { perspective: 1900px; }
.lv2-bslot { display: flex; min-width: 0; min-height: 0; }
.lv2-bslot > .lv2-bpage { flex: 1; min-width: 0; }
.lv2-bslot-left { grid-column: 1; }
.lv2-bslot-right { grid-column: 2; }
.lv2-bslot-single { grid-column: 1 / -1; }
.lv2-book-flip::before { z-index: 4; } /* la reliure reste au-dessus de la feuille : son ombre ne saute plus au début et à la fin du tour */
.lv2-bleaf {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; z-index: 3;
    transform-style: preserve-3d; visibility: hidden; pointer-events: none;
}
/* Feuille souple : bandes verticales imbriquées, chacune pivote autour de son bord gauche (angles posés par le script) */
.lv2-bstrip { position: absolute; top: 0; bottom: 0; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.lv2-bsf { position: absolute; top: 0; bottom: 0; left: 0; right: -0.6px; overflow: hidden; background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lv2-bsf-back { transform: rotateY(180deg); }
.lv2-bsf-front.is-last { border-radius: 0 14px 14px 0; }
.lv2-bsf-back.is-last { border-radius: 6px 0 0 6px; }
.lv2-bsc { position: absolute; top: 0; bottom: 0; display: flex; }
.lv2-bsc > .lv2-bpage { flex: 1; min-width: 0; }
.lv2-bshade { position: absolute; inset: 0; background: rgb(var(--shade)); opacity: 0; pointer-events: none; }
/* Ombre portée de la feuille sur la page voisine, qui s'estompe en douceur */
.lv2-bcast { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; pointer-events: none; opacity: 0; }
.lv2-bcast-right { left: 50%; background: linear-gradient(90deg, rgba(var(--shade), 0.3), transparent 70%); border-radius: 0 14px 14px 0; }
.lv2-bcast-left { left: 0; background: linear-gradient(270deg, rgba(var(--shade), 0.3), transparent 70%); border-radius: 6px 0 0 6px; }
.lv2-bflip { display: inline-flex; align-items: center; gap: 2px; padding: 5px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font: 600 0.8rem system-ui, sans-serif; cursor: pointer; }
.lv2-bflip:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lv2-bflip:disabled { opacity: 0.35; cursor: default; }
.lv2-bflip i { font-size: 1.1rem; }
.lv2-bmobile-nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 10px; border-top: 1px solid var(--rule); }
.lv2-book-flip.is-narrow { grid-template-rows: 1fr auto; }
.lv2-book-flip.is-narrow .lv2-bpage { overflow-y: auto; }
.lv2-book-flip.is-narrow .lv2-bfoot { display: none; }

/* Visite guidée. La carte est affichée hors de .lv2-page : les variables --lv2-* y sont redéfinies. */
.lob {
    --lv2-tint: color-mix(in srgb, var(--primary) 9%, transparent);
    --lv2-tint-strong: color-mix(in srgb, var(--primary) 18%, transparent);
    --lv2-line: color-mix(in srgb, var(--border-color) 85%, transparent);
    display: flex; flex-direction: column; gap: 16px;
}
.lob-top { display: flex; align-items: center; gap: 10px; }
.lob-bar { flex: 1; height: 5px; border-radius: 999px; background: var(--lv2-line); overflow: hidden; }
.lob-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 0.4s ease; }
.lob-progress { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lob-head { display: flex; align-items: center; gap: 14px; }
.lob-pet { flex: 0 0 72px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--lv2-tint-strong), transparent 70%); }
.lob-text { position: relative; flex: 1; margin: 0; padding: 12px 16px; border: 1px solid var(--lv2-line); border-radius: 4px 16px 16px 16px; background: var(--lv2-tint); font-size: 0.93rem; line-height: 1.55; cursor: default; }
.lob-ghost { display: block; visibility: hidden; }
.lob-live { position: absolute; inset: 12px 16px; }
.lob-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--primary); animation: lob-blink 0.8s steps(1) infinite; }
.lob-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; transition: opacity 0.2s; }
.lob-choices.is-list { grid-template-columns: 1fr; gap: 8px; }
.lob-choices.is-hidden { opacity: 0; pointer-events: none; }
.lob-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 32px 12px 12px; border: 1px solid var(--lv2-line); border-radius: 12px; background: var(--bg-card); color: var(--text-main); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s; }
.lob-choice .lob-choice-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--lv2-tint-strong); font-size: 1.1rem; color: var(--primary); }
.lob-choice span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lob-choice strong { font-size: 0.88rem; }
.lob-choice small { font-size: 0.74rem; line-height: 1.35; color: var(--text-muted); }
.lob-choice:hover, .lob-choice:focus-visible { border-color: var(--primary); background: var(--lv2-tint); transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 18%, transparent); outline: none; }
.lob-choice.is-current { border-color: var(--primary); background: var(--lv2-tint); box-shadow: 0 0 0 1px var(--primary); }
.lob-choice-check { position: absolute; top: 8px; right: 8px; font-size: 1rem; color: var(--primary); }
.lob-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--lv2-line); }
.lob-link { padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 0.8rem; cursor: pointer; }
.lob-link:hover { color: var(--text-main); text-decoration: underline; }
.lob-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.lob-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--lv2-line); border-radius: 999px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.lob-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.lob-btn-primary { border-color: var(--primary); background: var(--primary); color: var(--text-on-primary, #fff); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
.lob-btn-primary:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { .lob-caret { animation: none; } }

/* Glisser-déposer des pages : pas de sélection de texte dans le livre (hors écran étroit), curseur « main » */
.lv2-book-flip:not(.is-narrow) { user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab; }
.lv2-book-flip:not(.is-narrow) button, .lv2-book-flip:not(.is-narrow) label, .lv2-book-flip:not(.is-narrow) a { cursor: pointer; }
.lv2-book-flip.is-dragging, .lv2-book-flip.is-dragging * { cursor: grabbing !important; }

.lob-show-tools .lv2-bubble-tools { opacity: 1; }
