/**
  Livre Blanc
 */

.et_pb_scroll_top.et-pb-icon{
    bottom: 85px;
}

.lb_button{
    display: inline-flex;
    background: #E8364A;
    padding: 11px 20px 11px 0;
    .lb_button_image{
        position: relative;
        img{
            position: absolute;
            transform: translate(-50%, -60%) scale(2);
            top: 50%;
            @media screen and (max-width: 980px){
                transform: translate(-50%, -60%) scale(1.5);
            }
        }
        .lb_button_image_helper{
            width: 49px;
            display: block;
        }
    }
    .lb_button_content{
        font-family: 'Montserrat', sans-serif;
        line-height: 1;
        text-align: right;
        color: #fff;
        flex: 1;
        font-size: 18px;
        @media screen and (max-width: 980px){
            font-size: 14px;
        }
    }
}

#lb_button__container{
    .et_pb_row{
        padding: 0;
        margin: 0;
        width: 100%;
    }
    &.fixed{
        position: fixed;
        right: 0;
        bottom: 150px;
        padding: 0;
        transform: translateX(70%);
        transition: 0.5s all;
        .et_pb_row{
            .lb_button {
                .lb_button_image {
                    &:before{
                        content: "\35";
                        font-family: 'ETModules';
                        position: absolute;
                        top: 50%;
                        right: -17px;
                        transform: translateY(-50%);
                        font-size: 32px;
                        color: #fff;
                        transition: 0.5s all;
                    }
                }
                .lb_button_content{
                    opacity: 0;
                    transition: 0.5s all;
                }
            }
        }
        &:hover{
            transform: translateX(0);
            .et_pb_row{
                .lb_button{
                    .lb_button_image{
                        &:before{
                            opacity: 0;
                        }
                    }
                    .lb_button_content{
                        opacity: 1;
                    }
                }
            }
        }
    }
}


/**
 * Styles pour formulaire Contact Form 7 multi-étapes
 * À créer dans assets/multistep-form.css
 */

.multistep-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===========================
   FIL D'ARIANE (BREADCRUMB)
   =========================== */

.multistep-breadcrumb {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

/* Ligne de connexion entre les étapes */
.multistep-breadcrumb::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.breadcrumb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumb-step p {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.breadcrumb-step:hover .step-number {
    transform: scale(1.1);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Étape active */
.breadcrumb-step.active .step-number {
    background: linear-gradient(90deg, #db4357 0%, #E8364A 100%);
    color: white;
    box-shadow: 0 0 10px rgba(232, 54, 74, 0.5);
}

/* Étape complétée */
.breadcrumb-step.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    font-size: 0;
}

.breadcrumb-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

.step-label {
    font-size: 13px;
    text-align: center;
    color: #666;
    transition: color 0.3s ease;
    max-width: 120px;
    line-height: 1.3;
}

.breadcrumb-step.active .step-label {
    color: #E8364A;
    font-weight: 600;
}

.breadcrumb-step.completed .step-label {
    color: #28a745;
}

/* ===========================
   CONTENEUR DES ÉTAPES
   =========================== */

.multistep-container {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.step {
    display: none;
    opacity: 0;
    padding: 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.step.active {
    display: block;
}

.step h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #E8364A;
    padding-bottom: 10px;
}

/* ===========================
   CHAMPS DE FORMULAIRE
   =========================== */

.step label , .step .radio-title {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
    color: #495057;
    font-size: 15px;
}

.step input[type="text"],
.step input[type="email"],
.step input[type="tel"],
.step input[type="date"],
.step select,
.step textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8f9fa;
}

.step input[type="text"]:focus,
.step input[type="email"]:focus,
.step input[type="tel"]:focus,
.step input[type="date"]:focus,
.step select:focus,
.step textarea:focus {
    outline: none;
    border-color: #E8364A;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.step textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Champs en erreur */
.step input.error,
.step textarea.error,
.step select.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.step input.error:focus,
.step textarea.error:focus,
.step select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.step .input-group{
    margin-bottom: 35px;
}

/* Checkbox & Radio buttons */

.step input[type="radio"], .step input[type="checkbox"]{
    margin-right: 8px;
    margin-top: 0;
    cursor: pointer;
    align-items: stretch;
}

.step input[type="radio"]{
    display: none;
}

.step label:has(input[type="radio"]), .step label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    background: #FFF;
    border: 1px solid #6b7280;
    border-radius: 10px;
    padding: 8px 20px;
    width: 100%;
    text-align: center;
    transition: 0.5s all;
    height: 100%;
    .wpcf7-list-item-label{
        text-align: center;
        display: block;
        width: 100%;
    }
}

.step label:has(input[type="radio"]:checked), .step label:has(input[type="checkbox"]:checked){
    background: #E8364A;
    color:#fff;
    border: 1px solid #E8364A;
}

.step .wpcf7-radio, .step .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    .wpcf7-list-item {
        width: calc( 50% - 5px);
        margin: 0;
    }
}

/* Acceptance (checkbox) */

.step label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ===========================
   NAVIGATION DES ÉTAPES
   =========================== */

.step-navigation p{
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-prev,
.btn-next,
.step input[type="submit"] {
    padding: 14px 35px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-prev {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-prev:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-next,
.step input[type="submit"] {
    background: linear-gradient(90deg, #db4357 0%, #E8364A 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.step input[type="submit"]:hover {
    background: linear-gradient(90deg, #db4357 0%, #E8364A 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(232, 54, 74, 0.5);
}

.btn-prev:active,
.btn-next:active,
.step input[type="submit"]:active {
    transform: translateY(0);
}

/* ===========================
   BARRE DE PROGRESSION
   =========================== */

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 35px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #db4357 0%, #E8364A 100%);
    width: 25%;
    transition: width 0.5s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(232, 54, 74, 0.5);
}

/* ===========================
   MESSAGE DE VALIDATION
   =========================== */

.validation-message {
    color: #dc3545;
    background: #fff5f5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 4px solid #dc3545;
}

/* ===========================
   MESSAGE DE SUCCÈS
   =========================== */

.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-message h2 {
    color: #28a745;
    font-size: 32px;
    margin-bottom: 15px;
}

.success-message p {
    color: #6c757d;
    font-size: 18px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .multistep-form-wrapper {
        padding: 15px;
    }

    .step-label {
        display: none;
    }

    .multistep-breadcrumb {
        justify-content: space-around;
        padding: 0 10px;
    }

    .multistep-breadcrumb::before {
        left: 30px;
        right: 30px;
    }

    .step {
        padding: 25px 20px;
    }

    .step h3 {
        font-size: 20px;
    }

    .step-navigation {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next,
    .step input[type="submit"] {
        width: 100%;
        margin-left: 0 !important;
    }

    .step-navigation .btn-next,
    .step-navigation input[type="submit"] {
        order: 1;
    }

    .step-navigation .btn-prev {
        order: 2;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .multistep-breadcrumb::before {
        left: 25px;
        right: 25px;
    }
}

/* ===========================
   ANIMATIONS SUPPLÉMENTAIRES
   =========================== */

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

.breadcrumb-step.active .step-number {
    animation: pulse 2s infinite;
}

/* Contact Form 7 - Surcharge des styles par défaut */
.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
}

.wpcf7-mail-sent-ok {
    border: 2px solid #28a745;
    background: #d4edda;
    color: #155724;
}

.wpcf7-validation-errors {
    border: 2px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.df_lb_form{
    .wpcf7-response-output{
        display: none !important;
    }
}