/* ===== VARIABLES ===== */
:root {
    /* Couleurs thème clair par défaut */
    --body-bg: linear-gradient(180deg, #ffffff, #f2f2f2);
    --text-color: #111;
    --link-color: #0077cc;
    --link-hover: underline;

    --config-bg: #f9f9f9;
    --config-shadow: 0 15px 40px rgba(0,0,0,.1);
    --config-h2-color: #004080;

    --table-bg: #ffffff;
    --table-shadow: 0 10px 25px rgba(0,0,0,.1);
    --th-bg: #e6e6e6;
    --th-border: #ccc;
    --th-even-bg: #f2f2f2;

    --fiche-left-bg: #e6e6e6;
    --fiche-left-color: #aa6600;
    --fiche-bold-color: #ff8800;
}

/* Variables pour thème sombre */
body.sombre {
    --body-bg: linear-gradient(180deg, #1e1e1e, #2a2a2a);
    --text-color: #ddd;
    --link-color: #7aa2ff;
    --link-hover: underline;

    --config-bg: #151515;
    --config-shadow: 0 15px 40px rgba(0,0,0,.6);
    --config-h2-color: #9db5ff;

    --table-bg: #1b1b1b;
    --table-shadow: 0 10px 25px rgba(0,0,0,.6);
    --th-bg: #222;
    --th-border: #333;
    --th-even-bg: #1f1f1f;

    --fiche-left-bg: #2a2a2a;
    --fiche-left-color: #ffd479;
    --fiche-bold-color: #ffb347;
}

/* ===== STYLES GÉNÉRAUX ===== */
body, a, h2, th, td, .config, .fiche {
    font-family: Arial, Helvetica, sans-serif;
    transition: all 0.5s ease;
}
body {
    background: var(--body-bg);
    color: var(--text-color);
}
a { color: var(--link-color); }
a:hover { text-decoration: var(--link-hover); }

img {
    border-radius: 6px;
    transition: transform .2s, box-shadow .2s;
}
img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,.4);
}

.config {
    max-width:1200px;
    margin:50px auto;
    padding:30px;
    border-radius:12px;
    background: var(--config-bg);
    box-shadow: var(--config-shadow);
}
.config h2 {
    text-align:center;
    margin:0 0 30px;
    text-transform:uppercase;
    letter-spacing:2px;
    color: var(--config-h2-color);
}

table {
    border-collapse: collapse;
    margin: 25px auto;
    width:100%;
    background: var(--table-bg);
    box-shadow: var(--table-shadow);
}
th {
    padding:10px;
    border:1px solid var(--th-border);
    background: var(--th-bg);
}
tr:nth-child(even) th { background: var(--th-even-bg); }

.fiche th[align="left"] {
    font-weight:bold;
    text-transform:uppercase;
    background: var(--fiche-left-bg);
    color: var(--fiche-left-color);
}
.fiche th b { color: var(--fiche-bold-color); }

@media (max-width: 800px){
    body{ padding:10px; }
    .config{ padding:20px; }
    table{ font-size:14px; }
}