/* Logo dans le coin supérieur gauche */
/*.main-content {*/
/*    position: relative;*/
/*}*/


/* Styles pour les messages flash (toaster) */
.alert {
    position: relative;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInFromTop 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
}

.faq-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4f46e5;
    color: white;
    display: none; /* État initial géré par JavaScript */
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Animation d'apparition */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de disparition */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.alert.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Alert Success */
.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-success::before {
    content: "✓";
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Alert Error/Danger */
.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-danger::before {
    content: "⚠";
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Alert Warning */
.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.alert-warning::before {
    content: "!";
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Alert Info */
.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.alert-info::before {
    content: "ℹ";
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Message content */
.alert-message {
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

/* Bouton de fermeture */
.alert .close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 12px;
    flex-shrink: 0;
}

.alert .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.alert .close:active {
    transform: scale(0.95);
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 25%;
}

/* Form styles */
/*.form-section {*/
/*    padding: 20px;*/
/*}*/

.step-indicator {
    text-align: center;
    margin-bottom: 30px;
}

.step-indicator h3 {
    color: #4f46e5;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-indicator p {
    color: #6b7280;
    font-size: 16px;
}

.stepper-step-button[data-coreui-toggle="step"] {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .alert {
        padding: 12px 16px;
        font-size: 13px;
        margin-bottom: 12px;
    }

    .alert::before {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        font-size: 14px;
    }

    .alert .close {
        width: 24px;
        height: 24px;
        font-size: 18px;
        margin-left: 8px;
    }
}

/* Petites alertes sous les champs requis */
.field-alert {
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.3;
    display: none;
}

.form-group.has-error .field-alert {
    display: block;
}


/* Pour s'assurer que nos styles sont prioritaires */
/*.form-check input[type="radio"],*/
/*.form-check input[type="checkbox"] {*/
/*    position: relative !important;*/
/*    margin: 0 15px 0 0 !important;*/
/*}*/

/* Ajustement pour l'alignement au début du formulaire */
/*#step-1 .form-check {*/
/*    margin-left: 0;*/
/*    padding-left: 0;*/
/*}*/

/*!* Espacement supplémentaire entre les options *!*/
/*.form-check + .form-check {*/
/*    margin-top: 12px;*/
/*}*/

/* Styles pour la FAQ sticky */
.faq-sticky {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 380px;
    max-height: 80vh;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.faq-header {
    background-color: #f3f4f6;
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.faq-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.faq-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s;
}

.faq-close:hover {
    background-color: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.faq-body {
    padding: 15px 0;
}

.faq-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-accordion-header {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.faq-accordion-toggle {
    color: #6b7280;
    transition: transform 0.3s;
    font-size: 18px;
}

.faq-accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    box-sizing: border-box;
    opacity: 0;
}

.faq-accordion-content p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
    transition: opacity 0.3s ease, padding 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-toggle {
    transform: rotate(180deg);
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 1000px; /* Valeur suffisamment grande pour tous les contenus */
    padding-bottom: 15px;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    opacity: 1;
}

.faq-accordion-item.active .faq-accordion-content p {
    padding-bottom: 15px;
    opacity: 1;
}

.faq-more {
    text-align: center;
    padding: 10px;
}

.faq-more a {
    color: #4f46e5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.faq-more a:hover {
    text-decoration: underline;
}

/* Bouton FAQ flottant */
.faq-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4f46e5;
    color: white;
    display: block;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.faq-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #4338ca;
}

/* Animation pour le bouton FAQ */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-sticky {
        width: 100%;
        right: 0;
        top: 0;
        transform: none;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1001; /* S'assurer que la FAQ est au-dessus du bouton */
    }

    .faq-header {
        border-radius: 0;
    }

    .faq-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
        display: flex; /* Sur mobile, afficher le bouton par défaut (sera géré par JS) */
    }
}

/* Numero validateur style */
.message {
    margin-top: 5px;
    font-size: 14px;
    display: none;
}

.error {
    color: red;
    display: block;
}

.success {
    color: green;
    display: block;
}

input.error-border {
    border: 2px solid red;
}

input.success-border {
    border: 2px solid green;
}
