/**
 * CSS factorisa pour les cibles TOEM
 * Rapatria depuis exemple/TOEM_User_Client/css/ vers le code principal
 */

/* === LAYOUT PRINCIPAL === */
.toem-three-column-layout {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    min-height: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    max-height: var(--available-height);
    align-items: stretch;
}

/* === COLONNE GAUCHE - BOUTONS === */
.toem-side-panel {
    flex: 0 0 130px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    height: fit-content;
    align-self: flex-start;
}

.toem-side-panel button {
    padding: 0.45rem 0.65rem;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toem-side-panel button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.toem-side-panel button.toggle {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.toem-side-panel button.toggle:hover {
    background: #5a6268;
    border-color: #545b62;
}

.toem-side-panel button.toggle.active {
    background: #28a745;
    border-color: #28a745;
}

.toem-side-panel button.toggle.active:hover {
    background: #218838;
    border-color: #1e7e34;
}

.toem-side-panel button.system-only {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.toem-side-panel button.system-only:hover {
    background: #0056b3;
    border-color: #004085;
}

/* Bouton toggle-btn (alias pour toggle) */
.toem-side-panel button.toggle-btn {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.toem-side-panel button.toggle-btn:hover {
    background: #5a6268;
    border-color: #545b62;
}

.toem-side-panel button.toggle-btn.active {
    background: #28a745;
    border-color: #28a745;
}

.toem-side-panel button.toggle-btn.active:hover {
    background: #218838;
    border-color: #1e7e34;
}

.toem-side-panel .zoom-select {
    margin-top: 0.75rem;
    padding: 0.5rem 0.6rem;
    border: 2px solid #007bff;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    background-color: #f8f9ff;
    font-weight: 500;
}

/* Affichage des coordonnées de groupement — cartouche en surimposition sur la cible zoom */
#group-coordinates-display {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    display: none; /* géré par JS */
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 123, 255, 0.35);
    border-radius: 0.375rem;
    font-size: 0.813rem;
    font-weight: 500;
    line-height: 1.55;
    color: #333;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
    max-width: 55%;
}

/* === MEDIA QUERIES - RESPONSIVE DESIGN === */

/* Tablette 1009x706 - Optimisation complète sans scrolling */
@media (max-width: 1100px) and (max-height: 800px) {
    .toem-three-column-layout {
        gap: 0.25rem;
        max-height: calc(100vh - 8rem);
        padding: 0.25rem;
        height: calc(100vh - 8rem);
        overflow: hidden;
    }
    
    /* Panneau gauche - Boutons ultra-compacts */
    .toem-side-panel {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    .toem-side-panel button {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .toem-side-panel .zoom-select {
        margin-top: 0.3rem;
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
    }
    
    /* Panneau central - Cibles optimisées */
    .toem-center-panel {
        flex: 1 1 0%;
        min-width: 400px;
        overflow: visible;
    }
    
    #zoom-cible-svg {
        max-height: calc(100vh - 12rem);
        overflow: visible;
        width: 100%;
        height: auto;
    }
    
    #zoom-cible-svg svg {
        max-height: calc(100vh - 12rem);
        width: 100%;
        height: auto;
        display: block;
    }
    
    .scene-container {
        gap: 0.25rem;
    }
    
    .scene-container h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    /* Panneau droit - Tableau compact */
    .toem-right-panel {
        flex: 0 0 380px;
        min-width: 380px;
        max-width: 380px;
        gap: 0.3rem;
        overflow: hidden;
    }
    
    .toem-right-panel h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .table-wrapper {
        max-height: calc(100vh - 14rem);
        overflow-y: auto;
    }
    
    #shot-data-table {
        font-size: 0.7rem;
    }
    
    #shot-data-table th,
    #shot-data-table td {
        padding: 0.15rem 0.2rem;
        font-size: 0.65rem;
    }
    
    #shot-data-table th {
        font-size: 0.65rem;
    }
    
    /* Scène (Overview) compacte */
    .scene-container svg {
        max-height: 180px;
    }
}

/* Tablette et écrans moyens (≤1024px) */
@media (max-width: 1024px) {
    .toem-side-panel button {
        padding: 10px;
        font-size: 13px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .toem-side-panel button {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Tableau scrollable horizontalement sur tablette */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #shot-data-table {
        min-width: 600px;
    }
    
    #shot-data-table th,
    #shot-data-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
    }
}

/* Petit mobile (≤480px) */
@media (max-width: 480px) {
    .toem-side-panel button {
        padding: 6px;
        font-size: 11px;
    }
    
    /* Tableau scrollable horizontalement sur mobile */
    .table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    #shot-data-table {
        min-width: 100%;
        width: max-content;
        font-size: 0.7rem;
    }
    
    #shot-data-table th,
    #shot-data-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    #shot-data-table th {
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    /* Checkbox plus visible */
    #shot-data-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }
}

/* === COLONNE CENTRALE - CIBLES SVG === */
.toem-center-panel {
    flex: 0 0 var(--zoom-center-width, calc((var(--available-height, calc(100vh - 50px)) - 2.5rem) * 485 / 640));
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: visible;
}

#zoom-cible-svg {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
}

#zoom-cible-svg svg {
    display: block;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
}

body.dark-mode #zoom-cible-svg {
    background: #2d2d2d;
    border-color: #444;
}

.scene-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.scene-container h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #495057;
}

.scene-container svg {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

/* Zone de zoom - overflow visible pour les impacts hors cadre */
#zoom-cible-svg {
    overflow: visible;
}

/* === COLONNE DROITE - TABLEAU === */
.toem-right-panel {
    flex: 1 1 auto;
    max-width: none;
    min-width: 300px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    align-self: stretch;
}

.scene-container {
    flex-shrink: 0;
}

.toem-right-panel .scene-container svg {
    width: 100%;
    height: auto;
}

.table-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
}

.table-section .table-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.toem-right-panel h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #495057;
}

.table-wrapper {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#shot-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.813rem;
}

#shot-data-table thead {
    background: #e9ecef;
}

#shot-data-table th,
#shot-data-table td {
    padding: 0.22rem 0.25rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

#shot-data-table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.65rem;
}

#shot-data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#shot-data-table tbody tr:hover {
    background: #e3f2fd;
}

/* === STYLES CONTEXTUELS === */
.toem-three-column-layout.system-context {
    /* Styles spécifiques pour le contexte système */
}

.toem-three-column-layout.monitoring-context {
    /* Styles spécifiques pour le contexte monitoring */
}

/* === INDICATEURS DE STATUT === */
#indicators-zone rect {
    transition: fill 0.3s ease;
}

/* === RESPONSIVE === */
/* Tablettes moyennes - Ajustements mineurs mais garde le layout horizontal */
@media (max-width: 1130px) {
    .toem-three-column-layout {
        gap: 0.375rem;
    }
    
    .toem-side-panel {
        flex: 0 1 120px;
        min-width: 90px;
        padding: 0.5rem;
    }
    
    .toem-right-panel {
        flex: 2 1 300px;
        min-width: 0;
    }
}

/* Tablettes petites - Passage en mode vertical si largeur < 1024px */
@media (max-width: 1024px) {
    .toem-three-column-layout {
        flex-direction: column;
        max-height: none;
    }
    
    .toem-side-panel {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .toem-side-panel button {
        flex: 0 0 auto;
        min-width: 7.5rem;
    }
    
    .toem-right-panel {
        flex: none;
        min-width: auto;
    }

    .toem-center-panel {
        flex: 1 1 auto;
        min-width: auto;
    }
}

@media (max-width: 900px) {
    .toem-three-column-layout {
        flex-direction: column;
        align-items: stretch;
        max-height: none;
    }

    .toem-side-panel,
    .toem-center-panel,
    .toem-right-panel {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .toem-side-panel {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
        align-items: stretch;
    }

    /* Remplissage stable en 4 colonnes (évite les trous sur la dernière ligne) */
    .toem-side-panel #btn-reset-shots,
    .toem-side-panel #show-group-circle-btn {
        grid-column: span 2;
    }

    .toem-side-panel button,
    .toem-side-panel .zoom-select {
        min-width: 0 !important;
        width: 100%;
        margin: 0;
    }

    .toem-side-panel button {
        padding: 0.4rem 0.35rem;
        font-size: 0.74rem;
        line-height: 1.15;
        white-space: normal;
        word-break: break-word;
    }

    .toem-side-panel .zoom-select {
        grid-column: 1 / -1;
    }

    .toem-center-panel {
        align-items: stretch;
        max-width: 660px;
        margin: 0 auto;
    }

    .toem-right-panel {
        max-width: 660px;
        margin: 0 auto;
    }

    #zoom-cible-svg {
        width: 100%;
        max-width: 660px;
        margin: 0 auto;
    }

    .scene-container,
    .table-section {
        width: 100%;
    }

    .scene-container svg {
        width: 100%;
        height: auto;
    }

    .table-wrapper {
        width: 100%;
    }

    .table-wrapper {
        max-height: none;
    }

    .toem-right-panel {
        gap: 0.25rem;
    }
}

/* Tablette portrait: prioriser la cible zoom, compacter la zone tableau. */
@media (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
    .toem-three-column-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        gap: 0.4rem;
    }

    .toem-side-panel {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .toem-side-panel button,
    .toem-side-panel .zoom-select {
        min-width: 0 !important;
        width: 100%;
        margin: 0;
    }

    .toem-side-panel .zoom-select {
        grid-column: 1 / -1;
    }

    .toem-center-panel {
        flex: 1 1 auto;
        min-height: 0;
        max-width: 760px;
        width: 100%;
        margin: 0 auto;
    }

    #zoom-cible-svg {
        width: 100%;
        min-height: clamp(360px, 54vh, 620px);
        max-height: clamp(360px, 54vh, 620px);
        margin: 0 auto;
    }

    #zoom-cible-svg svg {
        width: 100%;
        height: 100%;
    }

    .toem-right-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        min-height: 0;
    }

    .table-section {
        min-height: 0;
    }

    .table-wrapper {
        max-height: clamp(180px, 24vh, 260px);
        min-height: 150px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .toem-side-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .toem-side-panel #btn-reset-shots,
    .toem-side-panel #show-group-circle-btn {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .toem-side-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toem-side-panel button {
        font-size: 0.7rem;
        padding: 0.38rem 0.3rem;
    }
}

@media (max-width: 360px) {
    .toem-side-panel {
        grid-template-columns: 1fr;
    }
}

/* Portrait tablets (≈706×1130) - distribute buttons on three columns */
@media (max-width: 900px) and (min-width: 600px) and (orientation: portrait) {
    .toem-side-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .toem-side-panel #btn-reset-shots,
    .toem-side-panel #show-group-circle-btn {
        grid-column: auto;
    }

    .toem-side-panel button,
    .toem-side-panel select,
    .toem-side-panel .zoom-select {
        width: 100%;
        max-width: none;
        min-width: 0;
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .toem-side-panel .zoom-select {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* === ANIMATIONS === */
@keyframes targetHighlight {
    0% { stroke-width: 2; }
    50% { stroke-width: 4; }
    100% { stroke-width: 2; }
}

.target-highlight {
    animation: targetHighlight 0.5s ease-in-out;
}

/* === LOADING === */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    color: #6c757d;
}

.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid #e9ecef;
    border-left: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === STYLES POUR LES EFFETS DE SURLIGNAGE DES TIRS === */
.shot-highlight {
    stroke: #ffdd00 !important;  /* Jaune doré plus visible */
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 4px #ffdd00);  /* Halo jaune */
    animation: shot-blink 0.8s ease-in-out infinite alternate;
}

.shot-blink {
    stroke: #ffdd00 !important;  /* Jaune doré plus visible */
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 4px #ffdd00);  /* Halo jaune */
    animation: shot-blink 0.8s ease-in-out infinite alternate;
}

.shot-row-highlight {
    background-color: #ffffcc !important;
    animation: fadeHighlight 2s ease-out;
}

.shot-row-visible {
    background-color: #e6f3ff !important;
}

@keyframes shot-blink {
    from { 
        stroke-opacity: 1; 
        filter: drop-shadow(0 0 4px #ffdd00);
    }
    to { 
        stroke-opacity: 0.4;
        filter: drop-shadow(0 0 8px #ffdd00);
    }
}

@keyframes pulse {
    from { stroke-opacity: 1; }
    to { stroke-opacity: 0.3; }
}

@keyframes fadeHighlight {
    from { background-color: #ffff99; }
    to { background-color: transparent; }
}

/* === STYLES POUR LES BOUTONS DE GROUPEMENT === */
.group-circle-controls {
    margin: 0.625rem 0;
}

.group-circle-controls button {
    margin: 0.313rem;
    padding: 0.5rem 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.group-circle-controls button:hover {
    background-color: #0056b3;
}

.group-circle-controls button.active {
    background-color: #28a745;
}

/* (styles du cartouche #group-coordinates-display définis plus haut) */

/* === MODE SOMBRE === */
@media (prefers-color-scheme: dark) {
    #shot-data-table {
        background-color: #2C2C2C;
        color: #E0E0E0;
    }

    #shot-data-table thead {
        background: #383838;
    }

    #shot-data-table th {
        color: #FFFFFF;
        background-color: #383838;
    }

    #shot-data-table th,
    #shot-data-table td {
        border: 1px solid #404040;
        color: #E0E0E0;
    }

    #shot-data-table tbody tr:nth-child(even) {
        background: #262626;
    }

    #shot-data-table tbody tr:hover {
        background: #353535;
    }

    #group-coordinates-display {
        background: rgba(36, 36, 36, 0.88);
        border-color: rgba(100, 160, 255, 0.4);
        color: #D0D0D0;
    }
}

body.dark-mode #shot-data-table {
    background-color: #242424 !important;
    color: #C5C5C5 !important;
}

body.dark-mode #shot-data-table thead {
    background: #2D2D2D !important;
}

body.dark-mode #shot-data-table th {
    color: #D0D0D0 !important;
    background-color: #2D2D2D !important;
    font-weight: 600;
}

body.dark-mode #shot-data-table th,
body.dark-mode #shot-data-table td {
    border: 1px solid #333333 !important;
    color: #C5C5C5 !important;
    background-color: #242424 !important;
}

body.dark-mode #shot-data-table tbody tr:nth-child(even) {
    background: #1F1F1F !important;
}

body.dark-mode #shot-data-table tbody tr:nth-child(even) td {
    background: #1F1F1F !important;
}

body.dark-mode #shot-data-table tbody tr:hover {
    background: #2A2A2A !important;
}

body.dark-mode #shot-data-table tbody tr:hover td {
    background: #2A2A2A !important;
    color: #D0D0D0 !important;
}

body.dark-mode #group-coordinates-display {
    background: rgba(36, 36, 36, 0.88);
    border-color: rgba(100, 160, 255, 0.4);
    color: #D0D0D0;
}

/* Panneaux latéraux et zones de cibles en mode sombre */
body.dark-mode .toem-side-panel {
    background: #242424;
    border: 1px solid #333333;
}

body.dark-mode .toem-side-panel button {
    background: #2D2D2D;
    color: #C5C5C5;
    border: 1px solid #404040;
}

body.dark-mode .toem-side-panel button:hover {
    background: #383838;
    border-color: #4A4A4A;
}

body.dark-mode .toem-side-panel button.toggle {
    background: #4A5568;
    color: #E0E0E0;
    border-color: #4A5568;
}

body.dark-mode .toem-side-panel button.toggle:hover {
    background: #5A6678;
    border-color: #5A6678;
}

body.dark-mode .toem-side-panel button.toggle.active {
    background: #66BB6A;
    color: #1A1A1A;
    border-color: #66BB6A;
}

body.dark-mode .toem-side-panel button.toggle.active:hover {
    background: #5CAD60;
    border-color: #5CAD60;
    color: #1A1A1A;
}

body.dark-mode .toem-side-panel button.system-only {
    background: #42A5F5;
    color: #1A1A1A;
    border-color: #42A5F5;
}

body.dark-mode .toem-side-panel button.system-only:hover {
    background: #2196F3;
    border-color: #2196F3;
}

/* Zones de cibles en mode sombre */
body.dark-mode .toem-targets-zone,
body.dark-mode .toem-zoom-zone {
    background: #1F1F1F;
    border: 1px solid #333333;
}

body.dark-mode .toem-right-panel {
    background: #242424;
    border: 1px solid #333333;
}

/* Canvas et zones blanches */
body.dark-mode canvas {
    background: #2D2D2D !important;
}

/* Zones SVG des cibles */
body.dark-mode .scene-container svg {
    background: #2D2D2D !important;
    border-color: #333333;
}

body.dark-mode #zoom-cible-svg {
    background: #2D2D2D !important;
    border-color: #333333;
}

/* Zone de zoom et conteneur de cibles */
body.dark-mode .toem-targets-zone,
body.dark-mode .toem-zoom-zone,
body.dark-mode .table-wrapper {
    background: #242424;
    border-color: #333333;
}

body.dark-mode .toem-right-panel h3 {
    color: #D0D0D0;
}

/* Module Système header */
body.dark-mode #module-header {
    background: linear-gradient(135deg, #9ACD32 0%, #7CB342 100%);
    color: #1A1A1A;
}

body.dark-mode #module-header select {
    background-color: rgba(26, 26, 26, 0.3);
    color: #1A1A1A;
    border-color: rgba(26, 26, 26, 0.5);
}

body.dark-mode #module-header button {
    background-color: rgba(26, 26, 26, 0.3);
    color: #1A1A1A;
    border-color: rgba(26, 26, 26, 0.5);
}

body.dark-mode #module-header button:hover {
    background-color: rgba(26, 26, 26, 0.5);
}

/* Onglets du monitoring */
body.dark-mode .monitoring-tabs,
body.dark-mode .tab-buttons {
    background-color: #242424;
    border-bottom: 1px solid #333333;
}

body.dark-mode .monitoring-tabs button,
body.dark-mode .tab-button {
    background-color: #2D2D2D;
    color: #C5C5C5;
    border: 1px solid #404040;
}

body.dark-mode .monitoring-tabs button.active,
body.dark-mode .tab-button.active {
    background-color: #9ACD32;
    color: #1A1A1A;
    border-color: #9ACD32;
}

body.dark-mode .monitoring-tabs button:hover,
body.dark-mode .tab-button:hover {
    background-color: #383838;
}

/* Section de contenu du monitoring */
body.dark-mode .monitoring-content,
body.dark-mode .tab-content {
    background-color: #1F1F1F;
}

/* Titre de section "Monitoring des Cibles" */
body.dark-mode #monitoring-header,
body.dark-mode .content-header {
    background-color: #242424;
    color: #D0D0D0;
    border-bottom: 1px solid #333333;
}

/* Texte d'instruction */
body.dark-mode .instruction-text,
body.dark-mode p {
    color: #A0A0A0;
}

/* Loading spinner */
body.dark-mode .loading-container {
    color: #A0A0A0;
}

body.dark-mode .loading-spinner {
    border-color: #333333;
    border-left-color: #9ACD32;
}

/* En-têtes de sections */
body.dark-mode .section-header,
body.dark-mode .panel-header {
    background: #2D2D2D;
    color: #D0D0D0;
    border-bottom: 1px solid #333333;
}

