/* ====== Palette ======
   Jaune principal : #FFD54F
   Jaune foncé : #FBC02D
   Or doux : #FFECB3
   Gris clair : #FAFAFA
   Gris texte : #444
   ====================== */

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #FFF9C4, #FFE082);
    font-family: 'Poppins', Arial, sans-serif;
    color: #444;
}

/* === Conteneur principal === */
#game {
    background-color: #FFECB3;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 30px 40px;
    text-align: center;
    width: 420px;
    transition: transform 0.3s ease;
}

#game:hover {
    transform: scale(1.02);
}

/* === Image === */
#photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#photo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* === Zone de saisie === */
#input-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#date-input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #FBC02D;
    font-size: 16px;
    background-color: #FAFAFA;
    transition: border-color 0.3s ease;
}

#date-input:focus {
    outline: none;
    border-color: #FFD54F;
    background-color: #FFFDE7;
}

/* === Bouton === */
button {
    background-color: #FBC02D;
    border: none;
    color: #333;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #FFD54F;
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.97);
}

/* === Feedback et scores === */
#feedback {
    font-weight: 600;
    margin: 10px 0 5px 0;
    color: #5D4037;
    font-size: 18px;
    min-height: 28px; /* pour éviter les sauts visuels */
}

#score, #combo {
    font-size: 17px;
    margin: 5px 0;
    color: #6D4C41;
}

/* === Animation d’apparition === */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#game, #photo, #input-zone, #feedback, #score, #combo {
    animation: fadeIn 0.6s ease;
}

#next {
    background-color: #FFD54F;
}

#next:hover {
    background-color: #FFF176;
}
