/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --orange-btp: #ff6b00;
    --dark-blue: #0f172a;    
    --bg-blank: #ffffff;      
    --text-main: #334155;     
    --text-light: #64748b;    
    --text-gray: #94a3b8;
    --footer-black: #05070a; 
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVIGATION & DRAWER MOBILE (OPTIMISÉ POUR LE HAUT)
   ========================================================================== */

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--dark-blue);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligne tout en haut */
}

.drawer.active { transform: translateX(0); }

.drawer-header {
    padding: 15px 20px; /* Réduit pour gagner de la place en haut */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.close-btn {
    background: var(--orange-btp);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Liens remontés au maximum */
.mobile-links {
    list-style: none !important;
    padding: 10px 30px !important; /* Padding top réduit à 10px */
    margin: 0 !important;
}

.mobile-links li {
    list-style: none !important;
    margin-bottom: 20px; /* Espace équilibré entre les liens */
}

.mobile-links li a {
    text-decoration: none !important;
    color: white !important;
    font-family: 'Anton', sans-serif;
    font-size: 1.7rem; /* Taille légèrement ajustée pour mobile */
    display: block;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-links li a:hover {
    color: var(--orange-btp) !important;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

.drawer-overlay.active { display: block; }

/* ==========================================================================
   3. HEADER DE LA PAGE (HERO)
   ========================================================================== */
.page-title-section {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), 
                url('../images/img1.png') center/cover no-repeat fixed;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.main-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--dark-blue);
    text-transform: uppercase;
    font-style: italic;
    line-height: 0.9;
}

.main-title span { color: var(--orange-btp); }

.orange-divider {
    width: 80px;
    height: 6px;
    background: var(--orange-btp);
    margin: 30px auto;
    border-radius: 3px;
}

.subtitle {
    color: var(--text-light);
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ==========================================================================
   4. LISTE DES RÉALISATIONS
   ========================================================================== */
.projects-list {
    background-color: var(--bg-blank);
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 150px;
}

.project-row.reverse { flex-direction: row-reverse; }

.project-image {
    flex: 1.2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-content { flex: 1; }

.project-tag {
    color: var(--orange-btp);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: block;
}

.project-name {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.project-description {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    border-left: 4px solid var(--orange-btp);
    padding-left: 25px;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.project-number {
    font-family: 'Anton';
    font-size: 5rem;
    color: #f1f5f9;
}

.details-link {
    border: 2px solid var(--orange-btp);
    color: var(--orange-btp);
    padding: 14px 30px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: var(--transition);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--footer-black);
    padding: 80px 0 30px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.logo-footer img {
    height: 45px;
    background: white;
    padding: 5px;
    border-radius: 6px;
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; color: var(--text-gray); font-size: 0.9rem; }

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

/* Remplace ton bloc @media (max-width: 1024px) actuel par celui-ci */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 300px; /* Largeur fixe plus élégante */
        height: 100vh;
        background: #0f172a; 
        display: flex !important;
        flex-direction: column;
        
        /* CORRECTION ICI : On aligne en haut */
        justify-content: flex-start !important; 
        align-items: flex-start !important;
        
        /* Espace pour ne pas coller au plafond */
        padding: 80px 30px 0 30px !important; 
        gap: 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        list-style: none;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }
}