/* ===== CSS PREMIUM FORMULAIRE ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #e8f5e9);
    margin: 0; padding: 0; color: #333;
}

.wrapper {
    max-width: 950px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-left: 8px solid #4CAF50;
}

h1 {
    text-align: center;
    font-size: 2.4rem;
    color: #2E7D32;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.5;
    font-style: italic;
}

/* Progress Bar */
.progressbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}
.progressbar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #dcdcdc;
    z-index: 0;
    transform: translateY(-50%);
    border-radius: 2px;
}
.progress-step {
    width: 18%;
    text-align: center;
    padding: 14px 0;
    border-radius: 50px;
    background-color: #dcdcdc;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease-in-out;
}
.progress-step i {
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.progress-step.active {
    background-color: #4CAF50;
    color: #fff;
    box-shadow: 0 5px 15px rgba(76,175,80,0.4);
    transform: scale(1.1);
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}
.step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1B5E20;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 6px;
}

.step p { line-height: 1.7; color: #555; margin-bottom: 25px; }

/* Form group */
.form-group { margin-bottom: 25px; }
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2E7D32;
}
input, textarea, select {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
input:focus, textarea:focus, select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76,175,80,0.3);
    outline: none;
}
textarea { height: 140px; resize: vertical; }

/* Buttons */
.buttons { display: flex; justify-content: space-between; margin-top: 30px; }
.prev-btn, .next-btn, .submit-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}
.prev-btn { background-color: #777; color: #fff; }
.prev-btn:hover { background-color: #555; transform: translateY(-2px); }
.next-btn { background-color: #2196F3; color: #fff; }
.next-btn:hover { background-color: #1976D2; transform: translateY(-2px); }
.submit-btn {
    background-color: #4CAF50;
    color: #fff;
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.submit-btn:hover { background-color: #388E3C; transform: translateY(-2px); }

/* Confirmation checkbox */
input[type="checkbox"] { width: auto; margin-right: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .wrapper { padding: 35px 20px; }
    .progress-step { font-size: 0.85rem; padding: 10px 0; }
    .step-title { font-size: 1.3rem; }
    input, textarea, select { padding: 12px; font-size: 0.95rem; }
    .prev-btn, .next-btn, .submit-btn { padding: 12px 20px; font-size: 0.95rem; }
}

/* Highlight Step 5 */
.step:last-child { background-color: #e8f5e9; padding: 20px; border-radius: 12px; }



/* ===== RÉCAPITULATIF ÉTAPE 5 ===== */
.recap-container {
    background-color: #f0f9f4; /* fond doux vert clair */
    border: 2px solid #4CAF50; /* bordure premium */
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
}

.recap-container h3 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
    padding-bottom: 4px;
}

#recap {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#recap li {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-left: 4px solid #4CAF50;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease-in-out;
    cursor: default;
}

#recap li:hover {
    background-color: #e8f5e9;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Checkbox style pour confirmation */
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    accent-color: #4CAF50; /* couleur premium */
}

label[for="confirmation"] {
    font-weight: 600;
    color: #2E7D32;
    font-size: 1rem;
}
