* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2b5876;
    --secondary-color: #4e4376;
    --accent-color: #2b5876;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
    transition: background 0.5s ease;
}

body[data-theme="simple"] {
    --primary-color: #2b5876;
    --secondary-color: #4e4376;
    --accent-color: #2b5876;
    --text-color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

body[data-theme="birthday"] {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --accent-color: #e91e63;
    --text-color: #2c1810;
    background: linear-gradient(135deg, #fef6fb 0%, #fff0f9 50%, #ffeef8 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Animation de paillettes scintillantes pour anniversaire */
@keyframes sparkle-fall {
    0% {
        transform: translateY(-10vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

@keyframes sparkle-fall-delayed {
    0% {
        transform: translateY(-10vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

/* Paillettes dorées scintillantes */
body[data-theme="birthday"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    background-image:
        radial-gradient(circle at 20% 30%, #ffd700 0, #ffd700 2px, transparent 2px),
        radial-gradient(circle at 60% 20%, #ffed4e 0, #ffed4e 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, #ffc107 0, #ffc107 2px, transparent 2px),
        radial-gradient(circle at 30% 70%, #f9a825 0, #f9a825 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, #ffb300 0, #ffb300 2px, transparent 2px),
        radial-gradient(circle at 15% 40%, #ffd54f 0, #ffd54f 1px, transparent 1px),
        radial-gradient(circle at 85% 25%, #ffa000 0, #ffa000 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, #ffca28 0, #ffca28 1px, transparent 1px);
    background-size: 150px 150px, 200px 200px, 180px 180px, 220px 220px, 160px 160px, 190px 190px, 170px 170px, 210px 210px;
    background-repeat: repeat;
    animation: sparkle-fall 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Paillettes roses scintillantes */
body[data-theme="birthday"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    background-image:
        radial-gradient(circle at 25% 15%, #ff6b9d 0, #ff6b9d 2px, transparent 2px),
        radial-gradient(circle at 75% 35%, #f48fb1 0, #f48fb1 1px, transparent 1px),
        radial-gradient(circle at 45% 55%, #ec407a 0, #ec407a 2px, transparent 2px),
        radial-gradient(circle at 65% 75%, #f06292 0, #f06292 1px, transparent 1px),
        radial-gradient(circle at 35% 85%, #e91e63 0, #e91e63 2px, transparent 2px),
        radial-gradient(circle at 90% 45%, #ff4081 0, #ff4081 1px, transparent 1px),
        radial-gradient(circle at 10% 65%, #f50057 0, #f50057 2px, transparent 2px),
        radial-gradient(circle at 55% 25%, #ff80ab 0, #ff80ab 1px, transparent 1px);
    background-size: 140px 140px, 210px 210px, 175px 175px, 195px 195px, 165px 165px, 185px 185px, 155px 155px, 205px 205px;
    background-repeat: repeat;
    animation: sparkle-fall-delayed 14s linear infinite;
    pointer-events: none;
    z-index: 1;
}

body[data-theme="christmas"] {
    --primary-color: #dc143c;
    --secondary-color: #dc143c;
    --accent-color: #dc143c;
    --text-color: #333;
    background: linear-gradient(180deg, #1a0f0f 0%, #4a1a1a 20%, #801515 40%, #b41f1f 60%, #801515 80%, #4a1a1a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    min-height: 100vh;
}

/* Animation de neige pour Noël */
@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(20px);
        opacity: 0;
    }
}

@keyframes snowfall2 {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(-15px);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    15% {
        transform: translate(-50%, -50%) scale(1.08);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    45% {
        transform: translate(-50%, -50%) scale(1.06);
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Couche de neige 1 */
body[data-theme="christmas"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    background-image: 
        radial-gradient(3px 3px at 20% 10%, white, transparent),
        radial-gradient(2px 2px at 60% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 15% 50%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 80% 20%, white, transparent),
        radial-gradient(2px 2px at 35% 70%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 45% 40%, white, transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(255, 255, 255, 0.8), transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: snowfall 12s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Couche de neige 2 */
body[data-theme="christmas"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    background-image: 
        radial-gradient(2px 2px at 30% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 75% 5%, white, transparent),
        radial-gradient(2px 2px at 50% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 85% 50%, white, transparent),
        radial-gradient(2px 2px at 40% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 65% 70%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(4px 4px at 25% 25%, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(3px 3px at 55% 15%, rgba(255, 215, 0, 0.5), transparent),
        radial-gradient(3px 3px at 90% 35%, rgba(255, 215, 0, 0.4), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: snowfall2 18s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.page {
    display: none;
    /*min-height: 100vh; */
    padding: 20px;
}

.page.active {
    display: block;
    position: relative;
    z-index: 2;
}

.app-header {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color);
    position: relative;
    z-index: 3;
}

.header-left .logo {
    font-size: 1.6rem;
    font-weight: 700;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}
    .app-footer {
         text-align: center;
         font-size: 0.85em;
         color: #6b7280;
         padding: 25px 20px 35px;
         border-top: 1px solid rgba(43, 88, 118, 0.1);
    }

    .app-footer a {
        color: #2b5876;
        font-weight: 600;
        text-decoration: none;
    }

    .app-footer a:hover {
        text-decoration: underline;
    }

.user-bar.hidden {
    display: none;
}

.user-bar span {
    font-weight: 500;
}

.player-confirmation {
    margin-top: 16px;
}

.player-confirmation input {
    width: 100%;
}

.container.wheel-layout {
    max-width: 1000px;
    padding: 35px 30px;
}

.wheel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.wheel-left {
    display: flex;
    flex-direction: column;
}

.wheel-left h3 {
    text-align: left;
    margin-bottom: 12px;
}

.wheel-left .instruction-text {
    text-align: left;
    margin-bottom: 24px;
}

.wheel-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-theme="christmas"] .app-header,
body[data-theme="christmas"] .user-bar span {
    color: #fff;
}

body[data-theme="christmas"] .user-bar .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

body[data-theme="christmas"] .user-bar .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 35px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Layout 2 colonnes pour la page de création de session */
#create-session-page .container {
    max-width: 1100px;
}

.session-forms-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.create-session-left,
.create-session-right {
    display: flex;
    flex-direction: column;
}

.section-divider {
    display: none;
}

.container.landing {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 40px;
    box-shadow: none;
    background: transparent;
    position: relative;
}

/* Décorations de cadeaux sur la landing page */
.container.landing::before,
.container.landing::after {
    content: '🎁';
    position: absolute;
    font-size: 2.5em;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.container.landing::before {
    top: 20px;
    left: 20px;
    transform: rotate(-15deg);
}

.container.landing::after {
    bottom: 20px;
    right: 20px;
    transform: rotate(15deg);
}

.landing-content {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-content h1 {
    text-align: center;
    font-size: 2.8em;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: -0.5px;
    position: relative;
}

.landing-content h1::before,
.landing-content h1::after {
    content: '🎁';
    position: absolute;
    font-size: 0.4em;
    opacity: 0.2;
    top: 50%;
    transform: translateY(-50%);
}

.landing-content h1::before {
    left: -60px;
}

.landing-content h1::after {
    right: -60px;
}

.landing-content .subtitle {
    font-size: 1.15em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(43, 88, 118, 0.1);
}

.feature-icon {
    display: block;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.feature-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.05em;
    margin-bottom: 8px;
    font-weight: 500;
}

.feature-item p {
    color: #777;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.landing-points {
    display: none;
}

.landing-points li {
    display: none;
}

.landing-points li:hover {
    display: none;
}

.auth-panels {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.testimonials-section {
    padding: 40px 0 56px;
}

.testimonials-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(43, 88, 118, 0.06);
    border: 1px solid rgba(43, 88, 118, 0.06);
}

.testimonials-header {
    text-align: left;
}

.testimonials-header h2 {
    font-size: 1.9em;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.testimonials-subtitle {
    font-size: 1.05em;
    color: #4b5563;
    line-height: 1.6;
}

.testimonials-slider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.slider-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(43, 88, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-nav:hover {
    transform: translateY(-1px);
    background: rgba(43, 88, 118, 0.08);
}

.testimonials-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.6, 0.05, 0.28, 0.91);
}

.testimonial-card {
    flex: 0 0 calc(50% - 10px);
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid rgba(43, 88, 118, 0.08);
    border-radius: 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: calc(50% - 10px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    width: 100%;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    font-size: 1.1em;
    color: #f6ad55;
}

.testimonial-stars .star {
    color: #d1d5db;
}

.testimonial-stars .star.filled {
    color: #f97316;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95em;
}

.testimonial-comment {
    font-size: 1em;
    line-height: 1.6;
    color: #374151;
    font-weight: 400;
    width: 100%;
}

.testimonial-date {
    font-size: 0.9em;
    color: #6b7280;
    width: 100%;
}

.testimonials-empty {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(43, 88, 118, 0.18);
    color: #1f2937;
    text-align: center;
    font-size: 0.95em;
}

.auth-card {
    flex: 1 1 280px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(43, 88, 118, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.auth-card-tabs {
    width: 100%;
    max-width: 820px;
    padding-top: 56px;
}


.auth-card:hover {
    box-shadow: 0 10px 28px rgba(43, 88, 118, 0.18);
    transform: translateY(-4px);
}

.auth-card h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 28px;
    color: var(--primary-color);
    font-weight: 400;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card button {
    margin-top: 15px;
}

.auth-tabs-header {
    display: flex;
    gap: 6px;
    background: rgba(43, 88, 118, 0.08);
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(43, 88, 118, 0.12);
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #4b5563;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
    position: relative;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.auth-tab:not(.active) {
    color: #4b5563;
    box-shadow: none;
}

.auth-tab:hover,
.auth-tab:focus-visible {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(43, 88, 118, 0.25);
}

.auth-tab.active {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(43, 88, 118, 0.22);
    color: var(--primary-color);
    font-weight: 700;
}

.auth-tab.active:focus-visible {
    box-shadow: 0 10px 24px rgba(43, 88, 118, 0.28), 0 0 0 3px rgba(43, 88, 118, 0.15);
}

.auth-tabs-header .auth-tab {
    margin: 0;
}

.auth-panel {
    display: none;
    animation: fadeInAuth 0.18s ease;
}

.auth-panel.active {
    display: block;
}

.auth-panels-wrapper {
    position: relative;
}

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

@media (max-width: 768px) {
    .auth-card-tabs {
        max-width: 100%;
        padding: 50px 28px 40px;
    }

    .auth-tabs-header {
        gap: 6px;
    }

    .auth-tab {
        font-size: 0.95em;
        padding: 11px 12px;
    }
}

@media (max-width: 480px) {
    .auth-card-tabs {
        padding: 45px 22px 35px;
    }

    .auth-tabs-header {
        flex-direction: column;
        gap: 8px;
    }

    .auth-tab {
        width: 100%;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 400;
}

h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 400;
}

.subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 35px;
    font-size: 1.05em;
    line-height: 1.5;
    font-weight: 300;
}

.input-group {
    margin-bottom: 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.9em;
    color: #4b5563;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(43, 88, 118, 0.35);
    border-radius: 4px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.forgot-password {
    font-size: 0.85em;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 60px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(43, 88, 118, 0.2);
    background-color: #fff;
    width: 38px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232b5876' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.toggle-password:hover {
    background-color: rgba(43, 88, 118, 0.08);
}

.toggle-password.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a18.38 18.38 0 0 1 4.47-5.69'/%3E%3Cpath d='M9.88 9.88a3 3 0 0 0 4.24 4.24'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

.toggle-password.active:hover {
    background-color: var(--primary-color);
}

.add-participant {
    display: flex;
    gap: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover {
    border-color: #999;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(43, 88, 118, 0.08);
}

input.input-error {
    border-color: #f87171;
    background: #fef2f2;
}

.input-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #999;
    font-style: normal;
}

.theme-select,
.player-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.theme-select:hover,
.player-select:hover {
    border-color: #999;
}

.theme-select:focus,
.player-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(43, 88, 118, 0.08);
}

.btn-primary {
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-primary:hover {
    background: #234563;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.participants-list {
    margin-bottom: 20px;
    /*min-height: 100px; */
}

.participants-hint {
    display: none;
    margin: 8px 0 16px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #fef3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 400;
}

.participants-hint.ok {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.participants-hint.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.participant-item:hover {
    background: #f1f3f5;
    border-color: #dee2e6;
}

.participant-item span {
    font-weight: 400;
    color: #333;
}

.remove-participant {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-participant:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-large {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
    box-shadow: none;
    letter-spacing: 0.2px;
}

.btn-large:hover:not(:disabled) {
    background: #234563;
    transform: translateY(-1px);
}

.btn-large:active:not(:disabled) {
    transform: translateY(0);
}

.btn-large:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-secondary.small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.section-divider {
    margin: 40px 0;
    height: 1px;
    background: #e5e5e5;
    border: none;
}

.section-divider::before {
    display: none;
}

.existing-session-card {
    padding-top: 10px;
}

/* Help boxes */
.help-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 1px solid rgba(43, 88, 118, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.help-box h3 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 12px;
    font-weight: 500;
}

.help-box p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.help-box p:last-child {
    margin-bottom: 0;
}

.help-steps {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.help-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95em;
}

.help-steps li:last-child {
    margin-bottom: 0;
}

.help-note {
    background: white;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: 12px;
}

.help-note strong {
    color: var(--primary-color);
}

.subtitle.small {
    font-size: 0.95em;
    margin-top: 4px;
    margin-bottom: 20px;
}

.form-error {
    min-height: 18px;
    margin-bottom: 10px;
    color: #dc2626;
    font-size: 0.88em;
    font-weight: 400;
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

.saved-sessions {
    margin-top: 30px;
}

.saved-sessions h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.saved-sessions-help {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(43, 88, 118, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.saved-sessions-help strong {
    color: var(--primary-color);
    font-weight: 600;
}

.saved-sessions-feedback {
    font-size: 0.9em;
    color: #1f5130;
    line-height: 1.4;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.12);
    border-left: 3px solid #2f855a;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.saved-sessions-feedback:empty {
    display: none;
}

.saved-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-session-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

.saved-session-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.saved-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.saved-session-id {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.saved-session-meta {
    font-size: 0.88em;
    color: #777;
    font-weight: 300;
}

.saved-session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.saved-session-actions button {
    flex: 1;
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-session-actions .open-session-btn {
    background: var(--primary-color);
    color: #fff;
}

.saved-session-actions .open-session-btn:hover {
    background: #234563;
    transform: translateY(-1px);
}

.saved-session-actions .copy-session-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid #d0d0d0;
}

.saved-session-actions .copy-session-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.saved-session-actions .delete-session-btn {
    background: #ef4444;
    color: #fff;
}

.saved-session-actions .delete-session-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.saved-sessions-empty {
    font-size: 0.95em;
    color: #555;
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-top: 10px;
}

.btn-secondary {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    width: 100%;
    padding: 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.btn-danger:hover {
    background: #ff5252;
}

/* Page de la roue */
.session-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.session-info h2 {
    font-size: 1em;
    margin: 0;
}

.player-section {
    margin-bottom: 30px;
    text-align: center;
}

.player-section p {
    margin-bottom: 10px;
    font-weight: 500;
}

.player-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 35px;
    padding: 0;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(43, 88, 118, 0.15);
}

.step.completed .step-number {
    background: #22c55e;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
}

.step-text {
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
    color: #666;
    font-weight: 400;
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

.instruction-text {
    text-align: center;
    color: #777;
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ff6b6b;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.btn-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(43, 88, 118, 0.4), 0 0 0 0 rgba(43, 88, 118, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    animation: heartbeat 2s ease-in-out infinite;
}

.btn-spin:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(43, 88, 118, 0.5), 0 0 0 8px rgba(43, 88, 118, 0.1);
    animation: none;
}

.btn-spin:disabled {
    background: #cbd5e0;
    border-color: #a0aec0;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

.admin-section {
    text-align: center;
    margin-top: 20px;
}

/* Confetti Celebration */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    animation: modalAppear 0.3s ease-out;
}

#review-modal .modal-content {
    max-width: 440px;
    padding: 36px 40px;
    text-align: left;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff 0%, #f1f5ff 100%);
    box-shadow: 0 22px 60px rgba(43, 88, 118, 0.15);
}

.review-modal-content h2 {
    font-size: 1.9em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.review-modal-subtitle {
    font-size: 1em;
    color: #4b5563;
    margin-bottom: 28px;
}

.review-stars {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.review-star {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #fff;
    color: rgba(148, 163, 184, 0.8);
    font-size: 1.6em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-star:hover,
.review-star:focus {
    transform: translateY(-1px);
}

.review-star.active {
    background: rgba(251, 191, 36, 0.16);
    color: #f59e0b;
    border-color: rgba(251, 191, 36, 0.55);
}

.review-modal-content .input-group label {
    color: #374151;
    font-weight: 500;
}

.review-modal-content input,
.review-modal-content textarea {
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.review-modal-content textarea {
    width: 100%;
}

.review-modal-content textarea {
    resize: none;
    min-height: 130px;
    padding: 14px;
    line-height: 1.5;
}

.review-modal-content .input-help {
    color: #9ca3af;
}

#review-error {
    margin-top: 6px;
}

#review-modal .modal-actions {
    margin-top: 26px;
    gap: 16px;
}

#review-modal .modal-actions button {
    max-width: none;
    height: 52px;
    border-radius: 14px;
}

#review-submit-btn {
    background: #dc2626;
    border: none;
    color: #fff;
    font-size: 1.05em;
}

#review-submit-btn:hover:not(:disabled) {
    background: #b91c1c;
}

#review-skip-btn {
    border-width: 2px;
    border-color: rgba(43, 88, 118, 0.25);
    color: var(--primary-color);
    background: transparent;
}

#review-skip-btn:hover {
    background: rgba(43, 88, 118, 0.08);
}

/* Custom Alert Modal */
.alert-modal-content {
    max-width: 450px;
    padding: 35px 40px;
}

.alert-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1;
}

.alert-modal-content h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.alert-modal-content p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

#alert-ok-btn {
    min-width: 120px;
    padding: 12px 30px;
}

.modal-content .input-group {
    text-align: left;
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
    max-width: 150px;
}

@keyframes modalAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-name {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: bold;
    margin: 20px 0;
}

/* Page Admin */
.stats {
    margin-bottom: 30px;
}

.attributions-list {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    min-height: 100px;
}

.attribution-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary-color);
}

.attribution-item:last-child {
    margin-bottom: 0;
}

.attribution-giver {
    font-weight: bold;
    color: var(--primary-color);
}

.attribution-receiver {
    color: #666;
}

.no-attributions {
    text-align: center;
    color: #999;
    padding: 20px;
}

@media (max-width: 1024px) {
    .testimonials-container {
        padding: 24px 26px;
    }

    .testimonial-card {
        padding: 20px 20px;
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
    }
}

@media (max-width: 720px) {
    .testimonials-section {
        padding: 40px 0 52px;
    }

    .testimonials-container {
        padding: 24px 22px;
    }

    .testimonials-header {
        text-align: center;
        margin: 0 auto;
    }

    .testimonials-slider {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-nav {
        position: static;
        transform: none;
        margin: 0 auto 14px;
    }

    .slider-nav:hover {
        transform: none;
    }

    #reviews-prev,
    #reviews-prev:hover,
    #reviews-next,
    #reviews-next:hover {
        transform: none;
    }

    .testimonial-card {
        min-height: auto;
        padding: 20px 18px;
        flex: 0 0 100%;
        width: 100%;
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-stars {
        font-size: 1.05em;
    }

    #review-modal .modal-content {
        padding: 36px 28px;
    }

    .review-star {
        width: 42px;
        height: 42px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    /* Retour en 1 colonne sur tablettes et mobiles */
    .session-forms-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 800px) {
    .wheel-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wheel-left h3,
    .wheel-left .instruction-text {
        text-align: center;
    }

    .container.wheel-layout {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .container.landing {
        flex-direction: column;
        padding: 30px 20px;
    }

    /* Masquer les décorations de cadeaux sur mobile */
    .container.landing::before,
    .container.landing::after {
        display: none;
    }

    .landing-content h1::before,
    .landing-content h1::after {
        display: none;
    }

    .landing-features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-item {
        max-width: 100%;
    }

    .auth-panels {
        flex-direction: column;
    }

    .session-forms-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 20px 0;
    }
    
    h1 {
        font-size: 1.5em;
    }

    .container.wheel-layout {
        padding: 30px 20px;
    }
    
    .wheel-container {
        max-width: 300px;
    }
    
    .btn-spin {
        width: 70px;
        height: 70px;
        font-size: 12px;
    }

    .step-indicator {
        flex-direction: column;
        gap: 12px;
    }

    .step {
        flex-direction: row;
        gap: 12px;
    }

    .step-text {
        text-align: left;
    }
}

