/* =============================================================================
   N2M SÉCURITÉ — Centre de ressources (P17)
   Cartes téléchargeables + modal email-gate. Base modal = components.css.
   ============================================================================= */

/* ── Filtres ───────────────────────────────────────────────────────────── */
.n2m-res-filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 32px; }
.n2m-res-pill {
    padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
    background: var(--n2m-surface); border: 1px solid var(--n2m-hairline); color:var(--text-secondary); transition: .2s;
}
.n2m-res-pill:hover { border-color: rgba(245, 194, 0, .5); color:var(--n2m-white); }
.n2m-res-pill.active { background: #F5C200; border-color: #F5C200; color: #050508; }

/* ── Grille ────────────────────────────────────────────────────────────── */
.n2m-res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.n2m-res-card {
    position: relative;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--n2m-surface), var(--n2m-surface));
    border: 1px solid var(--n2m-hairline); border-radius: 14px; overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.n2m-res-card:hover { transform: translateY(-4px); border-color: rgba(245, 194, 0, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
/* Lien étiré : toute la carte est cliquable (vers la réalisation). */
.n2m-res-card__link { position: absolute; inset: 0; z-index: 3; }
.n2m-res-card__more { margin-top: auto; padding-top: 10px; color: var(--n2m-gold); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }

.n2m-res-card__top {
    position: relative; height: 130px;
    background: linear-gradient(135deg, var(--n2m-navy), var(--n2m-black));
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(245, 194, 0, .2);
}
.n2m-res-card__ic { color: #F5C200; opacity: .85; }
.n2m-res-card__badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    background: #F5C200; color: #050508; padding: 4px 10px; border-radius: 999px;
}

.n2m-res-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.n2m-res-card__title { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.2; color:var(--text-primary); margin: 0 0 8px; }
.n2m-res-card__desc { font-size: 13.5px; color:var(--text-muted); line-height: 1.5; margin: 0 0 16px; flex: 1; }
.n2m-res-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.n2m-res-card__meta { font-size: 12px; color:var(--text-muted); }

.n2m-res-empty { text-align: center; padding: 70px 20px; color:var(--text-muted); }
.n2m-res-empty span { font-size: 46px; display: block; margin-bottom: 14px; }
.n2m-res-empty p { font-size: 16px; margin: 0 0 20px; }

/* ── Modal email-gate ──────────────────────────────────────────────────── */
.n2m-res-modal .n2m-modal { max-width: 460px; }
.n2m-res-modal__in { text-align: center; }
.n2m-res-modal__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #050508; background: #F5C200; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.n2m-res-modal__title { font-family: 'Barlow Condensed', sans-serif; font-size: 25px; color:var(--n2m-white); margin: 0 0 6px; font-weight: 800; }
.n2m-res-modal__doc { font-size: 14px; color: #F5C200; font-weight: 600; margin: 0 0 18px; }

.n2m-res-modal__fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.n2m-res-modal__fields input {
    width: 100%; box-sizing: border-box; padding: 13px 15px; font-size: 14px;
    background: var(--n2m-surface); border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; color:var(--n2m-white);
}
.n2m-res-modal__fields input::placeholder { color:var(--text-muted); }
.n2m-res-modal__fields input:focus { outline: none; border-color: #F5C200; box-shadow: 0 0 0 2px rgba(245, 194, 0, .2); }
.n2m-res-submit { width: 100%; justify-content: center; }
.n2m-res-feedback { font-size: 13px; margin: 10px 0 0; min-height: 1px; }
.n2m-res-feedback.error { color: #ff6b6b; }
.n2m-res-legal { font-size: 11.5px; color:var(--text-muted); margin: 12px 0 0; }

.n2m-res-spinner { display: none; width: 16px; height: 16px; margin-left: 8px; border: 2px solid rgba(5, 5, 8, .3); border-top-color: #050508; border-radius: 50%; animation: n2mResSpin .7s linear infinite; vertical-align: middle; }
.n2m-res-submit.is-loading .n2m-res-btn-tx { opacity: .55; }
.n2m-res-submit.is-loading .n2m-res-spinner { display: inline-block; }
@keyframes n2mResSpin { to { transform: rotate(360deg); } }

.n2m-res-success__ic { font-size: 42px; }
.n2m-res-success h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 23px; color:var(--n2m-white); margin: 10px 0 6px; }
.n2m-res-success p { font-size: 14px; color:var(--text-muted); margin: 0 0 18px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) { .n2m-res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .n2m-res-grid { grid-template-columns: 1fr; } }
