/* Design général */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 30px;
}

/* Formulaire */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus {
    border-color: #667eea;
    outline: none;
}

/* Bouton */
.btn-login {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn-login:hover {
    background: #5a6fd1;
    transform: translateY(-2px);
}

.alert {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-link {
    margin-top: 20px;
    font-size: 14px;
}

.footer-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}
.leaderboard {
    margin-top: 20px;
}

.score-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.rank {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
}

.name {
    flex-grow: 1;
    text-align: left;
    margin-left: 15px;
    font-weight: 500;
}

.points {
    background: #764ba2;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}
.grid-recompenses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.card-reward {
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 15px;
    transition: 0.3s;
}

.card-reward.locked {
    filter: grayscale(1);
    opacity: 0.6;
    border-color: #ccc;
}

.emoji { font-size: 2em; }
.btn-buy {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8em;
}
.notification-badge {
    background: #ff4757;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.add-button {
    background: #48bb78 !important; /* Vert pour l'action d'installation */
    border: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}
.task-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-moment {
    font-size: 0.7em;
    text-transform: uppercase;
    color: #667eea;
    font-weight: bold;
}

.task-name { margin: 0; font-size: 1.1em; }

.task-points {
    display: inline-block;
    background: #f0fdf4;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.btn-done {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.success-banner {
    background: #48bb78;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out, fadeOut 0.5s 3s forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}