/* --- GLOBAL --- */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #ffffff; margin: 0; padding: 0; color: #333; display: flex; flex-direction: column; min-height: 100vh; }

/* --- HEADER --- */
.header { background: white; padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; width: 100%; box-sizing: border-box;}
.logo-img { height: 50px; object-fit: contain; }
.secure-text { color: #002b5c; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;}
.secure-icon { height: 40px; width: auto; }

/* --- CONTENEUR PRINCIPAL --- */
/* Min-height augmenté et margin-bottom pour forcer le scroll */
.container { flex: 1; max-width: 800px; margin: 40px auto 80px auto; background: white; padding: 40px 20px; text-align: center; width: 95%; min-height: 600px; }

/* --- PROGRESS BAR --- */
.progress-container { display: flex; justify-content: center; align-items: center; margin-bottom: 60px; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; padding-top: 20px; }
.step-indicator { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; position: relative; z-index: 2; transition: 0.3s; }
.step-indicator.active { background: #4dabf7; }
.step-indicator.completed { background: #3b82f6; }

.line { flex: 1; height: 3px; background: #e0e0e0; margin: 0 10px; position: relative; z-index: 1; }
.line.active { background: #3b82f6; }

/* Correction alignement labels */
.step-label { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: #888; white-space: nowrap; font-weight: 500; }
.active .step-label, .completed .step-label { color: #3b82f6; font-weight: bold; }

/* --- STEPS ANIMATION --- */
.step { display: none; animation: fadeIn 0.4s ease-in-out; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- TEXTES --- */
h2 { color: #002b5c; margin-bottom: 10px; font-size: 1.8rem; }
h3 { color: #002b5c; margin-bottom: 25px; font-weight: 700; font-size: 1.5rem; text-align: left; }
.subtitle { color: #555; margin-bottom: 30px; font-size: 1.05rem; text-align: left; line-height: 1.5; }

/* --- BOUTONS OPTIONS (Age) --- */
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 30px; }
.btn-option { background: white; border: 2px solid #002b5c; color: #002b5c; padding: 18px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 1.1rem; font-weight: 600; }
.btn-option:hover { background: #f0f8ff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* --- BULLES AGE EXACT (Plus foncées) --- */
.age-bubble-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0; }
.age-bubble { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #999; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; font-size: 1.1rem; font-weight: 600; transition: 0.2s; background: white; }
.age-bubble:hover { border-color: #3b82f6; color: white; background-color: #3b82f6; transform: scale(1.1); }

/* --- ECRAN CHARGEMENT (Simulateur) --- */
.loader-screen { display: none; text-align: center; padding: 40px 0; }
.spinner { width: 60px; height: 60px; border: 6px solid #f3f3f3; border-top: 6px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-text { font-size: 1.2rem; color: #002b5c; font-weight: 600; margin-top: 15px;}

/* --- INPUTS --- */
.input-row { display: flex; gap: 20px; margin-bottom: 15px; }
.input-group { flex: 1; text-align: left; margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #002b5c; font-size: 0.95rem;}
.input-group label span { color: #e11d48; } 
input[type="text"], input[type="email"], input[type="tel"], select { width: 100%; padding: 14px; border: 1px solid #9ca3af; border-radius: 8px; font-size: 1rem; box-sizing: border-box; outline: none; transition: 0.3s; background: #f9fafb;}
input:focus { border-color: #3b82f6; background: white; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* --- BOITE VERTE --- */
.green-alert { background-color: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 20px; margin-bottom: 30px; display: flex; align-items: center; text-align: left; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.green-alert i { color: #16a34a; font-size: 1.8rem; margin-right: 15px; }
.green-alert p { margin: 0; color: #14532d; font-weight: 700; font-size: 1rem; }

/* --- NAVIGATION --- */
.btn-next { background-color: #ff8fa3; color: white; border: none; padding: 14px 60px; border-radius: 50px; font-size: 1.2rem; font-weight: 700; cursor: pointer; margin-top: 20px; transition: 0.3s; float: right; box-shadow: 0 4px 6px rgba(255, 143, 163, 0.4); }
.btn-next:hover { background-color: #ff6b85; transform: translateY(-2px); }

.btn-prev { background: white; border: 1px solid #ccc; padding: 12px 30px; border-radius: 50px; cursor: pointer; float: left; margin-top: 22px; color: #666; display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600;}
.btn-prev:hover { background: #f3f4f6; color: #333; border-color: #999; }

.checkbox-group { text-align: left; font-size: 0.9rem; color: #4b5563; margin-top: 25px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
.checkbox-group input { margin-top: 3px; transform: scale(1.2); }

/* --- FOOTER --- */
.footer { background-color: #0d1b45; color: white; padding: 40px 20px; text-align: center; font-size: 0.9rem; margin-top: auto; border-top: 4px solid #ff8fa3; }
.footer a { color: #ff8fa3; text-decoration: none; margin: 0 15px; transition: 0.3s; }
.footer a:hover { color: white; text-decoration: underline; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .input-row { flex-direction: column; gap: 0; }
    .btn-next, .btn-prev { width: 100%; float: none; margin-bottom: 15px; justify-content: center;}
    .header { flex-direction: column; gap: 10px; }
    .container { padding: 20px 15px; margin: 20px auto; min-height: auto;}
    .step-label { font-size: 0.7rem; top: 45px; }
    .btn-grid { grid-template-columns: 1fr; }
    h3 { font-size: 1.3rem; }
}
/* --- AVATAR AVEC POINT VERT --- */
.avatar-wrapper {
    position: relative; /* Permet de positionner le point par rapport à l'image */
    display: inline-block;
    margin-right: 20px;
}

.avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f8ff;
    display: block;
}

/* Version plus petite pour les étapes suivantes */
.avatar-img.small {
    width: 50px;
    height: 50px;
}

.online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background-color: #22c55e; /* Vert intense */
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Ajustement du point pour la version petite */
.avatar-img.small + .online-dot {
    width: 13px;
    height: 13px;
    bottom: 2px;
    right: 2px;
}
