/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #1e2130;
    --bg-card-hover: #252839;
    --border-color: #2a2d3a;
    --text-primary: #e4e6f0;
    --text-secondary: #8b8fa3;
    --text-muted: #5a5e72;
    --accent: #6c8cff;
    --accent-hover: #8aa4ff;
    --green: #4ade80;
    --red: #f87171;
    --orange: #fbbf24;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100vw;
}

/* === Header === */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.btn-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-add:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* === Dashboard Grid === */
.dashboard-grid {
    column-count: 2;
    column-gap: 20px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.block-card {
    break-inside: avoid;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        column-count: 1;
        padding: 16px;
    }

    .header {
        padding: 16px;
    }

    .header-title {
        font-size: 1.2rem;
    }
}

/* === Block Card === */
.block-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.block-card:hover {
    border-color: var(--accent);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-color);
}

.block-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.block-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.block-move {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    opacity: 0;
}

.block-card:hover .block-move {
    opacity: 1;
}

.block-move:hover {
    background-color: rgba(108, 140, 255, 0.15);
    color: var(--accent);
}

.block-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.block-remove:hover {
    background-color: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.block-content {
    padding: 20px;
}

/* === Add Menu === */
.add-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.add-menu.active {
    display: flex;
}

.add-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.add-menu-content {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 300px;
    max-width: 90vw;
    box-shadow: var(--shadow);
}

.add-menu-content h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.add-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.add-menu-item:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent);
}

.add-menu-item .item-icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
}

.add-menu-item .item-label {
    font-weight: 500;
}

.add-menu-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* === DateTime Block === */
.datetime-container {
    text-align: center;
    padding: 10px 0;
}

.datetime-time {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.datetime-seconds {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.datetime-date {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: capitalize;
}

/* === Stocks Block === */
.stocks-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.stock-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stock-item:first-child {
    padding-top: 0;
}

.stock-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.stock-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stock-values {
    text-align: right;
}

.stock-price {
    font-size: 1.2rem;
    font-weight: 600;
}

.stock-change {
    font-size: 0.85rem;
    margin-top: 2px;
}

.stock-change.positive {
    color: var(--green);
}

.stock-change.negative {
    color: var(--red);
}

.stock-change.neutral {
    color: var(--text-muted);
}

.stock-sparkline {
    width: 100%;
    max-width: 100%;
    height: 80px;
    display: block;
    min-width: 0;
}

.stocks-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* === News Block === */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:first-child {
    padding-top: 0;
}

.news-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: var(--accent);
}

.news-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === Weather Block === */
.weather-container {
    text-align: center;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.weather-icon {
    font-size: 3rem;
    line-height: 1;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

.weather-temp-unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.weather-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.weather-detail {
    text-align: center;
}

.weather-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weather-detail-value {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

.weather-minmax {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.weather-min, .weather-max {
    font-size: 0.9rem;
}

.weather-min {
    color: var(--accent);
}

.weather-max {
    color: var(--orange);
}

/* === Weather Forecast === */
.weather-forecast {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
}

.weather-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.weather-forecast-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: capitalize;
    white-space: nowrap;
}

.weather-forecast-icon {
    font-size: 1rem;
    line-height: 1;
}

.weather-forecast-max {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
}

.weather-forecast-min {
    font-size: 0.7rem;
    color: var(--accent);
}

/* === Loading & Error States === */
.block-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.block-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.block-error {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.block-error-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.block-error-retry {
    margin-top: 12px;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.block-error-retry:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* === Quick Links Block === */
.quicklinks-container {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quicklink-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.quicklink-item:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.quicklink-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.quicklink-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.quicklink-item:hover .quicklink-name {
    color: var(--accent);
}

/* === Countdown Block === */
.countdown-container {
    text-align: center;
    padding: 28px 12px 20px;
    border-radius: 8px;
    /* Voile sombre par-dessus la photo pour garder le décompte lisible */
    background:
        linear-gradient(rgba(15, 17, 23, 0.55), rgba(15, 17, 23, 0.75)),
        url('../img/saintmartin.jpg') center / cover no-repeat;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.countdown-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.countdown-number {
    font-size: 2.2rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.1;
    padding-top: 2px;
}

.countdown-target {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* === Sunrise/Sunset Block === */
.sunrise-container {
    text-align: center;
}

.sunrise-times {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.sunrise-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sunrise-icon {
    font-size: 2rem;
    line-height: 1;
}

.sunrise-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sunrise-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.sunrise-progress-container {
    padding: 0 8px;
    margin-bottom: 16px;
}

.sunrise-progress-track {
    position: relative;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: visible;
}

.sunrise-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sunrise-progress-sun {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    line-height: 1;
    transition: left 0.3s ease;
}

.sunrise-daylength {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* === Trajet Block === */
.trajet-container {
    text-align: center;
}

.trajet-direction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.trajet-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trajet-main-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.trajet-duration-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.trajet-duration {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
}

.trajet-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.trajet-separator {
    color: var(--text-muted);
}

.trajet-traffic-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.trajet-dot-green { background-color: #28a745; }
.trajet-dot-yellow { background-color: #ffc107; }
.trajet-dot-red { background-color: #dc3545; }

.trajet-footer {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.trajet-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trajet-swap-btn {
    margin-top: 12px;
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trajet-swap-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(108, 140, 255, 0.1);
}


/* === Bloc Hydro-Québec === */
.hq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hq-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.hq-status-ok {
    background: rgba(74, 222, 128, 0.1);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.hq-status-alerte {
    background: rgba(248, 113, 113, 0.1);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.hq-status-info {
    background: rgba(108, 140, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(108, 140, 255, 0.2);
}

.hq-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hq-dot-ok {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.hq-dot-alerte {
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    animation: hq-pulse 1.6s ease-in-out infinite;
}

.hq-dot-info {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

@keyframes hq-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hq-panne {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hq-panne:hover {
    border-color: var(--text-muted);
}

.hq-panne-active {
    border-color: #f87171 !important;
    background: rgba(248, 113, 113, 0.08) !important;
}

.hq-panne-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hq-panne-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f87171;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hq-clients {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hq-distance {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.hq-cause {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.hq-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
}

.hq-time-label {
    color: var(--text-muted);
}

.hq-time-val {
    color: var(--text-secondary);
}

.hq-time-sep {
    color: var(--text-muted);
    margin: 0 4px;
}

.hq-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-top: 2px;
}

.hq-duree {
    color: var(--text-muted);
}

.hq-remaining {
    color: var(--text-secondary);
}

.hq-progress-bar-track {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 5px 0 4px;
}

.hq-progress-bar-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.hq-statut {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    text-transform: uppercase;
}

.hq-statut-alerte {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.hq-statut-avertissement {
    background: rgba(251, 191, 36, 0.15);
    color: var(--orange);
}

.hq-statut-ok {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
}

.hq-statut-info {
    background: rgba(108, 140, 255, 0.15);
    color: var(--accent);
}

.hq-map {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hq-map-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f87171;
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.hq-map-marker-active {
    background: #6c8cff;
    transform: scale(1.35);
    box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.4), 0 2px 8px rgba(0,0,0,0.4);
}

.hq-map .leaflet-control-attribution {
    font-size: 0.6rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
}

.hq-map .leaflet-control-attribution a {
    color: var(--text-muted);
}

.hq-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}


/* === Bloc Alertes Météo === */
.alertes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alertes-clear {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
}

.alertes-clear-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: alertes-pulse 2.5s ease-in-out infinite;
}

@keyframes alertes-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.alertes-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alertes-warning {
    border-left-color: var(--red);
    background: rgba(248, 113, 113, 0.05);
}

.alertes-watch {
    border-left-color: var(--orange);
    background: rgba(251, 191, 36, 0.05);
}

.alertes-advisory {
    border-left-color: #facc15;
    background: rgba(250, 204, 21, 0.04);
}

.alertes-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.alertes-badge-warning {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.alertes-badge-watch {
    background: rgba(251, 191, 36, 0.15);
    color: var(--orange);
}

.alertes-badge-advisory {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
}

.alertes-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.alertes-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.alertes-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.alertes-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.alertes-link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.alertes-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.alertes-lire-plus {
    display: inline-block;
    margin-top: 5px;
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-size: 0.78rem;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.alertes-lire-plus:hover {
    opacity: 1;
    text-decoration: underline;
}

.alertes-updated {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
}
