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

html, body { 
    width: 100%; 
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* --- NAVIGATION UNIFIÉE --- */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    background: #ffffff; 
    z-index: 1001; 
    border-bottom: 1px solid #eeeeee; 
}

.logo { 
    font-weight: 500; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    text-transform: uppercase;
}

/* Sur PC, on affiche la liste nav-links normalement */
.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links li { margin-left: 25px; }

.nav-links a { 
    text-decoration: none; 
    color: #000000; 
    font-size: 0.8rem; 
    font-weight: bold; 
    letter-spacing: 1px;
}

/* --- BURGER ICON (Caché sur PC) --- */
.burger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.burger-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: 0.3s;
}

/* --- GRILLE DE PROJETS --- */
.grid-projets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 60px;
    width: 100%;
}

.projet-card {
    height: 50vh;
    position: relative;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.projet-card:hover .overlay { opacity: 1; }

/* --- STRUCTURE DE LA PAGE À PROPOS (PC) --- */
.split-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.content-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10%;
}

.image-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #f9f9f9;
}

.image-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- TYPOGRAPHIE & BOUTONS --- */
.main-title { font-size: 2.8rem; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 10px; }
.subtitle { font-size: 0.85rem; letter-spacing: 4px; color: #888; text-transform: uppercase; font-weight: bold; margin-bottom: 30px; }
.description-text { line-height: 1.7; color: #333; font-size: 1rem; margin-bottom: 40px; }
.button-container { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { text-decoration: none; color: #000; font-weight: bold; font-size: 0.75rem; border: 1.5px solid #000; padding: 12px 20px; text-transform: uppercase; letter-spacing: 1px; }

/* ------------------------------------------------ */
/* --- RESPONSIVE ENGINE (MOBILE & TABLETTE) --- */
/* ------------------------------------------------ */
@media (max-width: 768px) {
    nav { padding: 15px 3%; }
    
    /* On cache le menu classique et on prépare le menu burger */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
    }

    .burger-icon { display: flex; }

    #menu-toggle:checked ~ .nav-links { right: 0; }
    #menu-toggle:checked ~ .burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #menu-toggle:checked ~ .burger-icon span:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; }

    .grid-projets { grid-template-columns: 1fr; }
    .projet-card { height: 40vh; }
    .overlay { opacity: 1; background-color: rgba(0, 0, 0, 0.4); }

    /* Adaptation À Propos */
    .split-container {
        flex-direction: column;
        height: auto;
    }

    .content-side {
        order: 1;
        padding: 40px 8% 20px 8%;
    }

    .image-side {
        order: 2;
        padding: 20px 8% 60px 8%;
        background-color: #fff;
    }

    .main-title {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .image-wrapper { max-width: 100%; }
}