/* ============================================================================
   AUTORELAY PRO — DESIGN SYSTEM
   Couche par-dessus Bootstrap 5.3. Tokens + composants réutilisables.
   Tout est namespacé `.ar-*` pour ne JAMAIS entrer en collision avec
   Bootstrap ni les styles de page existants (cp3-, kb3-, wa-, ...).
   Compatible thème clair / sombre via [data-bs-theme].
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. TOKENS GLOBAUX (indépendants du thème)
   ---------------------------------------------------------------------------- */
:root {
    /* Marque */
    --ar-brand: #10b981;            /* Vert WhatsApp */
    --ar-brand-rgb: 16, 185, 129;
    --ar-brand-strong: #059669;
    --ar-brand-bright: #34d399;
    --ar-blue: #3b82f6;
    --ar-blue-rgb: 59, 130, 246;
    --ar-danger: #f43f5e;
    --ar-danger-rgb: 244, 63, 94;

    /* Typographie */
    --ar-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ar-font-display: 'Space Grotesk', var(--ar-font-body);
    --ar-font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Menlo, monospace;

    /* Rayons */
    --ar-radius-xs: 8px;
    --ar-radius-sm: 11px;
    --ar-radius: 16px;
    --ar-radius-lg: 22px;
    --ar-radius-pill: 999px;

    /* Transitions */
    --ar-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ar-transition: 0.22s var(--ar-ease);

    /* Espacement de référence */
    --ar-gutter: clamp(1.25rem, 4vw, 3.25rem);
}

/* ----------------------------------------------------------------------------
   2. THÈME SOMBRE (par défaut)
   ---------------------------------------------------------------------------- */
[data-bs-theme="dark"] {
    --ar-bg: #030303;
    --ar-bg-elevated: #0a0a0c;
    --ar-surface: rgba(255, 255, 255, 0.025);
    --ar-surface-2: rgba(255, 255, 255, 0.045);
    --ar-surface-hover: rgba(255, 255, 255, 0.06);
    --ar-border: rgba(255, 255, 255, 0.08);
    --ar-border-strong: rgba(255, 255, 255, 0.14);
    --ar-text: #f4f4f5;
    --ar-text-soft: #a1a1aa;
    --ar-text-muted: #6b6b76;
    --ar-input-bg: rgba(255, 255, 255, 0.02);
    --ar-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
    --ar-shadow-brand: 0 14px 40px -10px rgba(var(--ar-brand-rgb), 0.35);
    --ar-glow: radial-gradient(circle at 50% 0%, rgba(var(--ar-brand-rgb), 0.13) 0%, transparent 62%);
    --ar-mesh-line: rgba(255, 255, 255, 0.03);
}

/* ----------------------------------------------------------------------------
   3. THÈME CLAIR
   ---------------------------------------------------------------------------- */
[data-bs-theme="light"] {
    --ar-bg: #f4f6fb;
    --ar-bg-elevated: #ffffff;
    --ar-surface: #ffffff;
    --ar-surface-2: #f8fafc;
    --ar-surface-hover: #f1f5f9;
    --ar-border: rgba(15, 23, 42, 0.10);
    --ar-border-strong: rgba(15, 23, 42, 0.18);
    --ar-text: #0f172a;
    --ar-text-soft: #475569;
    --ar-text-muted: #94a3b8;
    --ar-input-bg: #ffffff;
    --ar-shadow: 0 18px 50px -18px rgba(15, 23, 42, 0.18);
    --ar-shadow-brand: 0 14px 36px -12px rgba(var(--ar-brand-rgb), 0.30);
    --ar-glow: radial-gradient(circle at 50% 0%, rgba(var(--ar-brand-rgb), 0.06) 0%, transparent 60%);
    --ar-mesh-line: rgba(15, 23, 42, 0.04);
}

/* ----------------------------------------------------------------------------
   4. BASE
   ---------------------------------------------------------------------------- */
.ar-body {
    background-color: var(--ar-bg);
    color: var(--ar-text);
    font-family: var(--ar-font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.ar-display { font-family: var(--ar-font-display); letter-spacing: -0.02em; }
.ar-mono { font-family: var(--ar-font-mono); }
.ar-text-soft { color: var(--ar-text-soft) !important; }
.ar-text-muted { color: var(--ar-text-muted) !important; }
.ar-text-brand { color: var(--ar-brand) !important; }
.ar-brand-gradient {
    background: linear-gradient(120deg, var(--ar-brand-bright), var(--ar-brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ----------------------------------------------------------------------------
   5. MARQUE / LOGO
   ---------------------------------------------------------------------------- */
.ar-logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.ar-logo__mark {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--ar-radius-xs);
    color: var(--ar-brand);
    background: rgba(var(--ar-brand-rgb), 0.10);
    border: 1px solid rgba(var(--ar-brand-rgb), 0.30);
    box-shadow: 0 0 18px rgba(var(--ar-brand-rgb), 0.15);
}
.ar-logo__name { font-family: var(--ar-font-display); font-weight: 800; font-size: 1.12rem; color: var(--ar-text); letter-spacing: -0.02em; line-height: 1; }
.ar-logo__badge {
    font-family: var(--ar-font-display); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.08em;
    color: var(--ar-brand); background: rgba(var(--ar-brand-rgb), 0.15);
    border: 1px solid rgba(var(--ar-brand-rgb), 0.28); padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.ar-logo__tag { display: block; font-family: var(--ar-font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-text-muted); margin-top: 3px; }

/* ----------------------------------------------------------------------------
   6. LAYOUT AUTH (split-screen, mobile-first)
   ---------------------------------------------------------------------------- */
.ar-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}
.ar-auth__brand {
    position: relative;
    overflow: hidden;
    padding: var(--ar-gutter);
    background: var(--ar-bg-elevated);
    border-right: 1px solid var(--ar-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}
/* Grille « mesh » + halo signature */
.ar-auth__brand::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--ar-mesh-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ar-mesh-line) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 78%);
            mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 78%);
    pointer-events: none;
}
.ar-auth__brand::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--ar-glow);
    pointer-events: none;
}
.ar-auth__brand > * { position: relative; z-index: 1; }

.ar-auth__form-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    background: var(--ar-bg);
}
.ar-auth__form-col::before {  /* halo discret derrière le formulaire sur mobile */
    content: "";
    position: absolute; inset: 0;
    background: var(--ar-glow);
    opacity: 0.9;
    pointer-events: none;
}
.ar-auth__card {
    position: relative; z-index: 1;
    width: 100%;
    max-width: 430px;
}

@media (max-width: 991.98px) {
    .ar-auth { grid-template-columns: 1fr; }
    .ar-auth__brand { display: none; }
}

/* Bandeau marque (badge live, titre, sous-titre) */
.ar-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.8rem; border-radius: var(--ar-radius-pill);
    background: rgba(var(--ar-brand-rgb), 0.10);
    border: 1px solid rgba(var(--ar-brand-rgb), 0.22);
    font-family: var(--ar-font-mono); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ar-brand);
}
.ar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ar-brand); }
.ar-dot--pulse { animation: ar-pulse 1.8s var(--ar-ease) infinite; }
@keyframes ar-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }

.ar-hero-title { font-family: var(--ar-font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.07; letter-spacing: -0.03em; color: var(--ar-text); }
.ar-hero-sub { color: var(--ar-text-soft); font-size: 0.95rem; line-height: 1.65; max-width: 30rem; }

/* Grille de bénéfices */
.ar-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.ar-feature {
    padding: 1rem 1.05rem; border-radius: var(--ar-radius-sm);
    background: var(--ar-surface); border: 1px solid var(--ar-border);
    transition: border-color var(--ar-transition), transform var(--ar-transition), background var(--ar-transition);
}
.ar-feature:hover { border-color: rgba(var(--ar-brand-rgb), 0.30); transform: translateY(-2px); background: var(--ar-surface-2); }
.ar-feature__icon { color: var(--ar-brand); font-size: 1.15rem; margin-bottom: 0.5rem; }
.ar-feature__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ar-text); margin-bottom: 0.25rem; }
.ar-feature__text { font-size: 0.74rem; line-height: 1.5; color: var(--ar-text-muted); margin: 0; }

.ar-brand-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--ar-font-mono); font-size: 0.62rem; letter-spacing: 0.05em;
    color: var(--ar-text-muted); border-top: 1px solid var(--ar-border); padding-top: 1.25rem;
}

/* ----------------------------------------------------------------------------
   7. CARTE / PANELS
   ---------------------------------------------------------------------------- */
.ar-card {
    background: var(--ar-surface);
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow);
}

/* ----------------------------------------------------------------------------
   8. FORMULAIRES (surcouche de .form-control Bootstrap)
   ---------------------------------------------------------------------------- */
.ar-label {
    display: block; font-family: var(--ar-font-mono); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em; color: var(--ar-text-soft); margin-bottom: 0.45rem;
}
.ar-field { margin-bottom: 1.15rem; }
.ar-input-wrap { position: relative; display: flex; align-items: center; }
.ar-input-wrap > .ar-input-icon {
    position: absolute; left: 0.95rem; color: var(--ar-text-muted);
    pointer-events: none; font-size: 0.95rem; transition: color var(--ar-transition);
}
.ar-input-wrap:focus-within > .ar-input-icon { color: var(--ar-brand); }

/* Le champ lui-même : on garde .form-control de Bootstrap + ce modificateur */
.ar-input.form-control {
    background-color: var(--ar-input-bg);
    border: 1px solid var(--ar-border-strong);
    color: var(--ar-text);
    border-radius: var(--ar-radius-sm);
    padding: 0.78rem 1rem 0.78rem 2.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color var(--ar-transition), box-shadow var(--ar-transition), background var(--ar-transition);
}
.ar-input.form-control::placeholder { color: var(--ar-text-muted); opacity: 0.8; }
.ar-input.form-control:focus {
    background-color: var(--ar-input-bg);
    border-color: var(--ar-brand);
    color: var(--ar-text);
    box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.18);
    outline: none;
}
/* Bouton afficher/masquer le mot de passe */
.ar-input--with-action.form-control { padding-right: 2.9rem; }
.ar-input-action {
    position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; color: var(--ar-text-muted);
    width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color var(--ar-transition), background var(--ar-transition);
}
.ar-input-action:hover { color: var(--ar-text); background: var(--ar-surface-hover); }

/* ====== Robustesse : .ar-input / .ar-textarea stylés même SANS .form-control / .form-select ======
   Certaines pages utilisent class="ar-input" seul (input ou select) ou class="ar-textarea" seul. */
.ar-input {
    display: block;
    width: 100%;
    background-color: var(--ar-input-bg);
    border: 1px solid var(--ar-border-strong);
    color: var(--ar-text);
    border-radius: var(--ar-radius-sm);
    padding: 0.78rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    transition: border-color var(--ar-transition), box-shadow var(--ar-transition), background var(--ar-transition);
}
.ar-input::placeholder { color: var(--ar-text-muted); opacity: 0.8; }
.ar-input:focus {
    background-color: var(--ar-input-bg);
    border-color: var(--ar-brand);
    color: var(--ar-text);
    box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.18);
    outline: none;
}
/* Selects en .ar-input (avec ou sans .form-select) : flèche custom */
select.ar-input, .ar-input.form-select {
    cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A1A1AA' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.6rem;
}
select.ar-input option, .ar-input.form-select option { background: var(--ar-surface); color: var(--ar-text); }
/* Textarea en .ar-textarea (avec ou sans .form-control) */
.ar-textarea {
    display: block;
    width: 100%;
    background: var(--ar-input-bg);
    border: 1px solid var(--ar-border-strong);
    color: var(--ar-text);
    border-radius: var(--ar-radius-sm);
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
    line-height: 1.6;
    transition: border-color var(--ar-transition), box-shadow var(--ar-transition);
}
.ar-textarea::placeholder { color: var(--ar-text-muted); opacity: 0.8; }
.ar-textarea:focus {
    background: var(--ar-input-bg);
    border-color: var(--ar-brand);
    color: var(--ar-text);
    box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.18);
    outline: none;
}

/* Dark mode : selects natifs + .form-select lisibles (fix "select blanc bizarre") */
select option, .form-select option { background: var(--ar-surface); color: var(--ar-text); }
.form-select {
    background-color: var(--ar-input-bg);
    border: 1px solid var(--ar-border-strong);
    color: var(--ar-text);
}
.form-select:focus {
    background-color: var(--ar-input-bg);
    border-color: var(--ar-brand);
    color: var(--ar-text);
    box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.18);
}

/* Case à cocher « se souvenir » */
.ar-check { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; user-select: none; }
.ar-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--ar-brand); cursor: pointer; }
.ar-check span { font-size: 0.8rem; color: var(--ar-text-soft); }

.ar-link { color: var(--ar-text-soft); text-decoration: none; font-size: 0.8rem; transition: color var(--ar-transition); }
.ar-link:hover { color: var(--ar-brand); }
.ar-link--accent { color: var(--ar-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ar-border-strong); }
.ar-link--accent:hover { color: var(--ar-brand); text-decoration-color: var(--ar-brand); }

/* ----------------------------------------------------------------------------
   9. BOUTONS
   ---------------------------------------------------------------------------- */
.ar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    width: 100%; padding: 0.82rem 1.25rem;
    border-radius: var(--ar-radius-sm); border: 1px solid transparent;
    font-family: var(--ar-font-body); font-weight: 700; font-size: 0.9rem;
    cursor: pointer; text-decoration: none;
    transition: transform var(--ar-transition), box-shadow var(--ar-transition), background var(--ar-transition), border-color var(--ar-transition);
}
.ar-btn:disabled, .ar-btn.is-loading { opacity: 0.75; cursor: not-allowed; }
.ar-btn-brand {
    background: var(--ar-brand); color: #04130d;
    box-shadow: var(--ar-shadow-brand);
}
.ar-btn-brand:hover:not(:disabled):not(.is-loading) { background: var(--ar-brand-bright); transform: translateY(-2px); }
.ar-btn-ghost {
    background: var(--ar-surface-2); color: var(--ar-text);
    border-color: var(--ar-border-strong);
}
.ar-btn-ghost:hover { background: var(--ar-surface-hover); }
.ar-btn__spinner {
    width: 1rem; height: 1rem; border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: currentColor;
    animation: ar-spin 0.6s linear infinite; display: none;
}
.ar-btn.is-loading .ar-btn__spinner { display: inline-block; }
.ar-btn.is-loading .ar-btn__label, .ar-btn.is-loading .ar-btn__icon { display: none; }
@keyframes ar-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------------------
   10. SÉPARATEUR / ALERTES
   ---------------------------------------------------------------------------- */
.ar-divider { position: relative; text-align: center; margin: 1.4rem 0; }
.ar-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--ar-border); }
.ar-divider span {
    position: relative; padding: 0 0.9rem; background: var(--ar-bg);
    font-family: var(--ar-font-mono); font-size: 0.62rem; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--ar-text-muted);
}

.ar-alert {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.85rem 1rem; border-radius: var(--ar-radius-sm);
    font-size: 0.82rem; font-weight: 600; line-height: 1.45; margin-bottom: 1rem;
}
.ar-alert i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.ar-alert--error { color: #fda4b4; background: rgba(var(--ar-danger-rgb), 0.08); border: 1px solid rgba(var(--ar-danger-rgb), 0.22); }
.ar-alert--success { color: var(--ar-brand-bright); background: rgba(var(--ar-brand-rgb), 0.08); border: 1px solid rgba(var(--ar-brand-rgb), 0.22); }
[data-bs-theme="light"] .ar-alert--error { color: #be123c; }
[data-bs-theme="light"] .ar-alert--success { color: var(--ar-brand-strong); }

/* ----------------------------------------------------------------------------
   11. BOUTON BASCULE DE THÈME (flottant)
   ---------------------------------------------------------------------------- */
.ar-theme-toggle {
    position: absolute; top: 1.1rem; right: 1.1rem; z-index: 5;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ar-surface-2); border: 1px solid var(--ar-border);
    color: var(--ar-text-soft); cursor: pointer;
    transition: color var(--ar-transition), border-color var(--ar-transition), background var(--ar-transition);
}
.ar-theme-toggle:hover { color: var(--ar-brand); border-color: rgba(var(--ar-brand-rgb), 0.30); }

/* ----------------------------------------------------------------------------
   13. PAGE CENTRÉE (onboarding, écrans mono-colonne)
   ---------------------------------------------------------------------------- */
.ar-centered {
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: clamp(1rem, 4vw, 3rem); position: relative;
}
.ar-centered::before { content: ""; position: absolute; inset: 0; background: var(--ar-glow); pointer-events: none; }
.ar-centered > * { position: relative; z-index: 1; }
.ar-panel {
    width: 100%;
    background: var(--ar-surface);
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius-lg);
    box-shadow: var(--ar-shadow);
}

/* Stepper / barre de progression */
.ar-stepper { width: 100%; height: 6px; border-radius: var(--ar-radius-pill); background: var(--ar-surface-2); border: 1px solid var(--ar-border); overflow: hidden; }
.ar-stepper__bar { height: 100%; border-radius: var(--ar-radius-pill); background: linear-gradient(90deg, var(--ar-brand), var(--ar-blue)); box-shadow: 0 0 12px rgba(var(--ar-brand-rgb), 0.4); }

/* Eyebrow numéroté (étapes de questionnaire) */
.ar-qnum { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(var(--ar-brand-rgb), 0.12); border: 1px solid rgba(var(--ar-brand-rgb), 0.30); color: var(--ar-brand); font-size: 0.7rem; font-weight: 700; }
.ar-qlabel { font-family: var(--ar-font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ar-text-soft); }

/* ----------------------------------------------------------------------------
   14. CARTES RADIO (sélections : onboarding, configuration…)
   ---------------------------------------------------------------------------- */
.ar-radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (max-width: 575.98px) { .ar-radio-grid { grid-template-columns: 1fr; } }

.ar-radio-card { position: relative; display: block; cursor: pointer; }
.ar-radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.ar-radio-card__box {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.1rem; border-radius: var(--ar-radius-sm);
    background: var(--ar-surface); border: 1px solid var(--ar-border);
    transition: border-color var(--ar-transition), background var(--ar-transition), box-shadow var(--ar-transition);
}
.ar-radio-card:hover .ar-radio-card__box { border-color: var(--ar-border-strong); }
.ar-radio-card__main { display: flex; align-items: center; gap: 0.9rem; }
.ar-radio-card__icon {
    width: 42px; height: 42px; border-radius: var(--ar-radius-xs); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    background: var(--ar-surface-2); border: 1px solid var(--ar-border); color: var(--ar-text-soft);
    transition: color var(--ar-transition), background var(--ar-transition), border-color var(--ar-transition);
}
.ar-radio-card__title { font-size: 0.86rem; font-weight: 700; color: var(--ar-text); margin: 0 0 2px; }
.ar-radio-card__text { font-size: 0.72rem; line-height: 1.4; color: var(--ar-text-muted); margin: 0; }
.ar-radio-card__tick {
    width: 1.25rem; height: 1.25rem; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--ar-border-strong); display: flex; align-items: center; justify-content: center;
    transition: border-color var(--ar-transition);
}
.ar-radio-card__tick::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ar-brand); transform: scale(0); transition: transform var(--ar-transition); }
/* État sélectionné (input juste avant .ar-radio-card__box) */
.ar-radio-card input:checked + .ar-radio-card__box {
    border-color: var(--ar-brand);
    background: rgba(var(--ar-brand-rgb), 0.06);
    box-shadow: inset 0 0 0 1px var(--ar-brand), 0 0 24px rgba(var(--ar-brand-rgb), 0.10);
}
.ar-radio-card input:checked + .ar-radio-card__box .ar-radio-card__icon { color: var(--ar-brand); border-color: rgba(var(--ar-brand-rgb), 0.40); background: rgba(var(--ar-brand-rgb), 0.12); }
.ar-radio-card input:checked + .ar-radio-card__box .ar-radio-card__tick { border-color: var(--ar-brand); }
.ar-radio-card input:checked + .ar-radio-card__box .ar-radio-card__tick::after { transform: scale(1); }
.ar-radio-card input:focus-visible + .ar-radio-card__box { box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.30); }

/* ----------------------------------------------------------------------------
   15. WIZARD MULTI-ÉTAPES (onboarding progressif, une question par étape)
   ---------------------------------------------------------------------------- */
.ar-wizard__head { margin-bottom: 1.6rem; }
.ar-wizard__step { display: none; }
.ar-wizard__step.is-active { display: block; animation: ar-step-in 0.45s var(--ar-ease); }
@keyframes ar-step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ar-wizard__q { font-family: var(--ar-font-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.02em; color: var(--ar-text); margin-bottom: 0.3rem; }
.ar-wizard__hint { color: var(--ar-text-muted); font-size: 0.82rem; margin-bottom: 1.25rem; }

.ar-wizard__nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.6rem; }
.ar-wizard__nav .ar-btn { width: auto; min-width: 8rem; }
.ar-wizard__nav .ar-btn-ghost { min-width: 0; }

/* Récapitulatif (dernière étape) */
.ar-summary { display: flex; flex-direction: column; gap: 0.65rem; }
.ar-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.05rem; border-radius: var(--ar-radius-sm); background: var(--ar-surface); border: 1px solid var(--ar-border); }
.ar-summary__label { display: flex; align-items: center; gap: 0.55rem; color: var(--ar-text-soft); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ar-summary__label i { color: var(--ar-brand); font-size: 0.95rem; }
.ar-summary__right { display: flex; align-items: center; gap: 0.85rem; }
.ar-summary__val { color: var(--ar-text); font-weight: 700; font-size: 0.88rem; text-align: right; }
.ar-summary__edit { font-size: 0.72rem; background: none; border: 0; padding: 0; cursor: pointer; }

/* ----------------------------------------------------------------------------
   16. LANDING PAGE (composants marketing premium)
   ---------------------------------------------------------------------------- */
/* Barre de navigation */
.lp-nav { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--ar-bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ar-border); }
.lp-navlink { color: var(--ar-text-soft); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: color var(--ar-transition); }
.lp-navlink:hover { color: var(--ar-brand); }
.lp-nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.lp-nav-toggle { display: none; }
/* Menu mobile : masqué par défaut PARTOUT (corrige le doublon sur desktop) */
.lp-nav-mobile { display: none; padding: 0.5rem 0 1rem; border-top: 1px solid var(--ar-border); }
.lp-nav-mobile a { display: block; padding: 0.7rem 0.25rem; color: var(--ar-text-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.lp-nav-mobile a:hover { color: var(--ar-brand); }
@media (max-width: 991.98px) {
    .lp-nav-links { display: none; }
    .lp-nav-toggle { display: inline-flex; }
    .lp-nav-mobile.is-open { display: block; animation: ar-step-in 0.3s var(--ar-ease); }
}

/* Sections & titres */
.lp-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--ar-font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.75rem; border-radius: var(--ar-radius-pill); color: var(--ar-brand); background: rgba(var(--ar-brand-rgb), 0.10); border: 1px solid rgba(var(--ar-brand-rgb), 0.22); }
.lp-eyebrow--red { color: #fb7185; background: rgba(244, 63, 94, 0.10); border-color: rgba(244, 63, 94, 0.22); }
.lp-eyebrow--blue { color: #60a5fa; background: rgba(59, 130, 246, 0.10); border-color: rgba(59, 130, 246, 0.22); }
.lp-eyebrow--violet { color: #a78bfa; background: rgba(139, 92, 246, 0.10); border-color: rgba(139, 92, 246, 0.22); }
.lp-h2 { font-family: var(--ar-font-display); font-weight: 800; letter-spacing: -0.025em; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; color: var(--ar-text); }
.lp-lead { color: var(--ar-text-soft); font-size: clamp(0.95rem, 1.3vw, 1.05rem); line-height: 1.6; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.lp-hero::before { content: ""; position: absolute; inset: 0; background: var(--ar-glow); pointer-events: none; }
.lp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: linear-gradient(var(--ar-mesh-line) 1px, transparent 1px), linear-gradient(90deg, var(--ar-mesh-line) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(circle at 75% 15%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 75% 15%, #000 0%, transparent 70%); }
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero-title { font-family: var(--ar-font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(2.2rem, 5vw, 3.7rem); color: var(--ar-text); }
.lp-hero-sub { color: var(--ar-text-soft); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; font-family: var(--ar-font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ar-text-muted); }
.lp-trust i { color: var(--ar-brand); margin-right: 0.4rem; }

/* Maquette « dashboard » */
.lp-dash { position: relative; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-lg); box-shadow: var(--ar-shadow); overflow: hidden; }
.lp-dash__top { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ar-border); }
.lp-dash__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ar-border-strong); }
.lp-dash__title { margin-left: 0.5rem; font-family: var(--ar-font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ar-text-muted); }
.lp-dash__body { padding: 1.1rem; display: grid; gap: 0.85rem; }
.lp-stat { background: var(--ar-surface-2); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 0.85rem 0.95rem; }
.lp-stat__label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ar-text-muted); font-family: var(--ar-font-mono); }
.lp-stat__value { font-family: var(--ar-font-display); font-weight: 700; font-size: 1.4rem; color: var(--ar-text); line-height: 1.2; }
.lp-stat__delta { font-size: 0.68rem; font-weight: 700; color: var(--ar-brand); }
.lp-chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-top: 0.5rem; }
.lp-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--ar-brand), rgba(var(--ar-brand-rgb), 0.25)); animation: lp-bar 1s var(--ar-ease) both; }
@keyframes lp-bar { from { height: 0; } }
.lp-dash__chat { background: var(--ar-surface-2); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.lp-chat-line { max-width: 85%; font-size: 0.78rem; line-height: 1.35; padding: 0.5rem 0.7rem; border-radius: 12px; }
.lp-chat-line--in { align-self: flex-start; background: var(--ar-surface); border: 1px solid var(--ar-border); border-bottom-left-radius: 4px; color: var(--ar-text); }
.lp-chat-line--out { align-self: flex-end; background: rgba(var(--ar-brand-rgb), 0.14); border: 1px solid rgba(var(--ar-brand-rgb), 0.30); border-bottom-right-radius: 4px; color: var(--ar-text); }

/* Cartes premium réutilisables */
.lp-card { height: 100%; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); padding: 1.5rem; transition: border-color var(--ar-transition), transform var(--ar-transition), background var(--ar-transition); }
.lp-card:hover { border-color: rgba(var(--ar-brand-rgb), 0.30); transform: translateY(-4px); background: var(--ar-surface-2); }
.lp-card--featured { border-color: rgba(var(--ar-brand-rgb), 0.40); box-shadow: 0 0 40px rgba(var(--ar-brand-rgb), 0.08); }
.lp-ico { width: 48px; height: 48px; border-radius: var(--ar-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 0.9rem; background: rgba(var(--ar-brand-rgb), 0.10); border: 1px solid rgba(var(--ar-brand-rgb), 0.25); color: var(--ar-brand); }
.lp-ico--red { background: rgba(244, 63, 94, 0.10); border-color: rgba(244, 63, 94, 0.25); color: #fb7185; }
.lp-card__title { font-family: var(--ar-font-display); font-weight: 700; font-size: 1.1rem; color: var(--ar-text); margin-bottom: 0.45rem; }
.lp-card__text { color: var(--ar-text-soft); font-size: 0.86rem; line-height: 1.55; margin: 0; }
.lp-badge { position: absolute; top: 1rem; right: 1rem; font-family: var(--ar-font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(var(--ar-brand-rgb), 0.14); border: 1px solid rgba(var(--ar-brand-rgb), 0.30); color: var(--ar-brand); }

/* Module compact */
.lp-mini { height: 100%; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 1.05rem 1.15rem; transition: border-color var(--ar-transition); }
.lp-mini:hover { border-color: var(--ar-border-strong); }
.lp-mini__k { font-family: var(--ar-font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ar-blue); margin-bottom: 0.5rem; }
.lp-mini__t { color: var(--ar-text-soft); font-size: 0.8rem; line-height: 1.5; margin: 0; }

/* Étapes numérotées */
.lp-step { height: 100%; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); padding: 1.5rem; }
.lp-step__num { font-family: var(--ar-font-display); font-weight: 800; font-size: 2.2rem; color: rgba(var(--ar-brand-rgb), 0.35); line-height: 1; display: block; margin-bottom: 0.6rem; }
.lp-step__t { color: var(--ar-text); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.lp-step__p { color: var(--ar-text-muted); font-size: 0.82rem; line-height: 1.5; margin: 0; }

/* Témoignages */
.lp-quote { height: 100%; display: flex; flex-direction: column; justify-content: space-between; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); padding: 1.5rem; }
.lp-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ar-font-display); font-weight: 800; font-size: 0.85rem; flex-shrink: 0; background: rgba(var(--ar-brand-rgb), 0.12); border: 1px solid rgba(var(--ar-brand-rgb), 0.30); color: var(--ar-brand); }
.lp-quote__text { color: var(--ar-text-soft); font-size: 0.86rem; line-height: 1.6; font-style: italic; }
.lp-quote__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--ar-border); font-family: var(--ar-font-mono); font-size: 0.68rem; color: var(--ar-text-muted); }

/* Tarifs */
.lp-price { height: 100%; display: flex; flex-direction: column; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); padding: 1.6rem; position: relative; transition: border-color var(--ar-transition), transform var(--ar-transition); }
.lp-price:hover { border-color: var(--ar-border-strong); transform: translateY(-4px); }
.lp-price--popular { border-color: var(--ar-brand); box-shadow: 0 0 32px rgba(var(--ar-brand-rgb), 0.14); }
.lp-price__tag { position: absolute; top: -0.7rem; right: 1.2rem; background: var(--ar-brand); color: #04130d; font-family: var(--ar-font-mono); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 6px; }
.lp-price__name { font-family: var(--ar-font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ar-text-soft); }
.lp-price__amount { font-family: var(--ar-font-display); font-weight: 800; font-size: 2.4rem; color: var(--ar-text); line-height: 1; }
.lp-price__period { color: var(--ar-text-muted); font-size: 0.78rem; font-family: var(--ar-font-mono); }
.lp-price ul { list-style: none; padding: 0; margin: 1.3rem 0; display: flex; flex-direction: column; gap: 0.7rem; }
.lp-price li { font-size: 0.82rem; color: var(--ar-text-soft); display: flex; align-items: flex-start; gap: 0.55rem; }
.lp-price li i { margin-top: 2px; }
.lp-price li .bi-check-circle-fill { color: var(--ar-brand); }
.lp-price li .bi-x-circle { color: var(--ar-text-muted); }
.lp-price li.is-off { color: var(--ar-text-muted); }

/* Accordéon (FAQ) — réutilisable */
.ar-accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.ar-accordion__item { background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); overflow: hidden; transition: border-color var(--ar-transition); }
.ar-accordion__item.is-open { border-color: rgba(var(--ar-brand-rgb), 0.30); }
.ar-accordion__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ar-text); font-weight: 700; font-size: 0.92rem; }
.ar-accordion__btn i { color: var(--ar-brand); transition: transform var(--ar-transition); flex-shrink: 0; }
.ar-accordion__item.is-open .ar-accordion__btn i { transform: rotate(180deg); }
.ar-accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ar-ease); }
.ar-accordion__panel p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--ar-text-soft); font-size: 0.86rem; line-height: 1.6; }

/* Bandeau techno */
.lp-chip { padding: 0.45rem 0.85rem; border-radius: var(--ar-radius-pill); background: var(--ar-surface); border: 1px solid var(--ar-border); color: var(--ar-text-soft); font-family: var(--ar-font-mono); font-size: 0.74rem; font-weight: 600; }

/* Footer */
.lp-footer { border-top: 1px solid var(--ar-border); background: var(--ar-bg-elevated); }
.lp-foot-h { font-family: var(--ar-font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ar-text-soft); margin-bottom: 0.9rem; }
.lp-foot-link { display: block; color: var(--ar-text-muted); text-decoration: none; font-size: 0.85rem; padding: 0.28rem 0; transition: color var(--ar-transition); }
.lp-foot-link:hover { color: var(--ar-brand); }
.lp-social { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ar-surface); border: 1px solid var(--ar-border); color: var(--ar-text-muted); transition: color var(--ar-transition), border-color var(--ar-transition); }
.lp-social:hover { color: var(--ar-brand); border-color: rgba(var(--ar-brand-rgb), 0.30); }

/* Révélation au scroll (animation légère) */
.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ar-ease), transform 0.6s var(--ar-ease); }
.lp-reveal.is-visible { opacity: 1; transform: none; }

/* ====== LANDING PREMIUM (aurores, dégradés, dashboard, marquee) ====== */
/* Texte dégradé signature : vert WhatsApp -> bleu IA */
.lp-gt { background: linear-gradient(120deg, var(--ar-brand-bright), var(--ar-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Bouton dégradé premium */
.ar-btn-gradient { background: linear-gradient(120deg, var(--ar-brand), var(--ar-blue)); color: #fff; box-shadow: 0 14px 40px -10px rgba(var(--ar-brand-rgb), 0.5); }
.ar-btn-gradient:hover:not(:disabled):not(.is-loading) { transform: translateY(-2px); box-shadow: 0 18px 48px -10px rgba(var(--ar-brand-rgb), 0.6); color: #fff; }

/* Aurores (halos flous) */
.lp-aur { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.lp-aur--a { width: 620px; height: 620px; background: radial-gradient(circle, rgba(var(--ar-brand-rgb), 0.20), transparent 70%); }
.lp-aur--b { width: 520px; height: 520px; background: radial-gradient(circle, rgba(var(--ar-blue-rgb), 0.16), transparent 70%); }

/* Entrée animée échelonnée */
@keyframes lp-fadU { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lp-dinI { from { opacity: 0; transform: perspective(1200px) rotateX(5deg) translateY(28px); } to { opacity: 1; transform: none; } }
.lp-afu { animation: lp-fadU 0.8s var(--ar-ease) both; }
.lp-adi { animation: lp-dinI 1.1s var(--ar-ease) 0.35s both; }

/* Mini-logos « approuvé par » */
.lp-tlogos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.6rem; }
.lp-tlogo { font-family: var(--ar-font-display); font-weight: 700; font-size: 0.92rem; color: var(--ar-text-muted); opacity: 0.85; }

/* Cadre navigateur + dashboard mockup */
.lp-browser { position: relative; z-index: 1; background: var(--ar-bg-elevated); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-lg); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); overflow: hidden; }
.lp-browser__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--ar-border); background: var(--ar-surface); }
.lp-browser__url { margin: 0 auto; font-family: var(--ar-font-mono); font-size: 0.7rem; color: var(--ar-text-muted); }
.lp-db { display: grid; grid-template-columns: 198px 1fr; }
.lp-db__side { border-right: 1px solid var(--ar-border); padding: 1rem 0.7rem; background: var(--ar-surface); display: flex; flex-direction: column; gap: 0.2rem; }
.lp-db__side-h { font-family: var(--ar-font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ar-text-muted); padding: 0 0.5rem 0.5rem; font-weight: 700; }
.lp-db__nav { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border-radius: 9px; color: var(--ar-text-soft); font-size: 0.82rem; font-weight: 600; }
.lp-db__nav.is-active { background: rgba(var(--ar-brand-rgb), 0.12); color: var(--ar-brand); }
.lp-db__main { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.lp-stpill { background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 0.7rem 0.8rem; height: 100%; }
.lp-stpill__v { font-family: var(--ar-font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; color: var(--ar-text); }
.lp-stpill__l { font-size: 0.62rem; color: var(--ar-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lp-stpill__d { font-size: 0.62rem; font-weight: 700; color: var(--ar-brand); }
.lp-panel { background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 0.85rem; height: 100%; }
.lp-panel__h { font-size: 0.66rem; color: var(--ar-text-muted); font-weight: 600; margin-bottom: 0.55rem; }
.lp-bars { display: flex; align-items: flex-end; gap: 6px; height: 78px; }
.lp-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--ar-brand), var(--ar-blue)); animation: lp-bar 0.9s var(--ar-ease) both; }
.lp-cbbl { font-size: 0.74rem; line-height: 1.35; padding: 0.45rem 0.65rem; border-radius: 10px; max-width: 92%; }
.lp-cbbl--u { align-self: flex-end; background: rgba(var(--ar-brand-rgb), 0.14); border: 1px solid rgba(var(--ar-brand-rgb), 0.30); color: var(--ar-text); }
.lp-cbbl--a { align-self: flex-start; background: var(--ar-surface-2); border: 1px solid var(--ar-border); color: var(--ar-text-soft); }
.lp-tdot { width: 6px; height: 6px; border-radius: 50%; background: var(--ar-text-muted); display: inline-block; animation: lp-bounce 0.9s infinite; }
@keyframes lp-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 575.98px) { .lp-db { grid-template-columns: 1fr; } .lp-db__side { display: none; } }

/* Bandeau de statistiques */
.lp-pnum { font-family: var(--ar-font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ar-text); line-height: 1; }
.lp-pnum--grad { background: linear-gradient(120deg, var(--ar-brand-bright), var(--ar-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lp-plbl { font-size: 0.74rem; color: var(--ar-text-muted); margin-top: 0.35rem; }

/* Marquee (défilement infini) */
.lp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-marquee__track { display: inline-flex; gap: 0.85rem; white-space: nowrap; animation: lp-scroll 28s linear infinite; }
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
@keyframes lp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ====== APPAREIL RÉALISTE + CONVERSATION ANIMÉE (texte + audio) ====== */
.ar-phone-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; }
.ar-phone { position: relative; z-index: 2; width: 300px; max-width: 80vw; height: 600px; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #232329, #0a0a0c); border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.12); }
.ar-phone__screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0b141a; display: flex; flex-direction: column; }
.ar-phone__notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 110px; height: 21px; background: #050507; border-radius: 14px; z-index: 6; }
.ar-wa-head { background: #075e54; padding: 26px 14px 9px; display: flex; align-items: center; gap: 9px; color: #fff; flex-shrink: 0; }
.ar-wa-ava { width: 33px; height: 33px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.74rem; border: 1px solid rgba(255, 255, 255, 0.22); }
.ar-wa-name { font-size: 0.8rem; font-weight: 700; line-height: 1.15; }
.ar-wa-status { font-size: 0.6rem; opacity: 0.9; display: flex; align-items: center; gap: 4px; }
.ar-phone__chat { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; background: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 0); background-size: 15px 15px; }
.ar-msg { max-width: 84%; opacity: 0; transform: translateY(9px) scale(0.97); transition: opacity 0.35s var(--ar-ease), transform 0.35s var(--ar-ease); font-size: 0.76rem; line-height: 1.36; padding: 7px 10px; border-radius: 11px; color: #e9edef; }
.ar-msg.is-shown { opacity: 1; transform: none; }
.ar-msg--in { align-self: flex-start; background: #202c33; border-bottom-left-radius: 3px; }
.ar-msg--out { align-self: flex-end; background: #056162; border-bottom-right-radius: 3px; }
.ar-msg__t { display: block; font-size: 0.54rem; opacity: 0.6; text-align: right; margin-top: 3px; }
.ar-msg--typing { align-self: flex-start; background: #202c33; padding: 10px 13px; }
.ar-typing { display: flex; gap: 4px; }
.ar-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: ar-typed 0.9s infinite; }
.ar-typing span:nth-child(2) { animation-delay: 0.15s; }
.ar-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ar-typed { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
/* Note vocale */
.ar-voice { display: flex; align-items: center; gap: 9px; min-width: 168px; }
.ar-voice__play { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 0.7rem; }
.ar-wave { display: flex; align-items: center; gap: 2px; height: 20px; flex: 1; }
.ar-wave span { width: 2px; border-radius: 2px; background: #8fd6c8; height: 5px; }
.ar-msg.is-shown .ar-wave span { animation: ar-wave 1.1s ease-in-out infinite; }
.ar-wave span:nth-child(2n) { animation-delay: 0.15s; }
.ar-wave span:nth-child(3n) { animation-delay: 0.3s; }
@keyframes ar-wave { 0%, 100% { height: 5px; } 50% { height: 17px; } }
.ar-voice__dur { font-size: 0.58rem; opacity: 0.85; }
.ar-wa-foot { background: #1f2c33; padding: 8px 10px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ar-wa-foot__pill { flex: 1; background: #2a3942; border-radius: 16px; padding: 6px 12px; color: #8696a0; font-size: 0.66rem; }
.ar-wa-foot__mic { width: 30px; height: 30px; border-radius: 50%; background: #00a884; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; flex-shrink: 0; }

/* Cartes flottantes en verre */
.ar-float { position: absolute; z-index: 3; background: var(--ar-surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); box-shadow: var(--ar-shadow); padding: 0.85rem 1rem; }
.ar-float--tl { top: 4%; left: 0; }
.ar-float--br { bottom: 6%; right: 0; width: 210px; }
.ar-float__k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ar-text-muted); font-family: var(--ar-font-mono); }
.ar-float__v { font-family: var(--ar-font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; color: var(--ar-text); }
.ar-spark { width: 100%; height: 50px; display: block; }
@media (max-width: 767.98px) { .ar-float { display: none; } }

/* En-têtes de groupe (fonctionnalités séparées) */
.lp-group { font-family: var(--ar-font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ar-brand); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.lp-group::after { content: ""; flex: 1; height: 1px; background: var(--ar-border); }

/* Étoiles & témoignage vedette */
.lp-stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 1px; }
.lp-quote--feat { background: linear-gradient(160deg, rgba(var(--ar-brand-rgb), 0.09), var(--ar-surface)); border-color: rgba(var(--ar-brand-rgb), 0.28); }

/* ----------------------------------------------------------------------------
   17. PAGES IA (console agent, connaissances, réponses auto) — réutilisable
   ---------------------------------------------------------------------------- */
.ar-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ar-page-title { font-family: var(--ar-font-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--ar-text); margin: 0; }
.ar-page-sub { color: var(--ar-text-soft); font-size: 0.9rem; margin-top: 0.25rem; }

/* Carte "pro" (panneau avec en-tête) */
.ar-card-pro { background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); box-shadow: var(--ar-shadow); }
.ar-card-pro + .ar-card-pro { margin-top: 1.25rem; }
.ar-card-pro__head { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ar-border); }
.ar-card-pro__ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(var(--ar-brand-rgb), 0.10); border: 1px solid rgba(var(--ar-brand-rgb), 0.25); color: var(--ar-brand); flex-shrink: 0; }
.ar-card-pro__title { font-family: var(--ar-font-display); font-weight: 700; font-size: 1rem; color: var(--ar-text); margin: 0; }
.ar-card-pro__body { padding: 1.25rem; }

/* Identité agent (orbe + nom + statut) */
.ar-orb { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--ar-brand); background: radial-gradient(circle, rgba(var(--ar-brand-rgb), 0.22), transparent 70%); border: 1px solid rgba(var(--ar-brand-rgb), 0.40); position: relative; }
.ar-orb::before { content: ""; position: absolute; inset: -7px; border: 1px dashed rgba(var(--ar-brand-rgb), 0.30); border-radius: 50%; animation: ar-spin 12s linear infinite; }
@keyframes ar-spin { to { transform: rotate(360deg); } }

/* Pastille de statut */
.ar-status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--ar-font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.3rem 0.7rem; border-radius: var(--ar-radius-pill); }
.ar-status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ar-status--on { color: var(--ar-brand); background: rgba(var(--ar-brand-rgb), 0.12); border: 1px solid rgba(var(--ar-brand-rgb), 0.30); }
.ar-status--on .ar-status__dot { animation: ar-pulse 1.8s infinite; }
.ar-status--off { color: var(--ar-text-muted); background: var(--ar-surface-2); border: 1px solid var(--ar-border); }

/* Contrôle segmenté (Actif / Inactif) */
.ar-seg { display: inline-flex; background: var(--ar-surface-2); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 3px; gap: 3px; }
.ar-seg label { cursor: pointer; margin: 0; }
.ar-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.ar-seg span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; border-radius: 9px; font-size: 0.82rem; font-weight: 600; color: var(--ar-text-soft); transition: all var(--ar-transition); }
.ar-seg input:checked + span { background: linear-gradient(120deg, var(--ar-brand), var(--ar-blue)); color: #fff; box-shadow: 0 4px 12px rgba(var(--ar-brand-rgb), 0.35); }
.ar-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.30); }

/* Textarea premium */
.ar-textarea.form-control { background: var(--ar-input-bg); border: 1px solid var(--ar-border-strong); color: var(--ar-text); border-radius: var(--ar-radius-sm); padding: 0.9rem 1rem; font-size: 0.86rem; line-height: 1.6; font-family: var(--ar-font-mono); }
.ar-textarea.form-control:focus { background: var(--ar-input-bg); border-color: var(--ar-brand); color: var(--ar-text); box-shadow: 0 0 0 3px rgba(var(--ar-brand-rgb), 0.18); }

/* Zone de dépôt de fichier */
.ar-drop { position: relative; border: 1.5px dashed var(--ar-border-strong); border-radius: var(--ar-radius-sm); background: var(--ar-surface); padding: 1.3rem 1rem; text-align: center; cursor: pointer; transition: border-color var(--ar-transition), background var(--ar-transition); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.ar-drop:hover, .ar-drop.is-filled { border-color: rgba(var(--ar-brand-rgb), 0.45); background: rgba(var(--ar-brand-rgb), 0.04); }
.ar-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ar-drop__icon { font-size: 1.5rem; color: var(--ar-text-muted); transition: color var(--ar-transition); }
.ar-drop:hover .ar-drop__icon, .ar-drop.is-filled .ar-drop__icon { color: var(--ar-brand); }
.ar-drop__title { font-size: 0.85rem; font-weight: 700; color: var(--ar-text); margin: 0; }
.ar-drop__tag { font-family: var(--ar-font-mono); font-size: 0.64rem; color: var(--ar-brand); background: rgba(var(--ar-brand-rgb), 0.10); border: 1px solid rgba(var(--ar-brand-rgb), 0.25); padding: 2px 6px; border-radius: 6px; }
.ar-drop__name { font-size: 0.72rem; color: var(--ar-text-muted); word-break: break-all; }

/* Onglets */
.ar-tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--ar-border); margin-bottom: 1.25rem; overflow-x: auto; }
.ar-tab { flex-shrink: 0; background: none; border: 0; padding: 0.7rem 1rem; color: var(--ar-text-soft); font-weight: 600; font-size: 0.86rem; cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--ar-transition); white-space: nowrap; }
.ar-tab:hover { color: var(--ar-text); }
.ar-tab.is-active { color: var(--ar-brand); border-bottom-color: var(--ar-brand); }
.ar-tabpanel { display: none; }
.ar-tabpanel.is-active { display: block; animation: ar-step-in 0.35s var(--ar-ease); }

/* Ligne numérotée (réponses 1, 2, 3) */
.ar-numrow__n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: var(--ar-font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ar-brand), var(--ar-blue)); }

/* Source de connaissance (item bibliothèque) */
.ar-source { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem; border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); background: var(--ar-surface); }
.ar-source__ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--ar-surface-2); border: 1px solid var(--ar-border); color: var(--ar-brand); }

/* État vide */
.ar-empty { text-align: center; padding: 2.4rem 1rem; }
.ar-empty__ico { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 0.9rem; display: flex; align-items: center; justify-content: center; background: var(--ar-surface-2); border: 1px solid var(--ar-border); color: var(--ar-text-muted); font-size: 1.4rem; }

/* Carte de navigation (dashboard agent) */
.ar-navcard { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem; background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius); text-decoration: none; height: 100%; transition: border-color var(--ar-transition), transform var(--ar-transition), background var(--ar-transition); }
.ar-navcard:hover { border-color: rgba(var(--ar-brand-rgb), 0.30); transform: translateY(-3px); background: var(--ar-surface-2); }
.ar-navcard__ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; background: rgba(var(--ar-brand-rgb), 0.10); border: 1px solid rgba(var(--ar-brand-rgb), 0.25); color: var(--ar-brand); }
.ar-navcard__t { font-weight: 700; color: var(--ar-text); font-size: 0.95rem; }
.ar-navcard__d { color: var(--ar-text-muted); font-size: 0.76rem; }
.ar-navcard__arrow { margin-left: auto; color: var(--ar-text-muted); transition: color var(--ar-transition), transform var(--ar-transition); }
.ar-navcard:hover .ar-navcard__arrow { color: var(--ar-brand); transform: translateX(3px); }

/* Tuile statistique */
.ar-stat-tile { background: var(--ar-surface); border: 1px solid var(--ar-border); border-radius: var(--ar-radius-sm); padding: 1rem 1.1rem; height: 100%; }
.ar-stat-tile__k { font-family: var(--ar-font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ar-text-muted); }
.ar-stat-tile__v { font-family: var(--ar-font-display); font-weight: 800; font-size: 1.5rem; color: var(--ar-text); line-height: 1.15; }

/* Barre de progression (niveau de connaissance) */
.ar-progress { height: 8px; border-radius: var(--ar-radius-pill); background: var(--ar-surface-2); border: 1px solid var(--ar-border); overflow: hidden; }
.ar-progress__bar { height: 100%; border-radius: var(--ar-radius-pill); background: linear-gradient(90deg, var(--ar-brand), var(--ar-blue)); }

/* Badge de statut d'une source de connaissance */
.ar-srcbadge { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--ar-font-mono); font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.25rem 0.6rem; border-radius: var(--ar-radius-pill); }
.ar-srcbadge--ok { color: var(--ar-brand); background: rgba(var(--ar-brand-rgb), 0.12); border: 1px solid rgba(var(--ar-brand-rgb), 0.28); }
.ar-srcbadge--wait { color: #f59e0b; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.28); }
.ar-srcbadge--err { color: #fb7185; background: rgba(244, 63, 94, 0.10); border: 1px solid rgba(244, 63, 94, 0.25); }

/* ----------------------------------------------------------------------------
   18. ACCESSIBILITÉ — mouvement réduit
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .lp-reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   FIX GLOBAL SELECT / DROPDOWN DARK MODE - AutoRelayPro
   Corrige les menus déroulants blancs sur fond sombre
   ========================================================= */

select,
select option,
select optgroup,
.form-select,
.form-select option,
.ar-select,
.ar-select option,
.ar-input select,
.ar-input select option,
[data-bs-theme="dark"] select,
[data-bs-theme="dark"] select option,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-select option {
    background-color: #0b1717 !important;
    color: #eafff7 !important;
    border-color: rgba(0, 229, 153, 0.35) !important;
}

select:focus,
.form-select:focus,
.ar-select:focus,
.ar-input select:focus {
    background-color: #102322 !important;
    color: #ffffff !important;
    border-color: #00e599 !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.18) !important;
    outline: none !important;
}

select option:hover,
select option:checked,
.form-select option:hover,
.form-select option:checked,
.ar-select option:hover,
.ar-select option:checked {
    background-color: #00e599 !important;
    color: #061111 !important;
}

/* Chrome autofill / native controls */
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #eafff7 !important;
    box-shadow: 0 0 0px 1000px #0b1717 inset !important;
    transition: background-color 9999s ease-in-out 0s !important;
}
