/* ========================= */
/* RESET & BASE              */
/* ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #10b981;
    --accent-light: #34d399;
    --bg-dark: #0a0a0f;
    --bg-mid: #0f1015;
    --bg-light: #1a1a24;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Interactive canvas background */
.interactive-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#interactive-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Fond hexagonal animé */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
            radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 80%);
    z-index: -2;
}

/* Pattern hexagonal */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
            linear-gradient(30deg, rgba(99, 102, 241, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.02) 87.5%, rgba(99, 102, 241, 0.02)),
            linear-gradient(150deg, rgba(99, 102, 241, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.02) 87.5%, rgba(99, 102, 241, 0.02)),
            linear-gradient(30deg, rgba(99, 102, 241, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.02) 87.5%, rgba(99, 102, 241, 0.02)),
            linear-gradient(150deg, rgba(99, 102, 241, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.02) 87.5%, rgba(99, 102, 241, 0.02)),
            linear-gradient(60deg, rgba(16, 185, 129, 0.015) 25%, transparent 25.5%, transparent 75%, rgba(16, 185, 129, 0.015) 75%, rgba(16, 185, 129, 0.015)),
            linear-gradient(60deg, rgba(16, 185, 129, 0.015) 25%, transparent 25.5%, transparent 75%, rgba(16, 185, 129, 0.015) 75%, rgba(16, 185, 129, 0.015));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    z-index: -1;
    opacity: 0.4;
}

/* ========================= */
/* PAGE D'ACCUEIL            */
/* ========================= */

.start-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-dark);
    overflow: hidden;
}

.start-screen.fade-out {
    animation: fadeOut 0.8s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

.start-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

/* Titre animé NIRD */
.title-container {
    margin-bottom: 3rem;
}

.animated-title {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: center;
    gap: 0.2em;
}

.animated-title .char {
    display: inline-block;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-light);
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.animated-title .char:hover {
    transform: scale(1.3) translateY(-20px) rotate(5deg);
    color: var(--text);
    -webkit-text-stroke: 2px transparent;
    text-shadow: 0 20px 40px rgba(99, 102, 241, 0.6);
    filter: drop-shadow(0 0 30px var(--primary));
}

.animated-title .char:nth-child(1):hover {
    transform: scale(1.3) translateY(-20px) rotate(-8deg);
}

.animated-title .char:nth-child(2):hover {
    transform: scale(1.3) translateY(-25px) rotate(3deg);
}

.animated-title .char:nth-child(3):hover {
    transform: scale(1.3) translateY(-15px) rotate(-5deg);
}

.animated-title .char:nth-child(4):hover {
    transform: scale(1.3) translateY(-30px) rotate(8deg);
}

.subtitle-animated {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideUp 0.8s ease 0.5s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Texte d'introduction */
.intro-text {
    margin: 4rem 0;
    opacity: 0;
    animation: slideUp 0.8s ease 1s forwards;
}

.intro-line {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.warning-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 1rem;
    padding: 1.2rem 2rem;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.warning-icon {
    font-size: 1.5em;
    margin-right: 0.5em;
    display: inline-block;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Indicateur de clic */
.start-indicator {
    position: relative;
    margin-top: 5rem;
    opacity: 0;
    animation: slideUp 0.8s ease 1.5s forwards;
}

.click-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.pulse-ring {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(2);
        opacity: 0;
    }
}

/* Hexagones flottants en arrière-plan */
.floating-hexagons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hex {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.3;
    animation: float-hex 20s infinite ease-in-out;
}

.hex-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.hex-2 {
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.hex-3 {
    top: 80%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.hex-4 {
    top: 30%;
    left: 70%;
    animation-delay: -15s;
    animation-duration: 28s;
}

.hex-5 {
    top: 50%;
    left: 50%;
    animation-delay: -20s;
    animation-duration: 35s;
}

@keyframes float-hex {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

/* Container du quiz (masqué au départ) */
.quiz-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-container.hidden {
    display: none;
}

/* ========================= */
/* HEADER                    */
/* ========================= */
.main-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.4);
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.logo span {
    font-weight: 300;
    opacity: 0.9;
}

.subtitle {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* LAYOUT PRINCIPAL */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2.5rem;
    padding: 2.5rem;
    flex: 1;
}

/* PANEL QUESTION */
.question-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-number {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    opacity: 0.6;
}

.question-text {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

/* ========================= */
/* ROUE CIRCULAIRE DIVISÉE   */
/* ========================= */
.wheel-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wheel-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0.6;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.01); opacity: 0.98; }
}

.wheel {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3), rgba(26, 26, 36, 0.5));
    border: 1px solid rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.3),
            inset 0 0 40px rgba(99, 102, 241, 0.02);
    animation: gentle-pulse 6s ease-in-out infinite;
}

/* Cercle central */
.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.center-icon {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotate-icon 8s linear infinite;
}

@keyframes rotate-icon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Diamètres (lignes de séparation) */
.divider {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 2;
    pointer-events: none;
}

.divider.horizontal {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.divider.vertical {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
}

/* ========================= */
/* SEGMENTS CLIQUABLES       */
/* ========================= */
.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

/* Segments en diagonale (rotation 90°) */
.segment.top {
    top: 0;
    right: 0;
    transform-origin: bottom left;
}

.segment.right {
    bottom: 0;
    right: 0;
    transform-origin: top left;
}

.segment.bottom {
    bottom: 0;
    left: 0;
    transform-origin: top right;
}

.segment.left {
    top: 0;
    left: 0;
    transform-origin: bottom right;
}

/* Lettre du segment */
.segment-letter {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-muted), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    display: block;
}

/* Texte du segment */
.segment-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 150px;
    line-height: 1.4;
}

/* Animations modernes pour les segments */
.segment {
    --segment-glow: 0;
    --segment-scale: 1;
}

.segment::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at center,
            rgba(99, 102, 241, calc(var(--segment-glow) * 0.3)),
            transparent 60%
    );
    filter: blur(calc(var(--segment-glow) * 30px));
    opacity: var(--segment-glow);
    transition: all 0.4s ease;
    pointer-events: none;
}

.segment:hover {
    --segment-glow: 1;
    --segment-scale: 1.08;
    transform: scale(var(--segment-scale));
    background: radial-gradient(
            circle at center,
            rgba(99, 102, 241, 0.15),
            rgba(16, 185, 129, 0.1) 50%,
            transparent 80%
    );
}

.segment:hover .segment-letter {
    background: linear-gradient(
            135deg,
            var(--primary-light) 0%,
            var(--accent-light) 50%,
            var(--primary-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.8))
    drop-shadow(0 5px 15px rgba(99, 102, 241, 0.4));
}

.segment:hover .segment-text {
    color: var(--text);
    transform: translateY(-4px);
    text-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.segment:active {
    --segment-scale: 0.95;
    transform: scale(var(--segment-scale));
}

.segment:active .segment-letter {
    transform: scale(1) translateY(0);
}

/* ========================= */
/* FEEDBACK                  */
/* ========================= */
.feedback {
    min-height: 2rem;
    font-size: 1rem;
    margin-top: 1.5rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Inter', sans-serif;
    padding: 0.8rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

/* ========================= */
/* PANEL STATUT              */
/* ========================= */
.status-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(26, 26, 36, 0.3));
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.status-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Barre de santé */
.health-bar-wrapper {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.health-bar-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.health-bar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease-out;
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.health-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Compteur de dégradations */
.degradation-counter {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.06));
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.counter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.counter-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-value.warning {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.counter-value.danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.15);
    animation: pulse-glow 0.8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6));
    }
}

/* Explication */
.explanation {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
}

.explanation h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.explanation p {
    font-size: 0.9rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* ÉCRAN FIN */
.end-screen {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.hidden {
    display: none;
}

.end-card {
    max-width: 480px;
    background: #020617;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.end-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.end-card p {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.restart-btn {
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

/* ========================= */
/* DÉGRADATION PROGRESSIVE   */
/* ========================= */

/* Niveau 0 : normal */
body.deg-0 {
    filter: none;
}

/* 1 : change le fond (plus agressif / désagréable) */
body.deg-1 {
    background: radial-gradient(circle at top, #1f2933, #000000);
}

/* 2 : le texte dépasse des bulles (segments) */
body.deg-2 .segment {
    white-space: nowrap;
    font-size: 1.05rem;
    padding: 0.2rem;
}

/* 3 : style texte "cassé" (les accents → @ seront gérés en JS) */
body.deg-3 {
    font-family: "Courier New", monospace;
}

body.deg-3 .question-text,
body.deg-3 .segment,
body.deg-3 .subtitle {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 4 : curseur perturbé visuellement (clic inversé géré côté JS) */
body.deg-4 {
    cursor: crosshair;
}

body.deg-4 .wheel {
    transform: rotate(8deg);
}

body.deg-4 .segment {
    transition: transform 0.05s ease-out;
}

/* 5 : la roue est déstructurée (segments mal placés) */
body.deg-5 .wheel {
    box-shadow: none;
    background: #020617;
}

body.deg-5 .seg1 {
    top: 15%;
    left: 10%;
    transform: none;
}

body.deg-5 .seg2 {
    top: 75%;
    left: 80%;
    transform: none;
}

body.deg-5 .seg3 {
    top: 60%;
    left: 15%;
    transform: none;
}

body.deg-5 .seg4 {
    top: 10%;
    left: 70%;
    transform: none;
}

/* 6 : "désactive" le design moderne (look brut) */
body.deg-6 {
    background: #ffffff;
    color: #000000;
}

body.deg-6 .main-layout {
    display: block;
    padding: 0.5rem;
}

body.deg-6 .status-panel,
body.deg-6 .wheel,
body.deg-6 .end-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #000000;
}

body.deg-6 .segment {
    border-radius: 0;
    width: auto;
    height: auto;
    display: inline-block;
    margin: 0.25rem;
}

/* 7 : espaces exagérés entre les lettres */
body.deg-7 .question-text,
body.deg-7 .segment,
body.deg-7 .subtitle,
body.deg-7 .logo {
    letter-spacing: 0.2em;
}

/* 8 : souris inversée (visuellement : vrai curseur caché + faux curseur) */
body.deg-8,
body.deg-9 {
    cursor: none;
}

/* 9 : site inutilisable (overlay bloquant) */
body.deg-9::before {
    content: "Erreur critique : système obsolète. Expérience inutilisable.";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-size: 1.3rem;
    z-index: 9998;
    pointer-events: all;
}

/* RESPONSIVE SIMPLE */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .status-panel {
        order: -1;
    }

    .wheel {
        width: 260px;
        height: 260px;
    }

    .segment {
        width: 100px;
        height: 100px;
    }

    .seg1 { transform: translate(-50%, -50%) translate(0, -90px); }
    .seg2 { transform: translate(-50%, -50%) translate(90px, 0); }
    .seg3 { transform: translate(-50%, -50%) translate(0, 90px); }
    .seg4 { transform: translate(-50%, -50%) translate(-90px, 0); }
}

/* Faux curseur (pour niveaux 8 et 9, à gérer en JS) */
#fake-cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #f97316;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
}

/* On rend le faux curseur visible à partir du niveau 8 */
body.deg-8 #fake-cursor,
body.deg-9 #fake-cursor {
    opacity: 1;
}
