/* --- STYLE POUR LE TABLEAU (GRAND ÉCRAN) --- */
html, body { height: 100%; margin: 0; overflow: hidden; background: #fff; font-family: 'Segoe UI', sans-serif; }
.no-scroll { display: flex; justify-content: center; align-items: center; height: 100vh; }

.slide-container { width: 94%; max-width: 1300px; height: 90vh; display: flex; flex-direction: column; }
.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; font-weight: 600; }
.step-tag { background: #6ab04c; color: white; padding: 6px 15px; border-radius: 20px; font-weight: bold; }
.title-main { font-size: 2.2rem; font-weight: 800; color: #222; margin: 10px 0; }

.conclusion-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; flex: 1; }
.conc-panel { background: #fcfcfc; border-radius: 12px; padding: 15px; border: 1px solid #eee; display: flex; flex-direction: column; }
.highlight-panel { border: 2px solid #e67e22; background: #fffdfb; }
.personal-panel { border: 2px solid #6ab04c; }

.panel-t { color: #222; font-size: 1.4rem; border-bottom: 4px solid #6ab04c; padding-bottom: 5px; margin-bottom: 15px; font-weight: 800; text-align: center; }
.benefit-card { background: white; padding: 10px; border-radius: 8px; margin-bottom: 10px; border-left: 5px solid #6ab04c; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.benefit-card strong { display: block; font-size: 1.1rem; color: #222; }
.benefit-card p { margin: 0; font-size: 1rem; color: #555; }
.opening-list { padding-left: 20px; margin: 0; font-size: 1rem; }

.footer-nav { display: flex; justify-content: space-between; padding: 15px 0; }
.btn-nav { background: #f0f0f0; border: none; padding: 12px 30px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 1.1rem; }
.btn-next { background: #222; color: white; }

/* ==========================================
   BLOC DE SÉCURITÉ MOBILE (NE MODIFIE PAS LE PC)
   ========================================== */
@media screen and (max-width: 1024px) {
    /* 1. On débloque la hauteur pour pouvoir défiler sur téléphone */
    html, body, .no-scroll { 
        height: auto !important; 
        overflow-y: auto !important; 
        display: block !important; 
    }

    /* 2. On ajuste le conteneur principal pour qu'il ne dépasse pas de l'écran */
    .slide-container { 
        height: auto !important; 
        width: 95% !important; 
        margin: 10px auto !important; 
        padding: 10px !important;
        display: block !important;
    }

    /* 3. On force tes éléments (grilles ou listes) à se mettre les uns sous les autres */
    /* J'ai listé ici tous les noms de classes que nous avons utilisés ensemble */
    .conclusion-grid, .phase-grid, .list-container, .grid-moyens, .phase-selector { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important;
        width: 100% !important;
    }

    /* 4. On adapte la taille des titres pour qu'ils soient lisibles sur petit écran */
    .title-main, .title-bold { 
        font-size: 1.5rem !important; 
        text-align: center !important;
        margin: 15px 0 !important;
    }

    /* 5. On s'assure que les cartes prennent toute la largeur */
    .toc-card, .conc-panel, .benefit-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 6. On empile les boutons de navigation en bas */
    .footer-nav { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 10px !important; 
        margin-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .btn-nav { width: 100% !important; text-align: center !important; }
}