/**
 * MyEureka Prime Video Style CSS
 * Design exact comme la maquette
 */

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
    --eureka-primary: #774ffe;
    --eureka-primary-light: #9166ff;
    --eureka-primary-gradient: linear-gradient(135deg, #774ffe 0%, #9166ff 100%);
    --eureka-bg-light: #ffffff;
    --eureka-text-dark: #1a1a2e;
    --eureka-text-secondary: #6b7280;
    --eureka-text-muted: #9ca3af;
    --eureka-border: #e5e7eb;
    --eureka-radius: 8px;
    --eureka-radius-lg: 12px;
    --eureka-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --eureka-transition: 0.3s ease;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.eureka-hero {
    position: relative;
    width: 100%;
    height: 800px;
    min-height: 424px;
    background: #f9f9ff;
    overflow: hidden;
    z-index: 1;
}

.eureka-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* IMPORTANT: Les slides sont en position absolute pour ne montrer qu'une seule à la fois */
.eureka-hero-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    z-index: 1;
}

.eureka-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Vidéo/Image de fond - plein écran */
.eureka-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.eureka-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Vidéo dans le Hero */
.eureka-hero-video {
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Pour les iframes YouTube/Vimeo */
iframe.eureka-hero-video {
    width: 177.78vh;
    height: 100vh;
    min-width: 115%;
    min-height: 100%;
    pointer-events: none;
}

/* Overlay gauche pour le contenu - Zone de lecture */
.eureka-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    z-index: 0;
    background: var(--hero-gradient-bg, radial-gradient(ellipse 100% 100% at 0% 50%, rgba(249, 249, 255, 1) 0%, rgba(249, 249, 255, 1) 40%, rgba(249, 249, 255, 0.8) 55%, rgba(249, 249, 255, 0.4) 70%, transparent 100%));
}

/* Overlay sombre sur la vidéo/image */
.eureka-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.4));
    z-index: -1;
    pointer-events: none;
}

/* Bordures haut/bas */
.eureka-hero-border-top,
.eureka-hero-border-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 6;
    pointer-events: none;
}

.eureka-hero-border-top {
    top: 0;
    background: linear-gradient(to bottom, var(--hero-gradient-color, #f9f9ff) 0%, transparent 100%);
}

.eureka-hero-border-bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--hero-gradient-color, #f9f9ff) 0%, transparent 100%);
}

/* Supprimer l'ancien pseudo-element */
.eureka-hero-bg::before {
    display: none;
}

/* Overlay elliptique noir sur la vidéo - désactivé */
.eureka-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Contenu à gauche */
.eureka-hero-content {
    position: absolute;
    top: 0;
    left: 219px;
    width: 31%;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    z-index: 10;
    box-sizing: border-box;
}

/* Catégorie - Badge petit arrondi */
.eureka-hero-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #1a1a2e;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 25px;
    text-transform: none;
    letter-spacing: 0;
}

/* Titre stylisé */
.eureka-hero-title {
    font-size: var(--hero-title-size, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--hero-title-color, #1a1a2e);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.eureka-hero-title .title-italic {
    display: block;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: calc(var(--hero-title-size, 48px) * 0.9);
}

.eureka-hero-title .title-bold {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    font-size: var(--hero-title-size, 48px);
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Description du cours */
.eureka-hero-description {
    margin-bottom: 25px;
    color: var(--hero-title-color, #1a1a2e);
    font-size: var(--hero-desc-size, 16px);
    line-height: 1.6;
    max-width: 500px;
    opacity: 0.85;
}

.eureka-hero-description-label {
    font-weight: 700;
    margin-bottom: 5px;
}

.eureka-hero-description-text {
    font-weight: 400;
}

/* Infos (durée, leçons, progression) - cachées */
.eureka-hero-info {
    display: none;
}

.eureka-hero-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eureka-hero-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--eureka-primary);
    flex-shrink: 0;
}

/* Barre de progression */
.eureka-hero-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eureka-hero-progress-bar {
    width: 150px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.eureka-hero-progress-fill {
    height: 100%;
    background: var(--eureka-primary-gradient);
    border-radius: 3px;
}

.eureka-hero-progress-text {
    font-weight: 600;
    color: var(--eureka-primary);
}

/* Boutons */
.eureka-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.eureka-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--eureka-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eureka-hero-btn-primary {
    background: #1a1a2e;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.eureka-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
    color: #fff !important;
    background: #2a2a4e;
}

.eureka-hero-btn-primary svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Boutons icônes ronds pleins */
.eureka-hero-icon-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    border: none;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--eureka-transition);
    padding: 0;
}

.eureka-hero-icon-btn:hover {
    background: #2a2a4e;
    transform: scale(1.05);
}

.eureka-hero-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* Navigation du Hero - Boutons blancs arrondis */
.eureka-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all var(--eureka-transition);
}

.eureka-hero-nav:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

.eureka-hero-nav svg {
    width: 22px;
    height: 22px;
}

.eureka-hero-prev {
    left: 25px;
}

.eureka-hero-next {
    right: 25px;
}

/* Points de navigation en bas à gauche */
.eureka-hero-dots {
    position: absolute;
    bottom: 30px;
    left: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.eureka-hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(26, 26, 46, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all var(--eureka-transition);
}

.eureka-hero-dot:hover {
    background: rgba(26, 26, 46, 0.5);
}

.eureka-hero-dot.active {
    background: #1a1a2e;
    width: 24px;
    border-radius: 4px;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.eureka-section {
    padding: 0 20px;
    background: transparent;
    position: relative;
    margin-bottom: 40px;
    z-index: 1;
}

.eureka-section:hover {
    z-index: 10;
}

.eureka-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 10px;
    gap: 20px;
}

.eureka-section-header.hidden {
    display: none;
}

.eureka-header-left {
    flex: 1;
    min-width: 0;
}

.eureka-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--eureka-text-dark);
    margin: 0;
}

.eureka-section-description {
    font-size: 14px;
    color: var(--eureka-text-muted);
    margin: 4px 0 0 0;
    font-weight: 400;
}

.eureka-section-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--eureka-text-dark);
    text-decoration: none;
    transition: all var(--eureka-transition);
}

.eureka-section-link:hover {
    color: var(--eureka-primary);
}

.eureka-section-link svg {
    width: 18px;
    height: 18px;
}

/* Header right - Flèches + Voir tout */
.eureka-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Flèches dans le header */
/* Flèches masquées - grille avec retour à la ligne */
.eureka-slider-arrows {
    display: none !important;
}

.eureka-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--eureka-primary, #774ffe);
    border: 2px solid var(--eureka-primary, #774ffe);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(119, 79, 254, 0.3);
}

.eureka-arrow:hover:not(:disabled) {
    background: var(--eureka-primary-dark, #5a3dd6);
    border-color: var(--eureka-primary-dark, #5a3dd6);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(119, 79, 254, 0.4);
}

.eureka-arrow:disabled,
.eureka-arrow[disabled] {
    cursor: not-allowed;
    opacity: 0.4;
}

.eureka-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* =====================================================
   SUGGESTIONS DE COURS
   ===================================================== */
.eureka-suggestions {
    margin-bottom: 40px;
}

.eureka-suggestions-header {
    flex-wrap: wrap;
    gap: 15px;
}

.eureka-suggestions-intro {
    flex: 1;
}

.eureka-section-subtitle {
    color: var(--eureka-text-light, #888);
    font-size: 16px;
    margin-top: 8px;
    font-weight: 400;
}

/* Style spécial pour les suggestions - mise en avant */
.eureka-suggestions .eureka-cards-track {
    padding-top: 15px;
}

.eureka-suggestions .eureka-card {
    border: 2px solid transparent;
    transition: all 0.3s ease, border-color 0.3s ease;
}

.eureka-suggestions .eureka-card:hover {
    border-color: var(--eureka-primary, #774ffe);
}

/* =====================================================
   CARDS SLIDER
   ===================================================== */
.eureka-cards-slider {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible; /* Permet le zoom */
}

.eureka-cards-track {
    display: flex;
    flex-wrap: wrap; /* GRILLE avec retour à la ligne */
    align-items: flex-start;
    gap: var(--card-gap, 20px);
    row-gap: var(--row-gap, 40px);
    padding: 20px 0 40px 0; /* Espace pour le zoom en bas */
}

/* Scrollbar - supprimé car grille */

/* =====================================================
   COURSE CARDS - Style Prime Video
   ===================================================== */

/* CARTE - Conteneur */
.eureka-card {
    position: relative;
    flex: 0 0 var(--card-width, 280px);
    width: var(--card-width, 280px);
    max-width: var(--card-width, 280px);
    margin-bottom: var(--row-gap, 40px);
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 1;
    transition: z-index 0s 0.3s;
}

.eureka-card:hover {
    z-index: 100 !important;
    transition: z-index 0s 0s;
}

/* Inner wrapper - position relative pour conserver la hauteur */
.eureka-card-inner {
    position: relative;
    width: 100%;
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,0.08));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
}

.eureka-card:hover .eureka-card-inner {
    transform: scale(1.02); /* Zoom léger pour overlay */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Thumbnail */
.eureka-card-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: var(--card-ratio, 62.5%);
    overflow: hidden;
    background: #f0f0f0;
    border-radius: var(--card-radius, 12px) var(--card-radius, 12px) 0 0;
}

/* =====================================================
   VIDÉO AU SURVOL - Transition fluide
   ===================================================== */

/* Image principale - toujours au-dessus au début */
.eureka-card-thumbnail img.eureka-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    opacity: 1;
    transition: opacity 1s ease-out;
}

/* Container vidéo - en dessous de l'image */
.eureka-card-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    overflow: hidden;
}

/* Vidéo chargée - container visible */
.eureka-card.video-loaded .eureka-card-video-container {
    opacity: 1;
}

/* Fondu de l'image après 3 secondes */
.eureka-card.video-playing .eureka-card-img {
    opacity: 0;
}

/* Permettre interaction avec bouton mute */
.eureka-card.video-playing .eureka-card-video-container {
    pointer-events: auto;
}

.eureka-card-video-container video,
.eureka-card-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Bouton Mute/Unmute - Style Pro */
.eureka-card-mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.eureka-card.video-loaded .eureka-card-mute-btn,
.eureka-card.video-playing .eureka-card-mute-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.eureka-card-mute-btn:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.08);
}

.eureka-card-mute-btn svg {
    width: 18px;
    height: 18px;
}

/* État muted (par défaut) */
.eureka-card-mute-btn .icon-muted {
    display: block;
}

.eureka-card-mute-btn .icon-unmuted {
    display: none;
}

/* État unmuted - bordure colorée */
.eureka-card-mute-btn.unmuted {
    border-color: var(--eureka-primary, #774ffe);
    background: rgba(119, 79, 254, 0.2);
}

.eureka-card-mute-btn.unmuted:hover {
    background: rgba(119, 79, 254, 0.35);
    border-color: var(--eureka-primary, #774ffe);
}

.eureka-card-mute-btn.unmuted .icon-muted {
    display: none;
}

.eureka-card-mute-btn.unmuted .icon-unmuted {
    display: block;
}

/* Icône en haut à gauche */
.eureka-card-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: var(--eureka-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
}

.eureka-card-icon svg {
    width: 18px;
    height: 18px;
}

/* Badge prime en bas à droite - MASQUÉ car dans le contenu */
.eureka-card-prime-badge {
    display: none;
}

/* Barre de progression */
.eureka-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.3);
    z-index: 5;
}

.eureka-card-progress-fill {
    height: 100%;
    background: var(--eureka-primary);
}

/* =====================================================
   CONTENU DE LA CARTE
   ===================================================== */

.eureka-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--eureka-text-dark);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eureka-card-subtitle {
    font-size: 12px;
    color: var(--eureka-text-muted);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer avec étoiles et badge prime */
.eureka-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eureka-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.eureka-card-rating svg {
    width: 14px;
    height: 14px;
    fill: #e0e0e0;
}

.eureka-card-rating svg.filled {
    fill: #fbbf24;
}

.eureka-card-rating span {
    font-size: 11px;
    color: var(--eureka-text-muted);
    margin-left: 4px;
}

.eureka-card-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--eureka-primary);
    font-style: italic;
}

/* =====================================================
   PANNEAU HOVER - BASE (propriétés communes)
   ===================================================== */
.eureka-card-hover-panel {
    position: absolute;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.eureka-card:hover .eureka-card-hover-panel {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   PANNEAU HOVER - STYLE OVERLAY (uniquement si classe overlay)
   Le panneau couvre la carte avec un gradient
   ===================================================== */
.eureka-hover-overlay .eureka-card-hover-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 60%, rgba(255,255,255,0.85) 80%, rgba(255,255,255,0.6) 100%);
    color: var(--hover-text, #1a1a2e);
    border-radius: var(--card-radius, 12px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* =====================================================
   PANNEAU HOVER - STYLE PRIME VIDEO
   Inspiré de l'ancienne version fonctionnelle
   ===================================================== */

/* FORCER LE DÉBORDEMENT sur tous les conteneurs parents - CRITIQUE */
.eureka-hover-prime .elementor-shortcode,
.eureka-hover-prime .elementor-widget-shortcode,
.eureka-hover-prime .elementor-widget-container,
.eureka-hover-prime .elementor-element,
.eureka-hover-prime.eureka-section,
.eureka-hover-prime .eureka-cards-slider,
.eureka-hover-prime .eureka-cards-track {
    overflow: visible !important;
}

/* Espace en bas pour le panneau hover */
.eureka-hover-prime .eureka-cards-slider {
    padding-bottom: 100px;
}

.eureka-hover-prime .eureka-cards-track {
    padding-bottom: 20px;
}

/* CARTE - Conteneur avec hauteur fixe */
.eureka-hover-prime .eureka-card {
    /* Hauteur fixe calculée : ratio image + contenu estimé */
    min-height: calc(var(--card-width, 280px) * 0.625 + 100px);
}

.eureka-hover-prime .eureka-card:hover {
    z-index: 50 !important;
}

/* Inner wrapper - POSITION ABSOLUTE est la clé - HAUTE SPÉCIFICITÉ */
.eureka-hover-prime.eureka-section .eureka-card .eureka-card-inner,
.eureka-hover-prime .eureka-card .eureka-card-inner {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,0.08));
    transition: transform var(--hover-speed, 0.35s) cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow var(--hover-speed, 0.35s) ease,
                border-radius var(--hover-speed, 0.35s) ease;
    transform-origin: center top;
}

.eureka-hover-prime.eureka-section .eureka-card:hover .eureka-card-inner,
.eureka-hover-prime .eureka-card:hover .eureka-card-inner {
    overflow: visible !important;
    transform: scale(var(--hover-scale, 1.15));
    box-shadow: 0 25px 50px rgba(0,0,0,0.35), 0 10px 20px rgba(0,0,0,0.25);
    border-radius: var(--card-radius, 12px) var(--card-radius, 12px) 0 0;
}

.eureka-hover-prime .eureka-card:hover .eureka-card-thumbnail {
    overflow: visible;
    border-radius: var(--card-radius, 12px) var(--card-radius, 12px) 0 0;
}

/* Masquer le contenu normal au hover - COMPLÈTEMENT */
.eureka-hover-prime.eureka-section .eureka-card:hover .eureka-card-content,
.eureka-hover-prime .eureka-card:hover .eureka-card-content {
    display: none !important;
}

/* Panneau hover positionné sous le content - HAUTE SPÉCIFICITÉ */
.eureka-hover-prime.eureka-section .eureka-card .eureka-card-inner .eureka-card-hover-panel,
.eureka-hover-prime .eureka-card .eureka-card-inner .eureka-card-hover-panel,
.eureka-hover-prime .eureka-card-hover-panel {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    background: #2d1262; /* Défaut sombre, sera écrasé par le thème */
    padding: 14px 16px 16px;
    border-radius: 0 0 var(--card-radius, 12px) var(--card-radius, 12px) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--hover-speed, 0.35s) ease;
    z-index: 10;
    color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35), 0 10px 20px rgba(0,0,0,0.25);
    display: block !important;
    justify-content: initial !important;
    flex-direction: initial !important;
}

.eureka-hover-prime.eureka-section .eureka-card:hover .eureka-card-hover-panel,
.eureka-hover-prime .eureka-card:hover .eureka-card-hover-panel {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   THÈME CLAIR - Fond blanc, bouton violet
   ===================================================== */
.eureka-hover-prime.eureka-theme-light .eureka-card-hover-panel {
    background: #ffffff !important;
    color: #1a1a2e !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-title {
    color: #1a1a2e !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-included {
    color: #6b7280 !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-included svg {
    color: #22c55e !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-meta {
    color: #6b7280 !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-description {
    color: #4b5563 !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-btn-play {
    background: #7950fe !important;
    color: #fff !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-btn-play:hover {
    background: #6840e0 !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-btn-icon {
    border-color: #e5e7eb !important;
    color: #1a1a2e !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-btn-icon:hover {
    border-color: #7950fe !important;
    color: #7950fe !important;
    background: rgba(121, 80, 254, 0.05) !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-progress-bg {
    background: #e5e7eb !important;
}

.eureka-hover-prime.eureka-theme-light .eureka-card-hover-progress-text {
    color: #6b7280 !important;
}

/* =====================================================
   THÈME SOMBRE - Fond violet foncé, bouton blanc
   ===================================================== */
.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-panel {
    background: #2d1262 !important;
    color: #fff !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-title {
    color: #fff !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-included {
    color: rgba(255,255,255,0.7) !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-included svg {
    color: #22c55e !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-meta {
    color: rgba(255,255,255,0.6) !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-description {
    color: rgba(255,255,255,0.8) !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-btn-play {
    background: #fff !important;
    color: #2d1262 !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-btn-play:hover {
    background: #f0f0f0 !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-btn-icon {
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-btn-icon:hover {
    border-color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-progress-bg {
    background: rgba(255,255,255,0.2) !important;
}

.eureka-hover-prime.eureka-theme-dark .eureka-card-hover-progress-text {
    color: rgba(255,255,255,0.7) !important;
}

/* =====================================================
   STYLES COMMUNS HOVER (pour les deux modes)
   ===================================================== */

/* Le contenu normal */
.eureka-card-content {
    position: relative;
    padding: 14px 16px 16px;
    background: var(--card-bg, #fff);
    z-index: 2;
    border-radius: 0 0 var(--card-radius, 12px) var(--card-radius, 12px);
}

.eureka-card-hover-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--eureka-text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eureka-card-hover-included {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--eureka-text-muted);
}

.eureka-card-hover-included svg {
    width: 14px;
    height: 14px;
    color: #46b450;
}

/* Boutons d'action - Version Light */
.eureka-card-hover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.eureka-card-hover-btn-play {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--eureka-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.eureka-card-hover-btn-play:hover {
    background: var(--eureka-primary-light);
}

.eureka-card-hover-btn-play svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.eureka-card-hover-btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 2px solid var(--eureka-border);
    background: transparent;
    color: var(--eureka-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.eureka-card-hover-btn-icon:hover {
    border-color: var(--eureka-primary);
    color: var(--eureka-primary);
    background: rgba(119, 79, 254, 0.05);
}

.eureka-card-hover-btn-icon svg {
    width: 16px;
    height: 16px;
}

/* État inscrit - bouton rempli avec check */
.eureka-card-hover-btn-icon.enrolled {
    background: var(--eureka-primary);
    border-color: var(--eureka-primary);
    color: #fff;
}

.eureka-card-hover-btn-icon.enrolled:hover {
    background: var(--eureka-primary);
    border-color: var(--eureka-primary);
    color: #fff;
    transform: scale(1.05);
}

/* Métadonnées */
.eureka-card-hover-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--eureka-text-muted);
}

/* Barre de progression */
.eureka-card-hover-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.eureka-card-hover-progress {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.eureka-card-hover-progress-fill {
    height: 100%;
    background: var(--eureka-primary);
    border-radius: 2px;
}

.eureka-card-hover-progress-text {
    color: var(--eureka-primary);
    font-weight: 600;
    font-size: 12px;
}

/* Description */
.eureka-card-hover-description {
    font-size: 12px;
    line-height: 1.5;
    color: var(--eureka-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Thumbnail */
.eureka-card-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: var(--card-ratio, 62.5%);
    overflow: hidden;
    background: #f3f4f6;
    border-radius: var(--eureka-radius-lg);
    transition: border-radius 0.3s ease;
}

.eureka-card:hover .eureka-card-thumbnail {
    border-radius: var(--eureka-radius-lg) var(--eureka-radius-lg) 0 0;
}

/* Icône en haut à gauche */
.eureka-card-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    background: var(--eureka-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
}

.eureka-card-icon svg {
    width: 18px;
    height: 18px;
}

/* Badge prime en bas à droite de l'image */
.eureka-card-prime-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    color: var(--eureka-primary);
    background: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 5;
}

/* Barre de progression en bas de l'image */
.eureka-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    z-index: 5;
}

.eureka-card-progress-fill {
    height: 100%;
    background: var(--eureka-primary);
}

/* =====================================================
   CARDS GRID
   ===================================================== */
.eureka-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), var(--card-width, 280px));
    column-gap: var(--grid-gap, 20px);
    row-gap: var(--grid-row-gap, 40px);
    padding: 0 20px;
    padding-bottom: 60px; /* Espace pour le hover */
    justify-content: start;
}

/* Support du paramètre columns via data-attribute */
.eureka-courses-section[data-columns="2"] .eureka-cards-grid { --grid-columns: 2; }
.eureka-courses-section[data-columns="3"] .eureka-cards-grid { --grid-columns: 3; }
.eureka-courses-section[data-columns="4"] .eureka-cards-grid { --grid-columns: 4; }
.eureka-courses-section[data-columns="5"] .eureka-cards-grid { --grid-columns: 5; }
.eureka-courses-section[data-columns="6"] .eureka-cards-grid { --grid-columns: 6; }

/* Responsive: auto-fill pour les petits écrans */
@media (max-width: 992px) {
    .eureka-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* =====================================================
   LOGIN REQUIRED
   ===================================================== */
.eureka-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: var(--eureka-radius-lg);
}

.eureka-login-required p {
    font-size: 16px;
    color: var(--eureka-text-secondary);
    margin: 0 0 20px;
}

/* =====================================================
   FILTRES PAR CATÉGORIE
   ===================================================== */
.eureka-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.eureka-category-btn {
    padding: 8px 20px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--eureka-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.eureka-category-btn:hover {
    background: #e5e7eb;
    color: var(--eureka-text-dark);
}

.eureka-category-btn.active {
    background: var(--eureka-primary);
    border-color: var(--eureka-primary);
    color: #fff;
}

/* Animation pour le filtrage */
.eureka-card.filtering-out {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eureka-card.filtering-in {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eureka-card.hidden-by-filter {
    display: none !important;
}

/* =====================================================
   MES COURS - TEMPLATE LISTE
   ===================================================== */
.eureka-mcl-container {
    background: var(--mcl-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 24px;
    --mcl-thumb-size: 60px;
    --mcl-row-gap: 12px;
    --mcl-bg: #ffffff;
    --mcl-row-bg: #f9fafb;
}

/* Mode multi-rangées Prime Video */
.eureka-mcl-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.eureka-mcl-rows .eureka-section {
    margin-bottom: 0;
}

/* Mode multi-lignes (ancien style liste) */
.eureka-mcl-multi {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eureka-mcl-multi .eureka-mcl-container {
    margin-bottom: 0;
}

.eureka-mcl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.eureka-mcl-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eureka-mcl-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--eureka-primary) 0%, var(--eureka-secondary, #9166ff) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.eureka-mcl-icon svg {
    width: 22px;
    height: 22px;
}

.eureka-mcl-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--eureka-text-dark);
    margin: 0;
}

.eureka-mcl-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--eureka-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.eureka-mcl-link:hover {
    color: var(--eureka-secondary, #9166ff);
}

.eureka-mcl-link span {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.eureka-mcl-link:hover span {
    transform: translateX(3px);
}

.eureka-mcl-list {
    display: flex;
    flex-direction: column;
    gap: var(--mcl-row-gap);
}

.eureka-mcl-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--mcl-row-bg, #f9fafb);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eureka-mcl-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.eureka-mcl-thumb {
    width: var(--mcl-thumb-size);
    height: var(--mcl-thumb-size);
    min-width: var(--mcl-thumb-size);
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
}

.eureka-mcl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eureka-mcl-content {
    flex: 1;
    min-width: 0;
}

.eureka-mcl-course-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--eureka-text-dark);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eureka-mcl-lessons {
    font-size: 13px;
    color: var(--eureka-text-secondary, #6b7280);
}

.eureka-mcl-progress {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.eureka-mcl-progress-bg {
    fill: none;
    stroke: #e5e7eb;
}

.eureka-mcl-progress-bar {
    fill: none;
    stroke: var(--eureka-primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.eureka-mcl-progress.completed .eureka-mcl-progress-bar {
    stroke: var(--eureka-primary);
}

.eureka-mcl-progress.completed .eureka-mcl-progress-bg {
    stroke: rgba(119, 79, 254, 0.2);
}

.eureka-mcl-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--eureka-text-dark);
}

.eureka-mcl-progress.completed .eureka-mcl-progress-text {
    color: var(--eureka-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .eureka-mcl-container {
        padding: 16px;
    }
    
    .eureka-mcl-item {
        padding: 12px;
    }
    
    .eureka-mcl-course-title {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* =====================================================
   RESPONSIVE - DESKTOP LARGE (> 1400px)
   ===================================================== */
@media (min-width: 1401px) {
    .eureka-section {
        padding: 30px 60px;
    }
}

/* =====================================================
   RESPONSIVE - DESKTOP (1200px - 1400px)
   ===================================================== */
@media (max-width: 1400px) {
    .eureka-section {
        padding: 30px 40px;
    }
}

/* =====================================================
   RESPONSIVE - LAPTOP (992px - 1200px)
   ===================================================== */
@media (max-width: 1200px) {
    .eureka-hero-content {
        width: 55%;
        padding: 30px 40px;
    }
    
    .eureka-hero-title {
        font-size: 40px;
    }
    
    .eureka-hero-bg {
        width: 55%;
    }
    
    .eureka-section {
        padding: 25px 30px;
    }
    
    .eureka-card {
        flex: 0 0 240px;
        width: 240px;
        max-width: 240px;
    }
    
    .eureka-section-title {
        font-size: 20px;
    }
    
    .eureka-section-description {
        font-size: 13px;
    }
    
    /* Grille Nos formations */
    .eureka-cards-grid {
        --grid-columns: 3 !important;
    }
}

/* =====================================================
   RESPONSIVE - TABLET (768px - 992px)
   ===================================================== */
@media (max-width: 992px) {
    /* Hero */
    .eureka-hero {
        height: auto;
        min-height: auto;
    }
    
    .eureka-hero-slide {
        position: relative !important;
        display: none;
    }
    
    .eureka-hero-slide.active {
        display: block;
    }
    
    .eureka-hero-bg {
        position: relative;
        width: 100%;
        height: 300px;
    }
    
    .eureka-hero-gradient {
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.8) 70%,
            rgba(255,255,255,1) 100%
        );
    }
    
    .eureka-hero-content {
        position: relative;
        width: 100%;
        padding: 20px 30px 30px;
    }
    
    .eureka-hero-title {
        font-size: 32px;
    }
    
    .eureka-hero-dots {
        left: 30px;
        bottom: 20px;
    }
    
    /* Section */
    .eureka-section {
        padding: 20px;
    }
    
    .eureka-section-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .eureka-header-left {
        flex: 1 1 100%;
    }
    
    .eureka-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .eureka-section-title {
        font-size: 18px;
    }
    
    .eureka-section-description {
        font-size: 13px;
    }
    
    /* Cards */
    .eureka-card {
        flex: 0 0 200px;
        width: 200px;
        max-width: 200px;
        margin-bottom: var(--row-gap, 30px);
    }
    
    .eureka-cards-track {
        gap: 15px;
        row-gap: var(--row-gap, 30px);
        padding: 15px 0 30px 0;
    }
    
    /* Grille Nos formations */
    .eureka-cards-grid {
        --grid-columns: 2 !important;
        gap: 15px !important;
    }
    
    /* Filtres */
    .eureka-category-filter {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .eureka-category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Désactiver le hover Prime sur tablette/mobile */
    .eureka-hover-prime .eureka-card:hover .eureka-card-inner {
        transform: scale(1.05);
    }
    
    .eureka-hover-prime .eureka-card-hover-panel {
        display: none !important;
    }
    
    .eureka-hover-prime .eureka-card:hover .eureka-card-content {
        display: block !important;
    }
    
    /* Flèches slider */
    .eureka-slider-arrows {
        display: flex;
    }
    
    .eureka-arrow {
        width: 36px;
        height: 36px;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE LARGE (576px - 768px)
   ===================================================== */
@media (max-width: 768px) {
    .eureka-hero-title {
        font-size: 28px;
    }
    
    .eureka-hero-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .eureka-hero-icon-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
    
    /* Section */
    .eureka-section {
        padding: 15px;
    }
    
    .eureka-section-header {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .eureka-section-title {
        font-size: 16px;
    }
    
    .eureka-section-description {
        font-size: 12px;
        margin-top: 2px;
    }
    
    .eureka-section-link {
        font-size: 13px;
    }
    
    /* Cards */
    .eureka-card {
        flex: 0 0 160px;
        width: 160px;
        max-width: 160px;
        margin-bottom: var(--row-gap, 25px);
    }
    
    .eureka-cards-track {
        gap: 12px;
        row-gap: var(--row-gap, 25px);
        padding: 10px 0 25px 0;
    }
    
    .eureka-card-title {
        font-size: 13px;
    }
    
    .eureka-card-category {
        font-size: 10px;
    }
    
    .eureka-card-meta {
        font-size: 11px;
    }
    
    /* Play icon */
    .eureka-play-icon {
        width: 32px;
        height: 32px;
    }
    
    .eureka-play-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Grille Nos formations */
    .eureka-cards-grid {
        --grid-columns: 2 !important;
        gap: 12px !important;
    }
    
    /* Filtres */
    .eureka-category-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .eureka-category-btn {
        padding: 6px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Flèches */
    .eureka-arrow {
        width: 32px;
        height: 32px;
    }
    
    .eureka-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    /* Content de carte */
    .eureka-card-content {
        padding: 10px 12px 12px;
    }
    
    /* Badge */
    .eureka-prime-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Rating */
    .eureka-card-rating svg {
        width: 12px;
        height: 12px;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE SMALL (< 576px)
   ===================================================== */
@media (max-width: 576px) {
    .eureka-hero-bg {
        height: 200px;
    }
    
    .eureka-hero-content {
        padding: 15px 15px 20px;
    }
    
    .eureka-hero-title {
        font-size: 22px;
    }
    
    .eureka-hero-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .eureka-hero-actions {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .eureka-hero-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .eureka-hero-icon-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    /* Section */
    .eureka-section {
        padding: 12px;
    }
    
    .eureka-section-header {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .eureka-header-right {
        gap: 10px;
    }
    
    .eureka-section-title {
        font-size: 15px;
    }
    
    .eureka-section-description {
        font-size: 11px;
    }
    
    .eureka-section-link {
        font-size: 12px;
    }
    
    .eureka-section-link svg {
        width: 14px;
        height: 14px;
    }
    
    /* Cards - 2 colonnes */
    .eureka-card {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin-bottom: var(--row-gap, 20px);
    }
    
    .eureka-cards-track {
        gap: 12px;
        row-gap: var(--row-gap, 20px);
        padding: 8px 0 20px 0;
        justify-content: space-between;
    }
    
    .eureka-card-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .eureka-card-category {
        font-size: 9px;
    }
    
    .eureka-card-meta {
        font-size: 10px;
        gap: 6px;
    }
    
    /* Play icon */
    .eureka-play-icon {
        width: 28px;
        height: 28px;
    }
    
    .eureka-play-icon svg {
        width: 12px;
        height: 12px;
    }
    
    /* Grille Nos formations */
    .eureka-cards-grid {
        --grid-columns: 2 !important;
        gap: 10px !important;
    }
    
    /* Filtres - scroll horizontal */
    .eureka-category-filter {
        gap: 6px;
        padding-bottom: 8px;
    }
    
    .eureka-category-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    /* Flèches - masquées sur très petit écran */
    .eureka-slider-arrows {
        display: none;
    }
    
    /* Content de carte */
    .eureka-card-content {
        padding: 8px 10px 10px;
    }
    
    /* Badge */
    .eureka-prime-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    /* Rating */
    .eureka-card-rating {
        gap: 1px;
    }
    
    .eureka-card-rating svg {
        width: 10px;
        height: 10px;
    }
    
    /* Hover complètement désactivé */
    .eureka-card:hover .eureka-card-inner {
        transform: none !important;
        box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,0.08)) !important;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE TRÈS PETIT (< 400px)
   ===================================================== */
@media (max-width: 400px) {
    .eureka-hero-title {
        font-size: 20px;
    }
    
    .eureka-hero-description {
        font-size: 13px;
    }
    
    .eureka-hero-btn {
        padding: 8px 14px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .eureka-hero-icon-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    
    .eureka-section {
        padding: 10px;
    }
    
    .eureka-section-title {
        font-size: 14px;
    }
    
    .eureka-section-description {
        font-size: 10px;
    }
    
    .eureka-card-title {
        font-size: 11px;
    }
    
    .eureka-card-content {
        padding: 6px 8px 8px;
    }
}

/* =====================================================
   PARCOURS DE FORMATION
   ===================================================== */
.eureka-parcours {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.eureka-parcours-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
}

.eureka-parcours-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.eureka-parcours-info {
    flex: 1;
}

.eureka-parcours-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.eureka-parcours-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.eureka-parcours-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.eureka-parcours-count {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.eureka-parcours-progress {
    flex: 1;
    max-width: 200px;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.eureka-parcours-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.eureka-parcours-completed {
    font-size: 13px;
    color: #6b7280;
}

.eureka-parcours-courses {
    padding: 0 30px 30px;
}

/* Timeline */
.eureka-parcours-timeline {
    position: relative;
}

.eureka-parcours-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 25px;
}

.eureka-parcours-step:last-child {
    padding-bottom: 0;
}

.eureka-step-indicator {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #6b7280;
    z-index: 2;
    transition: all 0.3s ease;
}

.eureka-parcours-step.completed .eureka-step-indicator,
.eureka-parcours-step.current .eureka-step-indicator {
    color: #fff;
}

.eureka-step-indicator svg {
    width: 20px;
    height: 20px;
}

.eureka-step-connector {
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background: #e5e7eb;
    z-index: 1;
}

.eureka-parcours-step.completed .eureka-step-connector {
    background: var(--parcours-color, #774ffe);
}

.eureka-step-content {
    flex: 1;
    min-width: 0;
}

.eureka-step-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.eureka-step-card:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.eureka-parcours-step.current .eureka-step-card {
    background: var(--parcours-bg, #f8f5ff);
    border: 2px solid var(--parcours-color, #774ffe);
}

.eureka-step-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
}

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

.eureka-step-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.eureka-step-info {
    flex: 1;
    min-width: 0;
}

.eureka-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eureka-step-category {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
}

.eureka-step-progress {
    margin-top: 10px;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.eureka-step-progress-bar {
    height: 100%;
    border-radius: 2px;
}

/* Responsive Parcours */
@media (max-width: 768px) {
    .eureka-parcours-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .eureka-parcours-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .eureka-parcours-title {
        font-size: 20px;
    }
    
    .eureka-parcours-courses {
        padding: 0 20px 20px;
    }
    
    .eureka-step-card {
        flex-direction: column;
    }
    
    .eureka-step-thumbnail {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .eureka-parcours-header {
        padding: 15px;
    }
    
    .eureka-parcours-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        border-radius: 12px;
    }
    
    .eureka-parcours-title {
        font-size: 18px;
    }
    
    .eureka-parcours-description {
        font-size: 14px;
    }
    
    .eureka-parcours-courses {
        padding: 0 15px 15px;
    }
    
    .eureka-parcours-step {
        gap: 15px;
    }
    
    .eureka-step-indicator {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .eureka-step-connector {
        left: 16px;
        top: 35px;
        height: calc(100% - 35px);
    }
    
    .eureka-step-card {
        padding: 12px;
    }
    
    .eureka-step-title {
        font-size: 14px;
    }
}

/* =====================================================
   BOOTCAMP / GLASSMORPHIC CARDS
   ===================================================== */
.eureka-bootcamp-section {
    padding: 30px 40px;
}

.eureka-bootcamp-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eureka-bootcamp-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
}

.eureka-bootcamp-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eureka-bootcamp-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eureka-bootcamp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.eureka-bootcamp-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(
        135deg,
        var(--bootcamp-color, #774ffe) 0%,
        var(--bootcamp-color-dark, #5a3bc7) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance animé */
.eureka-bootcamp-card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.eureka-bootcamp-card:hover .eureka-bootcamp-card-inner::before {
    opacity: 1;
}

/* Bordure lumineuse au hover */
.eureka-bootcamp-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.eureka-bootcamp-card:hover .eureka-bootcamp-card-inner::after {
    opacity: 1;
}

.eureka-bootcamp-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.eureka-bootcamp-card:hover .eureka-bootcamp-card-inner {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(var(--bootcamp-color-rgb, 119, 79, 254), 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.eureka-bootcamp-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eureka-bootcamp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eureka-bootcamp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eureka-bootcamp-icon {
    font-size: 32px;
    opacity: 0.8;
}

.eureka-bootcamp-content {
    flex: 1;
    min-width: 0;
}

.eureka-bootcamp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.eureka-bootcamp-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eureka-bootcamp-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.eureka-bootcamp-arrow svg {
    width: 20px;
    height: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.eureka-bootcamp-card:hover .eureka-bootcamp-arrow {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.eureka-bootcamp-card:hover .eureka-bootcamp-arrow svg {
    transform: translateX(3px);
}

/* Responsive Bootcamp */
@media (max-width: 768px) {
    .eureka-bootcamp-section {
        padding: 20px;
    }
    
    .eureka-bootcamp-title {
        font-size: 22px;
    }
    
    .eureka-bootcamp-card-inner {
        padding: 16px 20px;
        gap: 15px;
    }
    
    .eureka-bootcamp-image {
        width: 80px;
        height: 65px;
    }
    
    .eureka-bootcamp-card-title {
        font-size: 16px;
    }
    
    .eureka-bootcamp-card-desc {
        font-size: 13px;
    }
    
    .eureka-bootcamp-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .eureka-bootcamp-section {
        padding: 15px;
    }
    
    .eureka-bootcamp-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .eureka-bootcamp-grid {
        gap: 12px;
    }
    
    .eureka-bootcamp-card-inner {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 16px;
    }
    
    .eureka-bootcamp-image {
        width: 70px;
        height: 55px;
        border-radius: 10px;
    }
    
    .eureka-bootcamp-card-title {
        font-size: 15px;
    }
    
    .eureka-bootcamp-card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .eureka-bootcamp-arrow {
        width: 32px;
        height: 32px;
    }
    
    .eureka-bootcamp-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eureka-card {
    animation: fadeInUp 0.4s ease backwards;
}

.eureka-card:nth-child(1) { animation-delay: 0s; }
.eureka-card:nth-child(2) { animation-delay: 0.05s; }
.eureka-card:nth-child(3) { animation-delay: 0.1s; }
.eureka-card:nth-child(4) { animation-delay: 0.15s; }
.eureka-card:nth-child(5) { animation-delay: 0.2s; }
.eureka-card:nth-child(6) { animation-delay: 0.25s; }
