/* Définition des couleurs clés */
:root {
    --bg-dark: #1a1a1a; 
    --bg-light: #2c2c2c; 
    --accent-red: #ff3333; 
    --text-light: #f0f0f0; 
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --sidebar-width: 220px; 
    --font-title-main: 'Permanent Marker', cursive; 
    --font-title-sub: 'Pathway Gothic One', sans-serif; 
    --font-text: 'Source Sans 3', sans-serif; 
}

/* CSS Général */
body {
    font-family: var(--font-text);
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    margin: 0;
    padding: 0;
    text-align: center; 
}

/* BANNIÈRE PRINCIPALE */
.header-banner {
    width: 90%;
    height: 210px; 
    background-image: url('Lem.png'); 
    background-color: #000;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    margin-bottom: 40px; 
    position: relative;
    box-shadow: 0 5px 15px var(--shadow-dark);
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* TITRE PRINCIPAL (H1) */
.header-banner h1 {
    color: var(--accent-red); 
    font-family: var(--font-title-main); 
    font-size: 6.3em; 
    font-weight: normal; 
    text-transform: uppercase;
    text-shadow: 2px 2px 5px #000; 
    margin: 0;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.7); 
    border-radius: 5px;
    letter-spacing: 2px;
}

/* Conteneur principal (main-wrapper) */
.main-wrapper {
    /* Largeur maximale élargie (1400px) */
    max-width: 1400px; 
    margin: 0 auto 50px auto; 
    padding: 40px 20px; 
    background-color: var(--bg-light); 
    color: var(--text-light); 
    box-shadow: 0 4px 12px var(--shadow-dark); 
    border-radius: 12px;
    text-align: left; 
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* CONTENU PRINCIPAL */
.page-content {
    width: calc(100% - var(--sidebar-width) - 30px); 
    float: left; 
}

/* --- COLONNE VERSIONS LATÉRALE STICKY --- */
.versions-box {
    width: var(--sidebar-width); 
    background-color: #383838; 
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-red); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: sticky; 
    top: 20px; 
    float: right;
    margin-left: 30px;
    box-sizing: border-box; 
}

.versions-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.versions-box a {
    color: var(--text-light); 
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.versions-box a:hover {
    color: var(--accent-red); 
    text-decoration: underline;
}

.image {
    width: 45%;

}
/* VIDÉO (HAUTEUR RÉDUITE V2.12) */
.video-container {
    width: 100%; /* Prend toute la largeur de la colonne */
    margin-bottom: 30px; 
    position: relative;
    /* Hauteur réduite */
    padding-bottom: 42%; 
    height: 0;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
}

.link {
    font-family: var(--font-text);
    font-size:larger;
    color: var(--text-light); 
    margin: 0;
    padding: 0;
    text-align: center; 


}

/* La balise vidéo doit remplir son conteneur */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Bouton de téléchargement principal (REDIMENSIONNÉ V2.5) */
.download-button {
    display: block; 
    width: 15%; 
    margin: 40px auto 10px auto; 
    padding: 15px 15px; 
    background-color: var(--accent-red); 
    color: white;
    text-decoration: none;
    font-size: 1.05em; 
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 0 #550808; 
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.specs-box{ 
    background-color: var(--bg-dark); 
    padding: 5px; 
    border-left: 3px solid var(--accent-red); 
    border-radius: 8px;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    gap: 20px;
}

.parent-flex {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    gap: 10px;

}

.rightbox{
    background-color: rgba(75, 41, 41, 0.199); 
    padding: 30px; 
    border-right: 3px solid var(--accent-red); 
    border-radius: 8px;
    width: 30%; 
    margin-left: auto;
   
}



.leftbox{
    background-color: var(--bg-dark); 
    padding: 25px;
    border-radius: 8px;
    width: 30%; 
    margin-right: auto;
    
}

/* Styles des TITRES de section */
.main-content-title, .description-section h2, .guide-section h2, .specs-box h3, .versions-box h3, .page-content h2 {
    font-family: var(--font-title-sub);
    color: var(--accent-red);
}

/* Styles de texte de description et guide */
.description-text p, .guide-section p {
     line-height: 1.6;
     text-align: justify;
     margin-bottom: 15px;
}


/* _____________________LANG BOX/BUTTONS_________________ */


/* SÉLECTEUR DE LANGUE (MODIFIÉ V3.2 - CENTRAGE via Flexbox) */
.language-switcher {
    display: flex;
   justify-content: center;
    margin-bottom: 25px; 
}
/* STYLE DE BOUTON DE LANGUE (MODIFIÉ V3.6) */
.lang-button {
    cursor: pointer;
    background-color: var(--bg-light); 
    border: 3px solid #555; 
    color: var(--text-light);
    font-size: 0; 
    line-height: 0;
    padding: 0px 0px; 
    margin: 0 5px; 
    border-radius: 8px; 
    
    transition: border-color 0.2s, background-color 0.2s; /* Transition sur la bordure et le fond */
}

.flag-icon {
    height: 100%; 
    width: 100%; 
    border: none;
    max-width: 100%;
    display: block; 
}

.lang-button:hover {
    background-color: #4a4a4a;
    border-color: var(--accent-red);
}

.lang-button.active {
    background-color: var(--bg-light);
    border: 4px solid var(--accent-red);
    box-shadow: none; 
    padding: 0px 0px; 
}
/* _____________________FOOTER_________________ */

.footer {
    background-color: #111; 
    color: #7f8c8d;
    padding: 20px 0;
    font-size: 0.9em;
    margin-top: 40px;
}

/* --- BARRE DE NAVIGATION (V4.1) --- */
.main-nav {
    display: flex;
    justify-content: center;
    background-color: #222;
    padding: 10px 0;
    border-bottom: 3px solid var(--accent-red);
    position: sticky; /* Le menu reste en haut au scroll */
    top: 0;
    z-index: 1000;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-title-sub);
    font-size: 1.4em;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-item:hover {
    background-color: var(--bg-light);
    border-bottom: 3px solid var(--accent-red);
    color: white;

}

.nav-item.active {
    border-bottom: 3px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: bold;

}
/* On retire le background rouge sur l'active s'il n'est pas survolé */
.nav-item.active:hover {
    background-color: var(--accent-red);
    color: white;

}