/* --- Base et Layout --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; /* 100dvh s'adapte mieux aux barres de navigation mobiles */
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 0;
    box-sizing: border-box;
}

/* --- Typographie --- */
h1 {
    margin-top: 0;
    font-size: 26px;
    color: #facc15;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
    color: #9ca3af;
}

/* --- Structure des champs (Style Liste Application) --- */
.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-group label {
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0;
}

input {
    width: 70px;
    height: 50px;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

input:focus {
    border-color: #e11d48;
    background-color: rgba(0, 0, 0, 0.5);
}

/* --- Validation des couleurs --- */
input.correct {
    border-color: #4ade80 !important;
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

input.incorrect {
    border-color: #f87171 !important;
    background-color: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* --- Bouton d'action --- */
button {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.2);
}

/* --- Messages et Utilitaires --- */
.hidden {
    display: none !important;
}

#error-message {
    color: #f87171;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* --- Écran de succès --- */
.disney-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: block;
}

.success-text {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e7eb;
    margin-top: 15px;
    text-align: center;
}
