:root {
    --bg-primary: #090e1a;
    --bg-secondary: #101829;
    --bg-card: #131d31;
    --bg-card-elevated: #18243c;
    --bg-input: #0c1424;
    --border-subtle: rgba(201, 162, 85, 0.22);
    --border-strong: rgba(201, 162, 85, 0.52);
    --gold-primary: #c9a255;
    --gold-light: #e5c883;
    --gold-dark: #97722c;
    --text-primary: #f3f5f9;
    --text-secondary: #b7c2d6;
    --text-muted: #7e8da8;
    --defense-bg: rgba(16, 185, 129, 0.11);
    --defense-border: rgba(16, 185, 129, 0.42);
    --defense-text: #34d399;
    --counter-bg: rgba(239, 68, 68, 0.11);
    --counter-border: rgba(239, 68, 68, 0.42);
    --counter-text: #f87171;
    --law-bg: rgba(201, 162, 85, 0.10);
    --law-border: rgba(201, 162, 85, 0.45);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 8px 28px rgba(201, 162, 85, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition-soft: all 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at 15% 0%, #16223b 0%, var(--bg-primary) 55%, #060a12 100%);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================================
   ANIMATIONS DOUCES & ÉLÉGANTES
   ============================================================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 85, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(201, 162, 85, 0);
    }
}

.animate-fade-up {
    animation: fadeSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================================
   BANNIÈRE D'AVERTISSEMENT LÉGAL & CONFIDENTIALITÉ (SYBELLE)
   ============================================================================ */
.confidential-top-banner {
    background: linear-gradient(90deg, #2a0c14 0%, #45101d 50%, #2a0c14 100%);
    border-bottom: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    padding: 10px 20px;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.confidential-top-banner strong {
    color: #ffffff;
    text-transform: uppercase;
}

.legal-disclaimer-box {
    background: linear-gradient(145deg, rgba(24, 15, 25, 0.92), rgba(15, 22, 38, 0.96));
    border: 1px solid rgba(201, 162, 85, 0.45);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.legal-disclaimer-owner {
    color: #fca5a5;
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(248, 113, 113, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-disclaimer-pre {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.79rem;
    color: #d6deeb;
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 0;
    background: rgba(6, 10, 18, 0.65);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================================
   ÉCRAN DE CONNEXION & PORTAIL VISITEUR
   ============================================================================ */
.auth-screen-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 18px;
}

.auth-card {
    width: 100%;
    max-width: 580px;
    background: linear-gradient(165deg, rgba(22, 33, 56, 0.96) 0%, rgba(12, 19, 34, 0.98) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    animation: fadeSlideUp 0.5s ease-out;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-wrap img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(201, 162, 85, 0.25));
}

.auth-subtitle {
    text-align: center;
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: -4px;
    margin-bottom: 22px;
    font-weight: 600;
}

.member-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.member-pill {
    background: rgba(201, 162, 85, 0.12);
    border: 1px solid var(--border-subtle);
    color: var(--gold-light);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-soft);
}

.member-pill:hover {
    background: rgba(201, 162, 85, 0.26);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
}

/* ============================================================================
   HEADER PRINCIPAL (LOGO SYBELLE + BARRE D'OUTILS)
   ============================================================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 16, 29, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-brand img {
    height: 54px;
    width: auto;
}

.header-meta {
    display: flex;
    flex-direction: column;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(201, 162, 85, 0.14);
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================================
   BOUTONS & CONTRÔLES DE FORMULAIRE
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-soft);
    text-decoration: none;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, #d7b36a 0%, #b58938 100%);
    color: #090e1a;
    border-color: #e6c987;
    box-shadow: 0 4px 15px rgba(201, 162, 85, 0.28);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #e5c682 0%, #c69a45 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 162, 85, 0.4);
}

.btn-outline {
    background: rgba(19, 29, 49, 0.8);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    background: rgba(201, 162, 85, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.26);
    color: #ffffff;
}

.btn-emerald {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
    background: rgba(16, 185, 129, 0.28);
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.79rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-control,
.form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition-soft);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 85, 0.18);
}

/* ============================================================================
   LAYOUT PRINCIPAL DU DOSSIER
   ============================================================================ */
.app-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-soft);
}

.stat-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.stat-card .stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--gold-light);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================================
   CARTE TITRE & SYNOPSIS DU DOSSIER
   ============================================================================ */
.dossier-hero-card {
    background: linear-gradient(160deg, rgba(22, 34, 58, 0.94) 0%, rgba(14, 22, 39, 0.97) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.dossier-ref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dossier-ref-tag {
    background: rgba(201, 162, 85, 0.16);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.dossier-main-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.dossier-jurisdiction {
    color: var(--gold-light);
    font-size: 0.92rem;
    margin-bottom: 18px;
    font-weight: 500;
}

.dossier-synopsis-content {
    background: rgba(9, 14, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.dossier-synopsis-content p:first-child {
    margin-top: 0;
}
.dossier-synopsis-content p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   BARRE DE FILTRES, CATÉGORIES & AJOUT DE COLONNE
   ============================================================================ */
.controls-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.controls-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-pill {
    background: rgba(12, 20, 36, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-soft);
}

.cat-pill.active,
.cat-pill:hover {
    background: linear-gradient(135deg, rgba(201, 162, 85, 0.25), rgba(201, 162, 85, 0.12));
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

/* ============================================================================
   TABLEAU SYNTHÉTIQUE DYNAMIQUE (AVEC AJOUT DE COLONNE)
   ============================================================================ */
.matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.matrix-table th,
.matrix-table td {
    padding: 11px 13px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.matrix-table th {
    background: rgba(9, 14, 26, 0.75);
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.matrix-table tr:hover td {
    background: rgba(201, 162, 85, 0.05);
}

/* ============================================================================
   TIMELINE & BLOCS CHRONOLOGIQUES (GLISSER-DÉPOSER)
   ============================================================================ */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.block-card {
    background: linear-gradient(160deg, var(--bg-card) 0%, #0f1729 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-soft);
    position: relative;
}

.block-card:hover {
    border-color: rgba(201, 162, 85, 0.42);
}

.block-card.dragging {
    opacity: 0.55;
    border: 2px dashed var(--gold-primary);
    transform: scale(0.99);
}

.block-card.drag-over {
    border-top: 3px solid var(--gold-light);
    box-shadow: 0 0 28px rgba(201, 162, 85, 0.35);
}

.block-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.block-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.drag-handle {
    cursor: grab;
    background: rgba(201, 162, 85, 0.14);
    border: 1px solid var(--border-subtle);
    color: var(--gold-light);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.drag-handle:active {
    cursor: grabbing;
}

.badge-date {
    background: #1d2b47;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.84rem;
}

.badge-category {
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.42);
    color: #a5b4fc;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-type {
    background: rgba(201, 162, 85, 0.18);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.block-title {
    font-size: 1.28rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.block-custom-cols-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.custom-col-chip {
    background: rgba(9, 14, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.custom-col-chip span {
    color: var(--gold-light);
    font-weight: 600;
}

.block-description {
    background: rgba(9, 14, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    color: var(--text-primary);
    margin-bottom: 18px;
}

/* ============================================================================
   CONVERSATION CONTRADICTOIRE : MES ARGUMENTS vs CONTRE ARGUMENT
   ============================================================================ */
.conversation-section {
    margin-top: 18px;
    margin-bottom: 18px;
    background: rgba(8, 12, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
}

.section-subtitle {
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.arguments-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arg-bubble {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    position: relative;
    max-width: 92%;
}

.arg-bubble.side-defense {
    background: var(--defense-bg);
    border: 1px solid var(--defense-border);
    border-left: 4px solid var(--defense-text);
    align-self: flex-start;
}

.arg-bubble.side-counter {
    background: var(--counter-bg);
    border: 1px solid var(--counter-border);
    border-right: 4px solid var(--counter-text);
    align-self: flex-end;
}

.arg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.arg-side-tag {
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.side-defense .arg-side-tag {
    background: rgba(16, 185, 129, 0.22);
    color: var(--defense-text);
}

.side-counter .arg-side-tag {
    background: rgba(239, 68, 68, 0.22);
    color: var(--counter-text);
}

.arg-speaker-badge {
    background: rgba(255, 255, 255, 0.09);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 600;
}

.arg-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.96rem;
    margin-bottom: 4px;
}

.arg-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* ============================================================================
   ARTICLES DE LOIS & FONDEMENTS JURIDIQUES DU BLOC
   ============================================================================ */
.laws-section {
    margin-top: 16px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.law-card {
    background: var(--law-bg);
    border: 1px solid var(--law-border);
    border-left: 4px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.law-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.law-qual-tag {
    background: rgba(201, 162, 85, 0.22);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.law-art-num {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.84rem;
}

.law-title {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.law-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================================================
   PIÈCES JOINTES MULTI-FORMATS & LECTEUR MULTIMÉDIA
   ============================================================================ */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.attachment-card {
    background: rgba(9, 14, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.attachment-preview img {
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.attachment-preview audio,
.attachment-preview video {
    width: 100%;
    border-radius: 6px;
}

.attachment-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ============================================================================
   ÉDITEUR RICHE & VÉRIFICATEUR ORTHOGRAPHE / GRAMMAIRE
   ============================================================================ */
.rich-editor-shell {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-input);
}

.rich-toolbar {
    background: #141f36;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rich-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-soft);
}

.rich-btn:hover {
    background: rgba(201, 162, 85, 0.22);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.rich-editor-area {
    min-height: 160px;
    max-height: 380px;
    overflow-y: auto;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.65;
    outline: none;
}

.grammar-panel {
    background: rgba(16, 24, 41, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 14px;
    font-size: 0.84rem;
    display: none;
}

.grammar-panel.active {
    display: block;
}

.grammar-issue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--gold-primary);
    border-radius: 5px;
    margin-bottom: 6px;
}

/* ============================================================================
   MODALES (ÉDITION DE BLOC, BORDEREAU, LOGS IP, PARTAGE VISITEUR)
   ============================================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.82);
    backdrop-filter: blur(6px);
    z-index: 900;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px;
    overflow-y: auto;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 1020px;
    background: linear-gradient(165deg, #152138 0%, #0d1526 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeSlideUp 0.3s ease-out;
    margin: auto 0;
}

.modal-header {
    padding: 18px 24px;
    background: rgba(9, 14, 26, 0.7);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--gold-light);
}

.modal-body {
    padding: 24px;
    max-height: 78vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(9, 14, 26, 0.75);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.inline-add-group {
    display: flex;
    gap: 8px;
}

/* ============================================================================
   TOAST NOTIFICATION
   ============================================================================ */
.toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    background: #142038;
    border: 1px solid var(--gold-primary);
    border-left: 4px solid var(--gold-primary);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    animation: fadeSlideUp 0.25s ease-out;
}

/* ============================================================================
   RESPONSIVE MOBILE / TABLETTE & IMPRESSION PDF
   ============================================================================ */
@media (max-width: 860px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .app-header {
        padding: 12px 16px;
    }
    .app-container {
        padding: 18px 14px 60px;
    }
    .dossier-hero-card,
    .block-card {
        padding: 18px 16px;
    }
    .dossier-main-title {
        font-size: 1.35rem;
    }
    .arg-bubble {
        max-width: 100%;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #111827 !important;
    }
    .app-header,
    .controls-bar,
    .editor-only-btn,
    .drag-handle {
        display: none !important;
    }
    .dossier-hero-card,
    .block-card,
    .legal-disclaimer-box {
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #9ca3af !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .dossier-main-title,
    .block-title,
    .arg-title {
        color: #000000 !important;
    }
}
