/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Background full screen */
.background-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2%;
    overflow-y: auto;
}

/* Conteneur principal */
.home-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px 0;
    flex: 1;
    padding-top:45px;
}

.content-wrapper {
    text-align: center;
    max-width: 980px;
    width: 90%;
    padding: 20px;
    margin: 0 auto;
}

.content-wrapper h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: bold;
}

.content-wrapper p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-container{
        flex:1;
    }
    .background-container {
        padding-top: 5%;
        background-size: cover;
        background-position: center;
    }
    
    .home-container {
        min-height: calc(100vh - 80px);
        padding: 15px 0;
        padding-top:60px;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .content-wrapper {
        width: 95%;
        padding: 15px;
    }
    
    .content-wrapper h1 {
        font-size:1.8rem;
        line-height: 1.3;
    }
    
    .content-wrapper p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .background-container {
        padding-top: 8%;
    }
    
    .home-container {
        min-height: calc(100vh - 70px);
    }
    
    .content-wrapper {
        width: 98%;
        padding: 10px;
    }
    
    .content-wrapper h1 {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .content-wrapper p {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
}

/* Support pour les très grands écrans */
@media (min-width: 1600px) {
    .content-wrapper {
        max-width: 1200px;
    }
    
    .content-wrapper h1 {
        font-size: 3.5rem;
    }
    
    .content-wrapper p {
        font-size: 1.4rem;
    }
}

/* Correction pour le défilement sur mobile */
@media (max-height: 600px) {
    .home-container {
        min-height: auto;
        padding: 40px 0;
    }
}

/* Assurer que le contenu est toujours visible */
.main-content {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}
/* Override pour les pages spécifiques qui pourraient avoir leur propre layout */
.admin-page .home-container,
.dashboard-page .home-container {
    align-items: flex-start;
    justify-content: flex-start;
}

