/* =================================================================
   LAYOUT.CSS
   Gestion de la Grille Principale (Skeleton) & Footer
   ================================================================= */

/* --- CONFIGURATION DE LA GRILLE (Desktop First) --- */
.container {
    display: grid;
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    margin: 0 auto;
    grid-template-columns: 350px 1fr;
    grid-template-rows: 1fr auto;
}

/* --- ZONES DE LA GRILLE --- */
main, 
section, 
.gallery {
    grid-column: 2 / 3;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Le Footer Global */
#footer-container {
    grid-column: 2 / 3;
    width: 100%;
    z-index: 5;
    position: relative;
}

.grid-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 34px;
    margin-top: auto;
    color: #747474;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.4px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* =================================================================
   RESPONSIVE : MOBILE (≤ 900px)
   ================================================================= */
@media (max-width: 900px) {

    .container {
        display: flex;
        flex-direction: column;
        padding-top: 60px; /* Espace pour le header mobile virtuel */
    }

    /* Le contenu prend tout l'espace restant */
    main, 
    .gallery {
        flex: 1;
        width: 100%;
    }

    #footer-container {
        width: 100%;
    }
}

