body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-image: url("../images/background_img.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgb(255, 255, 255);
    height: 100vh;
    }



.sidebar {
    position: fixed;
    top: 50%; /* place le haut de la barre au milieu */
    left: 0;
    transform: translateY(-50%); /* décale de la moitié de sa hauteur */
    height: 90vh; 
    width: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-left: 10px;
}


/* Logo */
.sidebar .logo img {
    width: 40px;
    height: 40px;
    margin-bottom: 30px;
}

/* icônes du menu */
.sidebar .menu {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar .menu a img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sidebar .menu a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Contenu principal --- */
.content, header {
    margin-left: 120px; /* décale le contenu à droite de la sidebar */
    margin-right: 20px;
}






/* HOMEPAGE */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
}

.home_text {
    max-width: 50%;
}

.home_text h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.home_text h2 {
    font-weight: 400;
    color: #eaeaea;
    margin-bottom: 20px;
}

.home_text p {
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f5f5f5;
}

.button_viz {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.button_viz:hover {
    background: rgba(255, 255, 255, 0.25);
}

.logo_meteo_france {
    display: block;
    margin-top: 50px;
    width: 110px;
    height: auto;
}

/*  Blocs de statistiques  */
.home_stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-end;
}

.bloc {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 40px;
    width: 220px;
}

.bloc h3 {
    font-size: 1.5rem;
    font-weight: 200;
    color: #e5e5e5;
    margin-top: 0px;
    margin-bottom: 8px;
}

.bloc p {
    font-size: 2rem;
    margin: 0;
    text-align: right;
}

/*  Responsive  */
@media (max-width: 1024px) {
    .home {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .home_text {
        max-width: 100%;
    }

    .home_stats {
        flex-direction: row;
        justify-content: center;
        margin-top: 40px;
    }

    .bloc {
        width: auto;
        min-width: 150px;
    }
}












/* SECTION DATA VISUALISATION */

#data-viz-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 0 auto; /* centrer horizontalement */
}

/* disposition graphique + tableau */
.data-viz-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    gap: 30px;
    flex-wrap: wrap;
}


/* carte floutée pour chaque bloc  */
.viz-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex: 1;
    min-width: 420px;
}

.viz-card h2 {
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
}

.viz-card p.text-muted {
    color: rgba(240, 240, 240, 0.85);
    font-weight: 300;
    margin-bottom: 20px;
}

/*  Tableau synthèse  */
.tableau-synthese table {
    width: 100%;
    border-collapse: collapse;
    color: #f5f5f5;
    font-weight: 300;
}

.tableau-synthese th {
    text-align: left;
    padding: 10px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 400;
}

.tableau-synthese td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#graphique-section {
    flex: 0 0 50%; 
    min-width: 500px; 
}

#tableau-section {
    flex: auto; 
    min-width: 350px; 
    height: auto; 
    align-self: flex-end; 
}


/*  Styles des menus déroulants  */
.viz-card select,
#timeline-section select {
    appearance: none; /* supprime le style natif */
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}



/*  option  */
.viz-card select option,
#timeline-section select option {
    background: rgba(20, 20, 20, 0.9); 
    color: #fff; 
    border: none;
    font-family: 'Poppins', sans-serif;
}

/*  pour ajouter une flèche custom */
.viz-card select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* espace pour la flèche */
}


/*  Timeline full width  */
#timeline-section {
    width: 100%;
}

#timeline-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/*  Responsive  */
@media (max-width: 1024px) {
    .data-viz-row {
        flex-direction: column;
        align-items: center;
    }

    #data-viz-container {
        padding: 20px;
    }
}
