/* 🌿 Conteneur principal */
#tinan-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: #f4f4f4;
    border-radius: 25px;
    padding: 15px 25px;
    max-width: 420px;
    margin: 30px auto;
    transition: background-color 0.6s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}

/* 🟩🟥 États */
#tinan-container.tinan-available {
    background-color: #27ae60;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.5);
    animation: pulse-green 1.5s ease-out;
}

#tinan-container.tinan-unavailable {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    animation: pulse-red 1.5s ease-out;
}

/* ✨ Animations de pulsation */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 rgba(39,174,96,0.7); }
    50% { box-shadow: 0 0 25px rgba(39,174,96,0.9); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px rgba(39,174,96,0.5); transform: scale(1.03); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 rgba(231,76,60,0.7); }
    50% { box-shadow: 0 0 25px rgba(231,76,60,0.9); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px rgba(231,76,60,0.5); transform: scale(1.03); }
}

/* ⏳ État de chargement */
#tinan-container.tinan-loading {
    opacity: 0.7;
    transform: scale(1);
}

/* 🗓 Champ de date */
#tinan-date {
    border: none;
    background: transparent;
    font-size: 1rem;
    flex-grow: 1;
    color: inherit;
    text-align: center;
    outline: none;
    cursor: pointer;
    font-weight: 500;
}

/* 🔘 Bouton vérifier */
#tinan-check {
    background-color: white;
    color: #333;
    border: none;
    border-radius: 15px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#tinan-check:hover {
    background-color: #eee;
    transform: scale(1.05);
}

/* 🔄 Loader (animation) */
.tinan-loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #333;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✉️ Message de résultat */
.tinan-message {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 500;
    color: inherit;
}

/* 💫 Petit effet au survol global */
#tinan-container:hover:not(.tinan-loading) {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
