/* ========================================
   Learner Dashboard - Course Cards
   ======================================== */
/* Assurer que les cartes de cours ont la même hauteur */
.dashboard-body .card.h-100 {
    display: flex;
    flex-direction: column;
}

.dashboard-body .card.h-100 .card-body.d-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-body .card.h-100 .card-body .d-flex.flex-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tronquer les titres longs avec ellipsis */
.dashboard-body .card.h-100 h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    line-height: 1.5;
}

.dashboard-body .card.h-100 h5 a {
    display: block;
    word-break: break-word;
}

/* Assurer que le bouton "Continuer" reste en bas */
.dashboard-body .card.h-100 .mt-auto {
    margin-top: auto !important;
}

/* ========================================
   Sidebar Customization
   ======================================== */

/* Augmenter la largeur de la sidebar pour éviter les retours à la ligne */
.sidebar {
    width: 290px !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    transition: transform 0.3s ease-in-out !important;
    z-index: 100 !important;
}

/* Animation fluide pour le main content et la navbar quand on toggle */
.dashboard-main-wrapper {
    margin-left: 290px !important;
    transition: margin-left 0.3s ease-in-out !important;
    width: calc(100% - 290px) !important;
}

/* Quand la sidebar est cachée */
.sidebar.sidebar-hidden {
    transform: translateX(-100%) !important;
}

/* Quand la sidebar est cachée, le wrapper prend toute la largeur */
.dashboard-main-wrapper.full-width {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Overlay pour le toggle (mobile uniquement) */
.side-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    display: none;
}

/* Overlay visible seulement sur mobile */
@media screen and (max-width: 1199px) {
    .side-overlay {
        display: block;
    }
    
    .side-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Sur mobile, pas de marge par défaut */
@media screen and (max-width: 1199px) {
    .dashboard-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
}

/* Submenu custom styling */
.custom-submenu-link {
    border: none !important;
    border-left: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    background: transparent !important;
    color: #4A5F7A !important;
}

.custom-submenu-link .icon,
.custom-submenu-link .text {
    color: #4A5F7A !important;
}

.custom-submenu-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    border: none !important;
    border-left: none !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Pagination Styling - Professional Design */
.pagination {
    gap: 6px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background-color: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .page-item.active .page-link {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.2);
}

.pagination .page-item.active .page-link:hover {
    background-color: #111827;
    border-color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(31, 41, 55, 0.25);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f9fafb;
    color: #9ca3af;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Course Creation Page Styles
   ======================================== */

/* Step List Navigation */
.step-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.step-list__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    flex: 1;
    justify-content: center;
    font-size: 14px;
}

.step-list__item .icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.3s;
    flex-shrink: 0;
}

.step-list__item .line {
    display: none;
}

.step-list__item.active {
    color: #111FCA;
    font-weight: 600;
}

.step-list__item.active .icon {
    background: #111FCA;
    color: white;
}

.step-list__item.completed {
    color: #10b981;
    font-weight: 500;
}

.step-list__item.completed .icon {
    background: #10b981;
    color: white;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Lesson Form Styling */
.lesson-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.lesson-header {
    background: linear-gradient(135deg,rgb(61, 127, 249) 0%, #3d7ff9 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lesson-header h5 {
    font-size: 18px;
}

.lesson-header small {
    font-size: 12px;
}

.lesson-section {
    margin-bottom: 20px;
}

.lesson-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title i {
    color: #111FCA;
    font-size: 16px;
}

/* Type Selection Cards */
.type-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.type-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

.type-card:hover {
    border-color: #111FCA;
    background: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(17, 31, 202, 0.12);
}

.type-card.active {
    border-color: #111FCA;
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(17, 31, 202, 0.15);
}

.type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-card-icon {
    font-size: 24px;
    margin-bottom: 6px;
    color: #111FCA;
}

.type-card-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 2px;
}

.type-card-desc {
    font-size: 11px;
    color: #6b7280;
}

/* Content Type Selection */
.content-type-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.content-type-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-type-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.content-type-card.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.content-type-card input[type="radio"] {
    margin: 0;
}

.content-type-icon {
    font-size: 20px;
    color: #10b981;
}

/* File Upload Styling */
.file-upload-wrapper {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload-wrapper:hover {
    border-color: #111FCA;
    background: #f0f4ff;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 36px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 3px;
}

.upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* Live Session Box */
.live-session-box {
    background: #f9fafb;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #111FCA;
}

.live-session-box .section-title {
    color: #374151;
}

/* Content Box */
.content-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    padding: 18px;
    border-left: 3px solid #10b981;
}

.content-box .section-title {
    color: #065f46;
}

/* Conditional Fields */
.conditional-field {
    display: none;
}

.conditional-field.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #111FCA;
    box-shadow: 0 0 0 3px rgba(17, 31, 202, 0.1);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Navigation Buttons */
.lesson-navigation {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-navigation .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Couleur pour les icônes Publisher */
.text-purple {
    color: #7c3aed !important;
}

/* Bouton de suppression de document (croix rouge) */
.document-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.document-remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.3);
}

/* Bouton de suppression de vidéo (croix rouge) */
.video-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    z-index: 10;
}

.video-remove-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
}

/* Modal Quiz */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.quiz-modal.active {
    background: rgba(0, 0, 0, 0.6);
}

.quiz-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.quiz-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.quiz-modal.active .quiz-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.quiz-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-close-modal {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    color: #64748b;
}

.btn-close-modal:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.quiz-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.quiz-modal-body::-webkit-scrollbar {
    width: 8px;
}

.quiz-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.quiz-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.quiz-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.quiz-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Boutons du modal de quiz */
.btn-modal-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modal-save {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-modal-save:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-modal-save:active {
    transform: translateY(0px);
}

.btn-modal-save i {
    font-size: 18px;
}

/* Bouton Ajouter une question */
.btn-add-question {
    background: #f0f9ff;
    color: #1e40af;
    border: 2px dashed #3b82f6;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-question:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-style: solid;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-add-question:active {
    transform: translateY(0px);
}

.btn-add-question i {
    font-size: 18px;
}

.modal-question-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.modal-question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.assertions-container {
    background: white;
    border-radius: 8px;
    padding: 10px;
}

.assertion-item:hover {
    background: #f1f5f9 !important;
}

.assertion-item input[type="radio"]:checked + span {
    color: #3b82f6;
    font-weight: 700;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Bouton Quiz dans la révision (à droite de la ligne) */
.quiz-action-btn {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-action-btn.no-quiz:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.quiz-action-btn.has-quiz:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5) !important;
}

.quiz-action-btn:active {
    transform: translateY(0px);
}

/* ========================================
   Course Card Styling - Amélioration de l'affichage
   ======================================== */

/* Titre des cartes de cours - Limite à 2 lignes avec ellipsis */
.course-card-title {
    min-height: 48px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.course-card-title a {
    display: block;
}

/* Section créateur avec image et informations */
.course-creator-section {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.course-creator-info {
    flex: 1;
    min-width: 0;
}

/* Nom du créateur - une seule ligne avec ellipsis */
.course-creator-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

/* Section évaluation - empêche le retour à la ligne */
.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.course-rating span {
    flex-shrink: 0;
}

/* Corps de la carte - structure flex */
.course-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========================================
   Lesson list (learner course details)
   ======================================== */
.lesson-title-ellipsis {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured (next lesson) - locked preview */
.featured-wrapper { position: relative; }
#featuredPlayer { pointer-events: none; }
.featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-weight: 600;
}

/* ========================================
   Quiz Creation Page Styles
   ======================================== */

.quiz-form-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px 30px;
}

@media (min-width: 1200px) {
    .quiz-form-container {
        padding: 20px 50px;
    }
}

.quiz-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    width: fit-content;
    max-width: calc(50% - 16px);
}

.quiz-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.quiz-header p {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 12px;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.quiz-cards-container {
    display: flex;
    align-items: flex-start;
}

.quiz-cards-container > div {
    display: flex;
    flex-direction: column;
}

.quiz-card.info-card {
    height: auto;
    min-height: auto;
    flex-shrink: 0;
}

.quiz-card.questions-card {
    height: auto;
    min-height: auto;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.quiz-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.question-card.expanded {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.question-header-collapsible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.question-header-collapsible:hover {
    background: #f8fafc;
}

.question-header-collapsible .question-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.question-header-collapsible .question-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.question-header-collapsible .question-preview {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-left: 10px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-content {
    padding: 20px;
    display: none;
}

.question-card.expanded .question-content {
    display: block;
}

.question-card.expanded .question-caret {
    transform: rotate(180deg);
}

.question-caret {
    transition: transform 0.3s;
    color: #64748b;
    font-size: 18px;
}

#questionsContainer {
    flex: 1;
    min-height: 450px;
}

#questionsContainer::-webkit-scrollbar {
    width: 6px;
}

#questionsContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#questionsContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#questionsContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.question-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 16px;
}

.question-number {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assertion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.assertion-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.assertion-item input[type="checkbox"]:checked {
    accent-color: #10b981;
}

.assertion-item:has(input[type="checkbox"]:checked) {
    background: #d1fae5;
    border-color: #10b981;
}


.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 2px solid #3b82f6;
}


/* ========================================
   Course Preview Page (carousel + layout)
   ======================================== */
#coursePreviewCarousel { height: 360px; }
#coursePreviewCarousel .carousel-item { height: 360px; background: #fff; }
#coursePreviewCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}
#courseImagesBlock { margin-top: 37px !important; }
@media (min-width: 1400px) {
    #courseImagesBlock { margin-top: 49px !important; }
}
@media (max-width: 1199.98px) {
    #courseImagesBlock { margin-top: 25px !important; }
}

/* Responsive tuning for tablets/mobiles */
@media (max-width: 1199.98px) {
    #coursePreviewCarousel { height: 320px; }
    #coursePreviewCarousel .carousel-item { height: 320px; }
    .lesson-list-wrapper { max-height: 240px !important; }
}
@media (max-width: 991.98px) {
    #coursePreviewCarousel { height: 260px; }
    #coursePreviewCarousel .carousel-item { height: 260px; }
    .lesson-list-wrapper { max-height: 220px !important; }
    #lessonPreviewAccordion .lesson-item .lesson-toggle { padding-top: 10px; padding-bottom: 10px; }
    #lessonPreviewAccordion .lesson-item .lesson-arrow { font-size: 16px; }
}
@media (max-width: 767.98px) {
    #coursePreviewCarousel { height: 220px; }
    #coursePreviewCarousel .carousel-item { height: 220px; }
    .lesson-list-wrapper { max-height: 200px !important; }
}
@media (max-width: 575.98px) {
    #coursePreviewCarousel { height: 180px; }
    #coursePreviewCarousel .carousel-item { height: 180px; }
    .lesson-list-wrapper { max-height: 180px !important; }
    #lessonPreviewAccordion .lesson-item .lesson-toggle { padding-top: 8px; padding-bottom: 8px; }
}

/* Shared success popup (used on library and preview pages) */
.success-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #10b981;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.success-popup.hide { animation: slideOutRight 0.3s ease-out forwards; }
@keyframes slideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}
.success-popup-icon { font-size: 24px; color: #10b981; flex-shrink: 0; }
.success-popup-content { flex: 1; }
.success-popup-title { font-weight: 600; font-size: 14px; color: #1e293b; margin-bottom: 4px; }
.success-popup-message { font-size: 13px; color: #64748b; line-height: 1.4; }
.success-popup-close {
    background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; padding: 0;
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.2s; flex-shrink: 0;
}
.success-popup-close:hover { background: #f1f5f9; color: #475569; }

/* ========================================
   Mentor Assign Course Page Styles
   ======================================== */
.available-user-item {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.available-user-item:last-child {
    border-bottom: none;
}
.available-user-item:hover {
    background: #f8fafc;
    border-left: 3px solid #0ea5e9;
    padding-left: 13px;
}
.available-user-item:active {
    background: #f1f5f9;
}
.user-item-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.user-item-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.5;
}
.user-item-email {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.user-item {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    background: #f8fafc;
    border-left: 3px solid #0ea5e9;
}
.user-item:last-child {
    border-bottom: none;
}
.user-item:hover {
    background: #f1f5f9;
}
.user-item-remove {
    background: #64748b;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.user-item-remove:hover {
    background: #475569;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.empty-state i {
    font-size: 64px;
    opacity: 0.2;
    margin-bottom: 16px;
}
.empty-state p {
    margin: 8px 0;
    color: #64748b;
}
/* Style de la barre de défilement pour les listes d'assignation */
#availableUsersList::-webkit-scrollbar,
#selectedUsersList::-webkit-scrollbar {
    width: 8px;
}
#availableUsersList::-webkit-scrollbar-track,
#selectedUsersList::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
#availableUsersList::-webkit-scrollbar-thumb,
#selectedUsersList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
#availableUsersList::-webkit-scrollbar-thumb:hover,
#selectedUsersList::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
#selectAllBtn {
    transition: all 0.2s ease;
}
#selectAllBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#selectAllBtn:active {
    transform: translateY(0);
}

/* ========================================
   Learner Course Detail Page Styles
   ======================================== */

.lesson-locked {
    opacity: 0.6;
}

.lesson-locked-text {
    cursor: not-allowed;
}

.lesson-completed {
    color: #10b981 !important;
}

/* Animations pour la notification anti-triche */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Styles pour la modal de quiz */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none; /* Par défaut caché */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quiz-modal-active,
.quiz-modal[style*="display: flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
}

/* FORCER l'affichage du contenu du modal */
.quiz-modal[style*="display: flex"] .quiz-modal-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10002 !important;
    position: relative !important;
}

.quiz-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001; /* En dessous du contenu */
}

.quiz-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10002 !important; /* FORCER au-dessus de l'overlay */
    animation: quizModalSlideIn 0.3s ease-out;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes quizModalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.quiz-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.quiz-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quiz-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.quiz-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.quiz-timer-section {
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    margin-top: 12px;
}

.quiz-question {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.quiz-question-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.quiz-option-label {
    transition: all 0.2s;
}

.quiz-option-label:hover {
    background: #f3f4f6 !important;
}

.quiz-option-label input[type="checkbox"]:checked ~ span {
    color: #3b82f6;
    font-weight: 600;
}

.quiz-option-label:has(input[type="checkbox"]:checked) {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

.quiz-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.quiz-results {
    padding: 40px 20px;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition: all 0.2s ease;
}

/* Styles pour le popup de confirmation */
.quiz-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quiz-confirmation-popup.show {
    opacity: 1;
    visibility: visible;
}

.quiz-confirmation-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quiz-confirmation-popup.show .quiz-confirmation-content {
    transform: scale(1);
}

.quiz-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.quiz-confirmation-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.quiz-confirmation-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.quiz-confirmation-content .btn {
    font-weight: 600;
    transition: all 0.2s ease;
}

.quiz-confirmation-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .quiz-confirmation-content {
        padding: 24px;
        max-width: 90%;
    }
    
    .quiz-confirmation-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .quiz-confirmation-content h4 {
        font-size: 20px;
    }
    
    .quiz-confirmation-content .flex-align {
        flex-direction: column;
    }
    
    .quiz-confirmation-content .btn {
        width: 100%;
        margin-bottom: 12px;
    }
}

/* ========================================
   Custom Confirm Popup Styles
   ======================================== */

.custom-confirm-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-confirm-popup.show {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.custom-confirm-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10004;
}

.custom-confirm-popup.show .custom-confirm-content {
    transform: scale(1);
}

.custom-confirm-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.custom-confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.custom-confirm-message {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 24px;
}

.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.custom-confirm-btn-cancel,
.custom-confirm-btn-confirm {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
    justify-content: center;
}

.custom-confirm-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.custom-confirm-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-confirm-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.custom-confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.custom-confirm-btn-confirm:active,
.custom-confirm-btn-cancel:active {
    transform: translateY(0px);
}

@media (max-width: 640px) {
    .custom-confirm-content {
        padding: 24px;
        max-width: 90%;
    }
    
    .custom-confirm-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .custom-confirm-title {
        font-size: 20px;
    }
    
    .custom-confirm-buttons {
        flex-direction: column;
    }
    
    .custom-confirm-btn-cancel,
    .custom-confirm-btn-confirm {
        width: 100%;
    }
}

/* ========================================
   Learner Course Detail Page - Content Tabs & Viewers
   ======================================== */

/* Styles pour les onglets de contenu */
.lesson-content-tabs {
    margin-bottom: 20px;
}

.lesson-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.lesson-tabs .nav-item {
    margin-bottom: -2px;
}

.lesson-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-tabs .nav-link:hover {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.lesson-tabs .nav-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: transparent;
}

.lesson-tab-content {
    min-height: 400px;
}

/* Styles pour le viewer PDF */
.pdf-viewer-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.pdf-viewer-header {
    background: #f9fafb;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-viewer-body {
    height: 600px;
    overflow: auto;
    background: #525252;
}

/* Styles pour la galerie d'images */
.images-gallery-container {
    position: relative;
}

.gallery-main-image {
    margin-bottom: 16px;
}

.gallery-main-image > div {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.gallery-thumbnails {
    margin-top: 16px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}

.gallery-thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #3b82f6;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation pour le spinner dans les boutons */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loader personnalisé très visible avec points animés */
.image-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
}

.image-loader span {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.image-loader span::before,
.image-loader span::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: loader-bounce 1.4s ease-in-out infinite;
}

.image-loader span::before {
    margin-left: -10px;
    animation-delay: -0.7s;
}

.image-loader span::after {
    margin-left: 10px;
    animation-delay: 0s;
}

@keyframes loader-bounce {
    0%, 80%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Alternative : Loader circulaire très visible */
.image-loader-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid #3b82f6;
    border-right: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Contrôles de zoom pour les images */
.gallery-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.gallery-zoom-controls button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.gallery-zoom-controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gallery-zoom-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-zoom-controls button i {
    font-size: 18px;
}

.gallery-zoom-controls #zoomResetBtn {
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: white !important;
}

.gallery-zoom-controls #zoomResetBtn:hover {
    background-color: #4b5563 !important;
    border-color: #4b5563 !important;
}

.gallery-zoom-controls #zoomResetBtn i {
    font-size: 16px;
}

/* Responsive pour les onglets et galerie */
@media (max-width: 768px) {
    .lesson-tabs {
        flex-wrap: wrap;
    }
    
    .lesson-tabs .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-zoom-controls {
        top: 8px;
        right: 8px;
    }
    
    .gallery-zoom-controls button {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Utilitaires de typographie
   ======================================== */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ========================================
   First Page (Landing Page) Styles
   ======================================== */

/* WordPress Image Auto Sizes */
img:is([sizes=auto i],[sizes^="auto," i]) {
    contain-intrinsic-size: 3000px 1500px;
}

/* WordPress Emoji Styles */
img.wp-smiley, img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/* Elementor Lazy Load */
.e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload),
.e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) * {
    background-image: none !important;
}
@media screen and (max-height: 1024px) {
    .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload),
    .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload) * {
        background-image: none !important;
    }
}
@media screen and (max-height: 640px) {
    .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload),
    .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload) * {
        background-image: none !important;
    }
}

/* Custom Image Slider */
body.elementor-page-124 .custom-image-swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
}
.custom-image-swiper .swiper-slide {
    position: relative;
}
.custom-image-swiper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Custom Elementor Accent Override */
body.elementor-kit-7.elementor-page-124 {
    --e-global-color-accent: #262d34;
    --e-global-color-f2fe829: #262d34;
}
body.elementor-kit-7.elementor-page-124 a:hover {
    color: #262d34 !important;
}

/* Custom Dark Navbar - Fixe en haut de la page (mais en dessous du formulaire) */
.elementor-73 {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important; /* Reste à 10000, le formulaire sera à 99999 */
    width: 100% !important;
}

/* Forcer la navbar à rester au-dessus de tout sauf le formulaire */
.elementor-location-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important; /* Reste à 10000, le formulaire sera à 99999 */
    width: 100% !important;
}

.elementor-73 .elementor-section {
    position: relative !important;
    z-index: 10000 !important;
}

.elementor-73 .elementor-element-7f860b0 {
    background-color: #262d34 !important;
    background-image: none !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* S'assurer que la navbar et le logo sont au-dessus de tout */
.elementor-element-33681b6,
.elementor-element-822bfe1,
.elementor-element-7f860b0,
.elementor-element-80783f7,
.elementor-element-4278bb2,
.elementor-element-4499734 {
    position: relative !important;
    z-index: 10000 !important;
}
.elementor-73 .elementor-element-7f860b0,
.elementor-73 .elementor-element-7f860b0 a,
.elementor-73 .elementor-element-7f860b0 .elementor-icon-list-text,
.elementor-73 .elementor-element-7f860b0 i {
    color: #ffffff !important;
}

/* Menu principal - couleur bleue charte REGIDESO */
#menu-1-4499734 .elementor-item {
    color: #111FCA !important; /* Bleu charte */
}
#menu-1-4499734 .elementor-item:hover,
#menu-1-4499734 .elementor-item:focus,
#menu-1-4499734 .elementor-item.elementor-item-active {
    color: #0c17b3 !important; /* Variation plus foncée au survol/actif */
}

/* Header layout: pousser le menu à droite et coller le bouton au coin */
.elementor-73 .elementor-element-33681b6 .elementor-container {
    display: flex !important;
    align-items: center !important;
}
.elementor-73 .elementor-element-4278bb2 { /* Colonne du menu */
    flex: 1 1 auto !important; /* Prend l'espace pour pousser à droite */
}
.elementor-73 .elementor-element-4278bb2 .elementor-widget-wrap {
    display: flex !important;
    justify-content: flex-end !important; /* Aligne le nav au bord droit de sa colonne */
    align-items: center !important;
}
.elementor-73 .elementor-element-loginbtn { /* Colonne du bouton login */
    flex: 0 0 auto !important; /* Taille auto pour coller au coin */
}
.elementor-73 .elementor-element-loginbtn .elementor-widget-wrap {
    display: flex !important;
    justify-content: flex-end !important; /* Coin droit */
    align-items: center !important;
}
.elementor-73 .elementor-element-4499734 .elementor-nav-menu--main {
    justify-content: flex-end !important; /* S'assure que les items sont à droite */
}
#menu-1-4499734 {
    margin-right: 0 !important; /* Supprime tout espace inutile à droite du menu */
}
.nav-login-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: 12px; /* Petit espace entre le menu et le bouton */
}

/* Bouton "Se connecter" (coin droit) */
.nav-login-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    background: #111FCA;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    border: 1px solid #0f1ab3;
    box-shadow: 0 6px 16px rgba(17, 31, 202, 0.25);
    transition: all 0.2s ease;
    line-height: 1;
}
.nav-login-btn:hover,
.nav-login-btn:focus {
    background: #0c17b3;
    border-color: #0c17b3;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 31, 202, 0.35);
    color: #ffffff !important;
}
.nav-login-btn:active,
.nav-login-btn:visited {
    background: #0c17b3;
    border-color: #0c17b3;
    color: #ffffff !important;
}
.nav-login-btn *,
.nav-login-btn:hover *,
.nav-login-btn:focus *,
.nav-login-btn:active * {
    color: #ffffff !important;
}
.nav-login-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.nav-login-btn__text {
    font-size: 14px;
}
@media (max-width: 767px) {
    .nav-login-wrapper {
        justify-content: flex-end;
    }
    .nav-login-btn {
        padding: 9px 14px;
        font-size: 14px;
    }
}

/* Custom Button Color */
body.elementor-page-124 .elementor-button,
body.elementor-page-124 .elementor-cta__button,
body.elementor-page-124 .elementor-widget-button .elementor-button {
    background-color: #3362F8 !important;
    border-color: #3362F8 !important;
    color: #ffffff !important;
}
body.elementor-page-124 .elementor-button:hover,
body.elementor-page-124 .elementor-cta__button:hover,
body.elementor-page-124 .elementor-widget-button .elementor-button:hover,
body.elementor-page-124 .elementor-button:focus,
body.elementor-page-124 .elementor-cta__button:focus,
body.elementor-page-124 .elementor-widget-button .elementor-button:focus {
    background-color: #3362F8 !important;
    border-color: #3362F8 !important;
    color: #ffffff !important;
}

/* Custom Logo Size */
.elementor-73 .elementor-element-822bfe1 img {
    height: 72px !important;
    width: auto !important;
}
@media (max-width: 767px) {
    .elementor-73 .elementor-element-822bfe1 img {
        height: 56px !important;
    }
}

/* Custom Cards Header Color */
body.elementor-page-124 .elementor-element-032d9c6 .elementor-heading-title,
body.elementor-page-124 .elementor-element-032d9c6 .elementor-widget-text-editor,
body.elementor-page-124 .elementor-element-032d9c6 .elementor-widget-text-editor p {
    color: #262d34 !important;
}
body.elementor-page-124 .elementor-element-032d9c6 .elementor-divider-separator {
    border-color: #262d34 !important;
    background-color: #262d34 !important;
}

/* Custom Purple Override */
body.elementor-page-124 {
    --wp--preset--color--vivid-purple: #262d34;
    --wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg, rgb(6,147,227) 0%, #262d34 100%);
    --bs-purple: #262d34;
}
body.elementor-page-124 .has-vivid-purple-color {
    color: #262d34 !important;
}
body.elementor-page-124 .has-vivid-purple-background-color {
    background-color: #262d34 !important;
}
body.elementor-page-124 .has-vivid-purple-border-color {
    border-color: #262d34 !important;
}
body.elementor-page-124 .has-vivid-cyan-blue-to-vivid-purple-gradient-background {
    background: linear-gradient(135deg, rgb(6,147,227) 0%, #262d34 100%) !important;
}

/* Custom Overlay Corner */
body.elementor-page-124 .elementor-element-74f5743 {
    top: 16px !important;
    right: auto !important;
    bottom: auto !important;
    left: 16px !important;
    z-index: 2;
}
body.elementor-page-124 .elementor-element-ca0b94a .elementor-widget-wrap {
    position: relative !important;
}

/* Custom Partners Logos */
body.elementor-page-124 .elementor-element-e174616 .swiper-slide img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
}
@media (max-width: 767px) {
    body.elementor-page-124 .elementor-element-e174616 .swiper-slide img {
        height: 32px !important;
    }
}
body.elementor-page-124 .elementor-element-b0f36e5 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
body.elementor-page-124 .elementor-element-174274a {
    margin-bottom: 8px !important;
}

/* Custom Play Button Visible */
body.elementor-page-124 .elementor-element-2ff07bd .ekit-video-popup-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent !important;
    box-shadow: none;
    z-index: 3;
}
body.elementor-page-124 .elementor-element-2ff07bd .ekit-video-popup-btn i {
    font-size: 28px;
    color: #ffffff !important;
    line-height: 1;
}
body.elementor-page-124 .elementor-element-2ff07bd .ekit-video-popup-btn img {
    width: 72px;
    height: 72px;
    display: block;
}

/* Custom Footer Color */
body.elementor-page-124 .elementor-161 .elementor-top-section,
body.elementor-page-124 .elementor-element-ece27dc {
    background-color: #0B1320 !important;
    background-image: none !important;
}
body.elementor-page-124 .elementor-element-ece27dc > .elementor-background-overlay {
    background: transparent !important;
    opacity: 1 !important;
}
body.elementor-page-124 .elementor-element-0b548ff {
    background-color: #0B1320 !important;
    background-image: none !important;
}
body.elementor-page-124 .elementor-element-0b548ff > .elementor-background-overlay {
    background: transparent !important;
    opacity: 1 !important;
}
body.elementor-page-124 .elementor-161,
body.elementor-page-124 .elementor-161 .elementor-widget,
body.elementor-page-124 .elementor-161 .elementor-widget-container,
body.elementor-page-124 .elementor-161 .elementor-heading-title,
body.elementor-page-124 .elementor-161 .elementor-icon-list-text,
body.elementor-page-124 .elementor-161 .elementor-widget-text-editor,
body.elementor-page-124 .elementor-161 .elementor-widget-text-editor p {
    color: #ffffff !important;
}
body.elementor-page-124 .elementor-161 a {
    color: #ffffff !important;
}
body.elementor-page-124 .elementor-161 a:hover {
    color: #e2e8f0 !important;
}

/* Custom Preloader Overlay */
e-page-transition {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* Custom Disable Animations */
body.elementor-page-124 .elementor-invisible {
    visibility: visible !important;
}
body.elementor-page-124 [data-settings*='"_animation"'],
body.elementor-page-124 .elementor-animated-content {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Animated Text Effect */
.animated-text-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.2em;
    line-height: 1.2em;
    min-width: 150px;
    width: auto;
}
.animated-text-container__text {
    display: none;
}
.animated-text-container__list {
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
    animation-name: change;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    position: relative;
    line-height: 1.2em;
    height: 4.8em;
    width: 100%;
}
.animated-text-container__list__item {
    line-height: 1.2em;
    margin: 0;
    padding: 0;
    height: 1.2em;
    display: block;
    white-space: nowrap;
    width: 100%;
    color: #ffffff;
    text-shadow: 
        0 0 5px rgba(59, 130, 246, 0.8),
        0 0 10px rgba(59, 130, 246, 0.6),
        0 0 15px rgba(59, 130, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* Style spécifique pour "Se perfectionner" et "S'instruire" */
.animated-text-container__list__item:nth-child(3),
.animated-text-container__list__item:nth-child(4) {
    color: #ffffff;
    text-shadow: 
        0 0 6px rgba(59, 130, 246, 1),
        0 0 12px rgba(59, 130, 246, 0.8),
        0 0 18px rgba(59, 130, 246, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

/* Style pour "pour mieux servir !" */
.hero-slider-section h2 .elementor-heading-title span:last-child {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.8),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(59, 130, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    display: inline-block;
}
@-webkit-keyframes change {
    0%, 12.66%, 100% { transform: translate3d(0, 0, 0); }
    16.66%, 29.32% { transform: translate3d(0, -25%, 0); }
    33.32%, 45.98% { transform: translate3d(0, -50%, 0); }
    49.98%, 62.64% { transform: translate3d(0, -75%, 0); }
    66.64%, 79.3% { transform: translate3d(0, -50%, 0); }
    83.3%, 95.96% { transform: translate3d(0, -25%, 0); }
}
@-moz-keyframes change {
    0%, 12.66%, 100% { transform: translate3d(0, 0, 0); }
    16.66%, 29.32% { transform: translate3d(0, -25%, 0); }
    33.32%, 45.98% { transform: translate3d(0, -50%, 0); }
    49.98%, 62.64% { transform: translate3d(0, -75%, 0); }
    66.64%, 79.3% { transform: translate3d(0, -50%, 0); }
    83.3%, 95.96% { transform: translate3d(0, -25%, 0); }
}
@-o-keyframes change {
    0%, 12.66%, 100% { transform: translate3d(0, 0, 0); }
    16.66%, 29.32% { transform: translate3d(0, -25%, 0); }
    33.32%, 45.98% { transform: translate3d(0, -50%, 0); }
    49.98%, 62.64% { transform: translate3d(0, -75%, 0); }
    66.64%, 79.3% { transform: translate3d(0, -50%, 0); }
    83.3%, 95.96% { transform: translate3d(0, -25%, 0); }
}
@keyframes change {
    0%, 12.66%, 100% { transform: translate3d(0, 0, 0); }
    16.66%, 29.32% { transform: translate3d(0, -25%, 0); }
    33.32%, 45.98% { transform: translate3d(0, -50%, 0); }
    49.98%, 62.64% { transform: translate3d(0, -75%, 0); }
    66.64%, 79.3% { transform: translate3d(0, -50%, 0); }
    83.3%, 95.96% { transform: translate3d(0, -25%, 0); }
}

/* Custom Reduce Section Spacing */
body.elementor-page-124 .elementor-element-b0f36e5 {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
}
body.elementor-page-124 .elementor-element-09653ef {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
}
body.elementor-page-124 .elementor-element-2527a35 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 90px !important;
    padding-bottom: 0 !important;
}

/* Ajouter un petit espace entre la section "Notre vision/mission/histoire" et "NOTRE ENGAGEMENT" */
.elementor-element-2527a35.elementor-section,
.elementor-element-2527a35 {
    margin-bottom: 90px !important;
    padding-bottom: 0 !important;
}

.elementor-element-d6f8cd5.elementor-section,
.elementor-element-d6f8cd5 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* S'assurer que les sections Elementor n'ont pas d'espace par défaut */
section.elementor-element-2527a35 {
    margin-bottom: 90px !important;
}

section.elementor-element-d6f8cd5 {
    margin-top: 0 !important;
}

/* Hero Login Form Styles - SOLUTION RADICALE */
.hero-login-form {
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: -450px;
    bottom: 0 !important;
    width: 450px !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    z-index: 2147483647 !important; /* Z-index maximum possible (2^31 - 1) */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2) !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    will-change: right !important;
    pointer-events: auto !important;
    /* Forcer le formulaire à sortir de tout contexte de stacking */
    contain: layout style paint !important;
}
.hero-login-form.show {
    right: 0;
}
.hero-login-content {
    position: relative;
    background: #ffffff;
    padding: 100px 35px 40px 35px; /* Ajout de padding-top pour laisser de l'espace pour la navbar */
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hero-login-content form {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    transition: all 0.3s ease;
    z-index: 1001;
}
.hero-login-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}
.hero-login-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 60px; /* Augmenté de 40px à 60px pour descendre le logo */
}
.hero-login-title {
    display: none;
    font-size: 20px;
    font-weight: 600;
    color: #333333 !important;
    margin: 0;
    line-height: 1.4;
    text-shadow: none;
    padding: 0 20px;
}
.hero-login-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 30px;
    margin-top: 10px; /* Ajout d'un espace supplémentaire en haut */
}
.hero-login-subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0;
}
.hero-login-error {
    background: #fee;
    border-left: 4px solid #dc3545;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #dc3545;
    font-size: 14px;
}
.hero-login-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #155724;
    font-size: 14px;
}
.hero-forgot-password-info {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}
.hero-forgot-info-text {
    margin: 0;
    color: #495057;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}
.hero-password-group {
    display: block;
}
.hero-form-mode[data-mode="forgot"] .hero-password-group,
.hero-form-mode[data-mode="forgot"] .hero-login-separator,
.hero-form-mode[data-mode="forgot"] .hero-social-btn {
    display: none;
}
.hero-form-mode[data-mode="reset"] .hero-login-separator,
.hero-form-mode[data-mode="reset"] .hero-social-btn {
    display: none;
}
.hero-form-input-modern[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}
.hero-form-group {
    position: relative;
    margin-bottom: 14px;
}
.hero-form-text-label {
    display: block;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.hero-input-wrapper {
    position: relative;
}
.hero-form-input-modern {
    width: 100%;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #333333;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.hero-form-input-modern::placeholder {
    color: #9ca3af;
}
.hero-form-input-modern:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.hero-password-wrapper {
    position: relative;
}
.hero-password-wrapper .hero-form-input-modern {
    padding-right: 35px;
}
.hero-toggle-password-modern {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    z-index: 1;
    transition: color 0.2s ease;
}
.hero-toggle-password-modern:hover {
    color: #333333;
}
.hero-forgot-password-container {
    text-align: right;
    margin-bottom: 24px;
}
.hero-forgot-link-modern {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.hero-forgot-link-modern:hover {
    color: #0056b3;
    text-decoration: underline;
}
.hero-submit-btn-modern {
    width: 100%;
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 0;
}
.hero-submit-btn-modern:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.hero-submit-btn-modern:active {
    transform: translateY(0);
}
.hero-forgot-submit-btn {
    background: #007bff;
}
.hero-forgot-submit-btn:hover {
    background: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.hero-login-separator {
    display: flex;
    align-items: center;
    margin: 12px 0;
    gap: 8px;
}
.hero-separator-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.hero-separator-text {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}
.hero-social-btn {
    width: 100%;
    background: #ffffff;
    color: #333333;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-bottom: 0;
}
.hero-social-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.hero-social-icon {
    width: 16px;
    height: 16px;
}
.hero-login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.hero-footer-text {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}
.hero-signup-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.hero-signup-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.hero-login-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483646 !important; /* Juste en dessous du formulaire */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
    transform: translateZ(0) !important;
    pointer-events: none !important; /* Désactiver les interactions quand caché */
    contain: layout style paint !important;
}
.hero-login-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important; /* Afficher quand la classe show est présente */
    pointer-events: auto !important; /* Activer les interactions quand visible */
}

/* SOLUTION RADICALE : Forcer le formulaire au-dessus de TOUT */
.hero-login-form,
#heroLoginForm {
    z-index: 2147483647 !important; /* Z-index maximum */
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: -450px !important;
    bottom: 0 !important;
}

/* SOLUTION : Forcer les éléments Elementor à être en dessous du formulaire (sans casser l'affichage) */
.elementor-section:not(.elementor-73):not(.elementor-location-header):not(.hero-slider-section) {
    position: relative;
    z-index: 1;
}


/* Forcer les cartes de cours à être en dessous du formulaire */
.modern-course-card {
    position: relative;
    z-index: 1;
}

/* Forcer les sections Elementor à rester en dessous du formulaire */
body.elementor-page-124 .elementor-section:not(.elementor-73):not(.elementor-location-header) {
    z-index: 1 !important;
    position: relative;
}

/* S'assurer que les sections footer et autres sections en bas sont en dessous du formulaire */
body.elementor-page-124 .elementor-element-ece27dc,
body.elementor-page-124 .elementor-161,
body.elementor-page-124 .elementor-element-84c1b3b,
body.elementor-page-124 .elementor-element-765d166,
body.elementor-page-124 .elementor-element-1232248 {
    z-index: 1 !important;
    position: relative !important;
}

/* S'assurer que le formulaire et son contenu sont toujours visibles et au-dessus de TOUT */
.hero-login-form.show,
#heroLoginForm.show {
    z-index: 2147483647 !important; /* Z-index maximum */
    position: fixed !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 450px !important;
}


/* Forcer le formulaire à être au-dessus même quand on scroll */
.hero-login-form,
.hero-login-form.show {
    transform: translateZ(0) !important; /* Forcer l'accélération matérielle et créer un nouveau contexte */
    will-change: right !important; /* Optimiser les performances */
}

.hero-login-content {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .hero-login-form {
        width: 100%;
        right: -100%;
        top: 0 !important; /* Commence depuis le haut sur mobile aussi */
        height: 100vh !important; /* Prend toute la hauteur */
        z-index: 99999 !important; /* Au-dessus de tout */
    }
    .hero-login-form.show {
        right: 0;
    }
    .hero-login-content {
        padding: 100px 20px 30px 20px; /* Ajout de padding-top pour la navbar */
    }
    .hero-login-title {
        font-size: 22px;
    }
    .hero-login-overlay {
        top: 0 !important;
        height: 100vh !important;
        z-index: 99998 !important;
    }
}

/* ========================================
   Hero Background Slider
   ======================================== */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    min-height: 450px; /* Hauteur réduite */
    background-image: none !important;
    background: none !important;
}

/* Forcer la suppression de toute image de fond sur la section hero */
.elementor-element-333745a {
    background-image: none !important;
    background: none !important;
}

.elementor-element-333745a::before,
.elementor-element-333745a::after {
    background-image: none !important;
    display: none !important;
}

@media (min-width: 768px) {
    .hero-slider-section {
        min-height: 500px;
    }
}

@media (min-width: 1200px) {
    .hero-slider-section {
        min-height: 550px;
    }
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    /* Préserver la qualité de l'image */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Préserver la qualité lors du redimensionnement */
    -ms-interpolation-mode: nearest-neighbor;
}

/* Fond pour éviter les espaces vides si l'image ne couvre pas tout */
.hero-background-slider {
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay sombre pour assombrir les images */
.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* Assurer que le contenu reste au-dessus du slider et de l'overlay */
.hero-slider-section .elementor-container {
    position: relative;
    z-index: 2;
}

/* S'assurer que le contenu de la section hero ne cache pas le formulaire */
.hero-slider-section .elementor-container,
.hero-slider-section .elementor-widget-wrap,
.hero-slider-section .elementor-element {
    position: relative;
    z-index: 2;
}

/* Améliorer la visibilité de tous les textes dans la section hero */
.hero-slider-section .elementor-heading-title,
.hero-slider-section .elementor-heading-title *,
.hero-slider-section h2,
.hero-slider-section h2 * {
    color: #ffffff !important;
}

/* Style général pour tous les textes animés */
.hero-slider-section .animated-text-container__list__item {
    color: #ffffff !important;
    text-shadow: 
        0 0 5px rgba(59, 130, 246, 0.8),
        0 0 10px rgba(59, 130, 246, 0.6),
        0 0 15px rgba(59, 130, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Style pour le texte "pour mieux servir !" avec effet de lumière bleue */
.hero-slider-section h2 .elementor-heading-title > span:last-of-type {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.8),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(59, 130, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
    display: inline-block;
}

/* Cacher l'overlay de fond s'il existe encore */
.hero-slider-section .elementor-background-overlay {
    display: none !important;
}

/* Cacher toute image de fond supplémentaire qui pourrait apparaître */
.hero-slider-section .elementor-background-overlay::before,
.hero-slider-section .elementor-background-overlay::after,
.hero-slider-section::before,
.hero-slider-section::after {
    display: none !important;
    background-image: none !important;
}

/* S'assurer qu'aucune image de fond n'est appliquée via Elementor */
.elementor-element-333745a .elementor-background-overlay {
    display: none !important;
    background-image: none !important;
    background: none !important;
}

/* Réduire la taille du texte "socle d'un avenir meilleur" pour qu'il tienne sur une ligne */
.elementor-element-09c598c .elementor-heading-title {
    font-size: 1.8rem !important;
    white-space: nowrap !important;
}

/* Appliquer la même taille au texte "Faire progresser les compétences de nos Agents" */
.elementor-element-efb0854 .elementor-heading-title {
    font-size: 1.8rem !important;
    white-space: nowrap !important;
}

/* Ajuster le scroll pour que le titre "Formations" soit visible lors du clic sur le lien */
#formations {
    scroll-margin-top: 130px !important;
    scroll-padding-top: 130px !important;
}

/* Scroll offset pour la section "À Propos" */
#apropos {
    scroll-margin-top: 130px !important;
    scroll-padding-top: 130px !important;
}

.elementor-element-3f6cd43 {
    scroll-margin-top: 130px !important;
    scroll-padding-top: 130px !important;
}

/* Scroll offset pour le titre "Présentation de notre plateforme" */
#titre-presentation {
    scroll-margin-top: 130px !important;
    scroll-padding-top: 130px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Alternative avec padding-top si scroll-margin-top ne fonctionne pas */
.elementor-element-558fa82 {
    scroll-margin-top: 130px !important;
    scroll-padding-top: 130px !important;
}

/* S'assurer que le titre "Formations" est visible */
.elementor-element-d9c3709 {
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Scroll offset pour le titre "Formations" */
#titre-formations {
    scroll-margin-top: 130px !important;
    scroll-padding-top: 130px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Supprimer l'espace de la section footer supprimée */
.elementor-element-c0ad702 {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Supprimer l'espace vide après la suppression de la section footer */
.elementor-element-84c1b3b {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Aligner la première ligne du texte descriptif avec le titre "Formations" */
.elementor-element-4e42fcf .elementor-widget-text-editor {
    display: flex;
    align-items: flex-start;
}

.elementor-element-4e42fcf .elementor-widget-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Cacher la barre noire (divider) après le texte */
.elementor-element-9552db7 {
    display: none !important;
}

/* Aligner le titre "Notre Engagement" avec le début du bloc d'images */
.elementor-element-d6f8cd5 .elementor-container {
    display: flex;
    align-items: flex-start;
}

.elementor-element-d57852c {
    display: flex;
    align-items: flex-start;
}

.elementor-element-d57852c .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0 !important;
    justify-content: flex-start !important;
}

.elementor-element-d57852c .elementor-element-4ee42c9 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    width: auto !important;
    text-align: left !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
}

/* Forcer l'alignement à gauche pour le widget width-auto */
.elementor-element-d57852c .elementor-widget__width-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    display: block !important;
    width: auto !important;
}

/* Surcharger les styles Elementor qui centrent par défaut */
.elementor-element-d57852c .elementor-widget-wrap {
    text-align: left !important;
}

.elementor-element-d57852c .elementor-widget {
    text-align: left !important;
}

/* Style très spécifique pour forcer l'alignement à gauche */
.elementor-element.elementor-element-4ee42c9.elementor-widget__width-auto.elementor-widget.elementor-widget-heading {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    display: block !important;
    width: auto !important;
    float: none !important;
}

.elementor-element.elementor-element-4ee42c9 .elementor-widget-container {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: inline-block !important;
    width: auto !important;
}

.elementor-element-d57852c .elementor-element-4ee42c9.elementor-widget__width-auto {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.elementor-element-d57852c .elementor-element-4ee42c9 .elementor-widget-container {
    text-align: left !important;
    width: auto !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    border: 1px solid #000;
    border-radius: 0;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
}

.elementor-element-d57852c .elementor-element-4ee42c9 .elementor-heading-title {
    text-align: left !important;
    margin: 0 !important;
    display: inline-block !important;
}

.elementor-element-d57852c .elementor-element-4ee42c9 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    width: auto !important;
    text-align: left !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.elementor-element-d57852c .elementor-heading-title {
    text-align: left !important;
    margin-left: 0 !important;
    width: auto !important;
}

/* Aligner aussi le texte "Former des agents..." à gauche */
.elementor-element-d57852c .elementor-element-330a7d5 {
    text-align: left !important;
    width: 100% !important;
}

.elementor-element-d57852c .elementor-element-330a7d5 .elementor-widget-container {
    text-align: left !important;
}

.elementor-element-d57852c .elementor-element-330a7d5 .elementor-heading-title {
    text-align: left !important;
    font-size: 1.8rem !important;
}

/* Forcer l'empilement vertical des icon-box */
.elementor-element-c8dbfdb .elementor-container {
    flex-direction: column !important;
    display: flex !important;
}

.elementor-element-c8dbfdb .elementor-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-element-c8dbfdb .elementor-column:last-child {
    margin-bottom: 0 !important;
}

/* Aligner les icon-box au même niveau */
.elementor-element-c8dbfdb .elementor-icon-box-wrapper {
    display: flex !important;
    align-items: flex-start !important;
}

.elementor-element-c8dbfdb .elementor-icon-box {
    width: 100% !important;
}

.elementor-element-c8dbfdb .elementor-widget-icon-box {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* Supprimer toute indentation sur les colonnes et widgets */
.elementor-element-6bb5a72,
.elementor-element-6f1e370 {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.elementor-element-6bb5a72 .elementor-widget-wrap,
.elementor-element-6f1e370 .elementor-widget-wrap {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.elementor-element-ef16dc2,
.elementor-element-96e9b86 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.elementor-element-ef16dc2 .elementor-widget-container,
.elementor-element-96e9b86 .elementor-widget-container {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* S'assurer que les deux icon-box sont alignés exactement au même niveau */
.elementor-element-c8dbfdb .elementor-column .elementor-widget-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-element-c8dbfdb .elementor-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Aligner les icônes et le contenu au même niveau pour tous les éléments */
.elementor-element-6bb5a72 .elementor-icon-box-wrapper,
.elementor-element-6f1e370 .elementor-icon-box-wrapper,
.elementor-element-new-session-1 .elementor-icon-box-wrapper,
.elementor-element-new-session-2 .elementor-icon-box-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Appliquer les mêmes styles aux nouveaux points */
.elementor-element-new-session-1,
.elementor-element-new-session-2 {
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 20px !important;
}

.elementor-element-new-session-2 {
    margin-bottom: 0 !important;
}

.elementor-element-new-session-1 .elementor-widget-wrap,
.elementor-element-new-session-2 .elementor-widget-wrap {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.elementor-element-new-session-icon-1,
.elementor-element-new-session-icon-2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.elementor-element-new-session-icon-1 .elementor-widget-container,
.elementor-element-new-session-icon-2 .elementor-widget-container {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* S'assurer que TOUS les icon-box dans cette section ont exactement le même style */
.elementor-element-c8dbfdb .elementor-widget-icon-box .elementor-icon-box-title,
.elementor-element-c8dbfdb .elementor-widget-icon-box .elementor-icon-box-title span {
    font-weight: bold !important;
    font-size: 18px !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
}

.elementor-element-c8dbfdb .elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon,
.elementor-element-c8dbfdb .elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon i,
.elementor-element-c8dbfdb .elementor-widget-icon-box .elementor-icon i {
    font-size: 28px !important;
    color: #374151 !important;
    width: 28px !important;
    height: 28px !important;
}

.elementor-element-c8dbfdb .elementor-widget-icon-box .elementor-icon-box-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

/* Justifier les textes des descriptions dans les icon-box */
.elementor-element-c8dbfdb .elementor-icon-box-description {
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* Justifier le texte du blockquote REGI ACADEMIA */
.elementor-element-d6de9b8 .elementor-blockquote__content {
    text-align: justify !important;
    text-justify: inter-word !important;
}

.elementor-element-9e75b4d {
    display: flex;
    align-items: flex-start;
}

.elementor-element-9e75b4d .elementor-widget-wrap {
    display: flex;
    align-items: flex-start;
    padding-top: 0 !important;
}

.elementor-element-9e75b4d .elementor-element-8d4ee61 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Espacement entre les deux colonnes */
.elementor-element-032d9c6 .elementor-container {
    gap: 100px !important;
}

/* Aligner verticalement le texte avec le titre "Formations" */
.elementor-element-4e42fcf {
    display: flex;
    align-items: flex-start;
}

.elementor-element-4e42fcf .elementor-widget-wrap {
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

@media (max-width: 768px) {
    .elementor-element-032d9c6 .elementor-container {
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .elementor-element-09c598c .elementor-heading-title {
        font-size: 1.4rem !important;
    }
    
    .elementor-element-efb0854 .elementor-heading-title {
        font-size: 1.4rem !important;
    }
    
    .elementor-element-d57852c .elementor-element-330a7d5 .elementor-heading-title {
        font-size: 1.4rem !important;
    }
}

/* Justifier le texte des sections Notre vision, Notre mission, Notre histoire */
.elementor-element-673df78 p,
.elementor-element-de06acd p,
.elementor-element-b362db3 p {
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* ========================================
   Simple Course Cards Design
   ======================================== */
.modern-course-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.modern-course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: #9ca3af;
    transform: translateY(-10px);
}

.course-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    box-sizing: border-box;
}

.course-card-image {
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.course-card-overlay {
    display: none;
}

.course-card-badge {
    display: none;
}

.course-card-content {
    padding: 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-height: 0;
    box-sizing: border-box;
    height: calc(300px - 70px);
    overflow: hidden;
}

.course-card-title {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    min-height: 36px !important;
    height: 36px !important;
}

.course-card-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    min-height: 34px;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.course-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 11px;
    flex-shrink: 0;
}

.course-meta-item i {
    font-size: 12px;
    color: #9ca3af;
}

.course-card-content-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.course-content-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.course-content-type i {
    font-size: 13px;
}

.course-card-footer {
    margin-top: auto;
    padding-top: 2px;
    flex-shrink: 0;
    height: auto;
}

.course-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 32px;
    border: 1px solid #3b82f6;
}

.course-card-button:hover {
    background: #ffffff;
    color: #3b82f6;
    border-color: #3b82f6;
}

.course-card-button:hover i {
    color: #3b82f6;
}

.course-card-button i {
    font-size: 14px;
    transition: color 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-course-card {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .course-card-image-wrapper {
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
    }
    
    .course-card-content {
        padding: 10px;
        height: calc(280px - 65px);
    }
    
    .course-card-title {
        font-size: 13px;
        min-height: 32px;
        height: 32px;
    }
    
    .course-card-description {
        font-size: 11px;
        min-height: 30px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .course-card-meta {
        gap: 5px;
    }
    
    .course-meta-item {
        font-size: 10px;
    }
    
    .course-card-content-types {
        gap: 4px;
    }
    
    .course-content-type {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .course-content-type i {
        font-size: 12px;
    }
    
    .course-card-button {
        padding: 6px 12px;
        font-size: 11px;
        height: 30px;
    }
}

/* Espacement entre les cartes et hauteur uniforme */
.elementor-element-0a675ff .elementor-container,
.elementor-element-266f4c3 .elementor-container {
    gap: 16px !important;
}

.elementor-element-0a675ff .elementor-column,
.elementor-element-266f4c3 .elementor-column {
    margin-bottom: 30px;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
}

.elementor-element-0a675ff .elementor-widget-wrap,
.elementor-element-266f4c3 .elementor-widget-wrap {
    height: auto !important;
    display: block !important;
}

.elementor-element-0a675ff .modern-course-card,
.elementor-element-266f4c3 .modern-course-card {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
}

/* Forcer le titre à ne pas être en gras */
.modern-course-card .course-card-title,
.elementor-element-0a675ff .course-card-title,
.elementor-element-266f4c3 .course-card-title {
    font-weight: 400 !important;
    font-size: 15px !important;
}

/* Forcer les images à être réduites */
.modern-course-card .course-card-image,
.elementor-element-0a675ff .course-card-image,
.elementor-element-266f4c3 .course-card-image {
    background-size: contain !important;
    background-position: center !important;
    max-width: 70% !important;
    max-height: 100% !important;
}

@media (min-width: 769px) {
    .elementor-element-0a675ff .elementor-column,
    .elementor-element-266f4c3 .elementor-column {
        margin-bottom: 0;
    }
}
