/* Configuration de base de la page */
html, body { 
    height: 100%; 
    margin: 0; 
    overflow: hidden; 
    background: #ffffff; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.header-top { display: flex; justify-content: space-between; align-items: center; }
.btn-toc { background: #333; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: 600; }

.no-scroll { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
}

/* Cercles décoratifs en arrière-plan */
.glass-circle-1 { 
    position: absolute; 
    top: -50px; 
    left: -50px; 
    width: 250px; 
    height: 250px; 
    background: rgba(106, 176, 76, 0.05); 
    border-radius: 50%; 
}

.glass-circle-2 { 
    position: absolute; 
    bottom: -50px; 
    right: -50px; 
    width: 250px; 
    height: 250px; 
    background: rgba(230, 126, 34, 0.05); 
    border-radius: 50%; 
}

/* Conteneur principal */
.slide-container { 
    position: relative; 
    z-index: 1; 
    width: 90%; 
    max-width: 1100px; 
    height: 85vh; 
    display: flex; 
    flex-direction: column; 
}

.step-tag { 
    background: #e67e22; 
    color: white; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 0.8rem; 
}

.title-main { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #222; 
    margin: 5px 0 40px 0; 
}

/* Structure en étoile */
.star-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-grow: 1; 
    gap: 40px; 
}

.star-system { 
    position: relative; 
    width: 380px; 
    height: 380px; 
    flex-shrink: 0; 
}

/* Nœud central noir */
.center-node {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 110px; 
    height: 110px; 
    background: #333; 
    color: white;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    font-size: 0.85rem; 
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Style commun des bulles satellites */
.node {
    position: absolute; 
    width: 105px; 
    height: 105px; 
    background: white;
    border: 1.5px solid #ddd; 
    border-radius: 50%; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem; 
    font-weight: 600; 
    text-align: center; 
    color: #555;
}

/* --- EFFETS AU SURVOL --- */

/* Ressources : Vert */
.hum:hover, .mat:hover, .fin:hover { 
    border-color: #6ab04c; 
    color: #6ab04c;
    box-shadow: 0 4px 12px rgba(106, 176, 76, 0.15);
}

/* Contrainte : Orange */
.con:hover { 
    border-color: #e67e22; 
    color: #e67e22;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

/* Positionnement des bulles autour du centre */
.hum { top: 0; left: 50%; transform: translateX(-50%); }
.mat { bottom: 0; left: 50%; transform: translateX(-50%); }
.fin { top: 50%; left: 0; transform: translateY(-50%); }
.con { top: 50%; right: 0; transform: translateY(-50%); }

/* Panneau d'affichage à droite */
.display-panel {
    flex-grow: 1; 
    background: #fafafa; 
    border-radius: 12px;
    padding: 40px; 
    min-height: 320px; 
    border-left: 10px solid transparent; /* Changé via JS lors du clic */
    transition: all 0.4s ease;
    opacity: 0; /* Devient 1 lors du premier clic */
}

.display-panel h3 { 
    margin-top: 0; 
    font-size: 1.7rem; 
    color: #6ab04c; 
    margin-bottom: 25px; 
}

/* Texte à l'intérieur du panneau */
.display-panel ul { 
    padding-left: 20px; 
    font-size: 1.25rem; 
    color: #333;
}

.display-panel li {
    margin-bottom: 20px; 
    line-height: 1.4;
}

/* Navigation en bas */
.footer-nav { 
    display: flex; 
    justify-content: space-between; 
    padding-bottom: 20px; 
}

.btn-nav { 
    background: #f5f5f5; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 5px; 
    font-weight: 600; 
    cursor: pointer; 
    color: #888; 
    transition: 0.3s;
}

.btn-nav:hover {
    background: #eeeeee;
    color: #333;
}

.btn-next { 
    background: #222; 
    color: white; 
}

.btn-next:hover {
    background: #6ab04c;
    color: white;
}

@media screen and (max-width: 1024px) {
    html, body { 
        height: auto !important; 
        overflow-y: auto !important; 
        overflow-x: hidden !important;
    }

    .slide-container { 
        height: auto !important; 
        width: 100% !important; 
        padding: 10px 0 !important;
        display: block !important; /* On casse le flex pour laisser couler le contenu */
    }

    .star-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important; /* On réduit l'espace */
    }

    .star-system {
        /* On réduit drastiquement la taille du cercle pour mobile */
        width: 280px !important; 
        height: 280px !important;
        transform: scale(0.8) !important;
        margin: -20px auto !important; /* On remonte un peu l'étoile */
        flex-shrink: 0 !important;
    }

    .display-panel {
        width: 90% !important;
        margin: 10px auto !important;
        min-height: 250px !important;
        padding: 15px !important;
        border-left: 5px solid #6ab04c;
        background: rgba(255,255,255,0.9);
        box-sizing: border-box !important;
    }

    /* On s'assure que les nœuds de l'étoile ne sortent pas */
    .node {
        width: 70px !important;
        height: 70px !important;
        font-size: 0.7rem !important;
    }
}