/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* === CONTENEUR === */
.conteneur {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* === NAVIGATION FIXE === */
.nav_fixe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid #d4a017;
}

.nav_fixe a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s;
    border-right: 1px solid #333;
}

.nav_fixe a:last-child {
    border-right: none;
}

.nav_fixe a:hover {
    background: #d4a017;
    color: #1a1a1a;
}

.conteneur.avec_nav {
    margin-top: 3.5rem;
}

/* === EN-TETE === */
.en_tete {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #1a1a1a;
    position: relative;
}

.nom {
    font-size: 2.4rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.metier {
    color: #d4a017;
    font-size: 1rem;
    margin-top: 0.6rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.origine {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-style: italic;
}

/* === BOUTON THEME === */
.switch_theme {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 1px solid #d4a017;
    color: #d4a017;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch_theme:hover {
    background: #d4a017;
    color: #1a1a1a;
}

/* === SECTIONS === */
.section {
    margin-bottom: 2.5rem;
}

.titre_section {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-left: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.titre_section.jaune {
    border-color: #d4a017;
}

.titre_section.rouge {
    border-color: #c41e3a;
}

.titre_section.noir {
    border-color: #1a1a1a;
}

.texte {
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
}

/* === ANIMATIONS SCROLL === */
.apparait {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.apparait.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === TABLEAU === */
.tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tableau thead tr {
    background-color: #1a1a1a;
    color: #ffffff;
}

.tableau th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.tableau td {
    padding: 0.9rem 1rem;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
}

.tableau tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.id_jeu {
    color: #d4a017;
    font-family: monospace;
    font-size: 0.85rem;
}

.lien {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

.lien:hover {
    border-bottom: 1px solid #c41e3a;
}

/* === PROFIL / ENCADRE === */
.profil {
    background-color: #fafafa;
    padding: 1.5rem;
    border-left: 4px solid #1a1a1a;
}

/* === BOUTON === */
.bouton {
    display: inline-block;
    background-color: #1a1a1a;
    color: #d4a017;
    padding: 0.7rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.bouton:hover {
    background-color: #333333;
}

/* === RESEAUX === */
.reseaux {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lien_reseau {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #c41e3a;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.lien_reseau:hover {
    color: #c41e3a;
}

/* === RETOUR EN HAUT === */
.retour_haut {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a1a1a;
    color: #d4a017;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border: 1px solid #d4a017;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.retour_haut.visible {
    opacity: 1;
    visibility: visible;
}

.retour_haut:hover {
    background: #d4a017;
    color: #1a1a1a;
}

/* === CARTES STATISTIQUES === */
.carte_stat {
    border: 1px solid #e5e5e5;
    padding: 1.2rem;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.3s;
}

.carte_stat:hover {
    border-color: #d4a017;
}

.chiffre {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4a017;
    margin: 0;
}

.etiquette {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === LISTE === */
ul.texte {
    list-style: none;
    padding: 0;
}

ul.texte li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

ul.texte li:last-child {
    border-bottom: none;
}

/* === PIED DE PAGE === */
.pied {
    text-align: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 1.5rem;
    color: #888;
    font-size: 0.8rem;
}

.pied p {
    margin: 0.3rem 0;
}

/* ============================================================
   THEME SOMBRE
   ============================================================ */

body.sombre {
    background-color: #121212;
}

body.sombre .conteneur {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.sombre .en_tete {
    border-bottom-color: #444;
}

body.sombre .nom {
    color: #f0f0f0;
}

body.sombre .metier {
    color: #d4a017;
}

body.sombre .origine {
    color: #888;
}

body.sombre .titre_section {
    color: #f0f0f0;
}

body.sombre .texte {
    color: #b0b0b0;
}

body.sombre .tableau thead tr {
    background: #2a2a2a;
}

body.sombre .tableau td {
    color: #ccc;
    border-bottom-color: #333;
}

body.sombre .tableau tbody tr:nth-child(even) {
    background: #252525;
}

body.sombre .profil,
body.sombre .service,
body.sombre .temoignage {
    background: #252525;
}

body.sombre .pied {
    border-top-color: #333;
    color: #666;
}

body.sombre .nav_fixe {
    background: #1e1e1e;
    border-bottom-color: #d4a017;
}

body.sombre .nav_fixe a {
    color: #e0e0e0;
    border-right-color: #333;
}

body.sombre .nav_fixe a:hover {
    background: #d4a017;
    color: #1a1a1a;
}

body.sombre .retour_haut {
    background: #2a2a2a;
    border-color: #d4a017;
}

body.sombre .carte_stat {
    border-color: #333;
    background: #252525;
}

body.sombre .switch_theme {
    border-color: #d4a017;
    color: #d4a017;
}

body.sombre .switch_theme:hover {
    background: #d4a017;
    color: #1a1a1a;
}
