/* ==========================================================================
   1. CONFIGURATION GLOBALE & COMMUNE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Menu de navigation aligné à droite */
.main-nav {
    background-color: #111111;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 1px solid #222222;
    height: 45px;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    color: #aaaaaa;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px; 
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: #00aaff;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-selector img {
    height: 16px;
    display: block;
}

/* Bannière */
.main-header {
    width: 100%;
    overflow: hidden;
    background-color: #000000;
    height: 110px;
}

.banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

/* Ligne grise */
.grey-bar {
    background-color: #333333;
    height: 14px;
    width: 100%;
}


/* ==========================================================================
   2. REGLAGES SPECIFIQUES A LA PAGE D'ACCUEIL (INDEX)
   ========================================================================== */
/* On cible le body de l'index pour verrouiller l'écran uniquement sur l'accueil */
body:not(.secondary-body) {
    height: 100vh;
    overflow: hidden;
}

/* Conteneur Principal de l'accueil */
.grid-container {
    display: flex;
    width: 100%;
    padding: 20px;
    gap: 30px;
    height: calc(100vh - 169px); 
    box-sizing: border-box;
}

/* Colonnes latérales de l'accueil */
.side-column {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;
}

.img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajustements colonne GAUCHE (Entreprises) */
.companies .img-wrapper {
    flex: 1;
}

.companies .compulsion {
    flex: 2; 
}
.companies .compulsion img {
    width: 100%; 
    max-height: 100%;
    object-fit: contain;
}

.companies .img-wrapper:not(.compulsion):not(.syllabes) img {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
}

.companies .syllabes img {
    max-width: 55%;
    max-height: 60%;
    object-fit: contain;
}

/* Ajustements colonne DROITE (Jeux) */
.games .img-wrapper {
    flex: 1;
    max-height: 18%; 
}

.games img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Colonne centrale */
.center-column {
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.center-column h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
}

.center-column h2 {
    font-size: 1.4rem;
    color: #cccccc;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedin-icon {
    width: 26px;
    height: auto;
    margin-left: 12px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.linkedin-icon:hover {
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border: 2px solid #222;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   3. REGLAGES DES PAGES SECONDAIRES (CV, CONTACT, MENTIONS)
   ========================================================================== */
.content-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.content-page h1 {
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    color: #00aaff;
    font-size: 2rem;
    letter-spacing: 1px;
}

/* Formulaire Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #cccccc;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    background-color: #151515;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #00aaff;
    outline: none;
}

.form-group span {
    font-size: 12px;
    color: #888888;
    font-style: italic;
}

.btn-submit {
    background-color: #00aaff;
    color: #fff;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
    border-radius: 4px;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #0088cc;
}

.contact-info {
    margin-top: 40px;
    border-top: 1px dashed #333;
    padding-top: 25px;
    line-height: 1.8;
    color: #dddddd;
}

/* Mentions Légales & Textes secondaires */
.legal-text h3 {
    margin: 25px 0 8px 0;
    color: #e0e0e0;
    font-size: 1.1rem;
}
.legal-text p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}


/* ==========================================================================
   4. RESPONSIVE DESIGN (Mobiles et Tablettes)
   ========================================================================== */
@media (max-width: 900px) {
    body:not(.secondary-body) {
        overflow: auto; 
        height: auto;
    }
    .main-nav {
        height: auto;
    }
    .grid-container {
        flex-direction: column;
        height: auto;
    }
    .side-column, .center-column {
        width: 100%;
        height: auto;
    }
    .side-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .games .img-wrapper, .companies .img-wrapper {
        max-height: none;
        width: 28%;
        min-width: 90px;
    }
    .center-column { order: 1; }
    .companies { order: 2; }
    .games { order: 3; }
    
    .content-page {
        margin: 20px 10px;
        padding: 20px;
    }
}