/* ==========================================================================
   /nouveautes — journal des nouveautes (home/nouveautes.html.twig)

   Mise en page de journal produit : la date dans une colonne etroite a
   gauche, l'entree dans une carte blanche a droite. Sous 768 px la date
   passe au-dessus de sa carte. Ecrit contre public/css/tokens.css.
   ========================================================================== */

.nv {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-16) var(--gutter-page) var(--space-24);
    color: var(--ink);
    font-family: var(--font-ui);
}

/* ---------- En-tete --------------------------------------------------------- */
.nv-head {
    max-width: 640px;
    margin-bottom: var(--space-12);
}

.nv-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-section);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--track-display);
    line-height: var(--lh-tight);
}

.nv-lead {
    margin: var(--space-4) 0 0;
    font-size: var(--text-body-lg);
    line-height: var(--lh-loose);
    color: var(--ink-secondary);
}

.nv-meta {
    margin: var(--space-3) 0 0;
    font-size: var(--text-sm);
    color: var(--ink-muted);
}

/* ---------- Entrees --------------------------------------------------------- */
.nv-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-entry {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
    scroll-margin-top: var(--space-6);
}

.nv-date {
    position: sticky;
    top: var(--space-6);
    margin: 0;
    padding-top: var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    font-variant-numeric: tabular-nums;
}

.nv-date a {
    color: var(--ink-muted);
    text-decoration: none;
    border-radius: var(--radius-chip);
}

.nv-date a:hover {
    color: var(--ink);
}

.nv-date a:focus-visible,
.nv-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.nv-card {
    padding: var(--space-6) var(--space-8) var(--space-8);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-1);
}

.nv-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: var(--weight-semibold);
    letter-spacing: var(--track-title);
    line-height: var(--lh-snug);
}

.nv-card-text {
    margin: var(--space-3) 0 0;
    font-size: var(--text-body);
    line-height: var(--lh-loose);
    color: var(--ink-secondary);
}

.nv-group {
    margin: var(--space-6) 0 0;
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-label);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--track-label);
    color: var(--ink-muted);
}

.nv-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
}

.nv-items li {
    position: relative;
    padding-left: var(--space-5);
    font-size: 14px;
    line-height: var(--lh-normal);
    color: var(--ink-secondary);
}

/* Une pastille par ligne : verte pour une amelioration, grise pour une
   correction. La couleur double le titre du groupe, elle ne le remplace pas. */
.nv-items li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.nv-items--fix li::before {
    background: var(--ink-faint);
}

/* ---------- Pied ------------------------------------------------------------ */
.nv-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding: var(--space-6) var(--space-8);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.nv-foot p {
    margin: 0;
    font-size: var(--text-body);
    color: var(--ink-secondary);
}

.nv-btn {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
    padding: 0 var(--space-5);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-button);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    text-decoration: none;
}

.nv-btn:hover {
    border-color: var(--ink);
}

@media (max-width: 768px) {
    .nv {
        padding-top: var(--space-10);
    }

    .nv-entry {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-2);
    }

    .nv-date {
        position: static;
        padding-top: 0;
    }

    .nv-card {
        padding: var(--space-5);
    }

    .nv-card-title {
        font-size: 19px;
    }

    .nv-foot {
        padding: var(--space-5);
    }

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