/* =====================================================================
 * Article — famille "Technique" (cyan / bleu marine foncé + valeurs mono).
 * Reproduit article-technique.html. Chargé après article-standard.css : ne
 * redéfinit que les accents propres à cette famille.
 * ===================================================================== */

/* Barre de progression : cyan plutôt que orange (body porte déjà la classe
   `category-{slug}` via body_class(), la barre étant hors de .article-technique). */
body.category-technique .reading-progress-bar { background: var(--tech-cyan); }

/* ---------- Hero — fond bleu marine + grille technique + schéma moteur ---------- */
.article-hero--technique { min-height: 72vh; }
.article-hero--technique::before {
	background: radial-gradient(ellipse 80% 60% at 30% 50%, #0f1e35 0%, #08111e 55%, #050a0f 100%);
}
.article-hero--technique::after {
	/* Ordre des couches (la 1ère est au-dessus) : vignette sombre par-dessus
	   la grille technique, comme le calque `.article-hero-overlay` posé sur
	   `.article-hero-img::before` dans la maquette. */
	background-image:
		linear-gradient(to top,  rgba(5,10,15,.98) 0%,  rgba(5,10,15,.55) 40%, rgba(5,10,15,.1) 100%),
		linear-gradient(to right, rgba(5,10,15,.7) 0%, transparent 65%),
		linear-gradient(rgba(45,212,191,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(45,212,191,.04) 1px, transparent 1px);
	background-size: auto, auto, 40px 40px, 40px 40px;
}
.hero-schema {
	position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
	z-index: 1; opacity: .06; width: min(500px, 45vw);
}

.article-technique .article-tag {
	background: rgba(45,212,191,.1); color: var(--tech-cyan);
	border: 1px solid rgba(45,212,191,.25);
}
.article-technique .meta-avatar { background: rgba(45,212,191,.15); color: var(--tech-cyan); border: 1px solid rgba(45,212,191,.3); }

/* Badges niveau / durée / modèles compatibles */
.article-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px; }
.article-badge {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	padding: 7px 14px; border-radius: 40px;
}
.article-badge svg { width: 13px; }
.badge-difficulty { background: rgba(232,104,26,.15); color: var(--orange); border: 1px solid rgba(232,104,26,.3); }
.badge-time { background: rgba(45,212,191,.1); color: var(--tech-cyan); border: 1px solid rgba(45,212,191,.25); }
.badge-model { background: rgba(255,255,255,.07); color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.12); }

/* ---------- Corps — accents "Technique" ---------- */
.article-technique .article-content { max-width: 700px; }
.article-technique .article-body .article-intro { border-left-color: var(--tech-cyan); font-style: normal; }

/* Titres numérotés (le rond de numéro vient du contenu : <span class="h2-step">) */
.article-technique .article-body h2::before { display: none; }
.h2-step {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--tech-blue); color: var(--tech-cyan);
	font-family: var(--font-display); font-size: 18px; font-weight: 800; flex-shrink: 0;
	border: 2px solid rgba(45,212,191,.25);
}
.article-technique .article-body h3 { display: flex; align-items: center; gap: 8px; }
.article-technique .article-body h3::before { content: '›'; color: var(--orange); font-size: 20px; }

/* Checklist outillage */
.tool-list { background: var(--tech-bg); border: 1px solid rgba(0,0,0,.1); border-radius: 4px; padding: 22px 24px; margin: 28px 0; }
.tool-list-title {
	font-family: var(--font-display); font-size: 14px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em; color: var(--tech-blue);
	margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.tool-list-title svg { width: 16px; color: var(--orange); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2a2a28; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.tool-item svg { width: 14px; color: var(--orange); flex-shrink: 0; }

/* Bloc "valeurs de réglage" — style terminal */
.spec-block { background: var(--tech-blue); border-radius: 4px; padding: 20px 24px; margin: 24px 0; border-left: 3px solid var(--tech-cyan); }
.spec-block-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tech-cyan); margin-bottom: 14px; }
.spec-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(45,212,191,.08); font-family: var(--font-mono); }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 12px; color: rgba(255,255,255,.45); font-family: var(--font-body); }
.spec-val { font-size: 14px; font-weight: 700; color: var(--tech-cyan); letter-spacing: .02em; }
.spec-val.warning-val { color: var(--orange); }

/* Étapes numérotées */
.steps-list { display: flex; flex-direction: column; margin: 24px 0; }
.step-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding-bottom: 24px; position: relative; }
.step-item::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: rgba(0,0,0,.07); }
.step-item:last-child::before { display: none; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--noir); color: var(--orange); font-family: var(--font-display); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-title { font-size: 15px; font-weight: 600; color: var(--noir); margin-bottom: 6px; padding-top: 8px; }
.step-desc { font-size: 14px; color: var(--gris-mid); line-height: 1.7; margin: 0; }

/* Alertes danger / attention — teintes dédiées (distinctes des callouts génériques) */
.alert-danger, .article-technique .callout--danger {
	display: flex; gap: 14px;
	background: #FEE2E2; border-radius: 4px;
	padding: 18px 22px; margin: 28px 0;
	border-left: 4px solid var(--danger);
}
.alert-danger p, .alert-text, .article-technique .callout--danger p { font-size: 14px; color: #991B1B; line-height: 1.65; margin: 0; }
.alert-text strong, .article-technique .callout--danger strong { font-weight: 700; display: block; margin-bottom: 4px; }

.alert-warning, .article-technique .callout--warning {
	display: flex; gap: 14px;
	background: #FEF3C7; border-radius: 4px;
	padding: 18px 22px; margin: 28px 0;
	border-left: 4px solid #D97706;
}
.alert-warning-text, .article-technique .callout--warning p { font-size: 14px; color: #92400E; line-height: 1.65; margin: 0; }
.alert-warning-text strong, .article-technique .callout--warning strong { font-weight: 700; display: block; margin-bottom: 4px; }

.alert-icon { font-size: 20px; flex-shrink: 0; }

/* Checklist diagnostic */
.diagnostic-list { display: flex; flex-direction: column; gap: 6px; margin: 20px 0; }
.diag-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #2a2a28; padding: 8px 12px; border-radius: 4px; background: var(--tech-bg); border: 1px solid rgba(0,0,0,.07); }
.diag-item svg { width: 16px; flex-shrink: 0; margin-top: 2px; }
.diag-item.ok svg { color: var(--vert-badge); }
.diag-item.nok svg { color: var(--danger); }
.diag-item.warn svg { color: #D97706; }

/* Citation mécanicien — carte bleu marine technique */
.article-technique .article-body blockquote, .article-technique .callout--quote {
	background: var(--tech-blue); color: var(--blanc);
}
.article-technique .article-body blockquote::before, .article-technique .callout--quote::before { color: rgba(45,212,191,.15); }
.article-technique .article-body blockquote p, .article-technique .callout--quote p { color: rgba(255,255,255,.8); font-weight: 300; }
.article-technique .article-body blockquote cite, .article-technique .callout--quote cite { color: var(--tech-cyan); }

/* Tableau — en-tête bleu marine + valeurs mono, OK/KO colorés */
.article-technique .article-body table th, .article-technique .article-table th { background: var(--tech-blue); color: var(--tech-cyan); }
.article-technique .article-body table tr:nth-child(even) td, .article-technique .article-table tr:nth-child(even) td { background: var(--tech-bg); }
.article-technique .article-body table, .article-technique .article-body pre, .article-technique .article-body code, .article-technique .article-fiche-technique dd {
	font-family: var(--font-mono);
}
.td-ok { color: var(--vert-badge) !important; font-weight: 600 !important; }
.td-nok { color: var(--danger) !important; font-weight: 600 !important; }

/* Divider cyan */
.article-technique .article-divider { background: var(--tech-cyan); }

/* Sommaire — numéro en rond bleu marine/cyan */
.article-technique .article-toc { border-left-color: var(--tech-cyan); }
.article-technique .article-toc li { padding-left: 30px; }
.article-technique .article-toc li::before {
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--tech-blue); color: var(--tech-cyan);
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; top: 2px;
}
.article-technique .article-toc a:hover, .article-technique .article-toc a.is-active { color: var(--tech-blue); }

/* Fiche technique rapide — pavé bleu marine en sidebar */
.article-fiche-technique { background: var(--tech-blue); color: var(--blanc); }
.article-fiche-technique h4 { color: var(--tech-cyan); }
.article-fiche-technique dt { color: rgba(255,255,255,.4); font-family: var(--font-body); }
.article-fiche-technique dd { color: var(--blanc); }
.article-fiche-technique .fiche-row { border-bottom-color: rgba(255,255,255,.15); }

@media (max-width: 1024px) {
	.tool-grid { grid-template-columns: 1fr; }
}
