/* style.css : style amélioré pour ta page PHP */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: rgba(19, 25, 46, 0.82);
    --bg-tertiary: rgba(26, 40, 71, 0.78);
    --bg-glow-1: rgba(168, 85, 247, 0.22);
    --bg-glow-2: rgba(34, 211, 238, 0.18);
    --text-primary: #ffffff;
    --text-secondary: #e0e7ff;
    --text-muted: #a5adc9;
    --border-color: rgba(255, 255, 255, 0.24);
    --surface-card: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    --surface-soft: rgba(255, 255, 255, 0.14);
    --surface-strong: rgba(255, 255, 255, 0.22);
    --accent-cyan: #22d3ee;
    --accent-blue: #0ea5e9;
    --accent-purple: #a855f7;
    --accent-gold: #fbbf24;
    --shadow-soft: 0 10px 20px rgba(11, 10, 36, 0.25);
    --shadow-strong: 0 20px 45px rgba(8, 12, 46, 0.32);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-tertiary: rgba(226, 232, 240, 0.9);
    --bg-glow-1: rgba(14, 165, 233, 0.16);
    --bg-glow-2: rgba(245, 158, 11, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.12);
    --surface-card: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
    --surface-soft: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --accent-cyan: #0891b2;
    --accent-blue: #0369a1;
    --accent-purple: #7c3aed;
    --accent-gold: #d97706;
    --shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.1);
    --shadow-strong: 0 20px 45px rgba(15, 23, 42, 0.14);
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
    background:
        radial-gradient(circle 560px at 12% -10%, var(--bg-glow-1) 0%, transparent 70%),
        radial-gradient(circle 520px at 100% 0%, var(--bg-glow-2) 0%, transparent 68%),
        linear-gradient(135deg, var(--bg-primary), #10172f);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wheel-logo-link {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wheel-logo-link:hover {
    transform: translateX(-50%) translateY(-2px);
    background: var(--surface-strong);
    box-shadow: 0 14px 26px rgba(11, 10, 36, 0.35);
}

.wheel-logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: conic-gradient(
        #ff7a18 0deg 45deg,
        #ffd166 45deg 90deg,
        #06d6a0 90deg 135deg,
        #4cc9f0 135deg 180deg,
        #4361ee 180deg 225deg,
        #7209b7 225deg 270deg,
        #f72585 270deg 315deg,
        #ff006e 315deg 360deg
    );
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14);
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    letter-spacing: 1.2px;
}

p, .challenge-text, .return-button, .home-link {
    font-family: 'Poppins', sans-serif;
}

#main-content {
    width: min(760px, 94vw);
    padding: 34px 28px 28px;
    border-radius: 28px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-strong);
    transition: opacity 0.5s ease;
}

.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #082f49;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25), 0 2px 8px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.home-link:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.06);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.52), 0 6px 12px rgba(0,0,0,0.28);
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.language-selector img {
    width: 36px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    opacity: 0.62;
    filter: saturate(0.84);
}

.language-selector img:hover {
    transform: translateY(-1px) scale(1.04);
    opacity: 0.9;
    filter: saturate(1);
}

.language-selector img.is-active {
    opacity: 1;
    filter: saturate(1.08);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6), 0 8px 16px rgba(0, 0, 0, 0.3);
}

h1 {
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    padding-top: 0;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 700;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

p {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    text-shadow: none;
}

.hero-copy {
    margin: 12px auto 20px;
    max-width: 62ch;
    display: grid;
    gap: 10px;
}

#subtitle {
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.motto {
    font-size: clamp(0.95rem, 1.7vw, 1.08rem);
    margin: 0;
    letter-spacing: 0.2px;
    font-weight: 500;
    opacity: 0.96;
    line-height: 1.55;
}

.action-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.oval-button {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #6f42c1, #e91e63);
    padding: 16px 18px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.oval-button:hover {
    background: linear-gradient(135deg, #5a379f, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.oval-button.clicked {
    transform: scale(0.95) translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #581c87, #9d174d);
}

.challenge-text {
    text-align: center;
    margin-top: 16px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-primary);
    background: var(--surface-card);
    padding: 22px 18px;
    border-radius: 18px;
    max-width: 100%;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 24px rgba(0,0,0,0.12);
    font-weight: 500;
    line-height: 1.45;
}

@media (max-width: 640px) {
    body {
        padding: 84px 14px 96px;
    }

    .wheel-logo-link {
        top: 66px;
        font-size: 0.92rem;
        padding: 7px 12px;
    }

    .wheel-logo-icon {
        width: 20px;
        height: 20px;
    }

    #main-content {
        width: min(760px, 100%);
        padding: 24px 16px 18px;
        border-radius: 20px;
    }

    .action-container {
        grid-template-columns: 1fr;
    }

    .oval-button {
        font-size: 1rem;
    }

    .discord-link,
    .made-by {
        position: static;
        margin-top: 12px;
    }
}

.discord-link {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9;
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #5865f2, #404eed);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    filter: brightness(1.05);
}

.made-by {
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-style: italic;
    background: var(--surface-soft);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.made-by:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--surface-strong);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.return-button {
    display: inline-block;
    color: #fff;
    background: linear-gradient(135deg, #6f42c1, #e91e63);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.return-button:hover {
    background: linear-gradient(135deg, #5a379f, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
    .discord-link,
    .made-by {
        position: static;
        margin-top: 12px;
    }
}
