/* =====================================================================
   Feuille de style principale : landing, auth, onboarding, dashboard.
   Direction artistique : fond très sombre, dégradés indigo/cyan,
   typographie Sora (titres) + Inter (texte), rendu "produit premium".
   ===================================================================== */

:root {
    --bg: #05070F;
    --bg-elevated: #0D1220;
    --bg-card: #121829;
    --border: #232B42;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --accent: #6366F1;
    --accent-2: #22D3EE;
    --accent-gradient: linear-gradient(120deg, #6366F1 0%, #8B5CF6 50%, #22D3EE 100%);
    --success: #34D399;
    --danger: #F87171;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 20px 60px -20px rgba(99, 102, 241, 0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .display {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

p { color: var(--text-muted); line-height: 1.65; margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.75); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Cartes / surfaces ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #A5B4FC;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ---------- Navigation ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.logo span { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 64px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(5, 7, 15, 0) 70%);
    z-index: -1;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .lead { font-size: 19px; max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Grilles de fonctionnalités / comparaison ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    font-size: 20px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.compare-table th { color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no { color: var(--danger); font-weight: 700; }
.compare-table .highlight { background: rgba(99, 102, 241, 0.06); }

.pricing-card {
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-glow);
}
.price { font-size: 56px; font-weight: 800; font-family: 'Sora', sans-serif; }
.price sup { font-size: 20px; vertical-align: super; }
.price small { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.pricing-list { list-style: none; padding: 0; margin: 24px 0 32px; text-align: left; }
.pricing-list li { padding: 8px 0; color: var(--text-muted); display: flex; gap: 10px; }
.pricing-list li::before { content: '✓'; color: var(--success); font-weight: 700; }

footer.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Auth (login/register/verify) ---------- */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
}
.auth-card .logo { display: block; text-align: center; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.field-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-error { background: rgba(248, 113, 113, 0.12); color: #FCA5A5; border: 1px solid rgba(248, 113, 113, 0.3); }
.alert-success { background: rgba(52, 211, 153, 0.12); color: #6EE7B7; border: 1px solid rgba(52, 211, 153, 0.3); }
.alert-warning { background: rgba(251, 191, 36, 0.12); color: #FCD34D; border: 1px solid rgba(251, 191, 36, 0.3); }

/* ---------- Dashboard layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 24px 18px;
    background: var(--bg-elevated);
}
.sidebar .logo { padding: 0 8px; margin-bottom: 32px; display: block; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14.5px;
    margin-bottom: 4px;
}
.sidebar-nav a:hover { background: var(--bg-card); color: var(--text); }
.sidebar-nav a.active { background: rgba(99, 102, 241, 0.14); color: #C7D2FE; }

.main-content { flex: 1; padding: 32px 40px; max-width: 1100px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.subscription-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.subscription-pill.trial { background: rgba(251, 191, 36, 0.15); color: #FCD34D; }
.subscription-pill.active { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; }
.subscription-pill.expired { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.25s ease; }

.link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.link-item .platform-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.link-item .link-info { flex: 1; min-width: 0; }
.link-item .link-info strong { display: block; font-size: 14.5px; }
.link-item .link-info span { display: block; font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item .link-actions { display: flex; gap: 6px; }
.icon-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

.phone-preview {
    position: sticky;
    top: 32px;
    background: #000;
    border-radius: 36px;
    padding: 14px;
    box-shadow: var(--shadow-glow);
}
.phone-preview iframe {
    width: 100%;
    height: 560px;
    border: none;
    border-radius: 24px;
    background: #fff;
}

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.color-swatch {
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}
.color-swatch.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Onboarding ---------- */
.onboarding-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.onboarding-progress {
    width: 100%;
    max-width: 460px;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    margin-bottom: 40px;
    overflow: hidden;
}
.onboarding-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.4s ease;
    width: 16%;
}
.onboarding-step {
    width: 100%;
    max-width: 460px;
    display: none;
    text-align: center;
}
.onboarding-step.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.onboarding-step h2 { font-size: 26px; }
.onboarding-step .field { text-align: left; }
.onboarding-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: center; }
.skip-link { display: block; margin-top: 16px; color: var(--text-muted); font-size: 14px; cursor: pointer; }
.skip-link:hover { color: var(--text); }

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
}
.upload-zone:hover { border-color: var(--accent); color: var(--text); }
.upload-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; }

.link-input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.link-input-row input { flex: 1; }
.added-links-list { text-align: left; margin-top: 16px; }
.added-link-chip {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 8px; font-size: 14px;
}

@media (max-width: 900px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .phone-preview { position: static; margin-top: 24px; }
    .app-shell { flex-direction: column; }
    /* Mobile : barre fixe en haut, menu hamburger qui déroule les onglets */
    .sidebar { position: sticky; top: 0; z-index: 60; width: 100%; display: flex; align-items: center; justify-content: space-between; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 18px; }
    .sidebar .logo { margin-bottom: 0; padding: 0; }
    .nav-toggle { display: inline-flex; }
    .sidebar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 10px 14px 16px;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
    }
    .sidebar.open .sidebar-nav { display: block; }
    .sidebar-nav a { padding: 13px 14px; font-size: 15.5px; }
    .main-content { padding: 24px 18px; }
}

@media (max-width: 600px) {
    .hero { padding: 64px 0 40px; }
    .nav-links { display: none; }
}

/* ---------- Personnalisation : modèles, galerie ---------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.preset-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 104px;
    padding: 12px;
    text-align: left;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.preset-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7); }
.preset-card.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.preset-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.preset-dots { display: flex; gap: 5px; }
.preset-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.preset-btn { align-self: stretch; text-align: center; padding: 6px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.gal-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated); }

.preset-filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.preset-filter {
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s ease;
}
.preset-filter:hover { color: var(--text); border-color: var(--accent); }
.preset-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gen-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 560px) { .gen-options { grid-template-columns: 1fr; } }

/* ---------- Logo de marque (symbole + nom) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .logo-mark { display: block; height: 30px; width: auto; }
.logo .logo-text { color: inherit; }
.auth-card .logo { display: flex; justify-content: center; }
.sidebar .logo { display: flex; }

/* ---------- Galerie : édition en ligne ---------- */
.gal-row { margin-bottom: 10px; }
.gal-row .link-item { margin-bottom: 0; }
.gal-edit { padding: 16px; margin-top: -4px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); background: var(--bg-elevated); }

/* ---------- Complétude de la page ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: var(--accent-gradient); transition: width 0.4s ease; }
.todo-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.todo-list a { color: var(--accent); font-size: 14px; font-weight: 500; }

/* ---------- Pages légales ---------- */
.legal-wrap { max-width: 820px; padding-bottom: 60px; }
.legal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal h2 { font-size: 18px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal-date { font-size: 13px; }
.legal-todo { background: #FDE68A; color: #78350F; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal-links { text-align: center; font-size: 13px; margin: 18px 0 0; color: var(--text-muted); }
.legal-links a { color: var(--text-muted); }
.legal-links a:hover { color: var(--text); }
@media (max-width: 560px) { .legal { padding: 24px 18px; } }

/* ---------- Administration ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.admin-stat { padding: 18px; }
.admin-stat-value { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-actions input { padding: 6px 8px; }

/* ---------- Champs hors ".field" (rangées d'ajout, recherche admin, date...) : même style sombre ---------- */
input[type="text"], input[type="url"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], textarea, select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    color-scheme: dark;
}
input[type="text"]:focus, input[type="url"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="date"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.link-input-row input, .link-input-row select { min-width: 0; }

/* ---------- Connexion avec Google ---------- */
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--text-muted); font-size: 13px; }
.oauth-sep::before, .oauth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 12px 18px; border-radius: 999px;
    background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
    font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-google:hover { box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.5); transform: translateY(-1px); }

/* ---------- Administration : filtres, cartes cliquables, barre d'outils ---------- */
.admin-stat-link { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.admin-stat-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-filters .preset-filter { text-decoration: none; }
.admin-count { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11px; font-weight: 700; }
.preset-filter.active .admin-count { background: rgba(0, 0, 0, 0.25); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }

/* ---------- Numéros : coche WhatsApp ---------- */
.wa-check, .wa-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; border: 1px solid var(--border); border-radius: 10px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.wa-check { padding: 0 14px; }
.wa-toggle { padding: 5px 10px; }
.wa-check input, .wa-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #25D366; cursor: pointer; }
.wa-check .wa-ic, .wa-toggle .wa-ic { display: inline-flex; color: var(--text-muted); transition: color 0.15s ease; }
.wa-check svg, .wa-toggle svg { width: 18px; height: 18px; }
.wa-check:has(input:checked), .wa-toggle:has(input:checked) { border-color: #25D366; background: rgba(37, 211, 102, 0.12); color: var(--text); }
.wa-check:has(input:checked) .wa-ic, .wa-toggle:has(input:checked) .wa-ic { color: #25D366; }
@media (max-width: 560px) { .wa-toggle .wa-txt { display: none; } .link-input-row:has(.wa-check) { flex-wrap: wrap; } .link-input-row .wa-check { padding: 11px 14px; } }

/* ---------- Bouton hamburger du menu mobile (masqué sur ordinateur) ---------- */
@media (min-width: 901px) { .nav-toggle { display: none; } }
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }
.sidebar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.sidebar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Comptes créés par l'admin : bandeaux, verrou, impersonation, VIP ---------- */
.impersonate-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 24px;
    background: linear-gradient(90deg, #7C3AED, #6366F1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.impersonate-bar .btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.impersonate-bar .btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }

.claim-banner {
    margin-bottom: 24px;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}
.claim-banner-text p { margin: 8px 0 0; font-size: 14px; color: var(--text-muted); }
.claim-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.claim-form input { flex: 1; min-width: 220px; }

.dashboard-editable { position: relative; }
.dashboard-editable.is-locked { pointer-events: none; user-select: none; }
.dashboard-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    background: rgba(10, 12, 24, 0.5);
    backdrop-filter: blur(1.5px);
    border-radius: var(--radius-lg);
}
.dashboard-lock-overlay span {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.vip-star {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 13px;
    opacity: 0.3;
    filter: grayscale(1);
    padding: 0 2px;
    vertical-align: middle;
}
.vip-star.is-vip { opacity: 1; filter: none; }

/* ---------- Champ mot de passe : bouton afficher/masquer ---------- */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 46px; }
.pw-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 8px 12px;
    color: var(--text-muted);
}
.pw-toggle:hover { color: var(--text); }
.pw-mismatch { display: none; margin-top: 10px; }
