/* ═══════════════════════════════════════════════════════════════════
   CortyKids — Hero Carrousel
   Fichier: public/assets/css/hero-carousel.css
   
   VERSION 9.0 — Hauteur augmentée (380px) + couleurs forcées
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   CONTENEUR PRINCIPAL
   ═══════════════════════════════════════════════════════════════════ */

.ck-hero {
    position: relative;
    min-height: 700px;
    max-height: 850px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--ck-navy);
    padding: 0;
    margin: 0;
    width: 100%;
}

.ck-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.ck-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    will-change: opacity, transform;
}

.ck-hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.ck-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at center, rgba(3, 28, 56, 0.15) 0%, rgba(3, 28, 56, 0.35) 60%, rgba(3, 28, 56, 0.65) 100%),
        linear-gradient(180deg, rgba(3, 28, 56, 0.25) 0%, rgba(3, 28, 56, 0.10) 40%, rgba(3, 28, 56, 0.60) 100%);
    pointer-events: none;
}

.ck-hero-snow {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.ck-snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 217, 122, 0.6);
    animation: snow-rise linear infinite;
    will-change: transform, opacity;
}

@keyframes snow-rise {
    0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
    10% { opacity: 1; transform: translateY(-8vh) translateX(5px) scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-90vh) translateX(-5px) scale(0.8); opacity: 0; }
}

.ck-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   MASCOTTE
   ═══════════════════════════════════════════════════════════════════ */

.ck-hero-mascot-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-hero-mascot {
    font-size: 4.5rem;
    line-height: 1;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 20px rgba(255, 217, 122, 0.9)) drop-shadow(0 0 40px rgba(255, 217, 122, 0.5));
    animation: corty-float 4s ease-in-out infinite;
}

.ck-hero-mascot-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 217, 122, 0.55), rgba(76, 201, 240, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

.ck-hero-mascot-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.ck-hero-mascot-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--ck-gold);
    border-right-color: var(--ck-gold-light);
    animation: ring-spin 4s linear infinite;
    filter: drop-shadow(0 0 8px var(--ck-gold-glow));
}

.ck-hero-mascot-ring::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--ck-turquoise);
    border-left-color: var(--ck-turquoise);
    animation: ring-spin-reverse 6s linear infinite;
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(76, 201, 240, 0.9));
}

@keyframes ring-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ring-spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes corty-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* ═══════════════════════════════════════════════════════════════════
   ⭐ TEXTES — HAUTEUR 380px + COULEUR BLANCHE FORCÉE
   ═══════════════════════════════════════════════════════════════════ */

.ck-hero-taglines {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: auto;
    margin-bottom: 16px;
    display: block;
    overflow: visible !important;
}

.ck-hero-tagline {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    min-height: 380px;
}

/* Seule la tagline ACTIVE est visible */
.ck-hero-tagline.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.ck-hero-tagline-title {
    display: block;
    font-family: var(--ck-font-title);
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff !important;   /* ⚠️ FORCÉ BLANC */
    margin: 0 0 12px 0;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 12px rgba(0, 0, 0, 0.95),
        0 8px 24px rgba(0, 0, 0, 0.8);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    height: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.ck-hero-tagline-title .ck-hero-accent {
    display: inline;
    background: linear-gradient(90deg, #ffd97a 0%, #fff8dc 50%, #ffd97a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    animation: shimmer-text 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    font-weight: 900;
}

.ck-hero-tagline-subtitle {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #ffffff !important;   /* ⚠️ FORCÉ BLANC */
    max-width: 700px;
    margin: 0 auto;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    font-weight: 500;
    white-space: normal;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

@keyframes shimmer-text {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   DOTS
   ═══════════════════════════════════════════════════════════════════ */

.ck-hero-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(3, 28, 56, 0.7);
    border-radius: var(--ck-radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ck-hero-dot {
    width: 24px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
}

.ck-hero-dot:hover { background: rgba(255, 255, 255, 0.5); transform: scaleY(1.4); }
.ck-hero-dot.active { background: var(--ck-gold); width: 40px; box-shadow: 0 0 16px rgba(255, 217, 122, 1); }

/* ═══════════════════════════════════════════════════════════════════
   FLÈCHES
   ═══════════════════════════════════════════════════════════════════ */

.ck-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(3, 28, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--ck-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ck-hero-nav:hover { background: rgba(210, 154, 43, 0.5); border-color: var(--ck-gold); transform: translateY(-50%) scale(1.1); }
.ck-hero-nav-prev { left: 24px; }
.ck-hero-nav-next { right: 24px; }

/* ═══════════════════════════════════════════════════════════════════
   ACTIONS
   ═══════════════════════════════════════════════════════════════════ */

.ck-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.ck-scroll-hint {
    margin-top: 24px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

.ck-btn-glow { position: relative; overflow: visible; }
.ck-btn-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: var(--ck-grad-gold);
    filter: blur(12px);
    opacity: 0.6;
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .ck-hero {
        min-height: 640px;
        max-height: 800px;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        position: relative;
        left: 50%;
        right: 50%;
        border-radius: 0;
        padding: 0;
    }

    .ck-hero .ck-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .ck-hero-content {
        padding: 40px 12px 60px;
        width: 100%;
        max-width: 100%;
    }

    .ck-hero-taglines {
        min-height: 420px;
        padding: 0;
        margin-bottom: 12px;
    }

    .ck-hero-tagline {
        padding: 16px 8px;
        min-height: 380px;
    }

    .ck-hero-tagline-title {
        font-size: clamp(1.4rem, 6.5vw, 2rem);
        line-height: 1.35;
        padding: 0 4px;
        word-break: normal;
    }

    .ck-hero-tagline-subtitle {
        font-size: 0.95rem;
        padding: 0 6px;
        line-height: 1.5;
    }

    .ck-hero-mascot-wrap { width: 100px; height: 100px; margin-bottom: 16px; }
    .ck-hero-mascot { font-size: 3.2rem; }
    .ck-hero-nav { display: none; }

    .ck-hero-progress {
        bottom: calc(var(--ck-nav-height, 64px) + 16px);
        padding: 6px 12px;
    }

    .ck-hero-dot { width: 20px; height: 5px; }
    .ck-hero-dot.active { width: 32px; }
    .ck-scroll-hint { margin-top: 16px; font-size: 1.4rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ck-hero { min-height: 700px; max-height: 850px; }
    .ck-hero-content { padding: 60px 24px 70px; }
    .ck-hero-taglines { min-height: 420px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CORRECTION CONFLITS COULEURS — DARK MODE
   ═══════════════════════════════════════════════════════════════════ */

/* HERO — Toujours BLANC sur fond image (peu importe le thème) */
.ck-hero-tagline-title,
.ck-hero-tagline-title * {
    color: #ffffff !important;
}

.ck-hero-tagline-subtitle,
.ck-hero-tagline-subtitle * {
    color: #ffffff !important;
}

/* Exception : accent garde son gradient */
.ck-hero-tagline-title .ck-hero-accent {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* HEADER — Toujours BLANC sur fond bleu nuit */
.ck-header,
.ck-header * {
    color: #ffffff;
}

.ck-header .ck-nav a.active {
    color: #d29a2b;
}

.ck-header .ck-logo-text {
    color: transparent; /* préserve le gradient */
}

/* FOOTER — Toujours CLAIR */
.ck-footer,
.ck-footer * {
    color: #cbd5e1;
}

.ck-footer h3,
.ck-footer h4 {
    color: #ffffff;
}

.ck-footer a {
    color: #cbd5e1;
}

.ck-footer a:hover {
    color: #d29a2b;
}

/* CARTES en dark mode */
[data-theme="dark"] .ck-card {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .ck-card h1,
[data-theme="dark"] .ck-card h2,
[data-theme="dark"] .ck-card h3,
[data-theme="dark"] .ck-card h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .ck-card p {
    color: #cbd5e1 !important;
}

/* Textes muted en dark mode */
[data-theme="dark"] [style*="color:var(--ck-gray-500)"],
[data-theme="dark"] [style*="color: var(--ck-gray-500)"] {
    color: #94a3b8 !important;
}