* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-orange: #FF6B35; --secondary-orange: #FF8A50; --primary-green: #00C851; --secondary-green: #2E7D32;
    --dark-bg: #1a1a1a; --light-bg: #f8fafc; --text-dark: #2d3748; --text-light: #64748b; --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1); --shadow-heavy: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.section-title { font-size: 3.5rem; font-weight: 800; text-align: center; margin-bottom: 20px; background: linear-gradient(135deg, var(--primary-orange), var(--primary-green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { font-size: 1.3rem; text-align: center; color: var(--text-light); margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }


/* --- NOUVELLE SECTION DE CHOIX DE SERVICE --- */
.services-choice-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
}

.services-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-choice-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.service-choice-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px var(--shadow-hover);
    border-color: var(--primary-orange);
}

.service-choice-icon {
    font-size: 4.5rem;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
    color: var(--primary-orange);
}

.service-choice-card:hover .service-choice-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-choice-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-choice-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}


/* --- SECTION FORMULAIRE (EXISTANTE) --- */
.form-section { padding: 100px 20px; background: linear-gradient(135deg, var(--dark-bg) 0%, #2d3748 100%); position: relative; overflow: hidden; }
.form-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,107,53,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>'); opacity: 0.3; }
.form-container { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); border-radius: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2); max-width: 900px; margin: 0 auto; overflow: hidden; }
.form-header { background: linear-gradient(135deg, var(--secondary-orange), var(--primary-green)); color: white; padding: 40px 30px; text-align: center; }
.form-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

.progress-container { padding: 30px; background: #f0f2f5; }
.progress-bars { display: flex; justify-content: space-between; position: relative; }
.progress-line { position: absolute; top: 20px; left: 0; right: 0; height: 3px; background: #e0e0e0; z-index: 1; }
.progress-line-active { position: absolute; top: 20px; left: 0; height: 3px; background: linear-gradient(to right, var(--primary-orange), var(--primary-green)); z-index: 2; width: 0%; transition: width 0.5s ease; }
.progress-step { position: relative; z-index: 3; text-align: center; width: 25%; }
.progress-circle { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: #999; font-weight: bold; transition: all 0.4s ease; }
.progress-step-label { font-size: 0.85rem; color: #666; transition: all 0.4s ease; font-weight: 500;}
.progress-step.active .progress-circle { background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange)); transform: scale(1.2); color: white; box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4); }
.progress-step.active .progress-step-label { color: var(--secondary-green); font-weight: bold; }
.progress-step.completed .progress-circle { background: var(--primary-green); transform: scale(1.1); color: white; }

.form-content { padding: 40px; }
.form-step { display: none; animation: slide-in 0.5s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.form-step.active { display: block; }
.form-step h3 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-orange); display: flex; align-items: center; }
.form-step h3 .label-icon { margin-right: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.form-group { position: relative; }
.form-group label { display: flex; align-items: center; margin-bottom: 10px; font-weight: 600; color: #333; font-size: 1rem; }
.label-icon { margin-right: 10px; font-size: 1.2rem; color: var(--primary-orange); width: 24px; text-align: center; }
.form-input { width: 100%; padding: 15px 20px; border: 2px solid #e0e0e0; border-radius: 12px; font-size: 1rem; transition: all 0.3s ease; background: white; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--primary-orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1); transform: translateY(-2px); }
.form-input.is-invalid { border-color: #dc3545; }
.form-input:valid { border-color: var(--primary-green); }
textarea.form-input { min-height: 120px; resize: vertical; }

.service-selection-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.service-card-option { padding: 20px 10px; border: 3px solid #e0e0e0; border-radius: 15px; text-align: center; cursor: pointer; transition: all 0.3s ease; background: white; position: relative; }
.service-card-option:hover { border-color: var(--secondary-orange); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2); }
.service-card-option.selected { border-color: var(--primary-green); background-color: #f0fff4; transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 200, 81, 0.2); }
.service-card-option.selected .service-option-icon { color: var(--primary-green); }
.service-option-icon { font-size: 2.5rem; margin-bottom: 10px; color: var(--primary-orange); transition: color 0.3s ease; }
.service-option-label { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

.confirmation-card { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 30px; border-radius: 15px; border-left: 5px solid var(--primary-orange); margin-bottom: 25px; }
.confirmation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.confirmation-item { padding: 10px; border-radius: 8px; background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.confirmation-item.full-width { grid-column: 1 / -1; }
.confirmation-label { font-weight: bold; color: var(--primary-orange); display: block; margin-bottom: 5px; font-size: 0.9rem; }
.confirmation-value { color: #333; font-size: 1rem; word-wrap: break-word; white-space: pre-wrap; }
#confirmServicesList { list-style-type: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#confirmServicesList li { background: #e0f2f1; padding: 8px 12px; border-radius: 20px; font-size: 0.95rem; color: var(--secondary-green); }

.checkbox-container { margin: 25px 0; }
.checkbox-label { display: flex; align-items: center; cursor: pointer; padding: 20px; background: #f8f9fa; border-radius: 12px; border: 2px solid #e0e0e0; transition: all 0.3s ease; }
.checkbox-input { margin-right: 15px; transform: scale(1.3); accent-color: var(--primary-green); }
.checkbox-label:hover { border-color: var(--primary-orange); }
.checkbox-label.checked { border-color: var(--primary-green); background: rgba(0, 200, 81, 0.05); }

.form-buttons { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.btn2 { padding: 15px 30px; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; min-width: 130px; position: relative; overflow: hidden;}
.btn-primary { background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange)); color: white; box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.6s ease; }
.btn-primary:hover::before { left: 100%; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; transform: translateY(-3px); }
.btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

.success-section { display: none; text-align: center; padding: 60px 40px; }
.success-section.active { display: block; animation: success-bounce 1s ease-out; }
@keyframes success-bounce { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } }
.success-icon { width: 100px; height: 100px; margin: 0 auto 30px; background: linear-gradient(135deg, var(--primary-green), #2E7D32); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; animation: pulse-success 2s ease-in-out infinite; }
@keyframes pulse-success { 0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0,200,81,0.3); } 50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(0,200,81,0.6); } }
.success-title { font-size: 2.2rem; color: var(--secondary-green); margin-bottom: 20px; }
.success-message { font-size: 1.1rem; color: #555; line-height: 1.8; max-width: 500px; margin: 0 auto; }

@media (max-width: 1200px) {
    .services-choice-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .form-row { grid-template-columns: 1fr; }
    .service-selection-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .form-content { padding: 20px; }
    .service-selection-grid { grid-template-columns: repeat(2, 1fr); }
    .confirmation-details { grid-template-columns: 1fr; }
    .form-buttons { flex-direction: column; }
    .progress-step-label { font-size: 0.7rem; }
     .services-choice-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
