/* ════════════════════════════════════════
   LA LETTRE ENSEMBLE — page publique
   ════════════════════════════════════════ */

.lettre-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ── Bannière Visiteur non connecté ── */
.lettre-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.05);
}

.lettre-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.lettre-notice-text {
    flex: 1;
    font-size: 0.925rem;
    line-height: 1.5;
    color: #0f172a;
}

.lettre-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
}

.lettre-notice-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    color: #ffffff !important;
}

/* ── Alerte Alumni connecté NON-ADHÉRENT ── */
.lettre-alert-adherent {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 1px solid #fecaca;
    border-left: 5px solid #dc2626;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.lettre-alert-adherent__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.lettre-alert-adherent__body {
    flex: 1;
    min-width: 0;
}

.lettre-alert-adherent__title {
    font-size: 1rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 4px 0;
}

.lettre-alert-adherent__text {
    font-size: 0.92rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.45;
}

.lettre-alert-adherent__actions {
    flex-shrink: 0;
}

.lettre-alert-adherent__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.lettre-alert-adherent__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    filter: brightness(1.05);
    color: #ffffff !important;
}

/* ── Liste vide ── */
.lettre-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.lettre-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    color: #454796;
}

/* ── Grille des numéros ── */
.lettre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.lettre-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.lettre-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: inherit;
    border-color: #cbd5e1;
}

.lettre-card--locked {
    background: #fdfdfd;
    border-color: #f1f5f9;
}

.lettre-card--locked:hover {
    border-color: #fecaca;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
}

.lettre-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fdf1f2;
    color: #dc3545;
    font-size: 1.2rem;
}

.lettre-card--locked .lettre-card-icon {
    background: #fef2f2;
    color: #ef4444;
}

.lettre-card-body {
    flex: 1;
    min-width: 0;
}

.lettre-card-body h3 {
    font-size: 15px;
    margin: 0 0 2px 0;
    font-weight: 600;
    color: #1e293b;
}

.lettre-card-body p {
    margin: 0;
    font-size: 13px;
    color: #454796;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lettre-card-body p.lettre-card-status {
    color: #b91c1c;
    font-weight: 600;
}

.lettre-card-arrow {
    color: #454796;
    font-size: 1rem;
    flex-shrink: 0;
}

.lettre-card--locked .lettre-card-arrow {
    color: #94a3b8;
}

/* ── Responsive Mobile ── */
@media (max-width: 768px) {
    .lettre-notice {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .lettre-notice-btn {
        justify-content: center;
        width: 100%;
    }

    .lettre-alert-adherent {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .lettre-alert-adherent__actions {
        width: 100%;
    }

    .lettre-alert-adherent__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── lettre_ensemble (anciennement en style inline) ── */
body .lettre-wrapper--flush {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

