/* ================================
   VARIABLES GLOBALES / RESET
   ================================ */
:root {
    --bg-body: #f4f6fb;
    --bg-card: #ffffff;
    --bg-sidebar: #f5f7ff;

    --primary: #2563eb;
    --primary-soft: #eff6ff;
    --accent: #22c55e;

    --text-strong: #0f172a;
    --text-soft: #6b7280;
    --text-muted: #9ca3af;

    --border-subtle: #e5e7eb;

    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-soft-small: 0 6px 18px rgba(15, 23, 42, 0.08);

    --transition-fast: 0.15s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text-strong);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.11), transparent 55%),
        var(--bg-body);
}

/* Shell global (header + sidebar + main) */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================
   LAYOUT PRINCIPAL
   ================================ */

.app-layout {
    display: flex;
    min-height: calc(100vh - 56px); /* si topbar, sinon 100vh */
}

/* ================================
   SIDEBAR – VERSION PRO 2026 (liste verticale)
   ================================ */

.app-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #eef2ff 0%, #f9fafb 40%, #ecfdf3 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    padding: 14px 12px 18px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 100vh;
    box-shadow: 6px 0 22px rgba(15, 23, 42, 0.06);
}

/* Conteneur de sections (GÉNÉRAL, SUPER ADMIN, etc.) */
.sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Carte de section */
.sidebar-section {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 8px 8px 10px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Accent de couleur par type de section */
.sidebar-section--general      { --sidebar-accent: #2563eb; } /* bleu */
.sidebar-section--superadmin   { --sidebar-accent: #7c3aed; } /* violet */
.sidebar-section--management   { --sidebar-accent: #16a34a; } /* vert */
.sidebar-section--operationnel { --sidebar-accent: #ea580c; } /* orange */
.sidebar-section--support      { --sidebar-accent: #0ea5e9; } /* cyan */
.sidebar-section {
    --sidebar-accent: #2563eb; /* fallback */
}

/* Titre de section */
.app-nav-section-title {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.55);
    margin: 0 2px 6px;
}

/* Grille → liste verticale */
.sidebar-grid {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Item de menu (ligne) */
.sidebar-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(15, 23, 42, 0.82);
    font-size: 12px;
    line-height: 1.3;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast),
        color var(--transition-fast);
}

/* Petite barre verticale à gauche (accent) */
.sidebar-tile::before {
    content: "";
    width: 3px;
    border-radius: 999px;
    align-self: stretch;
    background: transparent;
    margin-right: 4px;
}

/* Icône dans une pastille */
.sidebar-tile-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(148, 163, 184, 0.14);
}

/* Label */
.sidebar-tile-label {
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    color: rgba(15, 23, 42, 0.85);
}

/* Hover */
.sidebar-tile:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.sidebar-tile:hover .sidebar-tile-icon {
    background: rgba(37, 99, 235, 0.12);
}

/* Actif */
.sidebar-tile.is-active {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--sidebar-accent);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.sidebar-tile.is-active::before {
    background: var(--sidebar-accent);
}

.sidebar-tile.is-active .sidebar-tile-icon {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), var(--sidebar-accent));
    color: #ffffff;
}

.sidebar-tile.is-active .sidebar-tile-label {
    color: #0f172a;
    font-weight: 600;
}

/* Focus clavier */
.sidebar-tile:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* ================================
   MAIN
   ================================ */

.app-main {
    flex: 1;
    padding: 22px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ================================
   HEADER DE PAGE
   ================================ */

.app-main-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 2px;
}

.app-main-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.app-main-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

/* ================================
   COMPOSANTS : CARDS, STACK
   ================================ */

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px 18px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-card);
}

.card-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-strong);
}

.card-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
}

.mt-lg {
    margin-top: 10px;
}

/* ================================
   FORMS GÉNÉRIQUES
   ================================ */

.form-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-field {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field-compact {
    min-width: 180px;
}

.form-field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    background-color: #ffffff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    font-family: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background-color: #ffffff;
}

/* ================================
   BOUTONS
   ================================ */

button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-chip {
    font-family: inherit;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-strong);
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-secondary:hover {
    background: #f9fafb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-soft);
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-strong);
}

/* Petits boutons "chip" */
.btn-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 11px;
    cursor: pointer;
    background: #ffffff;
    color: var(--text-soft);
    transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.btn-chip:hover {
    background: #f3f4ff;
    color: var(--text-strong);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
}

.btn-chip-outline {
    background: transparent;
}

.btn-chip-secondary {
    background: #f3f4ff;
    border-color: #e5e7eb;
}

/* ================================
   ALERTES / MESSAGES
   ================================ */

.auth-error,
.auth-success {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid transparent;
}

.auth-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.auth-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

/* ================================
   TABLES
   ================================ */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table th,
.table td {
    padding: 7px 10px;
    text-align: left;
}

.table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.table tbody tr:hover {
    background: #eef2ff;
}

.table-empty {
    text-align: center;
    padding: 16px 10px;
    color: var(--text-soft);
}

/* Badges : rôles & statut */
.badge-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-role-super_admin {
    background: #eef2ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-role-dg {
    background: #ecfdf3;
    color: #047857;
    border-color: #bbf7d0;
}

.badge-role-resp {
    background: #fffbeb;
    color: #b45309;
    border-color: #fed7aa;
}

.badge-role-commercial {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.badge-status-active {
    background: #ecfdf3;
    color: #16a34a;
}

.badge-status-inactive {
    background: #f9fafb;
    color: #6b7280;
}

/* ================================
   LIENS EMAIL
   ================================ */

.link-email {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.link-email:hover {
    text-decoration: underline;
}

/* ================================
   BOARD DES ÉQUIPES
   ================================ */

.board-equipes {
    display: grid;
    grid-template-columns: minmax(230px, 260px) repeat(auto-fit, minmax(260px, 320px));
    gap: 18px;
    align-items: flex-start;
}

.board-equipes.board-equipes-large {
    min-height: 260px;
}

.board-column {
    background: #f9fafb;
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.board-column-standalone {
    min-height: 260px;
}

.board-column-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0;
}

.board-column-subtitle {
    font-size: 11px;
    color: var(--text-soft);
    margin: 0 0 4px;
}

.board-equipe-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-equipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.board-equipe-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.board-lanes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.board-lane {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-lane-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-soft);
}

.dropzone {
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone-line {
    min-height: 64px;
}

.dropzone-tall {
    min-height: 220px;
}

.dropzone-hover {
    border-color: #60a5fa;
    background: #eff6ff;
}

.empty-hint {
    font-size: 11px;
    color: #6b7280;
    padding: 4px;
}

.user-chip {
    background: #f3f4ff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border: 1px solid #e5e7eb;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.user-chip.dragging {
    opacity: 0.7;
    cursor: grabbing;
}

.user-chip-name {
    font-weight: 600;
    color: var(--text-strong);
}

.user-chip-meta {
    font-size: 10px;
    color: var(--text-soft);
}

.badge-role-muted {
    background: #f3f4f6;
    color: #6b7280;
}

/* ================================
   RESPONSIVE (APP)
   ================================ */

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: none;
    }

    .app-main {
        padding: 16px;
    }

    .board-equipes {
        grid-template-columns: 1fr;
    }
}

/* ======== Layout global (rappel) ======== */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 40%, #ecfdf3 100%);
    color: #0f172a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ======== Topbar ======== */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.app-topbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-topbar-app {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.app-topbar-sub {
    font-size: 11px;
    color: #64748b;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-topbar-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
}

.app-topbar-name {
    font-weight: 600;
    color: #0f172a;
}

.app-topbar-role {
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #0f172a;
    background: #f9fafb;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease-in-out;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* ======== Page login (ancienne base) ======== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 40%, #ecfdf3 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    max-width: 360px;
    width: 100%;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
}

.auth-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.auth-field {
    margin-bottom: 12px;
    font-size: 13px;
}

.auth-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #0f172a;
}

.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #f9fafb;
}

.auth-field input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
    background: #ffffff;
}

.auth-submit {
    margin-top: 10px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.6);
}

.auth-bottom-text {
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}


/* =========================================
   PAGE LOGIN – LAYOUT HERO + CARTE
   ========================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 40%, #ecfdf3 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Conteneur global */
.auth-shell {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 360px);
    gap: 32px;
    align-items: center;
}

/* Bloc hero (gauche) */
.auth-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #0f172a;
}

.auth-hero-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.auth-hero-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-hero-app {
    font-size: 16px;
    font-weight: 700;
}

.auth-hero-tagline {
    font-size: 12px;
    color: #64748b;
}

.auth-hero-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-hero-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-hero-title span {
    background-image: linear-gradient(135deg, #2563eb, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-hero-text {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    max-width: 420px;
}

/* Badges & pill */
.auth-hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
    width: fit-content;
}

.auth-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #475569;
}

.auth-badge .emoji {
    font-size: 13px;
}

.auth-hero-footnote {
    margin: 6px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

/* Carte de login (droite) */
.auth-card-login {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 22px 24px 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-card-login .auth-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.auth-card-login .auth-subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.auth-form {
    margin-top: 4px;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Liens sous le formulaire */
.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    margin-bottom: 8px;
}

.auth-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Note en bas de la carte */
.auth-footer-note {
    margin-top: 12px;
    font-size: 11px;
    color: #94a3b8;
}

/* Responsive login */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        max-width: 480px;
    }

    .auth-hero {
        order: 2;
        text-align: center;
        align-items: center;
    }

    .auth-hero-text {
        max-width: 100%;
    }

    .auth-hero-badges {
        justify-content: center;
    }

    .auth-page {
        padding: 24px 14px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-card-login {
        padding: 18px 16px 18px;
    }

    .auth-hero-title {
        font-size: 24px;
    }
}


/* =========================================
   PAGE MOT DE PASSE OUBLIÉ – AJUSTEMENTS
   ========================================= */

.auth-card-forgot .auth-title {
    font-size: 21px;
}

.auth-debug-link {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f1f5f9; /* corrigé ici */
    border: 1px solid #e2e8f0;
    font-size: 11px;
    color: #475569;
}


.auth-debug-link p {
    margin: 0 0 4px;
    font-weight: 600;
}

.auth-debug-link code {
    display: block;
    word-break: break-all;
    padding: 4px 6px;
    border-radius: 6px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 11px;
}


/* =========================================
   LANDING PAGE – HOME (Teleprospect)
   ========================================= */

.landing-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.14), transparent 55%),
        #f4f6fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

/* HEADER */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.landing-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.landing-brand-name {
    font-size: 15px;
    font-weight: 700;
}

.landing-brand-tagline {
    font-size: 11px;
    color: #64748b;
}

/* Nav */

.landing-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-nav-link {
    font-size: 13px;
    color: #475569;
    text-decoration: none;
}

.landing-nav-link:hover {
    color: #111827;
}

.landing-nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.landing-login-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.landing-demo-btn {
    font-size: 12px;
}

/* Burger */

.landing-nav-toggle {
    display: none;
    border: none;
    background: #f9fafb;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    font-size: 18px;
    cursor: pointer;
}

/* MAIN */

.landing-main {
    flex: 1;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 26px 18px 40px;
}

/* HERO */

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 40px;
}

.landing-hero-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.landing-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
    border: 1px solid rgba(129, 140, 248, 0.45);
    width: fit-content;
}

.landing-hero-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.landing-hero-title span {
    background-image: linear-gradient(135deg, #2563eb, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    max-width: 460px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-hero-main-cta {
    font-size: 13px;
}

.landing-hero-secondary-cta {
    font-size: 13px;
}

.landing-hero-metas {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
}

.landing-hero-meta .label {
    font-weight: 600;
    color: #0f172a;
}

/* HERO PANEL (Aperçu pipeline) */

.landing-hero-panel {
    display: flex;
    justify-content: center;
}

.landing-hero-card {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    padding: 12px 12px 14px;
    background: radial-gradient(circle at top left, #eff6ff, #ffffff 40%, #ecfdf3 100%);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.landing-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.landing-hero-card-header .title {
    font-weight: 600;
    color: #0f172a;
}

.landing-hero-card-header .badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
}

.landing-hero-card-body {
    font-size: 11px;
    color: #475569;
}

.landing-hero-card .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.landing-hero-card .pill {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(248, 250, 252, 0.9);
}

.pill-warm {
    background: #fef3c7;
    border-color: #facc15;
}

.pill-soft {
    background: #e0f2fe;
    border-color: #60a5fa;
}

.lane-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.lane {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 6px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.lane-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.lane-chip {
    font-size: 10px;
    border-radius: 999px;
    padding: 3px 6px;
    margin-bottom: 3px;
    background: #f9fafb;
    color: #0f172a;
}

.lane-chip-green {
    background: #ecfdf3;
    color: #166534;
}

.lane-chip-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.small-footer {
    font-size: 10px;
    color: #94a3b8;
}

/* SECTIONS GÉNÉRALES */

.landing-section {
    margin-bottom: 40px;
}

.landing-section-alt {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    padding: 18px 16px 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.landing-section-head {
    margin-bottom: 16px;
}

.landing-section-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.landing-section-head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Features */

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-feature-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 12px 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    font-size: 12px;
}

.landing-feature-card .icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.landing-feature-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.landing-feature-card p {
    margin: 0;
    color: #64748b;
}

/* Audience */

.landing-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.audience-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
}

.audience-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

/* Steps */

.landing-steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 12px;
}

.landing-steps li {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.landing-steps h3 {
    margin: 0 0 4px;
    font-size: 13px;
}

.landing-steps p {
    margin: 0;
    color: #64748b;
}

/* Contact bloc */

.landing-contact-card {
    background: rgba(248, 250, 252, 0.96);
    border-radius: 14px;
    padding: 12px 12px 14px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    color: #475569;
}

.landing-contact-card p {
    margin: 0 0 10px;
}

.landing-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.landing-contact-note {
    font-size: 11px;
    color: #94a3b8;
}

/* FOOTER */

.landing-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 10px 16px 14px;
    background: rgba(255, 255, 255, 0.95);
}

.landing-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-footer-inner .sep {
    opacity: 0.6;
}

/* RESPONSIVE LANDING */

@media (max-width: 900px) {
    .landing-header-inner {
        padding: 8px 12px;
    }

    .landing-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .landing-nav {
        position: absolute;
        top: 52px;
        right: 10px;
        left: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 14px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.25);
        display: none;
    }

    .landing-nav.is-open {
        display: flex;
    }

    .landing-nav-cta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .landing-main {
        padding: 20px 14px 30px;
    }

    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .landing-hero-panel {
        order: -1;
    }

    .landing-features-grid,
    .landing-audience-grid,
    .landing-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-section-alt {
        margin-left: -4px;
        margin-right: -4px;
    }
}

@media (max-width: 480px) {
    .landing-hero-title {
        font-size: 26px;
    }

    .landing-hero-card {
        max-width: 100%;
    }
}
/* Header cliquable pour les sections déroulantes */
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2px 4px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* On garde le style du titre mais à l'intérieur du bouton */
.sidebar-section-header .app-nav-section-title {
    margin: 0;
}

/* Petite flèche / chevron */
.sidebar-section-chevron {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.45);
    transition: transform 0.15s ease;
}

/* Animation d’ouverture/fermeture du contenu */
.sidebar-section .sidebar-grid {
    max-height: 500px;
    overflow: hidden;
    transition:
        max-height 0.2s ease,
        opacity 0.16s ease,
        transform 0.16s ease;
}

.sidebar-section.is-collapsed .sidebar-grid {
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

/* Flèche tournée quand c'est fermé */
.sidebar-section.is-collapsed .sidebar-section-chevron {
    transform: rotate(-90deg);
}
