/* ============================================================
   CONFIGURATION GLOBALE & VARIABLES
   ============================================================ */
* {
    box-sizing: border-box;
}

:root {
    --vlb-gris-bleu: #8b94a3;
    --vlb-text-dark: #1a1a1a;
    --vlb-bg-light: #fbfbfc;
    --vlb-vert: #b0d4c1;
    --white: #ffffff;
}

body, html {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--vlb-bg-light);
    color: var(--vlb-text-dark);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* ============================================================
   IMAGES D'ARRIÈRE-PLAN (AQUARELLES)
   ============================================================ */
.tache-fond {
    position: fixed;
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    display: block !important;
}

.tache-1 { 
    width: 600px; 
    height: 600px; 
    background-image: url('image1.png') !important; 
    top: -50px; 
    left: -150px; 
}

.tache-2 { 
    width: 500px; 
    height: 500px; 
    background-image: url('image2.png') !important; 
    bottom: -50px; 
    right: -100px; 
}

.tache-3 { 
    width: 400px; 
    height: 400px; 
    background-image: url('image3.png') !important; 
    top: 40%; 
    left: 30%; 
    opacity: 0.3; 
}

/* ============================================================
   EN-TÊTE ET PIED DE PAGE
   ============================================================ */
header {
    background-color: var(--vlb-gris-bleu);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
    
footer {
    background-color: var(--vlb-gris-bleu);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.btn-retour {
    position: absolute;
    left: 20px;
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-retour:hover { 
    background-color: var(--white); 
    color: var(--vlb-gris-bleu); 
}

.btn-retour.cache { 
    display: none; 
}

/* ============================================================
   STRUCTURE DES PAGES & ANIMATIONS
   ============================================================ */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    background: transparent !important;
}

.page-section {
    display: none; 
    width: 100%;
    background: transparent !important;
}

.page-section.actif {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 { 
    font-size: 2.2rem; 
    margin-bottom: 25px; 
    text-align: center; 
    color: var(--vlb-gris-bleu); 
}

/* ============================================================
   PAGE 1 : ACCUEIL & MENU
   ============================================================ */
#page-accueil { 
    align-items: center; 
    justify-content: center; 
    flex: 1; 
}

.titre-accueil { 
    font-size: 2.5rem; 
    font-weight: 300; 
    margin-bottom: 50px; 
    text-align: center; 
    color: var(--vlb-gris-bleu); 
}

.grid-accueil { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    width: 100%; 
    max-width: 800px; 
}
    
.card-menu {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.card-menu:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
    border-color: var(--vlb-vert); 
}

.icone-texte {
    background-color: var(--vlb-gris-bleu);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.sous-titre-menu { 
    font-size: 0.9rem; 
    font-weight: normal; 
    color: #666; 
    margin-top: 5px; 
}

/* ============================================================
   PAGE 2 : ÉTAPES D'INSCRIPTION
   ============================================================ */
.etape-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.carte-etape {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 6px solid var(--vlb-vert);
}

.carte-etape h2 { 
    margin-top: 0; 
    color: var(--vlb-gris-bleu); 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.etape-badge {
    background: var(--vlb-vert);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.liste-actions { 
    padding-left: 20px; 
    line-height: 1.6; 
    margin-bottom: 20px; 
}

.liste-actions li { 
    margin-bottom: 8px; 
}

/* ============================================================
   ALERTES ET ACCORDÉONS (RÉSOLUTION DE PROBLÈMES)
   ============================================================ */
.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #856404;
    font-weight: 500;
}

details { 
    margin-top: 15px; 
    background: #fbfbfc; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 12px; 
    transition: all 0.3s ease;
}

details[open] {
    border-color: #d9534f;
    background: #fff;
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.1);
}

summary { 
    font-weight: bold; 
    cursor: pointer; 
    outline: none; 
    color: var(--vlb-text-dark); 
    display: flex; 
    align-items: center; 
    gap: 8px;
    padding: 5px 0;
}

details ul { 
    padding-left: 20px; 
    font-size: 0.95rem; 
    margin-top: 10px; 
    line-height: 1.5; 
    color: #444; 
}

.solution-title { 
    color: #d9534f; 
}

/* ============================================================
   RESPONSIVE (SMARTPHONES)
   ============================================================ */
@media (max-width: 768px) {
    .grid-accueil { 
        grid-template-columns: 1fr; 
    }
    
    .titre-accueil { 
        font-size: 1.8rem; 
        margin-bottom: 30px; 
    }
    
    h1 { 
        font-size: 1.8rem; 
    }
    
    header { 
        font-size: 1rem; 
        padding: 15px 10px; 
    }
    
    .btn-retour { 
        position: relative; 
        left: 0; 
        margin-right: 10px; 
        font-size: 0.8rem; 
        padding: 6px 10px;
    }
    
    header span { 
        flex: 1; 
        text-align: right; 
    }
}

/* ============================================================
   STYLES DU DIAPORAMA (SLIDER)
   ============================================================ */
.slide-etape {
    display: none; /* Caché par défaut, géré par le JS */
}

.animation-slide {
    animation: slideInRight 0.4s ease-out forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* En-tête de progression */
.slider-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--vlb-gris-bleu);
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--vlb-vert);
    width: 0%;
    transition: width 0.4s ease;
}

/* Contrôles du diaporama (Boutons) */
.slider-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn-nav {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondaire {
    background-color: #f0f0f0;
    color: #555;
}

.btn-secondaire:hover {
    background-color: #e4e4e4;
    color: var(--vlb-text-dark);
}

.btn-primaire {
    background-color: var(--vlb-vert);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(176, 212, 193, 0.4);
}

.btn-primaire:hover {
    background-color: #9ac4b0;
    transform: translateY(-2px);
}