/* =====================================================================
   Netpublic — Pages catégories
   Toutes les classes sont préfixées np- et portées par .np-cat, pour
   qu'aucune règle du thème VamTam ne puisse entrer en conflit.
   Les valeurs (police, couleurs, ombre, rayon) sont celles du site.
   ================================================================== */

.np-cat {
	--np-ink:        #232627;
	--np-soft:       #5b6165;
	--np-light:      #8a9096;
	--np-blue:       #2d81e1;
	--np-blue-t:     #f6faff;
	--np-red:        #ea0000;
	--np-red-t:      #fff6f6;
	--np-amber:      #d97a00;
	--np-amber-t:    #fff8ec;
	--np-line:       #e9edf1;
	--np-shadow:     0 5px 28px 0 rgba(0, 0, 0, .05);
	--np-shadow-up:  0 10px 36px 0 rgba(0, 0, 0, .10);
	--np-radius:     8px;
	/* Hauteur du header collant du thème : à ajuster si la barre d'ancres
	   passe sous le menu. */
	--np-sticky-top: 0px;

	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--np-ink);
}

.np-cat a { text-decoration: none; color: inherit; }
.np-cat img { max-width: 100%; height: auto; display: block; }
.np-cat h2, .np-cat h3, .np-cat h4 { font-family: inherit; }

/* ---------------------------------------------------------- chapô & stats */
.np-cat .np-chapo {
	max-width: 680px; margin: 0 auto 14px; text-align: center;
	color: var(--np-soft); font-size: 17px; line-height: 1.6;
}
.np-cat .np-stats {
	text-align: center; font-size: 13px; font-weight: 600;
	color: var(--np-light); margin-bottom: 4px;
}
.np-cat .np-stats span { margin: 0 10px; }
.np-cat .np-stats span + span::before { content: '·'; margin-right: 12px; }

/* ------------------------------------------------------ barre d'ancres */
.np-cat .np-anchors {
	position: sticky; top: var(--np-sticky-top); z-index: 40;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-top: 1px solid var(--np-line); border-bottom: 1px solid var(--np-line);
	margin: 18px 0 0;
}
.np-cat .np-anchors__inner {
	display: flex; align-items: center; gap: 6px; height: 58px;
	overflow-x: auto; scrollbar-width: none;
}
.np-cat .np-anchors__inner::-webkit-scrollbar { display: none; }
.np-cat .np-anchors a {
	white-space: nowrap; font-size: 13.5px; font-weight: 700;
	color: var(--np-soft); padding: 8px 14px; border-radius: 100px;
	transition: background .18s, color .18s;
}
.np-cat .np-anchors a:hover { background: #f4f7fa; color: var(--np-ink); }
.np-cat .np-anchors a.np-on { background: var(--np-ink); color: #fff; }

/* ------------------------------------------------------ titres de section */

.np-cat .np-sec:first-child { padding: 0 0 6px; }
.np-cat .np-sec { padding: 45px 0 6px; }
.np-cat .np-sec__head {
	display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
	border-bottom: 1px solid #f0efef;
	padding-bottom: 12px; margin-bottom: 30px;
}
.np-cat .np-sec__head--thin { border-bottom: 1px solid #f0efef; }
.np-cat .np-sec__head h2 {
	font-size: 28px; font-weight: 700; margin: 0;
	letter-spacing: -.02em; line-height: 1.2; color: var(--np-ink);
}
.np-cat .np-kicker {
	color: var(--np-light); font-size: 14px; font-weight: 600; margin-bottom: 4px;
}
.np-cat .np-more {
	margin-left: auto; font-size: 15px; font-weight: 700;
	color: var(--np-blue); white-space: nowrap; margin-bottom: 3px;
}
.np-cat .np-more:hover { text-decoration: none; }

/* ------------------------------------------------------------ étiquettes */
.np-cat .np-tag {
	display: inline-block; font-size: 10.5px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase;
	padding: 5px 10px; border-radius: 4px; line-height: 1;
}
.np-cat .np-tag--actu       { background: var(--np-red-t);   color: var(--np-red); }
.np-cat .np-tag--dossier    { background: var(--np-blue-t);  color: var(--np-blue); }
.np-cat .np-tag--question   { background: #f1f4f7;           color: var(--np-ink); }
.np-cat .np-tag--comparatif { background: var(--np-amber-t); color: var(--np-amber); }
.np-cat .np-tag--fiche      { background: #f1f4f7;           color: var(--np-soft); }
.np-cat .np-tag--outil      { background: #eef9f4;           color: #0b7d55; }

/* ---------------------------------------------------------------- grilles */
.np-cat .np-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.np-cat .np-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.np-cat .np-mt     { margin-top: 26px; }

/* ----------------------------------------------------------------- cartes */
.np-cat .np-card {
	background: #fff; border-radius: var(--np-radius); box-shadow: var(--np-shadow);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}
.np-cat .np-card:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-up); border-color:#fff; }
.np-cat .np-card__thumb {
	aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f4;
}
.np-cat .np-card__thumb img {
	width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.np-cat .np-card:hover .np-card__thumb img { transform: scale(1.04); }
.np-cat .np-card__body {
	padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.np-cat .np-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-cat .np-date {
	font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
	color: var(--np-light); font-weight: 500;
}
.np-cat .np-card h3 {
	margin: 0; font-size: 19px; line-height: 1.32; font-weight: 600;
	letter-spacing: -.01em; color: var(--np-ink);
}
.np-cat .np-card:hover h3 { color: var(--np-blue); }
.np-cat .np-card p {
	margin: 0; font-size: 16px; color: var(--np-soft); line-height: 1.55;
}

/* --------------------------------------------------------------- à la une */
.np-cat .np-hero-grid {
	display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: stretch;
}
.np-cat .np-hero {
	background: #fff; border-radius: var(--np-radius); box-shadow: var(--np-shadow);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}
.np-cat .np-hero:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-up); border-color:#fff; }
.np-cat .np-hero__thumb { aspect-ratio: 16 / 8; overflow: hidden; background: #eef1f4; }
.np-cat .np-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-cat .np-hero__body { padding: 26px 30px 30px; }
.np-cat .np-hero__body h3 {
	font-size: 30px; line-height: 1.2; font-weight: 700;
	margin: 12px 0; letter-spacing: -.02em; color: var(--np-ink);
}
.np-cat .np-hero:hover .np-hero__body h3 { color: var(--np-blue); }
.np-cat .np-hero__body p { font-size: 16px; color: var(--np-soft); margin: 0; }

.np-cat .np-hero-side { display: flex; flex-direction: column; gap: 26px; }
.np-cat .np-mini {
	display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
	background: #fff; border-radius: var(--np-radius); box-shadow: var(--np-shadow);
	padding: 16px; flex: 1; transition: transform .2s, box-shadow .2s;
}
.np-cat .np-mini:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-up); border-color:#fff; }
.np-cat .np-mini img,
.np-cat .np-mini__ph {
	width: 96px; height: 76px; object-fit: cover; border-radius: 6px; background: #eef1f4;
	display: block;
}
.np-cat .np-mini h4 {
	margin: 8px 0 0; font-size: 19px; line-height: 1.32; font-weight: 600; color: var(--np-ink);
}
.np-cat .np-mini:hover h4 { color: var(--np-blue); }

/* --------------------------------------------------- questions pratiques */
.np-cat .np-qa { background: var(--np-blue-t); border-radius: 12px; padding: 34px 36px; }
.np-cat .np-qa__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.np-cat .np-q {
	display: flex; gap: 14px; align-items: baseline;
	padding: 15px 0; border-bottom: 1px solid #e2ecf8;
}
.np-cat .np-q__mark { font-size: 13px; font-weight: 800; color: var(--np-blue); flex: none; width: 16px; }
.np-cat .np-q__txt  { font-size: 16px; font-weight: 600; line-height: 1.4; }
.np-cat .np-q:hover .np-q__txt { color: var(--np-blue); }

/* ------------------------------------------------------------ comparatifs */
.np-cat .np-upd {
	display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
	font-size: 11px; font-weight: 500; color: var(--np-amber);
	letter-spacing: .04em; text-transform: uppercase;
}
.np-cat .np-upd__dot {
	width: 6px; height: 6px; border-radius: 50%; background: var(--np-amber); display: inline-block;
}

/* ------------------------------------------------------------- bande outils */
.np-cat .np-tools {
	background: var(--np-ink); border-radius: 12px; padding: 34px 36px; color: #fff;
}
.np-cat .np-tools__head { display: flex; align-items: center; gap: 14px;}
.np-cat .np-tools__head h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.np-cat .np-tools__head p  { margin: 0; color: #a9b0b6; font-size: 14.5px; }
.np-cat .np-tools__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.np-cat .np-tool {
	background: #2f3437; border: 1px solid #3b4145; border-radius: var(--np-radius);
	padding: 20px; transition: background .2s, transform .2s; color: #fff;
}
.np-cat .np-tool:hover { background: #383e42; transform: translateY(-2px); }
.np-cat .np-tool__ico { font-size: 20px; display: block; margin-bottom: 10px; }
.np-cat .np-tool b { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.np-cat .np-tool span:not(.np-tool__ico) { font-size: 16px; color: #a9b0b6; }

/* ----------------------------------------------------------------- fiches */
.np-cat .np-fiches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.np-cat .np-fiche {
	display: flex; align-items: center; gap: 12px;
	background: #fff; border: 1px solid var(--np-line); border-radius: var(--np-radius);
	padding: 14px 16px; font-size: 15px; font-weight: 600;
	transition: box-shadow .2s, border-color .2s, color .2s;
}
.np-cat .np-fiche:hover { box-shadow: var(--np-shadow); border-color: transparent; color: var(--np-blue); }
.np-cat .np-fiche__init {
	width: 34px; height: 34px; border-radius: 6px; background: #f1f4f7;
	display: grid; place-items: center; font-weight: 800; font-size: 13px;
	color: var(--np-soft); flex: none;
}

/* ---------------------------------------------------------------- lexique */
.np-cat .np-lex { display: flex; flex-wrap: wrap; gap: 10px; }
.np-cat .np-lex a {
	border: 1px solid var(--np-line); border-radius: 100px;
	padding: 9px 18px; font-size: 14.5px; font-weight: 600;
	transition: background .2s, color .2s, border-color .2s;
}
.np-cat .np-lex a:hover { background: var(--np-ink); color: #fff; border-color: var(--np-ink); }

/* ----------------------------------------------------------- sous-rubriques */
.np-cat .np-sub {
	background: #fff; border-radius: var(--np-radius); box-shadow: var(--np-shadow);
	padding: 26px 28px; transition: transform .2s, box-shadow .2s; display: block;
}
.np-cat .np-sub:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-up); border-color:#fff; }
.np-cat .np-sub h3 { margin: 10px 0 8px; font-size: 24px; font-weight: 700; color: var(--np-ink); }
.np-cat .np-sub p  { margin: 0 0 14px; font-size: 14.5px; color: var(--np-soft); }
.np-cat .np-sub__n {
	font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
	font-weight: 600; color: var(--np-light);
}

/* ---------------------------------------------------------------- boutons */
.np-cat .np-btn {
	display: inline-flex; align-items: center; gap: 9px;
	background: var(--np-blue); color: #fff; font-weight: 500; font-size: 16px;
	padding: 11px 20px; border-radius: 100px; transition: filter .2s;
}
.np-cat .np-btn:hover { filter: brightness(1.08); color: #fff; border:none }
.np-cat .np-btn--dark { background: var(--np-ink); }
.np-cat .np-btn--red  { background: var(--np-red); }
.np-cat .np-btn__arw {
	width: 19px; height: 19px; border-radius: 50%; background: rgba(255, 255, 255, .24);
	display: grid; place-items: center; font-size: 10px;
}

/* --------------------------------------------------------------- archives */
.np-cat .np-arch {
	text-align: center; padding: 44px 0 20px;
	border-top: 1px solid var(--np-line); margin-top: 50px;
}
.np-cat .np-arch p { color: var(--np-soft); font-size: 15px; margin: 0 0 18px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
	.np-cat .np-grid-4,
	.np-cat .np-tools__grid,
	.np-cat .np-fiches { grid-template-columns: repeat(2, 1fr); }
	.np-cat .np-grid-3 { grid-template-columns: 1fr; }
	.np-cat .np-hero-grid { grid-template-columns: 1fr; }
	.np-cat .np-qa__grid { grid-template-columns: 1fr; }
	.np-cat .np-sec__head h2 { font-size: 24px; }
	.np-cat .np-hero__body h3 { font-size: 24px; }
}
@media (max-width: 640px) {
	.np-cat .np-grid-4,
	.np-cat .np-tools__grid,
	.np-cat .np-fiches { grid-template-columns: 1fr; }
	.np-cat .np-qa { padding: 22px 20px; }
	.np-cat .np-tools { padding: 24px 22px; }
	.np-cat .np-sec { padding: 38px 0 6px; }
}

/* =====================================================================
   BLOC « QUESTIONS PRATIQUES » — colonne unique numérotée
   ---------------------------------------------------------------------
   Ajouté en fin de fichier, volontairement APRÈS les media queries
   ci-dessus, pour passer devant elles.
   Les numéros et le chevron sont générés en CSS (compteur + ::after) :
   le balisage PHP n'a pas besoin de changer.
   ================================================================== */

.np-cat .np-qa { padding: 12px 36px; }

.np-cat .np-qa__grid {
	grid-template-columns: 1fr;
	gap: 0;
	counter-reset: np-q;
}

.np-cat .np-q {
	align-items: center;
	gap: 16px;
	padding: 17px 0;
}
.np-cat .np-q:last-child { border-bottom: 0; }

/* La pastille numérotée remplace le « Q. » du balisage. */
.np-cat .np-q__mark {
	width: 28px; height: 28px; border-radius: 50%;
	background: #fff; flex: none;
	display: grid; place-items: center;
	font-size: 0; /* masque le « Q. » d'origine */
}
.np-cat .np-q__mark::after {
	counter-increment: np-q;
	content: counter( np-q, decimal-leading-zero );
	font-size: 12px; font-weight: 800; color: var(--np-blue);
}

.np-cat .np-q__txt { font-size: 16.5px; line-height: 1.35; }

/* Chevron aligné à droite. */
.np-cat .np-q::after {
	content: '\203A';
	margin-left: auto;
	color: var(--np-light);
	font-size: 20px; line-height: 1; flex: none;
}
.np-cat .np-q:hover::after { color: var(--np-blue); }

@media (max-width: 640px) {
	.np-cat .np-qa { padding: 8px 20px; }
	.np-cat .np-q { gap: 12px; padding: 15px 0; }
	.np-cat .np-q__txt { font-size: 15.5px; }
}
