/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-image: url('images/fond-sable-protege.webp');
    background-size: 100% auto;
    background-attachment: fixed;
    background-position: top center;
    background-repeat: repeat-y;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header et Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    padding: 0.25rem 1rem 0.15rem 1rem;
}

/* Menu burger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 8px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0089D4;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 1rem;
    }

    .logo-link {
        flex: 0 0 auto;
    }

    .hamburger {
        display: flex !important;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 0.5rem;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(194, 24, 91, 0.1);
    }

    .logo {
        height: 40px;
    }

    /* Réduire les boutons Jouer/Apprendre sur mobile */
    .btn {
        font-size: 1.06rem !important;
        padding: 0.96rem 2.4rem !important;
        min-width: 192px !important;
    }

    .main-title {
        font-size: 2.88rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }
}

.logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    position: relative;
    padding: 0.3rem 1rem;
    border-radius: 12px;
}

.logo-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at center,
        rgba(33, 150, 243, 0.1) 0%,
        rgba(33, 150, 243, 0.05) 30%,
        rgba(33, 150, 243, 0.02) 50%,
        rgba(33, 150, 243, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.logo {
    height: 50px;
    width: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.8))
            drop-shadow(0 0 16px rgba(33, 150, 243, 0.6))
            drop-shadow(0 0 24px rgba(33, 150, 243, 0.4))
            drop-shadow(0 0 32px rgba(33, 150, 243, 0.3));
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%),
                        linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    mask-composite: intersect;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.logo-title {
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1;
}

.header-framboise {
    color: #c2185b;
}

.header-bleu {
    color: #0089D4;
}

.logo-title .k-tilt {
    color: #0089D4;
    text-shadow:
        0 0 6px rgba(0, 137, 212, 0.4),
        0 0 12px rgba(0, 137, 212, 0.2);
}

.k-tilt {
    display: inline-block;
    transform: rotate(-10deg);
}

.logo-title sup {
    font-size: 0.4em;
    font-weight: 300;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #c2185b;
    margin-top: 0;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(194, 24, 91, 0.3), 0 0 16px rgba(194, 24, 91, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Liens par défaut (Accueil, Contact, Déconnexion) - Framboise */
.nav-link:hover,
.nav-link.active {
    background: #C2185B;
    color: white;
}

/* Style framboise spécifique pour enKodeur */
a[href*="enkodeur"].nav-link:hover,
a[href*="enkodeur"].nav-link.active {
    background: #C2185B;
    color: white;
}

/* Style bleu spécifique pour Exercices */
a[href*="exercices"].nav-link:hover,
a[href*="exercices"].nav-link.active {
    background: #0089D4;
    color: white;
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.page.active {
    display: block;
}

/* Page À propos avec logo */
.logo-apropos {
    width: 45%;
    max-width: 450px;
    height: 100px;
    margin: 0 auto 0.5rem;
    background-image: url('images/Logo 5 NEONS.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Accueil */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70vh;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0089D4;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.spi-framboise,
.to-framboise {
    color: #c2185b;
}

.k-bleu {
    color: #0089D4;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3.6rem;
    }
}

.main-title .k-tilt {
    display: inline-block;
    transform: rotate(-10deg);
    color: #0089D4;
    text-shadow:
        0 0 8px rgba(0, 137, 212, 0.45),
        0 0 16px rgba(0, 137, 212, 0.35),
        0 0 24px rgba(0, 137, 212, 0.25);
}

.main-title .copyright {
    font-size: 1.8rem;
    font-weight: 300;
    vertical-align: super;
}

.subtitle {
    font-size: 1.56rem;
    color: #555;
    margin-bottom: 3rem;
    font-style: italic;
    word-spacing: 0.1em;
}

.space-before-kognitif {
    letter-spacing: 0.1em;
}

.kognitif {
    position: relative;
    display: inline-block;
}

.k-transparent {
    display: inline-block;
    transform: rotate(-10deg);
    opacity: 0.3;
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(-10deg) translateY(-50%) scale(1.1);
    color: #0089D4;
    font-weight: bold;
    pointer-events: none;
    z-index: -1;
}

.c-overlay {
    position: relative;
    opacity: 1;
    color: #555;
}

.subtitle-break {
    display: none;
}

@media (max-width: 500px) {
    .subtitle-break {
        display: block;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.32rem;
    transition: all 0.3s ease;
    min-width: 240px;
    text-align: center;
}

/* Bouton sport-neuronal - Style Adultes (Bleu) */
.btn-primary {
    background: linear-gradient(145deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: 1px solid rgba(33, 150, 243, 0.3);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

/* Bouton enKodeur - Style Juniors (Framboise) */
.btn-jouer {
    background: linear-gradient(145deg, #C2185B 0%, #880E4F 100%);
    color: white;
    border: 1px solid rgba(255, 192, 203, 0.3);
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-jouer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.5);
}

/* Pages en développement */
.dev-message {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 3rem;
    font-style: italic;
}

/* Page À propos */
h2 {
    font-size: 2.5rem;
    color: #0089D4;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 1rem;
}

#apropos h2 {
    margin-bottom: 0;
}

h3 {
    font-size: 1.8rem;
    color: #0089D4;
    margin: 2rem 0 1rem;
    text-align: center;
}

.about-intro {
    margin-bottom: 2rem;
}

.about-intro p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.triptych {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vision-item {
    background: linear-gradient(135deg, #fef5f8 0%, #fff 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #0089D4;
    text-align: center;
    transition: all 0.3s ease;
}

.vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.2);
}

.vision-item .emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.vision-item .role {
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hashtag {
    color: #0089D4;
    font-weight: bold;
    font-size: 1rem;
}

.hashtag .light {
    font-weight: 300;
    opacity: 0.6;
}

.team {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}


.team-member {
    background: linear-gradient(135deg, #fef5f8 0%, #fff 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.15);
}

.team-member .profile-bubble {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0089D4 0%, #E6A8D7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.3);
    border: 4px solid white;
}

.team-member h4 {
    color: #0089D4;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.team-member p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.team-member.join {
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
    border: 2px dashed #F4A300;
}

.team-member.join .profile-bubble {
    background: linear-gradient(135deg, #F4A300 0%, #FFD700 100%);
}

.team-member.join h4 {
    color: #F4A300;
}

.team-member a {
    color: #0089D4;
    text-decoration: none;
    font-weight: bold;
}

.team-member a:hover {
    text-decoration: underline;
}

/* Carrousels */
.awards, .partners {
    margin: 3rem 0;
}

.carousel {
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    align-items: center;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Image concours-lepine sur fond noir */
.carousel-item-img.concours-lepine {
    background: #000;
    padding: 10px;
    border-radius: 8px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Dupliquer les images pour un scroll infini */
.awards .carousel-track::after {
    content: '';
    display: flex;
    gap: 3rem;
    align-items: center;
}

.partners .carousel-track::after {
    content: '';
}

/* Responsive - Tablette */
@media (min-width: 600px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        height: 56px;
    }
}

/* Responsive - Desktop */
@media (min-width: 900px) {
    .main-title {
        font-size: 4.8rem;
    }

    .main-title .copyright {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .logo {
        height: 64px;
    }

    .container {
        padding: 3rem;
    }

    .btn {
        font-size: 1.4rem;
        padding: 1.3rem 3.2rem;
    }

    .team {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    font-weight: 300;
    border-top: 1px solid rgba(194, 24, 91, 0.1);
}

footer p {
    margin: 0;
}

/* Page Contact */
.contact-alternative {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}

.contact-alternative a {
    color: #0089D4;
    text-decoration: none;
    font-weight: bold;
}

.contact-alternative a:hover {
    text-decoration: underline;
}

/* Modal Connexion */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0089D4;
}

.modal-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.app-url {
    font-weight: normal;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-go {
    background: #2196F3;
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-go:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

/* ==================== SPIKTOLINE ==================== */

.level-selector-spiktoline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    row-gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.level-btn-spiktoline {
    background: rgba(255, 255, 255, 0.7);
    color: #555;
    border: 2px solid rgba(160, 130, 90, 0.8);
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(0.8rem, 2.5vw, 1rem);
    border-radius: 8px;
    font-size: clamp(0.85rem, 2.2vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 60px;
}

.level-btn-spiktoline:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.level-btn-spiktoline.active {
    color: #333;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.level-btn-spiktoline.level-1 { background: rgba(255, 0, 255, 0.1); border-color: rgba(255, 0, 255, 0.3); }
.level-btn-spiktoline.level-1.active { background: rgba(255, 0, 255, 0.2); border-color: rgba(255, 0, 255, 0.6); }
.level-btn-spiktoline.level-2 { background: rgba(255, 223, 0, 0.1); border-color: rgba(218, 165, 32, 0.3); }
.level-btn-spiktoline.level-2.active { background: rgba(255, 223, 0, 0.2); border-color: rgba(218, 165, 32, 0.6); }
.level-btn-spiktoline.level-3 { background: rgba(100, 149, 237, 0.1); border-color: rgba(0, 71, 171, 0.3); }
.level-btn-spiktoline.level-3.active { background: rgba(100, 149, 237, 0.2); border-color: rgba(0, 71, 171, 0.6); }
.level-btn-spiktoline.level-4 { background: rgba(34, 139, 34, 0.1); border-color: rgba(34, 139, 34, 0.3); }
.level-btn-spiktoline.level-4.active { background: rgba(34, 139, 34, 0.2); border-color: rgba(34, 139, 34, 0.6); }
.level-btn-spiktoline.level-5 { background: rgba(50, 50, 50, 0.1); border-color: rgba(0, 0, 0, 0.3); }
.level-btn-spiktoline.level-5.active { background: rgba(50, 50, 50, 0.2); border-color: rgba(0, 0, 0, 0.6); }

.level-info-spiktoline {
    text-align: left;
    margin: clamp(0.5rem, 2vw, 1rem) auto;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    max-width: 550px;
}

@media (min-width: 1024px) {
    .level-info-spiktoline { text-align: center; }
}

.level-info-spiktoline p {
    color: #666;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.5;
    margin: 0.25rem 0;
}

.step-label-spiktoline {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #8b7d6f;
    font-weight: bold;
    text-align: center;
}

.palette-spiktoline {
    margin: clamp(1rem, 3vw, 1.5rem) 0;
}

.grid-wrapper-spiktoline {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.alignement-game-area {
    min-height: 10px;
    height: auto;
    margin: 1rem auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.palette-items-align {
    display: flex;
    flex-direction: row;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.palette-item-align {
    width: clamp(37px, 8vw, 47px);
    height: clamp(37px, 8vw, 47px);
    border: 3px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.palette-item-align:hover {
    border-color: #0089D4;
    transform: scale(1.05);
}

.palette-item-align img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.palette-item-align.selected {
    border-color: #0089D4;
    background: rgba(0, 137, 212, 0.15);
    box-shadow: 0 4px 12px rgba(0, 137, 212, 0.3);
    transform: scale(1.1);
}

.palette-item-align.jok-dimmed {
    filter: blur(3px);
    opacity: 0.4;
    pointer-events: none;
}

.palette-item-erase.erase-error-mode {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.15) !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4) !important;
    pointer-events: all !important;
    cursor: pointer;
}

.align-cell.correct-spiktoline {
    border: 2px solid #4caf50 !important;
    background: rgba(76, 175, 80, 0.2) !important;
}

.align-cell.incorrect-spiktoline {
    border: 2px solid #f44336 !important;
    background: rgba(244, 67, 54, 0.2) !important;
}

.palette-jok-spiktoline { cursor: pointer; }

.palette-jok-spiktoline.jok-active {
    border-color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.2) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
}

.level1-options-align,
.level2-options-align,
.level3-options-align,
.level4-options-align,
.level5-options-align {
    text-align: center;
    margin: 1.5rem auto;
    max-width: 550px;
}

.difficulty-label-spiktoline {
    font-size: 0.9rem;
    color: #8b7d6f;
    font-weight: 500;
}

.level1-difficulty .difficulty-slider-container,
.level2-difficulty .difficulty-slider-container,
.level3-difficulty .difficulty-slider-container,
.level4-difficulty .difficulty-slider-container,
.level5-difficulty .difficulty-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.level1-difficulty .difficulty-slider-container input[type="range"],
.level2-difficulty .difficulty-slider-container input[type="range"],
.level3-difficulty .difficulty-slider-container input[type="range"],
.level4-difficulty .difficulty-slider-container input[type="range"],
.level5-difficulty .difficulty-slider-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, #d4c4b0 0%, #b8a89a 30%, #8b7355 70%, #4a3728 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.level1-difficulty .difficulty-slider-container input[type="range"]::-webkit-slider-thumb,
.level2-difficulty .difficulty-slider-container input[type="range"]::-webkit-slider-thumb,
.level3-difficulty .difficulty-slider-container input[type="range"]::-webkit-slider-thumb,
.level4-difficulty .difficulty-slider-container input[type="range"]::-webkit-slider-thumb,
.level5-difficulty .difficulty-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0089D4;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.level1-difficulty .difficulty-slider-container input[type="range"]::-moz-range-thumb,
.level2-difficulty .difficulty-slider-container input[type="range"]::-moz-range-thumb,
.level3-difficulty .difficulty-slider-container input[type="range"]::-moz-range-thumb,
.level4-difficulty .difficulty-slider-container input[type="range"]::-moz-range-thumb,
.level5-difficulty .difficulty-slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0089D4;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.difficulty-value {
    font-size: 0.9rem;
    color: #8b7d6f;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.game-container-spiktoline { margin-top: 1rem; }

@media (max-width: 768px) {
    .level-selector-spiktoline { gap: 0.6rem; row-gap: 0.5rem; }
}

/* ==================== BANDEAU COOKIES ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-top: 3px solid #C8267D;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 16px 24px;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    font-size: 0.88rem;
    color: #333;
    line-height: 1.5;
    min-width: 220px;
}
.cookie-link {
    color: #0089D4;
    text-decoration: underline;
    margin-left: 4px;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept { background: #C8267D; color: #fff; }
.cookie-btn-refuse { background: transparent; color: #555; border: 1.5px solid #ccc; }
@media (max-width: 600px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
}
