/* ============================================================
   CONSOMMABLES v1 — consommables et accessoires pour films et scanners,
   design system NEON. S'appuie sur neon-page.css.
   Classes propres à cette page préfixées .csm- pour éviter tout conflit.
   ============================================================ */

/* ---------- MISE EN PAGE SANS VISUEL (si les photos ne sont pas encore en ligne) ---------- */
.neon-split.csm-solo { display: block; }

/* ---------- PASTILLE DE FAMILLE ---------- */
.csm-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--neon-accent);
    background: rgba(89,148,212,.12);
    border-radius: 20px;
    padding: 3px 12px;
    margin: 0 6px 12px 0;
}

/* ---------- SOMMAIRE (8 familles) ---------- */
.csm-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.csm-toc a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--neon-light-hairline);
    background: #fff;
    transition: border-color .15s ease, transform .15s ease;
}
.csm-toc a:hover { border-color: var(--neon-accent); transform: translateY(-2px); }
.csm-toc-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .05em; color: var(--neon-accent); font-weight: 600; }
.csm-toc-title { font-size: 15px; font-weight: 600; color: var(--neon-light-text); line-height: 1.35; }
.csm-toc-desc { font-size: 12.5px; line-height: 1.55; color: var(--neon-light-text-dim); }

/* ---------- GRILLE D'ARTICLES ---------- */
.csm-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }

.csm-card {
    background: #fff;
    border: 1px solid var(--neon-light-hairline);
    border-radius: 12px;
    padding: 20px 22px;
}
.csm-card h3 { font-size: 15px; color: var(--neon-accent); margin: 0 0 8px; }
.csm-card p { font-size: 13px; line-height: 1.6; color: var(--neon-light-text-dim); margin: 0; }

.csm-card-dark {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--neon-dark-hairline);
    border-radius: 12px;
    padding: 20px 22px;
}
.csm-card-dark h3 { font-size: 15px; color: var(--neon-accent); margin: 0 0 8px; }
.csm-card-dark p { font-size: 13px; line-height: 1.6; color: var(--neon-dark-text-dim); margin: 0; }
.csm-card-dark a, .csm-card a { color: var(--neon-accent); font-weight: 600; }

/* ---------- PHOTOS PRODUITS (fond blanc, petits formats) ---------- */
.csm-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: stretch; }
.csm-shots-1 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.csm-shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--neon-light-hairline);
}
.csm-shot-img { display: flex; align-items: center; justify-content: center; padding: 12px; min-height: 180px; }
.csm-shot img { display: block; max-height: 220px; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.csm-shot figcaption {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #4a5568;
    background: #f5f7fa;
    border-top: 1px solid #e3e8ef;
    margin-top: auto;
}
/* Photo d'ambiance (amorce 8 mm) : plein cadre */
.csm-shot-full .csm-shot-img { padding: 0; min-height: 0; }
.csm-shot-full img { max-height: none; width: 100%; }

/* ---------- NOTES ---------- */
.csm-note {
    padding: 18px 22px;
    background: rgba(89,148,212,.1);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--neon-light-text-dim);
    margin-top: 24px;
    max-width: 780px;
}
.csm-note strong { color: var(--neon-light-text); }
.csm-note a { color: var(--neon-accent); font-weight: 600; }

.csm-note-dark {
    padding: 18px 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--neon-dark-hairline);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--neon-dark-text-dim);
    margin-top: 24px;
    max-width: 780px;
}
.csm-note-dark strong { color: var(--neon-dark-text); }
.csm-note-dark a { color: var(--neon-accent); font-weight: 600; }

/* ---------- LIENS VERS LES AUTRES PAGES ---------- */
.csm-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Boutons secondaires sur bande claire (famille 4) : le style de base est prévu pour fond sombre */
.neon-band-light .csm-links .neon-btn-secondary {
    color: var(--neon-light-text);
    background: #fff;
    border-color: rgba(26, 36, 47, .28);
    font-weight: 600;
    transition: border-color .2s, color .2s;
}
.neon-band-light .csm-links .neon-btn-secondary:hover { border-color: var(--neon-accent); color: var(--neon-accent); }

@media (max-width: 600px) {
    .csm-shot-img { min-height: 140px; }
}
