/* --- STRUCTURE (Bloc statique total) --- */
.section-formulaire-custom {
    display: block; 
    width: 100%;
    margin-top: 80px !important; 
    margin-bottom: 150px !important;
    background: #F0B150;
    position: relative;
    padding: 30px 0;
}

.section-formulaire-custom .form-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* --- TITRES --- */
.section-formulaire-custom .main-title {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 55px);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 20px;
    transform: none !important;
    animation: none !important;
}

.section-formulaire-custom .sub-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- PROGRESSION --- */
.section-formulaire-custom .stepper-progress {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px 0;
}

.section-formulaire-custom .progress-bg {
    width: 140px;
    height: 4px;
    background: rgba(255,255,255,0.15);
}

.section-formulaire-custom .progress-bar {
    height: 100%;
    background: #ffffff;
    transition: width 0.4s ease;
}

/* --- ALIGNEMENT DES CHAMPS --- */
.section-formulaire-custom .field-container-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    max-width: fit-content;
    margin: 0 auto;
    will-change: auto !important;
    transform: none !important; 
}

/* --- CHAMPS --- */
.section-formulaire-custom .custom-field-group {
    border-left: 5px solid #ffff;
    padding-left: 20px;
    margin-bottom: 35px;
    display: table;
    width: auto;
}

.section-formulaire-custom label {
    display: block;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
    white-space: nowrap;
    color: #ffffff;
}

/* --- INPUTS & SELECTS --- */
.section-formulaire-custom select,
.section-formulaire-custom input,
.section-formulaire-custom textarea {
    background: #ffffff !important;
    border: none !important;
    outline: none !important;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    min-width: 300px;
    box-shadow: none !important;
}

.section-formulaire-custom input::placeholder,
.section-formulaire-custom textarea::placeholder {
    color: #aaa;
}

/* --- LAYOUT ÉTAPE 2 --- */
.section-formulaire-custom .contact-row {
    display: flex;
    gap: 30px;
}

.section-formulaire-custom .field-full {
    display: block;
    width: 100%;
}

.section-formulaire-custom .field-half {
    flex: 1;
}

.section-formulaire-custom textarea {
    min-width: 100%;
    min-height: 120px;
}

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */

/* Bouton SUIVANT / ENVOYER */
.btn-custom-action {
    background: #ffffff;
    color: #F0B150 !important;
    border: solid 1px #fff;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
   
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-custom-action:hover {
    background: #414042;
    color: #ffffff !important;
    border-color: #414042;
    transform: translateY(-2px);
}

/* Bouton RETOUR */
.btn-custom-back {
    background: transparent;
    color: #ffffff;
    border: solid 1px #fff;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-custom-back:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* Bouton SUCCÈS */
.btn-success-state {
    background: #ffffff !important;
    color: #28a745 !important;
    border: solid 1px #fff;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    animation: pulse-success 1s ease-in-out;
}

@keyframes pulse-success {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- FOOTER BOUTONS --- */
.btn-footer-group {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- UTILS --- */
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }

.field-container-center {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(30px, 5vw, 55px);
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.95;
}

/* --- TOAST --- */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-family: sans-serif;
    text-transform: uppercase;
    font-size: 14px;
}

/* --- MOBILE --- */
@media (max-width: 767px) {

    .section-formulaire-custom {
        padding: 30px 20px;
    }

    [x-show="step === 1"] .btn-custom-action {
        margin-left: 25px;
    }

    .btn-footer-group {
        padding-left: 20px;
    }

    .field-container-center {
        padding: 0 20px;
    }

    .custom-field-group label {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 8px auto;
        text-align: left;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 600;
    }

    .custom-field-group select, 
    .custom-field-group input, 
    .custom-field-group textarea {
        margin: 0 auto 20px auto !important; 
        width: 100% !important;
        max-width: 280px !important;
        display: block;
        padding: 12px 10px;
        box-sizing: border-box;
        border: 1px solid #ddd !important;
        background-color: #fff !important;
        -webkit-appearance: none;
        border-radius: 0;
    }

    [x-show="step === 1"] .btn-custom-action {
        margin: 30px auto 0 auto !important;
        display: block;
        width: fit-content;
    }

    .btn-footer-group {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-left: 0;
    }

    .contact-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .field-half {
        width: 100% !important;
    }

    [x-show="step === 1"] .btn-custom-action,
    .btn-footer-group {
        margin: 20px auto !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .btn-custom-back, 
    .btn-custom-action, 
    .btn-success-state {
        width: 250px !important;
        margin: 5px 0 !important;
        text-align: center;
    }

    .section-formulaire-custom .field-container-center {
        align-items: center;
        width: 100%;
    }

    .section-formulaire-custom .custom-field-group {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .section-formulaire-custom .contact-row {
        flex-direction: column;
        gap: 0;
    }

    .section-formulaire-custom select, 
    .section-formulaire-custom input,
    .section-formulaire-custom textarea {
        min-width: 100%;
    }

    .section-formulaire-custom label {
        white-space: normal;
        font-size: 15px;
    }
}