/* ═══════════════════════════════════════════════════════════════
   DRUGZ — style-auteurs-v2.css
   CSS AUTONOME pour les pages auteur·ices (fiche + index).
   Aucune autre feuille nécessaire (règle V2 : pas de style-common).

   Contient : base V2 (tokens, reset, header, scanlines, curseur,
   scroll-to-top, footer) synchronisée depuis style-dossier-v2.css,
   puis les composants spécifiques auteur·ices.

   ⚠ CONTRAT DE SYNCHRO : la zone « BASE V2 » copie les mêmes
   sélecteurs que style-drogues-v2.css / style-dossier-v2.css.
   Fond : #04040a — Orbitron / Share Tech Mono / Exo 2 / Jockey One
   ═══════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   BASE V2 — copie synchronisée (tokens → reset → header → footer)
   ════════════════════════════════════════════════════════════ */

:root {
	/* Accent — valeurs R/G/B par défaut (empathogènes/MDMA) */
	--accent-r: 147;
	--accent-g: 125;
	--accent-b: 255;

	/* ── Layout sticky (rail gauche + breadcrumb) ── */
	--header-h: 56px;   /* hauteur du header global drugz.fr */
	--crumb-h:  44px;   /* hauteur du fil d'Ariane sticky    */

	/* Fond */
	--bg:          #04040a;
	--bg-card:     #07070f;
	--bg-card2:    #0a0a14;

	/* Texte — contrastes améliorés WCAG */
	--text-hi:     rgba(255, 255, 255, 0.96);
	--text-mid:    rgba(255, 255, 255, 0.82);  /* remonté de 0.78 */
	--text-lo:     rgba(255, 255, 255, 0.58);  /* remonté de 0.50 */

	/* Bordures */
	--border:      rgba(255, 255, 255, 0.06);
	--border-hi:   rgba(255, 255, 255, 0.10);

	/* Alertes */
	--red:         rgba(255, 59, 59, 1);
	--red-30:      rgba(255, 59, 59, 0.30);
	--amber:       rgba(255, 183, 0, 1);

	/* Espacements section */
	--section-gap: 88px;
	--subsection-gap: 44px;

	/* Couleurs par famille — alimentent le titre arc-en-ciel de l'index
	   (miroir de style-home-v2.css pour cohérence entre les index) */
	--stimulants: #f08675;
	--depresseurs: #D2C55F;
	--psychedeliques: #D34BD7;
	--dissociatifs: #6EF0A9;
	--empathogenes: #937DFF;
	--cannabinoides: #83D74B;
	--opioides: #D79B4B;
	--cathinones: #ff5791;
}

/* 'Crackman' est déclarée dans /css/fonts.css (centralisation @font-face). */

/* Les alias accent calculés vivent sur body pour se résoudre
   APRÈS les overrides body.category-xxx de --accent-r/g/b */
body {
	--accent:      rgba(var(--accent-r), var(--accent-g), var(--accent-b), 1);
	--accent-85:   rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.85);
	--accent-60:   rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.60);
	--accent-30:   rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.30);
	--accent-12:   rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
	--accent-08:   rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
}


/* ════════════════════════════════════════════════════════════
   0b. COULEURS PAR CATÉGORIE
   Chaque page utilise <body class="category-xxx">.
   Les valeurs --accent-r/g/b sont surchargées ici, ce qui
   alimente automatiquement --accent, --accent-85, etc.
   ════════════════════════════════════════════════════════════ */

body.category-stimulants        { --accent-r:240; --accent-g:134; --accent-b:117; }
body.category-nps-stimulants    { --accent-r:248; --accent-g:176; --accent-b:165; }
body.category-depresseurs       { --accent-r:210; --accent-g:197; --accent-b: 95; }
body.category-benzodiazepines   { --accent-r:245; --accent-g:237; --accent-b:135; }
body.category-psychedeliques    { --accent-r:211; --accent-g: 75; --accent-b:215; }
body.category-nps-psychedeliques{ --accent-r:248; --accent-g:167; --accent-b:245; }
body.category-dissociatifs      { --accent-r:110; --accent-g:240; --accent-b:169; }
body.category-nps-dissociatifs  { --accent-r:160; --accent-g:248; --accent-b:209; }
body.category-empathogenes      { --accent-r:147; --accent-g:125; --accent-b:255; }
body.category-nps-empathogenes  { --accent-r:200; --accent-g:196; --accent-b:255; }
body.category-cannabinoides     { --accent-r:131; --accent-g:215; --accent-b: 75; }
body.category-cannabinoides-synthetiques { --accent-r:160; --accent-g:224; --accent-b:143; }
body.category-opioides          { --accent-r:215; --accent-g:155; --accent-b: 75; }
body.category-opioides-synthetiques { --accent-r:224; --accent-g:176; --accent-b:133; }
body.category-cathinones        { --accent-r:255; --accent-g: 87; --accent-b:145; }
body.category-pyrovalerones     { --accent-r:255; --accent-g:179; --accent-b:213; }
body.category-article           { --accent-r:  0; --accent-g:255; --accent-b:255; }


/* ════════════════════════════════════════════════════════════
   1. RESET & FONDATIONS
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

button {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
a { cursor: pointer; }

html {
	background: var(--bg);
}

body {
	background: var(--bg);
	color: var(--text-mid);
	font-family: 'Exo 2', sans-serif;
	min-height: 100vh;
}

/* Scanlines — overlay cosmétique */
body::before {
	content: '';
	position: fixed; inset: 0;
	background: repeating-linear-gradient(
		0deg, transparent, transparent 2px,
		rgba(0, 0, 0, 0.10) 2px, rgba(0, 0, 0, 0.10) 3px
	);
	pointer-events: none;
	z-index: 9000;
}

/* Grille de points */
body::after {
	content: '';
	position: fixed; inset: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
	z-index: 0;
}

img { display: block; max-width: 100%; }

a {
	color: var(--accent-85);
	text-decoration: none;
	transition: color 0.2s;
}
a:hover { color: var(--accent); }

/* Focus visible pour accessibilité clavier */
:focus-visible {
	outline: 2px solid var(--accent-60);
	outline-offset: 2px;
}

/* ── Curseur personnalisé (appareils souris uniquement) ── */
@media (pointer: fine) {
	*, *::before, *::after { cursor: none !important; }

	.cursor-dot {
		position: fixed;
		top: 0; left: 0;
		width: 6px; height: 6px;
		background: var(--accent);
		border-radius: 50%;
		pointer-events: none;
		z-index: 10000;
		transform: translate(-50%, -50%);
		box-shadow: 0 0 8px var(--accent-60), 0 0 20px var(--accent-30);
		will-change: left, top;
		transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	}

	.cursor-dot.is-hover {
		width: 10px; height: 10px;
		background: white;
		box-shadow: 0 0 12px rgba(255,255,255,0.5);
	}

	.cursor-dot.is-click {
		width: 18px; height: 18px;
		background: white;
		box-shadow: 0 0 20px rgba(255,255,255,0.7);
	}

	/* État texte : barre I-beam */
	.cursor-dot.is-text {
		width: 2px;
		height: 18px;
		border-radius: 1px;
		background: var(--accent-85);
		box-shadow: 0 0 6px var(--accent-30);
	}
}

/* ════════════════════════════════════════════════════════════
   2. HEADER
   ════════════════════════════════════════════════════════════ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(4, 4, 10, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	height: 56px;
	display: flex;
	align-items: center;
	gap: 32px;
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.site-logo {
	height: 28px;
	width: auto;
}

/* Fallback logo texte */
.logo-text {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 18px;
	letter-spacing: 4px;
	color: white;
}
.logo-text em {
	color: var(--accent);
	font-style: normal;
}

/* ── Search ── */
.site-search {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
}

.site-search-form {
	position: relative;
	width: 100%;
	max-width: 420px;
	display: flex;
	align-items: center;
}

.site-search-form::before {
	content: '';
	position: absolute;
	left: 14px;
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
	opacity: 0.55;
	pointer-events: none;
	background: url('../assets/icons/search.svg') no-repeat center / contain;
}

.site-search-input {
	width: 100%;
	padding: 7px 12px 7px 40px;
	border-radius: 4px;
	border: 1px solid var(--border-hi);
	background: rgba(255,255,255,0.04);
	color: var(--text-mid);
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.05em;
	outline: none;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.site-search-input:focus {
	border-color: rgba(255,255,255,0.25);
	background: rgba(255,255,255,0.07);
	box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.site-search-input::placeholder {
	color: var(--text-lo);
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-search-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%) scale(0.92);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.site-search-clear.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(-50%) scale(1);
	transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 0s;
}
.site-search-clear:hover { background: rgba(255,255,255,0.14); }

.site-search-button { display: none !important; }

.search-suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: rgba(10, 10, 20, 0.98);
	border: 1px solid var(--border-hi);
	border-radius: 8px;
	box-shadow: 0 12px 36px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
	list-style: none;
	padding: 8px;
	margin: 0;
	max-height: 360px;
	overflow: auto;
	z-index: 2000;
}

.search-suggestion-item {
	padding: 10px 12px;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--text-mid);
	border: 1px solid var(--border);
	background: rgba(255,255,255,0.02);
	font-size: 13px;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.search-suggestion-item:hover,
.search-suggestion-item.focused,
.search-suggestion-item[aria-selected="true"] {
	background: rgba(255,255,255,0.06);
	border-color: var(--border-hi);
	color: var(--text-hi);
}
.search-suggestion-item strong { font-weight: 600; }
.search-suggestion-item .suggestion-meta {
	margin-left: auto;
	font-size: 10px;
	opacity: 0.9;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.07);
	color: #fff;
	font-family: 'Share Tech Mono', monospace;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.search-suggestion-seeall {
	justify-content: center;
	margin-top: 6px;
	border-top: 1px solid var(--border);
	border-style: dashed;
	background: transparent;
	color: var(--accent);
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.04em;
}
.search-suggestion-seeall:hover,
.search-suggestion-seeall.focused,
.search-suggestion-seeall[aria-selected="true"] {
	color: var(--accent);
	background: rgba(255,255,255,0.05);
}
.search-suggestion-empty {
	padding: 10px 12px;
	color: var(--text-lo);
	font-size: 12px;
	font-style: italic;
	cursor: default;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-lo);
	border: 1px solid transparent;
	border-radius: 2px;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-link:hover {
	color: var(--text-mid);
	border-color: var(--border-hi);
	background: rgba(255,255,255,0.03);
}
.nav-link .nav-icon,
.nav-link > img {
	width: 16px; height: 16px;
	opacity: 0.55;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}
.nav-link svg {
	width: 16px; height: 16px;
	opacity: 0.55;
	flex-shrink: 0;
}
.nav-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   4. SCROLL TO TOP
   ════════════════════════════════════════════════════════════ */

.scroll-to-top {
	position: fixed;
	bottom: 75px; right: 0;
	width: 60px; height: 60px;
	background: var(--bg-card);
	border: 1px solid var(--border-hi);
	border-right: none;
	color: var(--text-lo);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 205;
	outline: none;
	transition: color 0.2s, border-color 0.2s, background 0.2s,
	            opacity 0.3s, transform 0.3s;
	--c: rgba(255, 255, 255, 0.12);
	/* Caché par défaut, affiché via JS */
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
}
.scroll-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.scroll-to-top::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 7px; height: 7px;
	border-top: 1px solid var(--c);
	border-left: 1px solid var(--c);
	transition: border-color 0.2s;
}
.scroll-to-top::after {
	content: '';
	position: absolute;
	bottom: -1px; left: -1px;
	width: 7px; height: 7px;
	border-bottom: 1px solid var(--c);
	border-left: 1px solid var(--c);
	transition: border-color 0.2s;
}
.scroll-to-top:hover {
	color: var(--accent-60);
	border-color: var(--accent-30);
	background: var(--accent-08);
	--c: var(--accent-60);
}
.scroll-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ════════════════════════════════════════════════════════════

.page-footer {
	background: #0a0a10;
	border-top: 1px solid var(--accent-08);
	padding: 64px 0 32px;
	margin-top: var(--section-gap);
	position: relative;
	overflow: hidden;
	z-index: 10;
}

/* Scanlines subtiles */
.page-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg,
		rgba(0, 0, 0, 0.18) 0px,
		rgba(0, 0, 0, 0.18) 1px,
		transparent 1px,
		transparent 2px);
	pointer-events: none;
	z-index: 1;
}

/* ── Grille principale ── */
.page-footer .footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 48px;
	position: relative;
	z-index: 2;
}

/* ── Colonnes ── */
.page-footer .footer-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.page-footer .footer-logo-area {
	gap: 6px;
}

/* ── Logo / marque ── */
.page-footer .footer-brand {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 1.8rem;
	color: var(--accent);
	text-decoration: none;
	letter-spacing: 3px;
	text-shadow: 0 0 12px var(--accent-30);
	transition: text-shadow 0.3s ease;
}
.page-footer .footer-brand:hover {
	text-shadow: 0 0 24px var(--accent-60);
}

/* ── Mission ── */
.page-footer .footer-mission {
	font-size: 12px;
	color: var(--text-lo);
	line-height: 1.8;
	letter-spacing: 0.04em;
	max-width: 340px;
}

/* ── Titres colonnes (h3) ── */
.page-footer .footer-column h3 {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 9px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--accent-60);
	padding-bottom: 8px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--accent-08);
}

/* ── Navigation ── */
.page-footer .footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.page-footer .footer-nav a {
	color: var(--text-lo);
	text-decoration: none;
	font-size: 11px;
	letter-spacing: 0.08em;
	transition: color 0.2s ease, transform 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}
.page-footer .footer-nav a::before {
	content: '>';
	font-family: 'Share Tech Mono', monospace;
	color: var(--accent-30);
	font-size: 10px;
	opacity: 0;
	transform: translateX(-8px);
	transition: all 0.2s ease;
}
.page-footer .footer-nav a:hover {
	color: var(--accent);
	transform: translateX(6px);
}
.page-footer .footer-nav a:hover::before {
	opacity: 1;
	transform: translateX(0);
}

/* ── Réseaux sociaux ── */
.page-footer .footer-socials-row {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.page-footer .footer-social-link {
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-hi);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	text-decoration: none;
}
.page-footer .footer-social-link::after {
	display: none !important;
	content: none !important;
}
.page-footer .footer-social-link img {
	width: 18px;
	height: 18px;
	opacity: 0.5;
	filter: invert(1);
	transition: opacity 0.2s ease, filter 0.2s ease;
}
.page-footer .footer-social-link:hover {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 0 16px var(--accent-30);
	transform: translateY(-3px);
}
.page-footer .footer-social-link:hover img {
	opacity: 1;
	filter: brightness(0);
}

/* ── Status box (Système) ── */
.page-footer .footer-status-box {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border-hi);
	padding: 16px;
	border-radius: 4px;
	margin-top: 8px;
}

.page-footer .status-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Orbitron', sans-serif;
	font-size: 9px;
	letter-spacing: 0.15em;
	color: var(--accent-60);
	margin-bottom: 8px;
}

.page-footer .status-indicator {
	width: 6px;
	height: 6px;
	background: #00ff88;
	border-radius: 50%;
	box-shadow: 0 0 8px #00ff88;
	animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.4; transform: scale(1.2); }
}

.page-footer .status-info {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.3);
	line-height: 1.6;
}

.page-footer .footer-association {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.25);
	line-height: 1.6;
	margin-top: 12px;
	letter-spacing: 0.06em;
}

/* ── Barre inférieure ── */
.page-footer .footer-bottom-bar {
	max-width: 1200px;
	margin: 40px auto 0;
	padding: 20px 40px 0;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 2;
}

.page-footer .footer-copyright {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	color: rgba(255, 255, 255, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.page-footer .footer-legal-links {
	display: flex;
	gap: 24px;
}
.page-footer .footer-legal-links a {
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	font-size: 10px;
	letter-spacing: 0.1em;
	transition: color 0.2s ease;
}
.page-footer .footer-legal-links a:hover {
	color: var(--accent-60);
}


/* ════════════════════════════════════════════════════════════
   16. RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* ── Tablette (768–1024px) ── */


/* ════════════════════════════════════════════════════════════
   SPÉCIFICITÉS AUTEUR·ICES
   Composants : fil d'Ariane, fiche (hero, stats, sections,
   contributions, liens), index (cards + filtres), bloc signature.
   ════════════════════════════════════════════════════════════ */

.auteur-wrap {
	position: relative;
	z-index: 1;
	max-width: 920px;
	margin: 0 auto;
	padding: 0 24px 96px;
}

/* ── Fil d'Ariane ── */
.auteur-crumb {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-lo);
	padding: 28px 0 0;
}
.auteur-crumb a { color: var(--text-lo); }
.auteur-crumb a:hover { color: var(--accent); }
.auteur-crumb span { color: var(--accent-60); }


/* ════════════════════════════════════════════════════════════
   FICHE — EN-TÊTE (identity card)
   ════════════════════════════════════════════════════════════ */
.author-hero {
	position: relative;
	margin-top: 28px;
	padding: 36px 32px;
	background:
		linear-gradient(160deg, var(--accent-08), transparent 60%),
		var(--bg-card);
	border: 1px solid var(--border);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	align-items: start;
}
.author-hero::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--accent);
	border-left: 1px solid var(--accent);
}
.author-hero::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), transparent 65%);
}

.author-avatar-wrap {
	position: relative;
	width: 120px; height: 120px;
	flex-shrink: 0;
}
.author-avatar-wrap::before {
	content: '';
	position: absolute;
	top: -4px; left: -4px;
	width: 14px; height: 14px;
	border-top: 1px solid var(--accent);
	border-left: 1px solid var(--accent);
	z-index: 2;
}
.author-avatar-wrap::after {
	content: '';
	position: absolute;
	bottom: -4px; right: -4px;
	width: 14px; height: 14px;
	border-bottom: 1px solid var(--accent-30);
	border-right: 1px solid var(--accent-30);
	z-index: 2;
}
.author-avatar {
	width: 120px; height: 120px;
	object-fit: cover;
	border: 1px solid var(--accent-30);
	filter: grayscale(0.15) contrast(1.05);
}
.author-avatar.is-mono {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--accent-12), transparent);
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 44px;
	color: var(--accent);
}

.author-id { min-width: 0; }
.author-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin-bottom: 12px;
}
.author-eyebrow::before {
	content: '';
	width: 16px; height: 1px;
	background: var(--accent-30);
}
.author-name {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3.4vw, 34px);
	letter-spacing: 1px;
	color: #fff;
	line-height: 1.15;
	margin-bottom: 6px;
}
.author-role {
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--accent-85);
	margin-bottom: 16px;
}
.author-tagline {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--text-mid);
	max-width: 52ch;
}

.author-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}
.abadge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	padding: 5px 10px;
	border: 1px solid var(--border-hi);
	color: var(--text-lo);
	background: var(--bg-card2);
}
.abadge svg { width: 12px; height: 12px; flex-shrink: 0; }
.abadge.is-verified {
	color: rgba(110, 240, 169, 1);
	border-color: rgba(110, 240, 169, 0.30);
}
.abadge.is-verified svg { stroke: rgba(110, 240, 169, 1); fill: none; }


/* ════════════════════════════════════════════════════════════
   FICHE — STATS
   ════════════════════════════════════════════════════════════ */
.author-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin-top: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-top: none;
}
.astat {
	background: var(--bg-card);
	padding: 18px 20px;
	text-align: center;
}
.astat-num {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: var(--accent);
	line-height: 1;
}
.astat-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-lo);
	margin-top: 8px;
}


/* ════════════════════════════════════════════════════════════
   FICHE — SECTIONS
   ════════════════════════════════════════════════════════════ */
.asection { margin-top: 64px; }
.asection-title {
	font-family: 'Jockey One', sans-serif;
	font-weight: 400;
	font-size: clamp(16px, 2.2vw, 22px);
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.2;
	background: linear-gradient(90deg,
		var(--accent),
		color-mix(in srgb, var(--accent) 55%, white));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0 0 12px var(--accent-30));
	padding-bottom: 10px;
	margin-bottom: 24px;
	position: relative;
	display: inline-block;
}
.asection-title::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 2px;
	background: linear-gradient(90deg, var(--accent-60), transparent);
}

.abio p {
	font-size: 15.5px;
	line-height: 1.95;
	color: var(--text-mid);
	margin-bottom: 18px;
	max-width: 70ch;
}
.abio p strong { color: var(--text-hi); font-weight: 600; }
.abio em.zone {
	color: var(--amber);
	font-style: normal;
	font-family: 'Share Tech Mono', monospace;
	font-size: 0.85em;
}

/* Domaines (tags) */
.expertise-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.etag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.05em;
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-hi);
	color: var(--text-mid);
	transition: border-color 0.2s, color 0.2s;
}
.etag::before {
	content: '';
	width: 5px; height: 5px;
	background: var(--accent);
	flex-shrink: 0;
}
.etag:hover { border-color: var(--accent-30); color: var(--text-hi); }

/* Déontologie / déclaration d'intérêts */
.deonto {
	padding: 22px 24px 22px 26px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent-60);
	position: relative;
}
.deonto-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.deonto-label svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; }
.deonto p { font-size: 14px; line-height: 1.85; color: var(--text-mid); }
.deonto p + p { margin-top: 12px; }

/* Contributions */
.contrib-group { margin-bottom: 32px; }
.contrib-group:last-child { margin-bottom: 0; }
.contrib-group-head {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-lo);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.contrib-group-head .cnt { color: var(--accent); }
.contrib-list {
	display: grid;
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
}
.contrib-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: var(--bg-card);
	text-decoration: none;
	transition: background 0.2s;
}
.contrib-item:hover { background: var(--bg-card2); }
.contrib-fam {
	width: 8px; height: 8px;
	flex-shrink: 0;
	background: var(--ci, var(--accent));
	box-shadow: 0 0 8px var(--ci, var(--accent));
}
.contrib-body { min-width: 0; flex: 1; }
.contrib-name {
	font-family: 'Exo 2', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-hi);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.contrib-meta {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.06em;
	color: var(--text-lo);
	margin-top: 3px;
}
.contrib-arrow {
	font-family: 'Share Tech Mono', monospace;
	font-size: 14px;
	color: var(--text-lo);
	flex-shrink: 0;
	transition: color 0.2s, transform 0.2s;
}
.contrib-item:hover .contrib-arrow { color: var(--accent); transform: translateX(3px); }
.contrib-empty {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--text-lo);
	padding: 16px 18px;
	background: var(--bg-card);
	border: 1px dashed var(--border-hi);
}

/* Liens externes */
.author-links { display: flex; flex-wrap: wrap; gap: 12px; }
.alink {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	padding: 11px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border-hi);
	color: var(--text-mid);
	transition: border-color 0.2s, color 0.2s;
}
.alink svg { width: 15px; height: 15px; stroke: currentColor; fill: none; flex-shrink: 0; }
.alink:hover { border-color: var(--accent-30); color: var(--accent); }


/* ════════════════════════════════════════════════════════════
   TOOLTIPS + AUTO-LIENS (identique aux pages drogues/dossiers)
   Injectés au runtime par js/modules/auto-glossary.js & auto-links.js.
   Positionnement fin géré par js/main.js (.tooltip--below + clamp).
   ════════════════════════════════════════════════════════════ */
.tooltip-term {
	color: var(--accent-85);
	border-bottom: 1px dashed var(--accent-60);
	cursor: help;
	position: relative;
}
.tooltip-term strong,
.tooltip-term em,
.tooltip-term b {
	color: inherit;
}

/* Liens internes automatiques */
.auto-link {
	color: var(--accent-85);
	text-decoration: underline;
	text-decoration-color: var(--accent-60);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s ease, text-decoration-color .15s ease, text-shadow .15s ease;
}
.auto-link:hover,
.auto-link:focus-visible {
	color: var(--accent);
	text-decoration-color: var(--accent);
	text-shadow: 0 0 8px var(--accent-30);
}

.tooltip-content {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 320px;
	max-width: 90vw;
	background: #0c0c1a;
	border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
	padding: 14px 16px;
	font-family: 'Exo 2', sans-serif;
	font-size: 12px;
	line-height: 1.7;
	color: var(--text-mid);
	z-index: 8999;
	pointer-events: auto;
	user-select: text;
}
/* Pont invisible pour combler le gap entre tooltip et terme */
.tooltip-content::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0; right: 0;
	height: 10px;
}
.tooltip-content::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 8px; height: 8px;
	border-top: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
	border-left: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
}
.tooltip-term:hover .tooltip-content,
.tooltip-term:focus .tooltip-content {
	display: block;
}

.tooltip-sep {
	display: block;
	height: 1px;
	background: rgba(255, 255, 255, 0.06);
	margin: 10px 0;
}
.tooltip-block { display: block; }

/* Tooltip positionné en dessous (ajouté dynamiquement par JS) */
@media (min-width: 481px) {
	.tooltip-term.tooltip--below .tooltip-content {
		bottom: auto;
		top: calc(100% + 8px);
	}
	.tooltip-term.tooltip--below .tooltip-content::after {
		top: auto;
		bottom: 100%;
	}
	.tooltip-term.tooltip--below .tooltip-content::before {
		top: auto;
		bottom: -1px;
		border-top: none;
		border-bottom: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
	}
}


/* ════════════════════════════════════════════════════════════
   INDEX — en-tête + filtres + cards
   En-tête aligné sur les autres index du site (titre arc-en-ciel
   Crackman + sous-titre mono), cf. style-home-v2.css.
   ════════════════════════════════════════════════════════════ */
.auteurs-index { max-width: 1100px; }

h1[data-heading] {
	font-family: 'Crackman';
	font-weight: 900;
	font-size: clamp(3.2rem, 9vw, 7rem);
	letter-spacing: 6px;
	color: #fff;
	line-height: 1;
	margin: 56px auto 20px;
	text-align: center;
	position: relative;
	width: fit-content;
	max-width: calc(100vw - 40px);
}
h1[data-heading]::before {
	content: attr(data-heading);
	position: absolute; inset: 0;
	font: inherit; letter-spacing: inherit; line-height: inherit; text-align: center;
	background: linear-gradient(90deg,
		var(--stimulants), var(--cathinones), var(--psychedeliques),
		var(--empathogenes), var(--dissociatifs), var(--cannabinoides),
		var(--depresseurs), var(--opioides), var(--stimulants));
	background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: sweep 14s linear infinite;
	z-index: 2;
	pointer-events: none;
}
h1[data-heading]::after {
	content: attr(data-heading);
	position: absolute; inset: 0;
	font: inherit; letter-spacing: inherit; line-height: inherit; text-align: center;
	background: linear-gradient(90deg, var(--stimulants), var(--psychedeliques), var(--empathogenes), var(--dissociatifs), var(--stimulants));
	background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: blur(24px); opacity: 0.2;
	animation: sweep 14s linear infinite;
	pointer-events: none;
}
@keyframes sweep {
	0%   { background-position: 0% 0; }
	100% { background-position: 200% 0; }
}

.subtitle {
	text-align: center;
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--text-lo);
	margin-bottom: 28px;
}
.auteurs-index-intro {
	max-width: 68ch;
	margin: 0 auto 44px;
	text-align: center;
	font-size: 15.5px;
	line-height: 1.8;
	color: var(--text-mid);
}
.auteurs-index-intro strong { color: var(--text-hi); }

.auteurs-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}
.afilter {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-hi);
	color: var(--text-mid);
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.afilter:hover { border-color: var(--accent-30); color: var(--text-hi); }
.afilter.is-active {
	background: var(--accent-12);
	border-color: var(--accent-60);
	color: var(--accent);
}

.author-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.acard {
	position: relative;
	padding: 28px 22px 24px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	transition: border-color 0.2s, transform 0.2s;
	overflow: hidden;
}
.acard::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--ac, var(--accent)), transparent 70%);
	opacity: 0.7;
}
.acard:hover { border-color: var(--ac, var(--accent)); transform: translateY(-3px); }
.acard-av {
	width: 72px; height: 72px;
	object-fit: cover;
	border: 1px solid var(--ac, var(--accent-30));
}
.acard-av.is-mono {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, color-mix(in srgb, var(--ac, var(--accent)) 18%, transparent), transparent);
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 26px;
	color: var(--ac, var(--accent));
}
.acard-name {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
	color: #fff;
}
.acard-role {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.06em;
	color: var(--text-lo);
}
.acard-count {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ac, var(--accent-60));
	margin-top: 2px;
}


/* ════════════════════════════════════════════════════════════
   BLOC SIGNATURE (réutilisable sur dossiers & fiches substances)
   Le nom mène à la fiche /auteurs/{slug}
   ════════════════════════════════════════════════════════════ */
.dossier-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}
.dossier-meta-avatar-wrap {
	position: relative;
	width: 44px; height: 44px;
	flex-shrink: 0;
}
.dossier-meta-avatar-wrap::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 6px; height: 6px;
	border-top: 1px solid var(--accent);
	border-left: 1px solid var(--accent);
	z-index: 1;
}
.dossier-meta-avatar {
	width: 44px; height: 44px;
	object-fit: cover;
	border: 1px solid var(--accent-30);
	flex-shrink: 0;
}
.dossier-meta-avatar.is-mono {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--accent-12), transparent);
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 18px;
	color: var(--accent);
}
.dossier-meta-info { display: flex; flex-direction: column; gap: 2px; }
.dossier-meta-author {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--text-mid);
}
.dossier-meta-author a { color: var(--accent); font-weight: 600; }
.dossier-meta-author a:hover { color: var(--accent-85); text-decoration: underline; }
.dossier-meta-author strong { color: var(--accent); font-weight: 600; }
.dossier-meta-date {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-lo);
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
	.author-hero {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding: 32px 22px;
	}
	.author-eyebrow { justify-content: center; }
	.author-tagline { text-align: left; }
	.author-badges { justify-content: center; }
	.author-stats { grid-template-columns: repeat(2, 1fr); }

	/* Tooltips : pleine largeur, ancrée en bas (comme drogues/dossiers) */
	.tooltip-content {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
		width: 100%;
		max-width: 100%;
		z-index: 8999;
		border: none;
		border-top: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
		padding: 16px 20px;
	}
}
