
    /* ----- Conteneur latéral (aside) ----- */
aside {
    width: 70px; /* réduit par défaut */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 10px;
    border-radius: 0 20px 20px 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: width 0.8s cubic-bezier(0.46, -0.01, 0.33, 0.99),
    padding 0.8s cubic-bezier(0.46, -0.01, 0.33, 0.99),
    align-items 0.8s cubic-bezier(0.46, -0.01, 0.33, 0.99);
    position: relative;
    z-index: 10;
}

aside:hover {
    width: 250px;
    align-items: flex-start;
    padding-left: 20px;
}

/* ----- Logos dans la navbar ----- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 116px;
    position: relative;
}

.logo-mini {
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo-full {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 12%;
    left: -7%;
    transform: translate(-50%, -50%);
}

img.logo-mini {
    width: 100%;
}

aside:hover .logo-mini {
    opacity: 0;
    transform: scale(0.8);
}

aside:hover .logo-full {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* ----- Navigation ----- */
nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-weight: 700;
    transition: all 0.8s ease;
    margin-top: -60%;
}

nav a {
    color: #e0e7ff;
    text-decoration: none;
    padding: 12px;
    margin: 21px 0;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

nav a span {
    display: none;
    transition: opacity 0.3s ease;
}

aside:hover nav a span {
    display: inline;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Icones */
nav a i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: auto;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

    /* ----- Mise en page principale ----- */
    body {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: #333;
        background: linear-gradient(135deg,
        #8400ffa1,
        #ff13759f,
        #ffae0091,
        #ff004091,
        #ea00ffa1,
        #8400ffa8
        );
        min-height: 100vh;   /* ✅ s’adapte au contenu */
        margin: 0;
        padding: 20px;
        overflow-y: auto;    /* ✅ permet le scroll vertical */
        overflow-x: hidden;  /* ✅ empêche le scroll horizontal */
    }


    /* ----- Conteneur principal de la page ----- */
    .container {
        display: flex;                /* ✅ carte + infos côte à côte */
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        flex-grow: 1;
        margin-left: 20px;            /* ✅ espace entre aside et le reste */
        max-width: calc(100% - 90px); /* ajuste selon la largeur du aside */
    }


    .carte-container {
        flex: 0 0 82%;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: flex;
        flex-direction: column;

    }

    .carte {
        width: 100%;       /* ✅ prend toute la largeur du conteneur */
        height: auto;
        max-height: 80vh;  /* ✅ limite la hauteur pour éviter qu’elle dépasse l’écran */
        object-fit: contain; /* ✅ garde les proportions si c’est une image */
    }



    .info-container {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.info-card p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.5;
}

.info-card .data-value {
    font-weight: bold;
    color: #3498db;
}

.info-card .data-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.info-card .data-item:nth-child(even) {
    background-color: #f8f9fa;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.card-title i {
    color: #3498db;
    font-size: 1.2em;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

/* Styles pour la carte SVG */
path {
    stroke: #2c3e50;
    stroke-width: 0.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: .5;
    fill: #86aae0;
    transition: fill 0.3s, transform 0.2s;
    cursor: pointer;
}

g:hover path {
    fill: #5dade2;
    transform: scale(1.005);
}

g path:hover {
    fill: #3498db;
}

.selected {
    fill: #e74c3c !important;
    stroke-width: 1.5px;
}

.tooltip {
    position: absolute;
    background: rgba(44, 62, 80, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #7f8c8d;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: row;
        gap: 20px;
    }

    .carte-container {
        flex: 0 0 55%;
    }

    .info-container {
        flex: 0 0 45%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        flex-direction: column;
    }

    .carte-container, .info-container {
        flex: 1;
        width: 100%;
    }
}
