/* ============================================================================
   nosk8-riders.css — Fiches riders NOSK8 (page + modale)
   David 2026-08-31 : « visuellement trop standard, il faut que ça colle à la DA »
   + « que les fiches s'ouvrent en pop-up par-dessus l'article ».

   Même langage que la recherche et la home : navy #1a2744, grain 90s, Bebas
   condensé, Space Mono pour les chiffres, néon RÉSERVÉ aux stats. Aucun cercle
   autour des icônes, aucun emoji d'interface. Mobile-first : la modale monte du
   bas comme un drawer, elle se centre à partir de 720 px.
   Préfixe : .n8-rd
   ============================================================================ */
.n8-rd {
    --navy:      #1a2744;
    --navy-soft: #2a3a5c;
    --ink:       #111111;
    --paper:     #ffffff;
    --cream:     #f6f5f1;
    --line:      #e7e6e1;
    --muted:     #7c7f88;
    --accent:    #00e0b8;
    --radius:    13px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.n8-rd *, .n8-rd *::before, .n8-rd *::after { box-sizing: border-box; }

/* ── Bandeau ──────────────────────────────────────────────────────────────── */
.n8-rd__head {
    position: relative;
    background: var(--navy);
    color: #fff;
    padding: 18px 20px 16px;
    overflow: hidden;
}
.n8-rd__head::before {                     /* grain pellicule 90s */
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27 opacity=%270.5%27/%3E%3C/svg%3E");
    opacity: .06; mix-blend-mode: overlay; pointer-events: none;
}
.n8-rd__eyebrow {
    position: relative; display: flex; align-items: center; gap: 10px;
    font-family: 'Space Mono', monospace; font-size: 10px;
    letter-spacing: .24em; text-transform: uppercase;
    color: rgba(255,255,255,.55); margin: 0 0 12px;
}
.n8-rd__eyebrow-rule { flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.n8-rd__id { position: relative; display: flex; gap: 16px; align-items: flex-end; }
.n8-rd__photo {
    width: 96px; height: 96px; flex: 0 0 auto; display: block;
    object-fit: cover; border-radius: 14px;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    background: var(--navy-soft);
}
.n8-rd__name {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(30px, 8vw, 46px); line-height: .92;
    letter-spacing: .012em; margin: 0 0 6px; color: #fff;
}
.n8-rd__meta {
    font-family: 'Space Mono', monospace; font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.62); margin: 0;
}
.n8-rd__meta b { color: var(--accent); font-weight: 700; }   /* néon : stats seulement */

/* ── Corps ────────────────────────────────────────────────────────────────── */
.n8-rd__body { padding: 18px 20px 22px; }
.n8-rd__lead {
    font-size: 1.02rem; line-height: 1.65; margin: 0 0 18px;
    color: var(--ink); font-weight: 600;
    border-left: 3px solid var(--navy); padding-left: 14px;
}
.n8-rd__sect {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 20px; letter-spacing: .05em; color: var(--ink);
    margin: 22px 0 10px; display: flex; align-items: center; gap: 10px;
}
.n8-rd__sect::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.n8-rd__text { font-size: .97rem; line-height: 1.72; color: #333; margin: 0 0 12px; }

/* Identité : deux colonnes serrées, façon fiche technique */
.n8-rd__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 4px; }
.n8-rd__facts dt {
    font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.n8-rd__facts dd { margin: 0; font-size: .95rem; font-weight: 600; color: var(--ink); }

/* Dates : l'année en mono, un filet, le fait */
.n8-rd__dates { list-style: none; padding: 0; margin: 0; }
.n8-rd__dates li {
    display: flex; gap: 14px; padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.n8-rd__dates li:last-child { border-bottom: 0; }
.n8-rd__year {
    font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px;
    color: var(--navy); flex: 0 0 52px; padding-top: 2px;
}
.n8-rd__what { font-size: .95rem; line-height: 1.6; color: #333; }

/* Articles liés : liste-filets, pas de puces */
.n8-rd__links { list-style: none; padding: 0; margin: 0; }
.n8-rd__links li { border-bottom: 1px solid var(--line); }
.n8-rd__links li:last-child { border-bottom: 0; }
.n8-rd__links a {
    display: block; padding: 11px 0; color: var(--ink); text-decoration: none;
    font-size: .95rem; line-height: 1.45; font-weight: 600;
    transition: color .15s ease, padding-left .15s ease;
}
.n8-rd__links a:hover { color: var(--navy-soft); padding-left: 6px; }
.n8-rd__credit { font-size: 10px; color: #9aa3b2; margin: 10px 0 0; }
.n8-rd__note { font-size: .84rem; color: var(--muted); font-style: italic; margin: 16px 0 0; }

/* ── Modale : la fiche par-dessus l'article ───────────────────────────────── */
.n8-rdm { position: fixed; inset: 0; z-index: 99999; display: none; }
.n8-rdm.is-open { display: block; }
.n8-rdm__veil {
    position: absolute; inset: 0; background: rgba(10,15,26,.72);
    backdrop-filter: blur(2px); animation: n8rdFade .18s ease;
}
.n8-rdm__panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--paper, #fff);
    border-radius: 16px 16px 0 0;
    animation: n8rdUp .22s cubic-bezier(.2,.7,.3,1);
    box-shadow: 0 -18px 60px rgba(0,0,0,.4);
}
.n8-rdm__panel .n8-rd { border: 0; border-radius: 0; }
.n8-rdm__close {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; padding: 0;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;                                   /* jamais de cercle */
    color: #fff; cursor: pointer; line-height: 0;
    display: flex; align-items: center; justify-content: center;
}
.n8-rdm__close:hover { background: rgba(255,255,255,.24); }
.n8-rdm__skeleton { padding: 26px 20px; }
.n8-rdm__skeleton span {
    display: block; height: 12px; border-radius: 6px; margin: 0 0 10px;
    background: linear-gradient(90deg,#eceef2 25%,#f6f7f9 50%,#eceef2 75%);
    background-size: 400% 100%; animation: n8rdShine 1.1s linear infinite;
}
.n8-rdm__skeleton span:nth-child(1) { width: 42%; height: 26px; }
.n8-rdm__skeleton span:nth-child(2) { width: 88%; }
.n8-rdm__skeleton span:nth-child(3) { width: 74%; }
@keyframes n8rdShine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes n8rdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes n8rdUp { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }

@media (min-width: 720px) {
    .n8-rdm__panel {
        top: 50%; left: 50%; right: auto; bottom: auto;
        transform: translate(-50%,-50%); width: min(680px, 92vw);
        max-height: 88vh; border-radius: 16px;
        animation: n8rdPop .2s cubic-bezier(.2,.7,.3,1);
    }
    @keyframes n8rdPop {
        from { transform: translate(-50%,-46%) scale(.97); opacity: .5; }
        to   { transform: translate(-50%,-50%) scale(1); opacity: 1; }
    }
    .n8-rd__photo { width: 118px; height: 118px; }
}

/* Le lien rider dans un article : discret, mais on voit que c'est cliquable */
a.n8-rd-link {
    color: #5a7a9a; font-weight: 800; text-decoration: none;
    border-bottom: 1.5px dotted currentColor; cursor: pointer;
}
a.n8-rd-link:hover { color: var(--navy-soft, #2a3a5c); border-bottom-style: solid; }

/* Grille de l'index /riders/ */
.n8-rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 22px 0; }
.n8-rd-card {
    display: flex; gap: 12px; align-items: center; text-decoration: none;
    background: #fff; border: 1px solid #e7e6e1; border-left: 3px solid #1a2744;
    border-radius: 12px; padding: 12px 14px; transition: transform .12s ease, box-shadow .12s ease;
}
.n8-rd-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,39,68,.12); }
.n8-rd-card img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.n8-rd-card b { display: block; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 19px; letter-spacing: .03em; color: #111; }
.n8-rd-card span { display: block; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7c7f88; }
