/* Page */
.streak-page {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
    text-align: center;
}

/* Header */
.streak-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.streak-freeze-banner {
    margin: 0 auto 1.2rem;
    max-width: 820px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbe1f2;
    background: linear-gradient(120deg, #ecf6ff 0%, #ebfff3 100%);
    color: #16435b;
    font-size: 0.95rem;
    text-align: center;
}



.streak-header h1 {
    margin: 0;
}

/* Boutons */
.btn-primary {
    background: #4361ee;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #3a0ca3;
}

.btn-validate {
    display: block;
    margin-top: 1rem;
    background: #146bb3;
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-validate:hover {
    background: #219ebc;
}

/* Grid centrée */
.streak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.streak-card {
    background: white;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border: 2px solid #e0e0e0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin: 20px 0px;
}

.streak-card-no-main {
    border-color: #0a5694;
    background: #6d81b8;
    color: white;
    text-align: center;
}

.streak-card-no-main a {
    color: white;
}

.streak-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Validée aujourd’hui */
.streak-card.done {
    border-color: #2ec4b6;
    background: #f0fffb;
}

.streak-card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* Stats */
.streak-stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.streak-stats .label {
    font-size: 0.8rem;
    color: #666;
}

.streak-stats .value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Status */
.streak-status.success {
    text-align: center;
    background: #2ec4b6;
    color: white;
    padding: 0.4rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Empty */
.empty-state {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    font-style: italic;
}

.streak-form-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;

    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid #e0e0e0;
}

.form-group {
    margin-bottom: 1.4rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;

    border-radius: 10px;
    border: 2px solid #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2ec4b6;
    box-shadow: 0 0 0 3px rgba(46,196,182,0.2);
}

.back-link {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
}
