html, body { height: 100%; margin: 0; overflow: hidden; background: #fff; font-family: 'Segoe UI', sans-serif; }
.no-scroll { display: flex; justify-content: center; height: 100vh; }

.slide-container { 
    width: 94%; 
    max-width: 1200px; 
    height: 100vh; /* Utilise toute la hauteur */
    display: flex; 
    flex-direction: column; 
    padding: 10px 0;
}

.header-part { flex-shrink: 0; }
.header-top { display: flex; justify-content: space-between; align-items: center; }
.btn-toc { background: #333; color: white; border: none; padding: 10px 18px; border-radius: 6px; font-size: 1rem; cursor: pointer; }
.step-tag { background: #e67e22; color: white; padding: 5px 15px; border-radius: 20px; font-weight: bold; }
.title-main { font-size: 2rem; font-weight: 800; margin: 5px 0 10px 0; }

/* La zone de contenu qui peut scroller si besoin */
.results-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    flex: 1; /* Prend tout l'espace restant entre le header et le footer */
    overflow-y: auto; 
    padding: 10px;
}

.bilan-panel { 
    background: #fcfcfc; 
    border-radius: 12px; 
    padding: 20px; 
    border: 2px solid #eee; 
    display: flex; 
    flex-direction: column;
}

.panel-t { color: #6ab04c; font-size: 1.5rem; border-bottom: 3px solid #6ab04c; padding-bottom: 8px; margin-bottom: 15px; }

/* Formules */
.calc-box { background: white; padding: 15px; border-radius: 8px; border-left: 5px solid #e67e22; margin-bottom: 15px; }
.formula-clean { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.fraction { display: inline-flex; flex-direction: column; align-items: center; font-size: 0.9rem; }
.fraction .bar { width: 100%; height: 2px; background: #222; margin: 2px 0; }
.result { color: #e67e22; font-size: 1.4rem; background: #fff9f4; padding: 2px 8px; border-radius: 4px; }

/* Qualitatif */
.skill-group ul { font-size: 1.1rem; line-height: 1.4; padding-left: 20px; }
.conclusion-mini { margin-top: auto; background: #6ab04c; color: white; padding: 10px; border-radius: 8px; text-align: center; font-weight: bold; }

/* FOOTER FIXE */
.footer-nav { 
    flex-shrink: 0; /* Empêche le footer de rétrécir */
    display: flex; 
    justify-content: space-between; 
    padding: 20px 0; 
    background: white; 
    border-top: 2px solid #eee;
}

.btn-nav { background: #f0f0f0; border: none; padding: 15px 40px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 1.1rem; color: #555; }
.btn-next { background: #222; color: white; }

@media screen and (max-width: 1024px) {
    html, body { height: auto !important; overflow-y: auto !important; }
    .slide-container { height: auto !important; padding: 10px !important; }
    
    .results-grid { 
        display: flex !important; 
        flex-direction: column !important; 
    }
    .bilan-panel { width: 100% !important; }
    
    /* On ajuste les formules pour le petit écran */
    .formula-clean { 
        font-size: 0.8rem !important; 
        justify-content: center !important; 
        gap: 5px !important; 
    }
    .fraction span { font-size: 0.75rem !important; }
}