/* ==========================================================================
   PARTIE 1 — HERO
   ========================================================================== */

.notifs-hero {
    padding: 48px 24px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.notifs-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--couleur-corail);
    margin-bottom: 8px;
}

.notifs-eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background-color: var(--couleur-corail);
    margin-right: 10px;
    vertical-align: middle;
}

.notifs-titre {
    font-family: var(--police-exergue);
    font-size: 2rem;
    font-weight: 400;
    color: var(--couleur-anthracite);
}

[data-theme="sombre"] .notifs-titre {
    color: #f0ebe6;
}

/* ==========================================================================
   PARTIE 2 — OUTILS
   ========================================================================== */

.notifs-corps {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 24px 100px;
    overflow-x: hidden;
}

.notifs-outils {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(38, 53, 60, 0.08);
}

[data-theme="sombre"] .notifs-outils {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.notifs-recherche {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.notifs-recherche i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(38, 53, 60, 0.35);
    font-size: 0.85rem;
}

[data-theme="sombre"] .notifs-recherche i {
    color: rgba(240, 235, 230, 0.35);
}

.notifs-recherche input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 10px;
    border: 1px solid rgba(38, 53, 60, 0.12);
    font-size: 0.88rem;
    background-color: #ffffff;
    color: var(--couleur-anthracite);
}

[data-theme="sombre"] .notifs-recherche input {
    background-color: #232a2f;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f0ebe6;
}

.notifs-outils .select-inkwell {
    max-width: 170px;
}

/* ==========================================================================
   PARTIE 3 — SÉLECTION
   ========================================================================== */

.notifs-tout-selectionner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(38, 53, 60, 0.6);
    margin-bottom: 14px;
    cursor: pointer;
    width: fit-content;
}

[data-theme="sombre"] .notifs-tout-selectionner {
    color: rgba(240, 235, 230, 0.6);
}

.notifs-tout-selectionner input {
    width: 16px;
    height: 16px;
    accent-color: var(--couleur-corail);
}

.notifs-barre-selection {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--couleur-anthracite);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notifs-barre-selection[hidden] {
    display: none;
}

.notifs-selection-bouton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.notifs-selection-bouton:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notifs-selection-bouton--danger {
    color: #ff9a9d;
    border-color: rgba(255, 154, 157, 0.4);
}

.notifs-selection-bouton--danger:hover {
    background-color: rgba(255, 103, 106, 0.15);
}

.notifs-selection-annuler {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}

/* ==========================================================================
   PARTIE 4 — LISTE PAR PÉRIODE
   ========================================================================== */

.notifs-periode-titre {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(38, 53, 60, 0.4);
    margin: 22px 0 10px;
}

.notifs-periode-titre:first-child {
    margin-top: 0;
}

[data-theme="sombre"] .notifs-periode-titre {
    color: rgba(240, 235, 230, 0.4);
}

.notif-carte {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease;
    position: relative;
}

.notif-carte:hover {
    background-color: rgba(38, 53, 60, 0.03);
}

[data-theme="sombre"] .notif-carte:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.notif-carte--non-lue {
    background-color: rgba(255, 103, 106, 0.05);
}

[data-theme="sombre"] .notif-carte--non-lue {
    background-color: rgba(255, 103, 106, 0.08);
}

.notif-carte__case {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(38, 53, 60, 0.2);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.65rem;
    cursor: pointer;
}

[data-theme="sombre"] .notif-carte__case {
    border-color: rgba(255, 255, 255, 0.25);
}

.notif-carte__case--cochee {
    background-color: var(--couleur-corail);
    border-color: var(--couleur-corail);
    color: #ffffff;
}

.notif-carte__icone {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: #ffffff;
}

.notif-carte__corps {
    flex: 1;
    min-width: 0;
}

.notif-carte__texte {
    font-size: 0.88rem;
    color: var(--couleur-anthracite);
    line-height: 1.5;
}

[data-theme="sombre"] .notif-carte__texte {
    color: #f0ebe6;
}

.notif-carte__date {
    font-size: 0.74rem;
    color: rgba(38, 53, 60, 0.45);
    margin-top: 3px;
}

[data-theme="sombre"] .notif-carte__date {
    color: rgba(240, 235, 230, 0.45);
}

.notif-carte__point-non-lu {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--couleur-corail);
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-carte__supprimer {
    color: rgba(38, 53, 60, 0.25);
    font-size: 0.85rem;
    flex-shrink: 0;
    padding: 4px;
}

.notif-carte__supprimer:hover {
    color: var(--couleur-rouge-vif);
}

[data-theme="sombre"] .notif-carte__supprimer {
    color: rgba(240, 235, 230, 0.25);
}

/* ==========================================================================
   PARTIE 5 — ÉTATS VIDES / PAGINATION
   ========================================================================== */

.notifs-vide {
    text-align: center;
    padding: 80px 20px;
    color: rgba(38, 53, 60, 0.45);
}

[data-theme="sombre"] .notifs-vide {
    color: rgba(240, 235, 230, 0.45);
}

.notifs-vide i {
    font-size: 2.2rem;
    opacity: 0.3;
    margin-bottom: 14px;
    display: block;
}

.notifs-pagination-num {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.notifs-pagination-num button {
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
    background-color: #ffffff;
    color: var(--couleur-anthracite);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(38, 53, 60, 0.08);
}

.notifs-pagination-num button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.notifs-pagination-num button.notifs-pagination-num__actif {
    background-color: var(--couleur-corail);
    color: #ffffff;
}

[data-theme="sombre"] .notifs-pagination-num button {
    background-color: #232a2f;
    color: #f0ebe6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
    .notifs-outils {
        flex-direction: column;
    }

    .notifs-outils .select-inkwell {
        max-width: none;
    }

    .notifs-barre-selection {
        flex-direction: column;
        align-items: stretch;
    }

    .notifs-selection-annuler {
        margin-left: 0;
        text-align: center;
    }
}