﻿/* ═══════════════════════════════════════════════════════════════
   DRUGZ — style-dossier-v2.css
   CSS autonome et complet pour les pages dossiers (V2)
   Remplace style-dossier-page.css (V1)

   Fichier auto-suffisant : contient la base V2 (variables, reset,
   header, sidebar, scroll-to-top, curseur, tooltips, DOI, footer,
   scanlines) + les composants spécifiques aux dossiers (header
   dossier, side panel texte, TOC, callouts, factor cards, etc.)

   Usage :
     <link rel="stylesheet" href="style-dossier-v2.css">
     <body class="category-dossier-sante">
   
   Aucune autre feuille de style nécessaire.
   Fond global : #04040a
   Typo : Share Tech Mono (labels) + Orbitron (titres) + Exo 2 (corps)
   ═══════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   FONTS
   ════════════════════════════════════════════════════════════ */
@font-face {
	font-family: 'Exo 2';
	font-weight: 100 900;
	font-style: normal;
	src: url('../assets/fonts/Exo2-VariableFont_wght.ttf') format('truetype');
	font-display: swap;
}

/* ════════════════════════════════════════════════════════════
   BASE V2 — importée depuis style-drogues-v2.css
   ════════════════════════════════════════════════════════════ */

: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;
}

/* 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-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', monospace;
	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;
}

.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;
}

/* ── Breadcrumb sticky ──
   Reste collé sous le header pendant le scroll. Marges négatives
   symétriques pour étendre le fond jusqu'aux bords du container
   malgré son padding interne. */
.breadcrumb {
    position: sticky;
    top: var(--header-h);
    z-index: 90;

    display: flex;
    align-items: center;
    height: var(--crumb-h);

    background: rgba(4, 4, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);

    /* Étend le fond aux bords du .dossier-container */
    margin: 0 -80px;
    padding: 0 80px;

    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.breadcrumb a {
    color: var(--text-lo);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent-60); }
.breadcrumb .sep {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
    font-size: 9px;
    user-select: none;
}
.breadcrumb .category-tag { color: var(--accent-60); }
.breadcrumb .current      { color: var(--accent-85); }

/* ════════════════════════════════════════════════════════════
   3. SIDEBAR — navigation flottante
   ════════════════════════════════════════════════════════════ */

.panel-toggle { display: none; }

.button-panel {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	z-index: 200;
}

/* Le label secondaire côté est injecté par JS, mais v2 n'affiche pas de texte brut */
.nav-label-side {
	display: none;
}
.button-wrapper:hover .nav-label-side {
	display: block;
	position: absolute;
	right: calc(100% + 8px);
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.85);
	color: #fff;
	font-size: 10px;
	padding: 4px 8px;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 250;
}

/* Trait vertical connecteur */
.panel-track {
	position: absolute;
	right: 29px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(255, 255, 255, 0.04);
	pointer-events: none;
	z-index: -1;
}

.button-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
}

/* Tooltip label */
.button-wrapper::before {
	content: attr(data-label);
	position: absolute;
	right: calc(100% + 2px);
	top: 50%;
	transform: translateX(6px) translateY(-50%);
	white-space: nowrap;
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 5px 10px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s, transform 0.15s;
}
.button-wrapper:hover::before {
	opacity: 1;
	transform: translateX(0) translateY(-50%);
}

/* Bouton nav */
.nav-button {
	position: relative;
	width: 60px;
	height: 60px;
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-right: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.22);
	transition: color 0.2s, background 0.2s, border-color 0.2s;
	outline: none;
	--c: rgba(255, 255, 255, 0.12);
}

/* Coins décoratifs */
.nav-button::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, width 0.2s, height 0.2s;
}
.nav-button::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, width 0.2s, height 0.2s;
}

.nav-button:hover,
.button-wrapper:hover .nav-button {
	background: var(--accent-08);
	border-color: var(--accent-30);
	color: var(--accent-60);
	--c: var(--accent-60);
}
.nav-button:hover::before, .nav-button:hover::after,
.button-wrapper:hover .nav-button::before,
.button-wrapper:hover .nav-button::after {
	width: 12px; height: 12px;
}

/* État actif */
.nav-button.active {
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
	border-color: var(--accent-30);
	color: var(--accent);
	--c: var(--accent-60);
}
.nav-button.active::before,
.nav-button.active::after { width: 12px; height: 12px; }
.nav-button.active .active-bar { display: block; }

.active-bar {
	display: none;
	position: absolute;
	right: -1px; top: 8px; bottom: 8px;
	width: 2px;
	background: var(--accent);
	box-shadow: 0 0 8px var(--accent-60);
}

.nav-button svg { width: 26px; height: 26px; }

.btn-index {
	position: absolute;
	top: 3px; left: 4px;
	font-size: 6px;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.10);
	line-height: 1;
	pointer-events: none;
	transition: color 0.2s;
}
.nav-button:hover .btn-index,
.nav-button.active .btn-index { color: var(--accent-30); }


/* ════════════════════════════════════════════════════════════
   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: 199;
	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; }

.back-to-index {
	position: fixed;
	bottom: 75px; left: 0;
	width: 60px; height: 60px;
	background: var(--bg-card);
	border: 1px solid var(--border-hi);
	border-left: none;
	color: var(--text-lo);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 199;
	outline: none;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
	--c: rgba(255, 255, 255, 0.12);
}
.back-to-index::before {
	content: '';
	position: absolute;
	top: -1px; right: -1px;
	width: 7px; height: 7px;
	border-top: 1px solid var(--c);
	border-right: 1px solid var(--c);
	transition: border-color 0.2s;
}
.back-to-index::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 7px; height: 7px;
	border-bottom: 1px solid var(--c);
	border-right: 1px solid var(--c);
	transition: border-color 0.2s;
}
.back-to-index:hover {
	color: var(--accent-60);
	border-color: var(--accent-30);
	background: var(--accent-08);
	--c: var(--accent-60);
}
.back-to-index svg { width: 18px; height: 18px; fill: currentColor; }


/* ════════════════════════════════════════════════════════════
   4b. RDR NOTICE OVERLAY (modal avertissement NPS)
   ════════════════════════════════════════════════════════════ */

html.rdr-notice-open { overflow: hidden; }

.rdr-notice-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(4, 4, 10, 0.92);
	backdrop-filter: blur(4px);
	z-index: 9999;
	padding: 20px;
}
.rdr-notice-overlay[hidden] { display: none !important; }

.rdr-notice {
	position: relative;
	max-width: 640px;
	width: 90%;
	background: var(--bg-card);
	border: 1px solid var(--accent-30);
	border-top: 2px solid var(--accent-60);
	border-radius: 4px;
	padding: 28px 32px;
	box-shadow: 0 0 48px var(--accent-08), inset 0 0 0 1px var(--accent-08);
	max-height: 90vh;
	overflow-y: auto;
}

.rdr-notice h2 {
	font-family: 'Orbitron', monospace;
	font-size: clamp(13px, 1.6vw, 17px);
	font-weight: 700;
	color: var(--accent);
	letter-spacing: 1px;
	margin: 0 0 14px 0;
	padding-right: 28px;
	text-transform: uppercase;
}

.rdr-notice p,
.rdr-notice ul {
	font-family: 'Share Tech Mono', monospace;
	font-size: 13px;
	color: var(--text-mid);
	line-height: 1.7;
	margin: 8px 0;
}

.rdr-notice ul {
	padding-left: 1.4rem;
	color: var(--text-lo);
}

.rdr-notice ul li::marker { color: var(--accent-60); }

.rdr-notice-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--text-lo);
	transition: color 0.2s;
	padding: 0 4px;
}
.rdr-notice-close:hover { color: var(--accent); }

.rdr-notice-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.rdr-notice-btn {
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	border-radius: 2px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	padding: 8px 16px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rdr-notice-btn-primary {
	background: var(--accent);
	border: 1px solid transparent;
	color: var(--bg);
	font-weight: 700;
}
.rdr-notice-btn-primary:hover { background: var(--accent-85); }

.rdr-notice-btn-secondary {
	background: transparent;
	border: 1px solid var(--accent-30);
	color: var(--text-mid);
}
.rdr-notice-btn-secondary:hover {
	border-color: var(--accent-60);
	color: var(--accent);
}

@media (max-width: 520px) {
	.rdr-notice { padding: 20px 18px; }
	.rdr-notice h2 { font-size: 13px; }
	.rdr-notice-actions { flex-direction: column; }
	.rdr-notice-btn { text-align: center; }
}


/* ════════════════════════════════════════════════════════════
   5. LAYOUT PRINCIPAL
   ════════════════════════════════════════════════════════════ */

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 80px 160px;
	position: relative;
	z-index: 1;
}


/* ════════════════════════════════════════════════════════════
   6. COMPOSANT TITRE SUBSTANCE
   ════════════════════════════════════════════════════════════ */

.drug-title-component {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 48px 0 36px;
}

/* Barre verticale SVG */
.drug-title-vbar { flex-shrink: 0; margin-top: 4px; }
.drug-title-vbar .vbar-track  { stroke: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12); }
.drug-title-vbar .vbar-active { stroke: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.85); }
.drug-title-vbar .vbar-dot-hi { fill: var(--accent); }
.drug-title-vbar .vbar-dot-lo { stroke: var(--accent-60); fill: none; }
.drug-title-vbar .vbar-tick-hi { stroke: var(--accent-60); }
.drug-title-vbar .vbar-tick-lo { stroke: var(--accent-30); }
.drug-title-vbar .vbar-label  { fill: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35); }
.drug-title-supertitle svg line { stroke: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45); }

.drug-title-content { display: flex; flex-direction: column; }

.drug-title-supertitle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.drug-title-supertitle-num,
.drug-title-supertitle-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.28em;
	color: var(--accent-60);
	text-transform: uppercase;
}

.drug-title-main,
.drug-title-name {
	font-family: 'Orbitron', monospace;
	font-weight: 700;
	font-size: clamp(20px, 2.8vw, 38px);
	letter-spacing: 2px;
	line-height: 1.15;
	color: white;
	background: none;
	-webkit-text-fill-color: white;
}
.drug-title-main em,
.drug-title-name em {
	color: var(--accent);
	-webkit-text-fill-color: var(--accent);
	font-style: normal;
}

.drug-title-body {
	font-family: 'Exo 2', sans-serif;
	font-size: 14.5px;
	line-height: 1.95;
	max-width: 700px;
	margin-top: 16px;
	color: var(--text-mid);
	opacity: 0.75;
}

/* Badge légal */
.drug-title-legal-badge {
	display: inline-flex;
	align-items: stretch;
	margin-top: 22px;
	position: relative;
}
.drug-title-legal-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 10px;
	border: 1px solid rgba(255, 59, 59, 0.45);
	border-right: none;
	background: rgba(255, 30, 30, 0.05);
	position: relative;
}
.drug-title-legal-status::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 6px; height: 6px;
	border-top: 1.5px solid var(--red);
	border-left: 1.5px solid var(--red);
}
.drug-title-legal-dot {
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--red);
	flex-shrink: 0;
	animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.15; }
}
.drug-title-legal-label {
	font-family: 'Orbitron', monospace;
	font-weight: 900;
	font-size: 9px;
	letter-spacing: 0.22em;
	color: rgba(255, 59, 59, 0.95);
	text-transform: uppercase;
	white-space: nowrap;
}
.drug-title-legal-sep {
	width: 1px;
	background: var(--red-30);
	flex-shrink: 0;
}
.drug-title-legal-law {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 59, 59, 0.18);
	border-left: none;
	background: rgba(255, 30, 30, 0.02);
	position: relative;
}
.drug-title-legal-law::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 6px; height: 6px;
	border-bottom: 1.5px solid var(--red, rgba(255, 59, 59, 1));
	border-right: 1.5px solid var(--red, rgba(255, 59, 59, 1));
}
.drug-title-legal-law-ref {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.12em;
	color: var(--text-lo);
	white-space: nowrap;
}
.drug-title-legal-law-ref strong {
	color: rgba(255, 255, 255, 0.5);
	font-weight: normal;
}

/* Variantes couleur du badge légal v2 */
.drug-title-legal-badge--legal .drug-title-legal-status {
	border-color: rgba(60, 220, 90, 0.45);
	background: rgba(60, 220, 90, 0.05);
}
.drug-title-legal-badge--legal .drug-title-legal-status::before {
	border-top-color: rgba(60, 220, 90, 1);
	border-left-color: rgba(60, 220, 90, 1);
}
.drug-title-legal-badge--legal .drug-title-legal-dot {
	background: rgba(60, 220, 90, 1);
}
.drug-title-legal-badge--legal .drug-title-legal-label {
	color: rgba(60, 220, 90, 0.95);
}
.drug-title-legal-badge--legal .drug-title-legal-sep {
	background: rgba(60, 220, 90, 0.30);
}
.drug-title-legal-badge--legal .drug-title-legal-law {
	border-color: rgba(60, 220, 90, 0.18);
	background: rgba(60, 220, 90, 0.02);
}
.drug-title-legal-badge--legal .drug-title-legal-law::after {
	border-bottom-color: rgba(60, 220, 90, 1);
	border-right-color: rgba(60, 220, 90, 1);
}
 
/* Contrôlé — jaune */
.drug-title-legal-badge--controlled .drug-title-legal-status {
	border-color: rgba(255, 225, 0, 0.45);
	background: rgba(255, 225, 0, 0.05);
}
.drug-title-legal-badge--controlled .drug-title-legal-status::before {
	border-top-color: rgba(255, 225, 0, 1);
	border-left-color: rgba(255, 225, 0, 1);
}
.drug-title-legal-badge--controlled .drug-title-legal-dot {
	background: rgba(255, 225, 0, 1);
}
.drug-title-legal-badge--controlled .drug-title-legal-label {
	color: rgba(255, 225, 0, 0.95);
}
.drug-title-legal-badge--controlled .drug-title-legal-sep {
	background: rgba(255, 225, 0, 0.30);
}
.drug-title-legal-badge--controlled .drug-title-legal-law {
	border-color: rgba(255, 225, 0, 0.18);
	background: rgba(255, 225, 0, 0.02);
}
.drug-title-legal-badge--controlled .drug-title-legal-law::after {
	border-bottom-color: rgba(255, 225, 0, 1);
	border-right-color: rgba(255, 225, 0, 1);
}




/* ════════════════════════════════════════════════════════════
   6b. BARRE RÉSUMÉ « EN BREF »
   ════════════════════════════════════════════════════════════ */

.drug-summary-bar {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0;
	margin: 8px 0 0;
	border: 1px solid var(--accent-30);
	background: var(--bg-card);
	position: relative;
}

/* Coins décoratifs */
.drug-summary-bar::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 8px; height: 8px;
	border-top: 1.5px solid var(--accent-60);
	border-left: 1.5px solid var(--accent-60);
}
.drug-summary-bar::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1.5px solid var(--accent-60);
	border-right: 1.5px solid var(--accent-60);
}

.summary-item {
	flex: 1 1 0;
	min-width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 12px;
	gap: 6px;
}

.summary-sep {
	width: 1px;
	align-self: stretch;
	background: var(--accent-30);
	flex-shrink: 0;
}

.summary-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 8px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--text-lo);
}

.summary-value {
	font-family: 'Orbitron', monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--accent);
}

.summary-risk-low {
	color: rgba(110, 240, 169, 0.9);
}
.summary-risk-moderate {
	color: var(--amber);
}
.summary-risk-high {
	color: var(--red);
}

@media (max-width: 700px) {
	.drug-summary-bar {
		flex-wrap: wrap;
	}
	.summary-item {
		min-width: 80px;
		flex: 1 1 30%;
		padding: 10px 8px;
		border-bottom: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
	}
	.summary-item:last-child,
	.summary-item:nth-last-child(-n+3) {
		border-bottom: none;
	}
	.summary-sep {
		display: none;
	}
}


/* ════════════════════════════════════════════════════════════
   6c. TIMELINE EFFETS (SVG composant)
   ════════════════════════════════════════════════════════════ */

.effect-timeline-container {
	margin: 28px 0 8px;
	padding: 20px 20px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	position: relative;
}
.effect-timeline-container::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 6px; height: 6px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
}
.effect-timeline-container::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 6px; height: 6px;
	border-bottom: 1px solid var(--accent-30);
	border-right: 1px solid var(--accent-30);
}

.effect-timeline-svg {
	width: 100%;
	height: auto;
	display: block;
}


/* ════════════════════════════════════════════════════════════
   7. SECTIONS & TYPOGRAPHIE
   ════════════════════════════════════════════════════════════ */

.section {
	padding-top: 8px;
}

/* H2 */
.section > h2 {
	position: relative;
	margin: var(--section-gap) 0 36px;
	font-family: 'Jockey One', sans-serif;
	font-weight: 400;
	font-size: clamp(18px, 2.4vw, 28px);
	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 14px var(--accent-30));
	padding-bottom: 12px;
}
.section > h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40%;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-60), transparent);
	border-radius: 1px;
}

/* Séparateur de section */
.section-sep {
	width: 100%;
	height: 1px;
	background: linear-gradient(to right, var(--border-hi), transparent);
}

/* H3 */
.subsection > h3 {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: var(--subsection-gap) 0 18px;
	font-family: 'Orbitron', monospace;
	font-weight: 400;
	font-size: clamp(10px, 1.2vw, 13px);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	background: none;
	-webkit-text-fill-color: unset;
}
.subsection > h3::before {
	content: '//';
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	color: var(--accent-50);
	flex-shrink: 0;
}
.subsection > h3::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, var(--border), transparent);
	margin-bottom: 2px;
}

/* H4 */
h4, .calc-header h4, .dosage-card h4, .mixtures-local h4 {
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	-webkit-text-fill-color: unset;
}
h4::before, .calc-header h4::before,
.dosage-card h4::before, .mixtures-local h4::before {
	content: '';
	display: block;
	width: 14px; height: 1px;
	background: var(--accent-30);
	flex-shrink: 0;
}

/* Paragraphes */
.subsection p, .section > p {
	font-family: 'Exo 2', sans-serif;
	font-size: 16px;
	line-height: 1.95;
	color: var(--text-hi);
	max-width: 860px;
	margin-bottom: 14px;
}
.subsection p strong { color: var(--text-hi); font-weight: normal; }
.subsection p a:not(.doi-download):not(.doi-external) {
	color: var(--accent-85);
	border-bottom: 1px solid var(--accent-60);
	transition: color 0.2s, border-color 0.2s;
}
.subsection p a:not(.doi-download):not(.doi-external):hover { color: var(--accent); border-color: var(--accent-60); }

/* Note */
.dosage-note {
	font-size: 10px !important;
	letter-spacing: 0.1em;
	color: var(--text-lo) !important;
	line-height: 1.6;
	margin-top: 10px !important;
	margin-bottom: 0 !important;
	text-align: left !important;
}

.figure-separator {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin: 12px 0 0;
}

/* ══════════════════════════════════════════════════════════
   PHARMACOLOGIE — Composants visuels
   ══════════════════════════════════════════════════════════ */
 
.pharma-intro-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin: 28px 0 14px;
}
 
/* Grille des 3 neurotransmetteurs */
.pharma-nt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2px;
	margin: 0 0 var(--subsection-gap);
}
 
.pharma-nt-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 22px 22px 18px;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.pharma-nt-card::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
	transition: width 0.2s, height 0.2s;
}
.pharma-nt-card:hover::before {
	width: 16px; height: 16px;
}
.pharma-nt-card:hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 24px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}
 
.pharma-nt-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.pharma-nt-icon {
	width: 36px; height: 36px;
	flex-shrink: 0;
	color: var(--accent);
}
.pharma-nt-icon svg { width: 100%; height: 100%; }
 
.pharma-nt-name {
	display: block;
	font-family: 'Orbitron', monospace;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--text-hi);
}
.pharma-nt-aka {
	display: block;
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.15em;
	color: var(--text-lo);
	margin-top: 2px;
}
 
/* Barre d'impact */
.pharma-nt-bar {
	height: 3px;
	background: var(--border);
	margin-bottom: 14px;
	position: relative;
}
.pharma-nt-bar-fill {
	height: 100%;
	background: linear-gradient(90deg,
		rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.6),
		rgba(var(--accent-r), var(--accent-g), var(--accent-b), 1));
	transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
 
.pharma-nt-desc {
	font-family: 'Exo 2', sans-serif;
	font-size: 13.5px;
	line-height: 1.85;
	color: var(--text-mid);
	margin-bottom: 12px;
}
.pharma-nt-desc strong {
	color: var(--text-hi);
	font-weight: 600;
}
 
.pharma-nt-tag {
	display: inline-block;
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.12em;
	color: var(--accent-60);
	padding: 4px 0 0;
	border-top: 1px solid var(--border);
	width: 100%;
}
 
/* Grille mécanismes complémentaires */
.pharma-extras-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px;
	margin: 4px 0 0;
}
 
.pharma-extra-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 18px 20px 16px;
	position: relative;
	transition: border-color 0.25s;
}
.pharma-extra-card:hover {
	border-color: rgba(255, 255, 255, 0.12);
}
.pharma-extra-card::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 6px; height: 6px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
}
 
.pharma-extra-label {
	display: block;
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 10px;
}
 
.pharma-extra-card p {
	font-family: 'Exo 2', sans-serif !important;
	font-size: 13px !important;
	line-height: 1.85 !important;
	color: var(--text-mid);
	margin: 0 !important;
}
.pharma-extra-card p em {
	color: var(--accent-60);
	font-style: italic;
}
.pharma-extra-card p strong {
	color: var(--text-hi);
	font-weight: 600;
}
 
/* ══════════════════════════════════════════════════════════ */

/* ── Tags effets (morph flow) ── */
.effect-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.effect-tag {
	--c-r: var(--accent-r);
	--c-g: var(--accent-g);
	--c-b: var(--accent-b);
	display: flex;
	flex-direction: column;
	padding: 5px 10px;
	background: rgba(var(--c-r), var(--c-g), var(--c-b), 0.06);
	border: 1px solid rgba(var(--c-r), var(--c-g), var(--c-b), 0.22);
	cursor: pointer;
	user-select: none;
	position: relative;
	flex: 0 0 auto;
	order: 0;
	transition:
		border-color 0.3s,
		background 0.3s,
		box-shadow 0.3s,
		padding 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
		flex-basis 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
		order 0s;
}
.effect-tag::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 0; height: 0;
	border-top: 1px solid rgba(var(--c-r), var(--c-g), var(--c-b), 0.50);
	border-left: 1px solid rgba(var(--c-r), var(--c-g), var(--c-b), 0.50);
	transition: width 0.3s 0.06s, height 0.3s 0.06s;
}
.effect-tag::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 0; height: 0;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	transition: width 0.3s 0.1s, height 0.3s 0.1s;
}
.effect-tag:hover {
	border-color: rgba(var(--c-r), var(--c-g), var(--c-b), 0.42);
	background: rgba(var(--c-r), var(--c-g), var(--c-b), 0.10);
}

/* Nom de l'effet */
.effect-tag .tag-name {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1;
	white-space: nowrap;
	transition: color 0.3s, font-size 0.35s, letter-spacing 0.35s;
}
.effect-tag .tag-diamond {
	width: 5px; height: 5px;
	border: 1px solid rgba(var(--c-r), var(--c-g), var(--c-b), 0.7);
	transform: rotate(45deg);
	flex-shrink: 0;
	display: inline-block;
	transition: background 0.3s, width 0.25s, height 0.25s;
}

/* Barre accent */
.effect-tag .tag-bar {
	display: block;
	height: 1px;
	background: rgba(var(--c-r), var(--c-g), var(--c-b), 0.40);
	width: 0;
	margin: 0;
	transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s, margin 0.35s;
}

/* Description */
.effect-tag .tag-desc {
	display: block;
	overflow: hidden;
	height: 0;
	opacity: 0;
	font-family: 'Exo 2', sans-serif;
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--text-mid);
	letter-spacing: 0;
	transition: height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s 0.06s;
}

/* État ouvert — morph en mini-card */
.effect-tag.is-open {
	order: -1;
	flex: 1 0 100%;
	background: var(--bg-card);
	border-color: rgba(var(--c-r), var(--c-g), var(--c-b), 0.35);
	padding: 14px 18px 16px;
	box-shadow: 0 2px 20px rgba(var(--c-r), var(--c-g), var(--c-b), 0.06);
}
.effect-tag.is-open::before { width: 10px; height: 10px; }
.effect-tag.is-open::after  { width: 7px; height: 7px; }
.effect-tag.is-open .tag-name {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(var(--c-r), var(--c-g), var(--c-b), 1);
	white-space: normal;
}
.effect-tag.is-open .tag-diamond {
	width: 6px; height: 6px;
	background: rgba(var(--c-r), var(--c-g), var(--c-b), 0.40);
}
.effect-tag.is-open .tag-bar {
	width: 28px;
	margin: 8px 0 8px;
}
.effect-tag.is-open .tag-desc {
	opacity: 1;
}

/* Fade des voisins quand un badge est ouvert */
.effect-list.has-open .effect-tag:not(.is-open) {
	opacity: 0.55;
	transition:
		border-color 0.3s, background 0.3s, box-shadow 0.3s,
		padding 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
		flex-basis 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
		opacity 0.3s, order 0s;
}
.effect-list.has-open .effect-tag:not(.is-open):hover {
	opacity: 0.85;
}

/* Variantes neg / danger */
.effect-tag.neg {
	--c-r: 255; --c-g: 160; --c-b: 80;
}
.effect-tag.danger {
	--c-r: 255; --c-g: 70; --c-b: 70;
}

/* ── Catégories d'effets (autogroup) ── */
.effects-category {
	margin-top: 0;
}
.effects-category__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.effects-category__icon {
	font-size: 14px;
	line-height: 1;
	opacity: 0.8;
}

.reference-figure {
	margin: 8px 0 0;
	font-family: 'Exo 2', sans-serif;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.75;
}

/* ── Figures / images ── */
.image-figure {
	margin: 20px 0;
	position: relative;
}
.image-figure img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--border);
	transition: border-color 0.25s;
}
.image-figure:hover img {
	border-color: var(--accent-30);
}
.image-figure figcaption {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--text-lo);
	margin-top: 8px;
	text-align: center;
}

/* ── Keylist ────────────────────────────────────────────────
   Liste argumentée avec marqueur accent et séparateurs subtils.
   Utilisée dans les sections risques / e-cigarette.
   ──────────────────────────────────────────────────────────── */
 
.keylist {
	list-style: none;
	padding: 0;
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
 
.keylist > li {
	font-family: 'Exo 2', sans-serif;
	font-size: 15px;
	line-height: 1.95;
	color: var(--text-hi);
	max-width: 860px;
	padding: 16px 0 16px 24px;
	border-top: 1px solid var(--border);
	position: relative;
}
 
.keylist > li:last-child {
	border-bottom: 1px solid var(--border);
}
 
/* Marqueur accent vertical */
.keylist > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 16px;
	bottom: 16px;
	width: 2px;
	background: linear-gradient(
		to bottom,
		var(--accent-60),
		var(--accent-08)
	);
	border-radius: 1px;
}
 
/* Index numéroté (optionnel via counter) */
.keylist {
	counter-reset: keylist-counter;
}
 
.keylist > li::after {
	counter-increment: keylist-counter;
	content: counter(keylist-counter, decimal-leading-zero);
	position: absolute;
	right: 0;
	top: 16px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 1.5px;
	color: var(--accent-30);
	opacity: 0.6;
}
 
/* Tooltips et liens dans la keylist */
.keylist .tooltip-term {
	color: var(--accent-85);
}
 
.keylist a:not(.doi-download):not(.doi-external) {
	color: var(--accent-85);
	border-bottom: 1px solid var(--accent-60);
	transition: color 0.2s, border-color 0.2s;
}
.keylist a:not(.doi-download):not(.doi-external):hover {
	color: var(--accent);
	border-color: var(--accent-60);
}
 
/* ── Responsive ── */
@media (max-width: 768px) {
	.keylist > li {
		font-size: 14px;
		line-height: 1.85;
		padding: 14px 0 14px 18px;
	}
 
	.keylist > li::after {
		display: none;
	}
}

/* .citation-scientifique → styles définis après .article-content blockquote
   pour garantir la priorité de cascade (voir section en bas de fichier).    */

/* ── Factor cards (grille addictivité / risques) ── */
.factor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px;
	margin-top: 20px;
}
.factor-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 16px 16px 14px;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
	cursor: default;
}
.factor-card:hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}
.factor-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.factor-card-header h4 {
	font-family: 'Orbitron', monospace;
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-hi);
	margin: 0;
}
.factor-icon {
	width: 30px;
	height: 30px;
	opacity: 0.8;
	color: var(--accent-85);
	flex-shrink: 0;
}
.factor-card p {
	font-size: 13px;
	line-height: 1.75;
	color: var(--text-mid);
	margin: 0;
}

/* ── Témoignage utilisateur ── */
.temoignage {
	margin: 20px 0 0;
	position: relative;
}

.temoignage blockquote {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent-60);
	padding: 22px 22px 18px 30px;
	margin: 0;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
	overflow: hidden;
}

.temoignage blockquote:hover {
	border-color: var(--accent-30);
	border-left-color: var(--accent);
	box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.07);
}


.temoignage blockquote:hover::before {
	color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
}

.temoignage blockquote p {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.82);
	font-style: italic;
	position: relative;
}

.temoignage figcaption {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding-left: 4px;
}

.temoignage-auteur {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--accent-60);
}

.temoignage-source {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
	padding: 2px 6px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Composants pharmacologie (synapse, mechanism, brain toggle) ── */
.synapse-animation {
	margin: 20px 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 16px;
	overflow: hidden;
}
.synapse-animation svg {
	width: 100%;
	height: auto;
}
.synapse-caption {
	font-size: 11px;
	color: var(--text-lo);
	line-height: 1.7;
	margin-top: 12px;
}
.nt-legend {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 12px 0 0;
	flex-wrap: wrap;
}
.legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--text-mid);
}
.legend-shape {
	width: 10px;
	height: 10px;
	display: inline-block;
}
.circle-shape { border-radius: 50%; background: #ff6b6b; }
.square-shape { background: #66b3ff; }
.triangle-shape {
	width: 0; height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 10px solid #ffd966;
}
.mechanism-block {
	margin: 24px 0;
	position: relative;
}
.mechanism-card {
	position: relative;
	border: 1px solid var(--accent-20);
	border-left: 3px solid var(--accent-60);
	border-radius: 4px;
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.03);
	padding: 40px 24px 20px;
	margin: 24px 0;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.1);
}
.mechanism-card:hover {
	border-color: var(--accent-40);
	border-left-color: var(--accent);
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.05);
	box-shadow: 0 8px 25px -10px rgba(0, 0, 0, 0.15);
}
.mechanism-card.is-simplified {
	border-left-color: #ffd700;
}
.mechanism-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.05) 0%, transparent 50%);
	pointer-events: none;
}
 
/* Sweep lumineux au toggle */
.mechanism-card::after {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06) 40%,
		rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.10) 50%,
		rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06) 60%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 3;
	opacity: 0;
}
.mechanism-card.sweeping::after {
	animation: cardSweep 0.55s ease-out forwards;
}
@keyframes cardSweep {
	0%   { left: -100%; opacity: 1; }
	100% { left: 100%;  opacity: 0; }
}
 
/* État simplifié */
.mechanism-card.is-simplified {
	border-color: #ffd700;
	border-left-color: #ffd700;
	border-left-width: 3px;
	padding-left: 24px;
	background: rgba(255, 215, 0, 0.05);
	box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.04),
	            0 4px 15px -5px rgba(0, 0, 0, 0.1);
}
 
/* Label carte (haut gauche) */
.mechanism-card__label {
	position: absolute;
	top: 10px; left: 18px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	pointer-events: none;
	user-select: none;
	overflow: hidden;
	height: 1.3em;
}
.mechanism-card__label-text {
	display: block;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.35s ease;
	color: var(--accent);
}
.mechanism-card__label-text--tech {
	transform: translateY(0);
	opacity: 1;
}
.mechanism-card__label-text--simple {
	position: absolute;
	top: 0; left: 0;
	transform: translateY(100%);
	opacity: 0;
}
.mechanism-card.is-simplified .mechanism-card__label-text--tech {
	transform: translateY(-100%);
	opacity: 0;
}
.mechanism-card.is-simplified .mechanism-card__label-text--simple {
	transform: translateY(0);
	opacity: 1;
	color: #ffd700;
}
 
/* Corps texte — crossfade + blur */
.mechanism-card__body {
	position: relative;
	transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.mechanism-card__text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-mid);
	width: 100%;
}
.mechanism-card__text strong {
	color: var(--accent);
}
.mechanism-card__text--technical {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0);
	transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.mechanism-card__text--simple {
	position: absolute;
	top: 0; left: 0; right: 0;
	opacity: 0;
	filter: blur(4px);
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.35s ease 0.08s, filter 0.35s ease 0.08s, transform 0.35s ease 0.08s;
	background: rgba(255, 215, 0, 0.05);
	border-radius: 4px;
	padding: 12px 16px;
	border: 1px dashed rgba(255, 215, 0, 0.2);
}
.mechanism-card__text--simple p:first-child::before {
	content: '💡 VERSION VULGARISÉE';
	font-weight: 800;
	color: #ffd700;
	text-transform: uppercase;
	font-size: 0.75em;
	display: block;
	margin-bottom: 8px;
	letter-spacing: 0.1em;
}
	border: 1px dashed rgba(255, 215, 0, 0.2);
}
.mechanism-card__text--simple p:first-child::before {
	content: '💡 VERSION VULGARISÉE';
	font-weight: 800;
	color: #ffd700;
	text-transform: uppercase;
	font-size: 0.75em;
	display: block;
	margin-bottom: 8px;
	letter-spacing: 0.1em;
}
.mechanism-card.is-simplified .mechanism-card__text--technical {
	opacity: 0;
	filter: blur(4px);
	transform: translateY(-10px);
	pointer-events: none;
	position: absolute;
	top: 0; left: 0; right: 0;
}
.mechanism-card.is-simplified .mechanism-card__text--simple {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0);
	z-index: 2;
	pointer-events: auto;
	position: relative;
}
.mechanism-card.is-simplified .mechanism-card__text--simple {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0);
	pointer-events: auto;
	position: relative;
}
 
/* Bouton toggle (haut droite) */
.brain-toggle-btn {
	position: absolute;
	top: 10px; right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--accent);
	z-index: 5;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer;
}
.brain-toggle-btn::before {
	content: 'Vulgariser';
	position: absolute;
	right: 40px;
	background: var(--accent);
	color: #000;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	opacity: 0;
	transform: translateX(10px);
	transition: all 0.2s ease;
	pointer-events: none;
	white-space: nowrap;
}
.brain-toggle-btn:hover::before {
	opacity: 1;
	transform: translateX(0);
}
.brain-toggle-btn:hover {
	color: var(--accent);
	transform: scale(1.1);
}
.brain-toggle-btn:active {
	transform: scale(0.9);
}
.mechanism-card.is-simplified .brain-toggle-btn {
	color: #ffd700;
}
.mechanism-card.is-simplified .brain-toggle-btn::before {
	content: 'Détailler';
	background: #ffd700;
}
 
/* Icône ampoule */
.brain-icon {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	opacity: 0.8 !important;
	filter: none !important;
	animation: none !important;
	transition: all 0.3s ease;
}
.brain-toggle-btn:hover .brain-icon {
	filter: drop-shadow(0 0 5px currentColor) !important;
}
.mechanism-card.is-simplified .brain-icon {
	fill: rgba(255, 215, 0, 0.2);
}
.brain-icon.flash {
	animation: bulbFlash 0.4s ease-out forwards !important;
}
@keyframes bulbPulse {
	0%, 100% {
		opacity: 0.4;
		filter: brightness(0) invert(1)
		        drop-shadow(0 0 0 rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0));
	}
	50% {
		opacity: 0.7;
		filter: brightness(0) invert(1)
		        drop-shadow(0 0 4px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3));
	}
}
@keyframes bulbFlash {
	0% {
		opacity: 1;
		filter: brightness(0) invert(1)
		        drop-shadow(0 0 8px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.8))
		        drop-shadow(0 0 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4));
	}
	100% {
		opacity: 0.9;
		filter: brightness(0) invert(1)
		        drop-shadow(0 0 3px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5));
	}
}
 
/* Label bouton (slide vertical) - masqué selon la demande */
.brain-toggle-label {
	display: none !important;
}
.brain-toggle-label__text {
	display: block;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.3s ease;
	color: var(--accent-60);
	line-height: 1.2em;
}
.brain-toggle-label__text--simplify {
	transform: translateY(0);
	opacity: 1;
}
.brain-toggle-label__text--technical {
	transform: translateY(100%);
	opacity: 0;
	position: absolute;
	top: 0; left: 0;
}
.mechanism-card.is-simplified .brain-toggle-label__text--simplify {
	transform: translateY(-100%);
	opacity: 0;
}
.mechanism-card.is-simplified .brain-toggle-label__text--technical {
	transform: translateY(0);
	opacity: 1;
	color: var(--accent-85);
}
.brain-toggle-btn:hover .brain-toggle-label__text {
	color: var(--accent);
}
 
/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
	.brain-icon { animation: none !important; opacity: 0.6; }
	.mechanism-card__text--technical,
	.mechanism-card__text--simple,
	.mechanism-card__body,
	.mechanism-card__label-text,
	.brain-toggle-label__text { transition-duration: 0.01s !important; }
	.mechanism-card::after { display: none; }
}
.simplified-text[hidden] { display: none; }

/* ── Charts & figures spécifiques substances ── */
.dual-line-chart,
.deaths-chart-figure {
	margin: 20px 0;
}
.chart-source {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	color: var(--text-mid);
	line-height: 1.7;
	margin-top: 8px;
	text-align: center;
}
.price-purity-chart,
.deaths-chart {
	width: 100%;
	min-height: 200px;
}

/* ── Timeline effets ── */
.effect-timeline-container {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 18px 16px 14px;
	margin: 12px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.timeline-controls {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}
.roa-btn {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 14px;
	border: 1px solid var(--border-hi);
	background: transparent;
	color: var(--text-lo);
	transition: all 0.2s;
}
.roa-btn:hover {
	border-color: var(--accent-30);
	color: var(--text-mid);
}
.roa-btn.active {
	border-color: var(--accent-60);
	background: var(--accent-08);
	color: var(--accent);
}


/* ════════════════════════════════════════════════════════════
   8. TOGGLE — sections dépliables (carte dépliante)
   ════════════════════════════════════════════════════════════ */

.hidden-content {
	display: none;
}
.hidden-content.is-open {
	display: block;
	animation: fadeSlideIn 0.25s ease-out;
}

@keyframes fadeSlideIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Carte wrapper ── */
.toggle-card {
	position: relative;
	margin-top: 20px;
	border: 1px solid var(--accent-30);
	transition: border-color 0.2s;
}
.toggle-card::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 8px; height: 8px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
	pointer-events: none;
	z-index: 1;
	transition: width 0.2s, height 0.2s;
}
.toggle-card:hover {
	border-color: var(--accent-60);
}
.toggle-card:hover::before {
	width: 14px; height: 14px;
}

/* ── Bouton = en-tête de la carte ── */
.toggle-section-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
	padding: 11px 16px;
	background: transparent;
	border: none;
	color: var(--accent-60);
	font-family: 'Share Tech Mono', monospace;
	font-size: 14px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	outline: none;
	position: relative;
}
.toggle-section-btn:hover {
	background: var(--accent-08);
	color: var(--accent);
}
.toggle-section-btn[aria-expanded="true"] {
	color: var(--accent);
	border-bottom: 1px solid var(--accent-20);
	background: var(--accent-08);
}
.toggle-section-btn .toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border: 1px solid var(--accent-30);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.2s;
}
.toggle-section-btn:hover .toggle-icon,
.toggle-section-btn[aria-expanded="true"] .toggle-icon {
	border-color: var(--accent-60);
}
.toggle-section-btn .toggle-icon svg {
	width: 8px;
	height: 8px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}
.toggle-section-btn[aria-expanded="true"] .toggle-icon {
	transform: rotate(180deg);
}

/* ── Corps de la carte (contenu déplié) ── */
.toggle-card .hidden-content.is-open {
	padding: 10px 10px 1px;
}
/* Masquer le h3 redondant (le bouton = titre) */
.toggle-card .hidden-content > h3:first-child {
	display: none;
}


/* ════════════════════════════════════════════════════════════
   9. TABLEAUX DOSAGE
   ════════════════════════════════════════════════════════════ */

.dosage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px;
	margin: 4px 0 28px;
}
/* Tableaux à 4+ colonnes : toujours empilés */
.dosage-grid--wide {
	grid-template-columns: 1fr;
}

.dosage-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 22px 22px 18px;
	margin: 18px 0;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
	overflow: auto;
}
.dosage-card:hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
	transform: translateY(-2px);
}
.dosage-card::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.dosage-card:hover::before {
	width: 16px; height: 16px;
	border-color: var(--accent-60);
}
.dosage-card::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.dosage-card:hover::after {
	width: 14px; height: 14px;
	border-color: var(--accent-30);
}

/* Séparateurs pleine largeur par palier (tableaux multi-voies via data-level sur <tr>) */
.dosage-table tbody tr[data-level]                       { border-bottom: 1px solid var(--accent-30); }
.dosage-table tbody tr[data-level]:last-child            { border-bottom: none; }
.duration-table tbody tr[data-level]                     { border-bottom: 1px solid var(--accent-30); }
.duration-table tbody tr[data-level]:last-child          { border-bottom: none; }


.dosage-table, .duration-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 10px;
}
.dosage-table thead tr,
.duration-table thead tr {
	border-bottom: 1px solid var(--border);
}
.dosage-table th, .duration-table th {
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-hi);
	padding: 0 0 9px;
	text-align: left;
	font-weight: 400;
}
.dosage-table th:last-child,
.duration-table th:last-child { text-align: right; }

.dosage-table tbody tr,
.duration-table tbody tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.);
	transition: background 0.15s;
}
.dosage-table tbody tr:last-child,
.duration-table tbody tr:last-child { border-bottom: none; }
.dosage-table tbody tr:hover,
.duration-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.dosage-table td, .duration-table td {
	font-family: 'Share Tech Mono', monospace;
	font-size: 13.5px;
	color: var(--text-mid);
	padding: 10px 0;
	vertical-align: middle;
}
.dosage-table td:first-child,
.duration-table td:first-child {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-mid);
	width: 45%;
}
.dosage-table td:last-child,
.duration-table td:last-child {
	color: var(--text-hi);
	text-align: right;
	font-size: 14.5px;
}

/* ── Multi-voies (tableaux 4+ colonnes via .dosage-grid--wide) ── */
.dosage-grid--wide .dosage-table,
.dosage-grid--wide .duration-table {
	table-layout: fixed;
}
.dosage-grid--wide .dosage-table th:first-child,
.dosage-grid--wide .duration-table th:first-child {
	width: 28%;
}
.dosage-grid--wide .dosage-table th:not(:first-child),
.dosage-grid--wide .duration-table th:not(:first-child) {
	text-align: center;
	border-left: 1px solid var(--accent-08);
}
.dosage-grid--wide .dosage-table th:last-child,
.dosage-grid--wide .duration-table th:last-child {
	text-align: center;
}
.dosage-grid--wide .dosage-table td,
.dosage-grid--wide .duration-table td {
	text-align: center;
	color: var(--text-hi);
	padding: 10px 8px;
	white-space: nowrap;
}
.dosage-grid--wide .dosage-table td:first-child,
.dosage-grid--wide .duration-table td:first-child {
	text-align: left;
	color: var(--text-mid);
	padding-left: 0;
	width: auto;
}
.dosage-grid--wide .dosage-table td:not(:first-child),
.dosage-grid--wide .duration-table td:not(:first-child) {
	border-left: 1px solid var(--accent-08);
}

/* Séparateurs pleine largeur (via data-level sur <tr>) */
.dosage-table tbody tr[data-level],
.duration-table tbody tr[data-level]       { border-bottom: 1px solid var(--accent-30); }
.dosage-table tbody tr[data-level]:last-child,
.duration-table tbody tr[data-level]:last-child { border-bottom: none; }

/* Seuils de couleur dosage — tables 2 colonnes */
.dosage-table tbody tr:nth-child(3) td:last-child { color: var(--amber); }
.dosage-table tbody tr:nth-child(4) td:last-child { color: rgba(255, 59, 59, 0.85); }
/* Seuils de couleur dosage — tables multi-voies */
.dosage-table tbody tr[data-level="strong"] td:not(:first-child) { color: var(--amber); }
.dosage-table tbody tr[data-level="very-strong"] td:not(:first-child) { color: rgba(255, 59, 59, 0.85); }


/* ════════════════════════════════════════════════════════════
   10. CALCULATEURS
   ════════════════════════════════════════════════════════════ */

.calculator-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2px;
	margin: 20px 0 28px;
}

.calculator {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 22px;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.calculator:hover {
	border-color: var(--accent-30);
	box-shadow: 0 2px 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
}
.calculator::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.calculator:hover::before {
	width: 16px; height: 16px;
	border-color: var(--accent-60);
}

.calc-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.calc-content .lead {
	font-size: 12px;
	color: var(--text-mid);
	line-height: 1.6;
	margin: 0;
}
.calc-content label {
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-lo);
	display: block;
	margin-top: 4px;
}

.calc-group {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--border-hi);
	background: rgba(255, 255, 255, 0.015);
	transition: border-color 0.2s;
}
.calc-group:focus-within {
	border-color: var(--accent-30);
	box-shadow: 0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08),
	            0 0 12px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}

.calc-input {
	background: transparent;
	border: none;
	outline: none;
	font-family: 'Share Tech Mono', monospace;
	font-size: 13px;
	color: var(--text-hi);
	padding: 8px 12px;
	flex: 1;
	width: 100%;
	appearance: textfield;
	-moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-input::placeholder { color: var(--text-lo); }

select.calc-input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,0.18)'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 30px;
	border: 1px solid var(--border-hi);
}
select.calc-input option { background: var(--bg-card); color: var(--text-hi); }

.calc-unit {
	font-size: 9px;
	letter-spacing: 0.1em;
	color: var(--text-lo);
	padding: 0 12px;
	border-left: 1px solid var(--border);
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.calc-action { margin-top: 14px; }

/* Bouton calculer */
.copy-btn {
	width: 100%;
	background: transparent;
	border: 1px solid var(--accent-30);
	color: var(--accent-60);
	font-family: 'Orbitron', monospace;
	font-weight: 700;
	font-size: 9px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	padding: 10px 16px;
	position: relative;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	outline: none;
}
.copy-btn::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 8px; height: 8px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
}
.copy-btn::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--accent-60);
	border-right: 1px solid var(--accent-60);
}
.copy-btn:hover {
	background: var(--accent-08);
	color: var(--accent);
	border-color: var(--accent-60);
	box-shadow: 0 0 14px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
}
.copy-btn:active {
	transform: translateY(1px);
	box-shadow: none;
}

/* Résultat */
.result-box {
	margin-top: 12px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.015);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent-30);
	font-size: 12px;
	line-height: 1.8;
	color: var(--text-mid);
	min-height: 46px;
}
.result-placeholder {
	font-size: 12px;
	color: var(--text-lo);
	letter-spacing: 0.08em;
	margin: 0;
}


/* ════════════════════════════════════════════════════════════
   11. QUIZ DUDIT
   ════════════════════════════════════════════════════════════ */

#quiz-intro { margin: 20px 0 16px; }

#quiz-intro {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 44px;
	gap: 12px;
}

#start-btn {
	background: transparent;
	border: 1px solid var(--accent-30);
	color: var(--accent-60);
	font-family: 'Orbitron', monospace;
	font-weight: 700;
	font-size: 9px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	padding: 12px 24px;
	position: relative;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	outline: none;
}
#start-btn::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 8px; height: 8px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
}
#start-btn::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--accent-60);
	border-right: 1px solid var(--accent-60);
}
#start-btn:hover {
	background: var(--accent-08);
	color: var(--accent);
	border-color: var(--accent-60);
}

#dudit-form {
	margin-top: 6px;
}

#dudit-form ol { list-style: none; }

.question {
	display: none;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent-30);
	padding: 20px 24px;
	font-size: 13px;
	line-height: 1.8;
	color: var(--text-mid);
}
.question.active { display: block; }

.question .progress {
	display: block;
	font-size: 8px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin-bottom: 10px;
}

.question label {
	display: block;
	padding: 7px 14px;
	margin-top: 6px;
	background: rgba(255, 255, 255, 0.015);
	border: 1px solid rgba(255, 255, 255, 0.04);
	font-size: 12px;
	color: var(--text-mid);
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.question label:hover {
	background: var(--accent-08);
	border-color: var(--accent-30);
	color: var(--text-hi);
}

.question input[type="radio"] {
	accent-color: var(--accent);
	margin-right: 10px;
	vertical-align: middle;
}

#dudit-result {
	display: none;
	margin-top: 16px;
	padding: 18px 22px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent-30);
	font-size: 13px;
	line-height: 1.8;
	color: var(--text-mid);
	animation: dudit-result-in 0.25s ease both;
}

@keyframes dudit-result-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

#dudit-result.show {
	opacity: 1;
	transform: translateY(0);
}


/* ════════════════════════════════════════════════════════════
   12. MÉLANGES — substance buttons & résultats
   ════════════════════════════════════════════════════════════ */

.mixtures-local {
	margin: 16px 0;
}

.substance-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 16px;
}

.substance-buttons button {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.658);
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 5px 10px;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	outline: none;
}
.substance-buttons button:hover {
	color: var(--accent-85);
	border-color: var(--accent-30);
	background: var(--accent-08);
}
.substance-buttons button.active {
	color: var(--accent);
	border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.07);
}

#mixtures-results {
	margin-top: 16px;
	min-height: 56px;
}

#mixtures-results:empty {
	margin-top: 0;
	min-height: 0;
}

/* Carte B1 - widget Mixtures */
.b1-card {
	display: grid;
	grid-template-columns: 54px 1fr;
	border: 1px solid var(--border-hi);
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg-card);
	transition: border-color 0.2s;
	--lv-rgb: 160, 160, 175;
	--lv-hi: #b8b8c8;
}

.b1-card.is-extreme {
	--lv-rgb: 255, 95, 95;
	--lv-hi: #ff9090;
}

.b1-card.is-high {
	--lv-rgb: 255, 144, 64;
	--lv-hi: #ffb380;
}

.b1-card.is-moderate {
	--lv-rgb: 255, 208, 64;
	--lv-hi: #ffd870;
}

.b1-card.is-low {
	--lv-rgb: 80, 255, 112;
	--lv-hi: #80ff9c;
}

.b1-card.is-unknown {
	--lv-rgb: 160, 160, 175;
	--lv-hi: #b8b8c8;
}

.b1-card:hover {
	border-color: rgba(var(--lv-rgb), 0.4);
}

.b1-band {
	background: rgba(var(--lv-rgb), 0.08);
	border-right: 1px solid rgba(var(--lv-rgb), 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
}

.b1-band-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(var(--lv-rgb), 0.15);
	border: 1px solid rgba(var(--lv-rgb), 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lv-hi);
	box-shadow: 0 0 12px rgba(var(--lv-rgb), 0.2);
}

.b1-band-icon svg {
	width: 16px;
	height: 16px;
}

.b1-content {
	padding: 14px 18px;
}

.b1-top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.b1-combo {
	font-family: 'Orbitron', sans-serif;
	font-size: 0.92rem;
	color: var(--text-hi);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 500;
}

.b1-combo .plus {
	color: var(--text-hi);
	margin: 0 6px;
}

.nick {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	background: var(--accent-08);
	border: 1px solid var(--accent-30);
	border-radius: 20px;
	font-family: 'Exo 2', sans-serif;
	font-size: 0.7rem;
	font-style: italic;
	color: var(--accent);
	vertical-align: middle;
	text-transform: none;
}

.b1-chips {
	display: flex;
	gap: 6px;
	margin-left: auto;
	flex-wrap: wrap;
}

.b1-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 20px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
}

.b1-chip-risk {
	background: rgba(var(--lv-rgb), 0.1);
	border: 1px solid rgba(var(--lv-rgb), 0.4);
	color: var(--lv-hi);
}

.b1-chip-syn {
	background: var(--accent-08);
	border: 1px solid var(--accent-30);
	color: var(--accent);
}

.b1-chip-risk.unknown,
.b1-chip-syn.unknown {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--border-hi);
	color: var(--text-lo);
}

.b1-chip svg {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
}

.b1-prose {
	font-family: 'Exo 2', sans-serif;
	color: var(--text-mid);
	font-size: 0.88rem;
	line-height: 1.6;
	margin: 0 0 8px;
}

.b1-prose .lead {
	color: var(--text-hi);
	font-weight: 500;
}

.b1-prose .lead .lv {
	color: var(--lv-hi);
	font-weight: 600;
}

.b1-prose .lead .syn {
	color: var(--accent);
	font-weight: 600;
}

.b1-prose .lead .lv.unknown,
.b1-prose .lead .syn.unknown {
	color: var(--text-lo);
}

.b1-prose .joiner {
	color: var(--text-hi);
	font-style: italic;
	margin-right: 2px;
}

.b1-prose-empty {
	color: var(--text-lo);
	font-style: italic;
	font-size: 0.82rem;
}

.b1-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 0.7rem;
	color: var(--text-lo);
	text-decoration: none;
	transition: color 0.2s;
	margin-top: 4px;
}

.b1-link::before {
	content: '→';
	color: var(--text-hi);
}

.b1-link:hover {
	color: var(--text-hi);
}

@media (max-width: 640px) {
	.b1-card {
		grid-template-columns: 1fr;
	}

	.b1-band {
		border-right: 0;
		border-bottom: 1px solid rgba(var(--lv-rgb), 0.25);
		min-height: 52px;
	}

	.b1-content {
		padding: 14px 14px 16px;
	}

	.b1-chips {
		margin-left: 0;
	}

	.b1-combo {
		font-size: 0.84rem;
	}

	.b1-prose {
		font-size: 0.84rem;
	}
}


/* ════════════════════════════════════════════════════════════
   13. BIBLIOGRAPHIE
   ════════════════════════════════════════════════════════════ */
.biblio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.biblio-item {
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    padding: 10px 14px;
    border-left: 2px solid transparent;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s;
}

.biblio-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--accent-30);
}

/* Puce losange */
.biblio-item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border: 1px solid var(--accent-30);
    transform: rotate(45deg);
    margin-right: 10px;
    vertical-align: middle;
}

/* Auteurs */
.biblio-item strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Titre de l'ouvrage */
.biblio-item em {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}

/* DOI */
.doi {
    display: inline-block;
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent-85);
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
    border-radius: 2px;
    vertical-align: middle;
}

.doi a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.doi a:hover {
    color: var(--accent-85);
}

/* Icônes DOI */
.doi a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.5;
	transition: opacity 0.15s, transform 0.15s;
}

.doi a:hover::after {
    opacity: 1;
    transform: translateY(-1px);
}

/* Téléchargement — flèche vers le bas + barre */
.doi a.doi-download::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v8.5M4.5 7.5 8 11l3.5-3.5M3 13.5h10'/%3E%3C/svg%3E") no-repeat center;
}

.doi-download:hover {
    opacity: 1;
    transform: translateY(-1px);
}
/* Lien externe — flèche haut-droit */
.doi a.doi-external::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h6.5V10M12 4 5.5 10.5'/%3E%3C/svg%3E") no-repeat center;
}

/* Copier la référence — clipboard */
.doi-copy {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: 1;
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='1'/%3E%3Cpath d='M10.5 5.5V3.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2'/%3E%3C/svg%3E") no-repeat center;
}
 
.doi-copy:hover {
    opacity: 1;
    transform: translateY(-1px);
}
 
.doi-copy:focus-visible {
    outline: 2px solid var(--accent-30);
    outline-offset: 2px;
    border-radius: 2px;
}
 
/* État "copié" : checkmark */
.doi-copy--done {
    opacity: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4.5 6.5 11.5 3 8'/%3E%3C/svg%3E") no-repeat center;
}

/* ════════════════════════════════════════════════════════════
   14. TOOLTIPS
   ════════════════════════════════════════════════════════════ */

.tooltip-term {
	color: var(--accent-85);
	border-bottom: 1px dashed var(--accent-60);
	cursor: help;
	position: relative;
	z-index: 50;
}

/* ── Liens internes automatiques (auto-links) ── */
.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: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	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: 300;
	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);
	}
}


/* ════════════════════════════════════════════════════════════
   15. FOOTER
   ════════════════════════════════════════════════════════════ */

.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', monospace;
	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', monospace;
	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', monospace;
	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) ── */
@media (max-width: 1024px) {
	.container {
		padding: 0 40px 120px;
	}

	.nav-button {
		width: 48px;
		height: 48px;
	}
	.nav-button svg { width: 20px; height: 20px; }

	.scroll-to-top { right: 0; }
	.back-to-index { left: 0; }

	.drug-title-main,
	.drug-title-name {
		font-size: clamp(18px, 2.5vw, 30px);
	}

	.drug-title-legal-badge {
		flex-wrap: wrap;
	}
	.drug-title-legal-law {
		border-left: 1px solid rgba(255, 59, 59, 0.18);
		border-top: none;
	}
	/* Permettre le wrap du texte de loi */
	.drug-title-legal-law-ref {
		white-space: normal;
		line-height: 1.5;
	}

	/* Footer : 2 colonnes sur tablette */
	.page-footer .footer-container {
		grid-template-columns: 1.5fr 1fr;
		gap: 36px;
	}
}

/* ── Intermédiaire (768px) ── */
@media (max-width: 768px) {
	.container {
		padding: 0 30px 100px;
	}

	/* Nav : réduire l'espacement */
	.header-container {
		padding: 0 20px;
		gap: 20px;
	}
	.nav-link {
		padding: 6px 10px;
		font-size: 8px;
	}

	/* Sidebar plus compacte */
	.nav-button {
		width: 42px;
		height: 42px;
	}
	.nav-button svg { width: 18px; height: 18px; }
	.btn-index { font-size: 5px; }

	/* Scroll/Back : taille réduite */
	.scroll-to-top,
	.back-to-index {
		width: 50px;
		height: 50px;
	}
	.scroll-to-top svg,
	.back-to-index svg {
		width: 15px;
		height: 15px;
	}

	/* Pharmacologie : adapt grille */
	.pharma-nt-grid {
		grid-template-columns: 1fr;
	}
	.pharma-extras-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Calculateurs : padding adapté */
	.calculator {
		padding: 18px;
	}

	/* Dosage cards : padding adapté */
	.dosage-card {
		padding: 18px 18px 14px;
	}

	/* Timeline : overflow pour petits écrans */
	.effect-timeline-container {
		padding: 16px 12px 12px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.effect-timeline-svg {
		min-width: 500px;
	}

	/* Tooltips : empêcher le débordement — left/right clampés par JS */
	.tooltip-content {
		max-width: 85vw;
	}
}

/* ── Mobile (640px et moins) ── */
@media (max-width: 640px) {
	:root {
		--section-gap: 56px;
		--subsection-gap: 32px;
	}

	.container {
		padding: 0 20px 80px;
	}

	.header-container {
		padding: 0 16px;
		gap: 12px;
	}
	.nav-label { display: none; }
	.nav-link { padding: 8px; }
	.site-logo {
		height: 24px;
	}

	/* Sidebar masquée sur mobile */
	.button-panel { display: none; }

	/* Scroll/Back : encore plus compact */
	.scroll-to-top,
	.back-to-index {
		width: 44px;
		height: 44px;
		bottom: 16px;
	}
	.scroll-to-top svg,
	.back-to-index svg {
		width: 14px;
		height: 14px;
	}

	/* Titre substance */
	.drug-title-component {
		flex-direction: column;
		gap: 12px;
		padding: 32px 0 24px;
	}
	.drug-title-vbar { display: none; }
	.drug-title-main,
	.drug-title-name {
		font-size: 20px;
		letter-spacing: 1.5px;
		line-height: 1.25;
	}
	.drug-title-body { font-size: 13px; }

	/* Badge légal en colonne */
	.drug-title-legal-badge {
		flex-direction: column;
		align-items: stretch;
	}
	.drug-title-legal-status {
		justify-content: center;
	}
	.drug-title-legal-sep {
		width: 100%;
		height: 1px;
	}
	.drug-title-legal-law {
		border-left: none;
		border-top: 1px solid rgba(255, 59, 59, 0.18);
	}
	.drug-title-legal-law-ref {
		white-space: normal;
		line-height: 1.5;
		font-size: 8px;
	}

	/* Summary bar : structure visuelle en wrap */
	.drug-summary-bar {
		flex-wrap: wrap;
		border: 1px solid var(--accent-30);
	}
	.summary-item {
		min-width: 0;
		flex: 1 1 calc(33.333% - 1px);
		padding: 12px 8px;
		border-bottom: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
	}
	.summary-item:nth-last-child(-n+3) {
		border-bottom: none;
	}
	.summary-sep {
		display: none;
	}
	.summary-label {
		font-size: 7px;
		letter-spacing: 0.22em;
	}
	.summary-value {
		font-size: 11px;
	}

	/* Effets tags : permettre le wrap des noms longs */
	.effect-tag .tag-name {
		white-space: normal;
		font-size: 12px;
	}
	.effect-tag {
		padding: 4px 8px;
	}
	.effect-tag.is-open {
		padding: 12px 14px 14px;
	}
	.effect-tag.is-open .tag-desc {
		font-size: 12px;
		line-height: 1.75;
	}

	/* Grilles en colonne */
	.dosage-grid,
	.calculator-container,
	.factor-grid {
		grid-template-columns: 1fr;
	}

	/* Dosage/duration tables — multi-voies responsive */
	.dosage-grid--wide .dosage-table,
	.dosage-grid--wide .duration-table {
		table-layout: auto;
	}
	.dosage-grid--wide .dosage-table td,
	.dosage-grid--wide .duration-table td {
		white-space: normal;
		font-size: 12px;
		padding: 8px 6px;
	}
	.dosage-grid--wide .dosage-table th,
	.dosage-grid--wide .duration-table th {
		font-size: 10px;
		letter-spacing: 0.12em;
		padding: 0 6px 7px;
	}
	.dosage-grid--wide .dosage-table td:first-child,
	.dosage-grid--wide .duration-table td:first-child {
		font-size: 10px;
		padding-left: 0;
	}
	.dosage-grid--wide .dosage-table th:first-child,
	.dosage-grid--wide .duration-table th:first-child {
		width: auto;
	}

	/* Timeline SVG : scroll horizontal */
	.effect-timeline-container {
		padding: 14px 10px 10px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.effect-timeline-svg {
		min-width: 480px;
	}

	/* Pharmacologie grilles : 1 colonne */
	.pharma-nt-grid,
	.pharma-extras-grid {
		grid-template-columns: 1fr;
	}
	.pharma-nt-card {
		padding: 18px 16px 14px;
	}
	.pharma-extra-card {
		padding: 14px 16px 12px;
	}

	/* Calculateurs : padding réduit */
	.calculator {
		padding: 16px;
	}
	.calc-content .lead {
		font-size: 11px;
	}

	/* Quiz : padding réduit */
	.question {
		padding: 16px 18px;
		font-size: 12px;
	}

	/* Mélanges : boutons plus petits */
	.substance-buttons button {
		font-size: 9px;
		padding: 4px 8px;
		letter-spacing: 0.1em;
	}

	/* Témoignage */
	.temoignage blockquote {
		padding: 16px 16px 14px 20px;
	}
	.temoignage blockquote p {
		font-size: 0.85rem;
	}

	/* Citation scientifique */
	.citation-scientifique blockquote {
		padding: 14px 16px 12px;
	}
	.citation-scientifique blockquote p {
		font-size: 0.85rem;
	}

	/* H2 sections */
	.section > h2 {
		font-size: clamp(16px, 4.5vw, 22px);
	}

	/* H3 subsections */
	.subsection > h3 {
		font-size: clamp(9px, 2.8vw, 12px);
	}

	/* Paragraphes : taille réduite */
	.subsection p, .section > p {
		font-size: 14.5px;
		line-height: 1.85;
	}

	/* Vidéos */
	.video-carousel-wrapper {
		gap: 4px;
	}
	.video-carousel-btn {
		width: 28px;
		height: 28px;
	}
	.video-carousel-btn svg {
		width: 10px;
		height: 10px;
	}

	/* Toggle cards */
	.toggle-section-btn {
		font-size: 12px;
		padding: 10px 12px;
		letter-spacing: 0.1em;
	}

	/* Biblio */
	.biblio-item {
		font-size: 11px;
		padding: 8px 10px;
	}
	.doi {
		font-size: 10px;
		margin-left: 0;
		margin-top: 4px;
		display: block;
	}

	/* Footer en colonne */
	.page-footer { padding: 48px 0 24px; }
	.page-footer .footer-container {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 0 20px;
	}
	.page-footer .footer-bottom-bar {
		flex-direction: column;
		gap: 12px;
		text-align: center;
		padding: 20px 20px 0;
	}
	.page-footer .footer-legal-links {
		flex-direction: column;
		gap: 10px;
	}
	.page-footer .footer-rdr-notice {
		padding: 0 20px;
	}
}

/* ── Petit mobile (480px et moins) ── */
@media (max-width: 480px) {

	/* Titre encore plus compact */
	.drug-title-main,
	.drug-title-name {
		font-size: 18px;
		letter-spacing: 1px;
	}
	.drug-title-supertitle-num,
	.drug-title-supertitle-label {
		font-size: 8px;
	}

	/* Summary : 2 colonnes au lieu de 3 */
	.summary-item {
		flex: 1 1 calc(50% - 1px);
	}
	.summary-item:nth-last-child(-n+3) {
		border-bottom: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
	}
	.summary-item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	/* Timeline encore plus compacte */
	.effect-timeline-svg {
		min-width: 420px;
	}

	/* Tooltips : pleine largeur */
	.tooltip-content {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
		width: 100%;
		max-width: 100%;
		z-index: 500;
		border: none;
		border-top: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
		padding: 16px 20px;
	}

	/* Breadcrumb plus petit */
	.breadcrumb {
		font-size: 9px;
		letter-spacing: 0.08em;
	}
	.breadcrumb .sep {
		margin: 0 6px;
	}

	/* Dosage note */
	.dosage-note {
		font-size: 9px !important;
	}

	/* Tables dosage/durée multi-voies : ultra-compact */
	.dosage-grid--wide .dosage-table td,
	.dosage-grid--wide .duration-table td {
		font-size: 11px;
		padding: 7px 4px;
	}
	.dosage-grid--wide .dosage-table th,
	.dosage-grid--wide .duration-table th {
		font-size: 9px;
		letter-spacing: 0.08em;
		padding: 0 4px 6px;
	}
	.dosage-grid--wide .dosage-table td:first-child,
	.dosage-grid--wide .duration-table td:first-child {
		font-size: 9px;
	}

	/* Result box */
	.result-box {
		padding: 10px 12px;
		font-size: 11px;
	}
}

/* ── Très petit mobile (380px et moins) ── */
@media (max-width: 380px) {
	.container { padding: 0 12px 60px; }
	.drug-title-main, .drug-title-name { font-size: 16px; letter-spacing: 0.5px; }
	.drug-title-body { font-size: 12px; }
	.section > h2 { font-size: 15px; }
	.subsection > h3 { font-size: 9px; }
	.subsection p, .section > p {
		font-size: 13.5px;
		line-height: 1.8;
	}
	
	/* Summary : 1 colonne */
	.summary-item {
		flex: 1 1 100%;
	}

	/* Effet tags */
	.effect-tag .tag-name {
		font-size: 11px;
	}

	/* Toggle */
	.toggle-section-btn {
		font-size: 10px;
		padding: 8px 10px;
	}

	/* Vidéo featured */
	.video-featured::before {
		width: 8px; height: 8px;
	}
}


/* ════════════════════════════════════════════════════════════
   17. UTILITAIRES
   ════════════════════════════════════════════════════════════ */

/* Classe pour cacher visuellement mais garder accessible */
.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Animation d'entrée générique */
@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Sélection */
::selection {
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
	color: white;
}

/* ════════════════════════════════════════════════════════════
   VIDÉOS
   ════════════════════════════════════════════════════════════ */


/* Vidéo principale intégrée */
.video-featured {
	position: relative;
	border: 1px solid var(--border);
	background: #000;
	aspect-ratio: 16 / 9;
	width: 100%;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.video-featured:hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 24px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
}
.video-featured::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 12px; height: 12px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
	z-index: 1;
	transition: width 0.2s, height 0.2s;
}
.video-featured:hover::before {
	width: 18px; height: 18px;
}
.video-featured::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	z-index: 1;
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.video-featured:hover::after {
	width: 14px; height: 14px;
	border-color: var(--accent-30);
}
.video-featured iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
	position: relative;
	z-index: 0;
}
.video-featured-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: pointer;
}
.video-featured.is-active .video-featured-overlay {
	display: none;
}

/* Carousel de vidéos */
.video-carousel-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin: 24px 0 10px;
}

.video-carousel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.video-carousel-btn {
	flex-shrink: 0;
	width: 32px; height: 32px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--accent-60);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	position: relative;
	outline: none;
}
.video-carousel-btn:hover {
	border-color: var(--accent-60);
	color: var(--accent);
	background: var(--accent-08);
}
.video-carousel-btn svg {
	width: 12px; height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.video-carousel-track {
	flex: 1;
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25) transparent;
}
.video-carousel-track::-webkit-scrollbar {
	height: 3px;
}
.video-carousel-track::-webkit-scrollbar-track {
	background: transparent;
}
.video-carousel-track::-webkit-scrollbar-thumb {
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
	border-radius: 2px;
}

.video-card {
	flex: 0 0 calc(50% - 6px);
	scroll-snap-align: start;
	position: relative;
	border: 1px solid var(--border);
	background: var(--bg-card);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.video-card:hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.07);
	transform: translateY(-2px);
}
.video-card::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
	z-index: 1;
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.video-card:hover::before {
	width: 16px; height: 16px;
	border-color: var(--accent-60);
}
.video-card::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 6px; height: 6px;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	z-index: 1;
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.video-card:hover::after {
	width: 12px; height: 12px;
	border-color: var(--accent-30);
}
.video-card-embed {
	aspect-ratio: 16 / 9;
	width: 100%;
	position: relative;
}
.video-card-embed iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}
.video-card-embed::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: pointer;
}
.video-card.is-active .video-card-embed::after {
	display: none;
}

@media (max-width: 600px) {
	.video-card { flex: 0 0 100%; }
}

/* Scrollbar custom (Webkit) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
}

/* Firefox scrollbar */
html {
	scrollbar-width: thin;
	scrollbar-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2) var(--bg);
}

/* ════════════════════════════════════════════════════════════
   PANNEAU CHERCHEUR·EUSE — Side panel au clic/tap
   Ajouter à la fin de style-drogues-v2.css
   ════════════════════════════════════════════════════════════ */
 
/* ── Trigger inline (nom cliquable dans le texte) ── */
.researcher-trigger {
	color: var(--accent-60);
	border-bottom: 1px dashed var(--accent-30);
	text-decoration: none;
	cursor: pointer;
	position: relative;
	transition: color 0.2s, border-color 0.2s;
}
.researcher-trigger:hover {
	color: var(--accent);
	border-color: var(--accent-60);
}
.researcher-trigger::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 50%;
	width: 4px;
	height: 4px;
	border: 1px solid var(--accent-30);
	transform: translateY(-50%) rotate(45deg);
	opacity: 0;
	transition: opacity 0.2s;
}
.researcher-trigger:hover::before {
	opacity: 1;
}
 
/* ── Overlay assombrissant ── */
.researcher-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 899;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.researcher-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}
 
/* ── Panneau latéral ── */
.researcher-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 340px;
	max-width: 90vw;
	background: var(--bg-card);
	border-left: 1px solid var(--accent-30);
	z-index: 900;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
 
	scrollbar-width: thin;
	scrollbar-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2) transparent;
}
.researcher-panel.is-open {
	transform: translateX(0);
}
 
/* Coin décoratif haut-gauche */
.researcher-panel::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	width: 14px;
	height: 14px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
	z-index: 2;
	pointer-events: none;
}
 
/* ── Bouton fermer ── */
.rp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 1px solid var(--border-hi);
	color: var(--text-lo);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
	font-family: 'Share Tech Mono', monospace;
	font-size: 16px;
	line-height: 1;
}
.rp-close:hover {
	color: var(--accent-60);
	border-color: var(--accent-30);
	background: var(--accent-08);
}
 
/* ── En-tête label ── */
.rp-header-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent-60);
	padding: 18px 22px 12px;
	border-bottom: 1px solid var(--border);
}
 
/* ── Zone avatar ── */
.rp-avatar-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 24px 22px 0;
}
 
.rp-avatar {
	width: 88px;
	height: 88px;
	border: 1px solid var(--accent-30);
	object-fit: cover;
	position: relative;
	display: block;
}
/* Coins déco sur l'avatar — via un wrapper */
.rp-avatar-wrap {
	position: relative;
	width: 88px;
	height: 88px;
}
.rp-avatar-wrap::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	width: 8px;
	height: 8px;
	border-top: 1px solid var(--accent);
	border-left: 1px solid var(--accent);
	z-index: 1;
}
.rp-avatar-wrap::after {
	content: '';
	position: absolute;
	bottom: -1px;
	right: -1px;
	width: 5px;
	height: 5px;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	z-index: 1;
}
 
/* Fallback initiales si pas d'image */
.rp-avatar-fallback {
	width: 88px;
	height: 88px;
	border: 1px solid var(--accent-30);
	background: var(--accent-08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Orbitron', monospace;
	font-size: 22px;
	font-weight: 700;
	color: var(--accent-60);
}
 
.rp-name {
	font-family: 'Orbitron', monospace;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	color: var(--text-hi);
	text-align: center;
}
 
.rp-role {
	font-family: 'Share Tech Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--text-lo);
	text-align: center;
	line-height: 1.55;
}
.rp-role em {
	color: var(--accent-60);
	font-style: normal;
}
 
/* ── Séparateur ── */
.rp-divider {
	width: 100%;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--accent-30), transparent);
	margin: 20px 0;
}
 
/* ── Champs d'info ── */
.rp-fields {
	padding: 0 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.rp-field-label {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent-30);
	margin-bottom: 5px;
}
.rp-field-value {
	font-family: 'Exo 2', sans-serif;
	font-size: 13px;
	color: var(--text-mid);
	line-height: 1.65;
}
 
/* ── Section publications ── */
.rp-publications {
	padding: 0 22px 28px;
}
.rp-pub-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent-60);
	margin-bottom: 14px;
}
.rp-pub-heading::before {
	content: '';
	display: block;
	width: 14px;
	height: 1px;
	background: var(--accent-30);
	flex-shrink: 0;
}
 
.rp-pub-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
 
.rp-pub-item {
	background: var(--bg-card2);
	border: 1px solid var(--border);
	padding: 12px 14px;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.rp-pub-item:hover {
	border-color: var(--accent-30);
	box-shadow: 0 2px 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}
 
/* Coin déco sur chaque pub */
.rp-pub-item::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	width: 6px;
	height: 6px;
	border-top: 1px solid var(--accent-30);
	border-left: 1px solid var(--accent-30);
	transition: width 0.2s, height 0.2s;
}
.rp-pub-item:hover::before {
	width: 10px;
	height: 10px;
}
 
.rp-pub-year {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.12em;
	color: var(--accent-30);
	margin-bottom: 4px;
	display: block;
}
.rp-pub-title {
	font-family: 'Exo 2', sans-serif;
	font-size: 12.5px;
	font-style: italic;
	line-height: 1.65;
	color: var(--text-mid);
}
.rp-pub-journal {
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.04em;
	color: var(--text-lo);
	margin-top: 4px;
	display: block;
}
 
.rp-pub-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.08em;
	color: var(--accent-60);
	margin-top: 6px;
	border-bottom: 1px solid var(--accent-30);
	transition: color 0.2s, border-color 0.2s;
}
.rp-pub-link:hover {
	color: var(--accent);
	border-color: var(--accent-60);
}
 
/* ── Lien externe (site perso) ── */
.rp-external-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 22px 24px;
	padding: 8px 14px;
	border: 1px solid var(--accent-30);
	background: var(--accent-08);
	font-family: 'Share Tech Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-60);
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
	position: relative;
}
.rp-external-link:hover {
	color: var(--accent);
	border-color: var(--accent-60);
	background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
}
.rp-external-link::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	width: 6px;
	height: 6px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
}
.rp-external-link svg {
	width: 10px;
	height: 10px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}
 
/* ── Responsive ── */
@media (max-width: 600px) {
	.researcher-panel {
		width: 100vw;
		max-width: 100vw;
	}
}

/* ════════════════════════════════════════════════════════════
   SPÉCIFICITÉS DOSSIER — composants et overrides
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   0. COULEURS PAR CATÉGORIE DOSSIER
   Surcharge --accent-r/g/b → alimente --accent, --accent-85…

   Palette pensée pour :
   - Contraste suffisant sur fond #04040a
   - Distinction chromatique entre catégories proches
   - Évocation thématique sans tomber dans le cliché
   ════════════════════════════════════════════════════════════ */

body.category-dossier-rdr            { --accent-r:110; --accent-g:240; --accent-b:169; }  /* Vert vif — protection, soin actif       */
body.category-dossier-sante          { --accent-r:215; --accent-g: 75; --accent-b: 75; }  /* Rouge doux — médical, urgence            */
body.category-dossier-philosophie    { --accent-r:  0; --accent-g:210; --accent-b:210; }  /* Cyan — pensée, abstraction               */
body.category-dossier-societe        { --accent-r:255; --accent-g:120; --accent-b:165; }  /* Rose — humain, communauté                */
body.category-dossier-politique      { --accent-r:255; --accent-g:160; --accent-b: 50; }  /* Orange — pouvoir, débat                  */
body.category-dossier-pharmacologie  { --accent-r: 75; --accent-g:175; --accent-b:255; }  /* Bleu ciel — molécules, science           */
body.category-dossier-histoire       { --accent-r:210; --accent-g:170; --accent-b:110; }  /* Ambre — archives, antiquité              */
body.category-dossier-culture        { --accent-r:195; --accent-g:130; --accent-b:255; }  /* Violet — arts, création                  */
body.category-dossier-monde          { --accent-r: 80; --accent-g:200; --accent-b:190; }  /* Sarcelle — géographie, global            */
body.category-dossier-economie       { --accent-r:235; --accent-g:205; --accent-b: 75; }  /* Or — marchés, flux                       */
body.category-dossier-temoignages    { --accent-r:255; --accent-g:160; --accent-b:130; }  /* Pêche — voix, chaleur humaine            */
body.category-dossier-spiritualite   { --accent-r:165; --accent-g:130; --accent-b:255; }  /* Indigo — transcendance, introspection    */
body.category-dossier-esprit-critique { --accent-r:200; --accent-g:168; --accent-b:255; }  /* Lavande — scepticisme, analyse           */

/* ── Bridge vers style-common.css ──
   Le footer et certains composants communs utilisent --color-primary.
   On le mappe dynamiquement vers l'accent V2 de la catégorie. */
body[class*="category-dossier-"] {
    --color-primary: var(--accent);
    --color-primary-glow: var(--accent-60);
    --color-primary-light: var(--accent-30);
    --color-primary-subtle: var(--accent-08);
}


/* ════════════════════════════════════════════════════════════
   1. LAYOUT DOSSIER
   Colonne de lecture centrée, confortable pour le long-form
   ════════════════════════════════════════════════════════════ */

.dossier-container {
	max-width: 1200px;
	margin: 0 auto;
	/* padding-left agrandi pour laisser la place au rail latéral */
	padding: 0 80px 160px 280px;
	position: relative;
	z-index: 1;
}

/* Décalage scroll pour les ancres sous le header + breadcrumb sticky */
.dossier-content [id],
.dossier-content h2,
.article-content h2,
.dossier-section[id],
.section[id] {
	scroll-margin-top: calc(var(--header-h) + var(--crumb-h) + 24px);
}


/* ════════════════════════════════════════════════════════════
   1b. RAIL LATÉRAL GAUCHE — navigation dossier
   ────────────────────────────────────────────────────────────
   Persistant, lisible sans hover, démarre sous header+breadcrumb.
   Généré par dossier-nav.js — classes JS conservées (.dsp-link,
   .dsp-num, .dsp-text, .is-active) : aucune modif JS requise.
   Sous 1024px : bascule sur l'overlay hamburger (cf. responsive).
   ════════════════════════════════════════════════════════════ */

/* ── Conteneur rail ── */
.dossier-side-panel {
    position: fixed;
    left: 32px;
    right: auto;
    top: calc(var(--header-h) + var(--crumb-h) + 32px);
    bottom: auto;
    width: 220px;
    max-height: min(70vh, calc(100vh - var(--header-h) - var(--crumb-h) - 120px));
    transform: none;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    scroll-behavior: smooth;
    z-index: 80;
    pointer-events: auto;

    scrollbar-width: thin;
    scrollbar-color: var(--accent-30) transparent;

    /* Fondu haut/bas pour indiquer le scroll */
    --fade-size: 32px;
    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent 0,
            black var(--fade-size),
            black calc(100% - var(--fade-size)),
            transparent 100%);
    mask-image:
        linear-gradient(to bottom,
            transparent 0,
            black var(--fade-size),
            black calc(100% - var(--fade-size)),
            transparent 100%);

    /* Transition douce quand le JS réduit la hauteur près du footer */
    transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dossier-side-panel::-webkit-scrollbar       { width: 4px; }
.dossier-side-panel::-webkit-scrollbar-thumb { background: var(--accent-30); }

/* ── Label "SOMMAIRE" ── */
.dsp-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 28px 0 18px 14px;   /* top 28px compense le masque fondu */
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-60);
    text-align: left;
}
.dsp-label::before {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--accent-30);
    flex-shrink: 0;
}

/* ── Track décoratif désactivé : c'est la border-left de .dsp-list ── */
.dsp-track { display: none; }

/* ── Liste ── */
.dsp-list {
    list-style: none;
    padding: 0 0 28px;          /* bottom compense le masque fondu */
    margin: 0;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.dsp-item {
    display: block;
    justify-content: flex-start;
}

/* ── Lien ── */
.dsp-link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 10px 14px;

    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    margin-left: -1px;

    color: var(--text-lo);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

/* Coins décoratifs hérités neutralisés */
.dsp-link::before,
.dsp-link::after { content: none; display: none; }

/* Numéro */
.dsp-num {
    flex-shrink: 0;
    min-width: 16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.20);
    transition: color 0.2s;
}

/* Texte : toujours visible (plus de max-width:0) */
.dsp-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    opacity: 1;
    transition: color 0.2s;
}

/* Active bar JS désactivée : on utilise la border-left du lien */
.dsp-active-bar { display: none; }

/* ══ ÉTATS ══ */
.dsp-link:hover {
    color: var(--accent-60);
    background: rgba(255, 255, 255, 0.015);
    border-left-color: var(--accent-30);
}
.dsp-link:hover .dsp-num { color: var(--accent-30); }

.dsp-link.is-active {
    color: var(--accent);
    background: var(--accent-08);
    border-left-color: var(--accent);
}
.dsp-link.is-active .dsp-num  { color: var(--accent-60); }
.dsp-link.is-active .dsp-text { color: var(--accent); }

/* Dot pulse à droite du lien actif */
.dsp-link.is-active::after {
    content: '';
    display: block;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-60);
}


/* ── Mobile toggle hamburger ── */
.dossier-panel-toggle {
    display: none; /* masqué desktop, affiché mobile */
    position: fixed;
    top: 72px;
    right: 12px;
    z-index: 250;
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    align-items: center;
    justify-content: center;
    color: var(--text-lo);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    --c: rgba(255, 255, 255, 0.12);
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}
.dossier-panel-toggle::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 5px; height: 5px;
    border-top: 1px solid var(--c);
    border-left: 1px solid var(--c);
    transition: border-color 0.2s;
}
.dossier-panel-toggle:hover,
.dossier-panel-toggle.is-active {
    color: var(--accent-60);
    border-color: var(--accent-30);
    background: var(--accent-08);
    --c: var(--accent-60);
}

/* Hamburger lines */
.dossier-panel-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}
.dossier-panel-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
}
/* X state */
.dossier-panel-toggle.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.dossier-panel-toggle.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.dossier-panel-toggle.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}


/* ════════════════════════════════════════════════════════════
   2. EN-TÊTE DOSSIER
   Titre, sous-titre, métadonnées auteur, intro
   ════════════════════════════════════════════════════════════ */

.dossier-header {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

/* ── Supertitle catégorie ── */
.dossier-category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-60);
    margin-bottom: 16px;
}
.dossier-category-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: var(--accent-30);
    flex-shrink: 0;
}

/* ── Titre principal ── */
.dossier-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    margin: 0 0 20px;
}
.dossier-title em {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    font-style: normal;
}

/* ── Sous-titre ── */
.dossier-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--accent-60);
    letter-spacing: 0.02em;
    margin: 0 0 24px;
}

/* ── Métadonnées auteur ── */
.dossier-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.dossier-meta-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-30);
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
}
/* Coin déco sur l'avatar */
.dossier-meta-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    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-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 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);
}

/* ── Texte d'introduction ── */
.dossier-intro {
    font-family: 'Exo 2', sans-serif;
    font-size: 15.5px;
    line-height: 2;
    color: var(--text-mid);
    max-width: 740px;
    margin: 0 0 0;
    padding: 32px 0 0;
    border-top: 1px solid var(--border);
    position: relative;
}
.dossier-intro::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 40px; height: 1px;
    background: var(--accent-30);
}


/* ════════════════════════════════════════════════════════════
   3. TYPOGRAPHIE ARTICLE-CONTENT
   Hiérarchie H2/H3/H4, paragraphes, vertical rhythm
   ════════════════════════════════════════════════════════════ */
/* ── Table des matières (Sommaire) ── */
.dossier-toc {
    margin: 0 0 48px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
}
.dossier-toc::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 1px solid var(--accent-30);
    border-left: 1px solid var(--accent-30);
}
.dossier-toc-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-60);
    margin-bottom: 14px;
}
.dossier-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dossier-toc-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: var(--text-mid);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}
.dossier-toc-list a::before {
    content: '';
    width: 10px; height: 1px;
    background: var(--accent-30);
    flex-shrink: 0;
    transition: width 0.2s, background 0.2s;
}
.dossier-toc-list a:hover {
    color: var(--accent);
    border-color: var(--accent-30);
}
.dossier-toc-list a:hover::before {
    width: 18px;
    background: var(--accent-60);
}
.dossier-toc-list li:last-child a {
    border-bottom: none;
}


/* Les classes V1 mappent vers le layout V2 */
.article-wrapper  { /* noop — layout plat, plus de glass panel */ }
.article-header   { /* alias dossier-header via héritage structurel */ }
.article-content  {}

/* V1 : .article-title → V2 heading */
.article-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    margin: 0;
}

/* V1 : .subtitle → V2 dossier-subtitle */
.article-content .subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    color: var(--accent-60);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    text-align: left;
}

/* V1 : .intro-text → V2 dossier-intro */
.article-content .intro-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 15.5px;
    line-height: 2;
    color: var(--text-mid);
    max-width: 740px;
    margin: 0 auto 40px 0;
    text-align: left;
    font-style: normal;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

/* V1 : paragraphes article-content */
.article-content p {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    line-height: 2;
    color: var(--text-hi);
    margin-bottom: 16px;
}
.article-content p strong { color: var(--text-hi); font-weight: 600; }
.article-content p a:not(.doi-download) {
    color: var(--accent-85);
    border-bottom: 1px solid var(--accent-30);
    transition: color 0.2s, border-color 0.2s;
}
.article-content p a:not(.doi-download):hover {
    color: var(--accent);
    border-color: var(--accent-60);
}

.citation-scientifique {
	margin: 16px 0 0;
}

.citation-scientifique blockquote {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 18px 22px 16px;
	margin: 0;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.citation-scientifique blockquote:hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}

/* Coin haut-gauche accent */
.citation-scientifique blockquote::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 12px; height: 12px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
	transition: width 0.2s, height 0.2s;
}

.citation-scientifique blockquote:hover::before {
	width: 18px; height: 18px;
}

/* Coin bas-droite discret */
.citation-scientifique blockquote::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.citation-scientifique blockquote:hover::after {
	width: 14px; height: 14px;
	border-color: var(--accent-30);
}

.citation-scientifique blockquote p {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.8);
	font-style: italic;
}

.citation-scientifique blockquote footer {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.citation-scientifique blockquote footer cite,
.citation-scientifique blockquote footer small,
.citation-scientifique blockquote footer .citation-ref,
.citation-scientifique blockquote > small,
.citation-scientifique blockquote > .citation-ref {
	font-style: normal;
	font-size: 11px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.5);
	display: block;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.02em;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

/* annuler le border-top sur les éléments déjà dans un footer (le footer l'a déjà) */
.citation-scientifique blockquote footer cite,
.citation-scientifique blockquote footer small,
.citation-scientifique blockquote footer .citation-ref {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.citation-scientifique blockquote footer cite em,
.citation-scientifique blockquote footer small em,
.citation-scientifique blockquote footer .citation-ref em,
.citation-scientifique blockquote > small em,
.citation-scientifique blockquote > .citation-ref em {
	color: rgba(255, 255, 255, 0.45);
	font-style: italic;
}

/* Bare blockquotes dans article-content (pages sans figure.citation-scientifique :
   orientalisme, mythe-caverne, drogues-risques) — même style que .citation-scientifique */
.article-content blockquote:not(.encart-blockquote) {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 18px 22px 16px;
	margin: 24px 0;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
	font-size: 0.93rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.8);
	font-style: italic;
}

.article-content blockquote:not(.encart-blockquote):hover {
	border-color: var(--accent-30);
	box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}

.article-content blockquote:not(.encart-blockquote)::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 12px; height: 12px;
	border-top: 1px solid var(--accent-60);
	border-left: 1px solid var(--accent-60);
	transition: width 0.2s, height 0.2s;
}

.article-content blockquote:not(.encart-blockquote):hover::before {
	width: 18px; height: 18px;
}

.article-content blockquote:not(.encart-blockquote)::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--border-hi);
	border-right: 1px solid var(--border-hi);
	transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.article-content blockquote:not(.encart-blockquote):hover::after {
	width: 14px; height: 14px;
	border-color: var(--accent-30);
}

/* texte de référence dans les bare blockquotes */
.article-content blockquote:not(.encart-blockquote) small,
.article-content blockquote:not(.encart-blockquote) .citation-ref,
.article-content blockquote:not(.encart-blockquote) > cite {
	font-style: normal;
	font-size: 11px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.5);
	display: block;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.02em;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.article-content blockquote:not(.encart-blockquote) small em,
.article-content blockquote:not(.encart-blockquote) .citation-ref em {
	color: rgba(255, 255, 255, 0.45);
	font-style: italic;
}

/* V1 : listes article-content */
.article-content ul,
.article-content ol { padding-left: 1.4rem; margin: 16px 0 24px; }
.article-content li {
    font-family: 'Exo 2', sans-serif;
    font-size: 15.5px;
    line-height: 1.95;
    color: var(--text-hi);
    margin-bottom: 8px;
}
.article-content .biblio-item {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
}
.article-content ul li::marker { color: var(--accent-60); }
.article-content ol li::marker {
    color: var(--accent-60);
    font-family: 'Share Tech Mono', monospace;
}

/* V1 : keylist dans article-content */
.article-content .keylist {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.article-content .keylist li {
    position: relative;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-30);
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 0;
}
.article-content .keylist li::before {
    content: '';
    position: absolute;
    top: -1px; left: -2px;
    width: 6px; height: 6px;
    border-top: 1px solid var(--accent-30);
    border-left: 1px solid var(--accent-30);
}

/* V1 : diag-criteria dans article-content */
.article-content .diag-criteria {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
    counter-reset: diag;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.article-content .diag-criteria li {
    counter-increment: diag;
    position: relative;
    padding: 16px 20px 16px 56px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 0;
}
.article-content .diag-criteria li::before {
    content: counter(diag, decimal-leading-zero);
    position: absolute;
    left: 16px; top: 16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--accent-60);
}

/* ══ PATCH — article-table v2 ═══════════════════════════════
   À insérer dans style-dossier-v2.css, section 9. TABLES,
   en remplacement des règles .article-table, .data-table,
   .table-caption et .table-description existantes.
   ═══════════════════════════════════════════════════════════ */
 
 
/* ── Wrapper figure ── */
.article-table {
    margin: 42px 0;
    padding-top: 20px;
	padding-bottom: 20px;
}
 
 
/* ── En-tête : numéro de figure + titre ── */
.article-table__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    padding-top: 4px;
    border-top: 2px solid var(--accent-85);
}

.article-table__fignum {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-85);
    white-space: nowrap;
    min-width: 60px;
    flex-shrink: 0;
    padding-top: 2px;
}

.article-table__title {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-hi);
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
 
 
/* ── Scroll wrapper (responsive) ── */
.article-table__scroll {
    overflow-x: auto;
}

/* Variante : tableau qui s'étire pour occuper toute la largeur sans scrollbar */
.article-table--fit .article-table__scroll {
    overflow-x: visible;
}
.article-table--fit .data-table {
    table-layout: fixed;
    width: 100%;
    font-size: 11px;
}
.article-table--fit .data-table th {
    font-size: 9px;
    white-space: normal;
}
.article-table--fit .data-table td {
    font-size: 11px;
}
 
 
/* ── Tableau de données ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
}
 
.data-table thead tr {
    border-top: 2px solid var(--accent-85);
}
 
.data-table th {
    font-family: 'Orbitron', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-85);
    padding: 10px 14px;
    text-align: left;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
    border-bottom: 1px solid var(--accent-30);
}
 
.data-table td {
    padding: 9px 14px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
 
.data-table td:first-child {
    color: var(--text-hi);
}
 
.data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}
 
.data-table tbody tr:hover td {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
    color: var(--text-hi);
}
 
/* Cellule fusionnée (colspan) — données insuffisantes, note transversale */
.data-table__merged {
    text-align: center;
    color: var(--text-lo);
    font-size: 12px;
    font-style: italic;
}
 
 
/* ── Footer : légende + source ── */
.article-table__footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Surcharge spécificité — .article-content p (0,2,0) écraserait .article-table__desc (0,1,0) */
.article-table .article-table__desc {
    font-family: 'Exo 2', sans-serif;
    font-size: 10px;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 0;
}

.article-table .article-table__source {
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-lo);
    font-style: italic;
    margin-bottom: 0;
}



/* DOI link styling inherited from style-drogues-v2.css */

/* Tooltips in article-content: handled by base V2 tooltip component */

/* V1 : factor-card dans article-content */
.article-content .factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
    margin: 20px 0;
}
.article-content .factor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 18px 16px;
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.article-content .factor-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 1px solid var(--accent-30);
    border-left: 1px solid var(--accent-30);
    transition: width 0.2s, height 0.2s;
}
.article-content .factor-card:hover {
    border-color: var(--accent-30);
    box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
    transform: translateY(-1px);
}
.article-content .factor-card:hover::before { width: 14px; height: 14px; }
.article-content .factor-card[role="button"] { cursor: pointer; }
.article-content .factor-card[aria-expanded="true"] {
    border-color: var(--accent-60);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
}
.article-content .factor-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.article-content .factor-card-header svg { color: var(--accent); flex-shrink: 0; }
.article-content .factor-card-header h4 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-hi);
    margin: 0;
}
.article-content .factor-card-header h4::before { display: none; }
.article-content .factor-list { list-style: none; padding: 0; margin: 0; }
.article-content .factor-list li {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-lo);
    padding: 3px 0;
    line-height: 1.5;
    margin-bottom: 0;
}
.article-content .factor-list li::before { content: '›'; margin-right: 6px; color: var(--accent-30); }

/* V1 : cycle diagram */
.article-content .cycle-diagram {
    margin: 28px 0 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    min-height: 200px;
}
.article-content .cycle-diagram::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 1px solid var(--accent-30);
    border-left: 1px solid var(--accent-30);
}
.article-content .cycle-caption {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-lo);
    text-align: center;
    padding: 8px 0;
    min-height: 1.6em;
}

/* V1 : cycle SVG internals */
.cycle-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    color: var(--accent-60);
}

.cycle-loop {
    fill: none;
    stroke: var(--accent-30);
    stroke-width: 1.5;
    stroke-dasharray: 8 6;
    transform-box: fill-box;
    transform-origin: center;
}

.cycle-arrow {
    fill: none;
    stroke: var(--accent-60);
    stroke-width: 1.5;
    stroke-dasharray: 6 5;
    marker-end: url(#cyArrow);
}

.cycle-node-circle {
    fill: var(--accent-08);
    stroke: var(--accent-60);
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.2s, stroke 0.2s;
}
.cycle-node-circle:hover,
g:focus .cycle-node-circle,
g[aria-expanded="true"] .cycle-node-circle {
    fill: var(--accent-30);
    stroke: var(--accent);
}

.cycle-label {
    fill: var(--text-mid);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    pointer-events: none;
    user-select: none;
}

.cycle-arrowhead,
.node-arrowhead {
    fill: var(--accent-60);
    pointer-events: none;
}

.cycle-tooltip {
    position: absolute;
    background: var(--bg-card2, #0a0a14);
    border: 1px solid var(--accent-30);
    color: var(--text-mid);
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    padding: 10px 14px;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s, transform 0.18s;
    z-index: 10;
    line-height: 1.5;
}
.cycle-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from { transform: rotate(0deg);   transform-box: fill-box; transform-origin: center; }
    to   { transform: rotate(360deg); transform-box: fill-box; transform-origin: center; }
}

/* (Voir PATCH V1→V2 en fin de fichier pour .article-meta, .author-*, .article-content > h2) */

/* V1 → V2 diag-severity */
.article-content .diag-severity { margin: 24px 0 32px; }

/* V1 : sub-section factor detail (toggle) */
.article-content .factor-detail {
    margin-top: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent-30);
    border-left: 2px solid var(--accent-60);
    animation: factorSlideIn 0.3s ease-out;
}
.article-content .factor-detail[hidden] { display: none; }

@keyframes factorSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════════════
   16. RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* ── Tablette large : rail resserré ── */
@media (max-width: 1280px) {
    .dossier-side-panel {
        left: 20px;
        width: 180px;
    }
    .dossier-container {
        padding-left: 230px;
        padding-right: 60px;
    }
}

/* ── Tablette : rail caché, container recentré, hamburger overlay actif ── */
@media (max-width: 1024px) {
    .dossier-side-panel { display: none; }
    /* L'overlay mobile (.is-open) doit pouvoir réafficher le panel */
    .dossier-side-panel.dossier-side-panel.is-open { display: flex; }

    .dossier-panel-toggle { display: flex; }

    .dossier-container {
        padding: 0 60px 140px;
    }
    .breadcrumb {
        margin: 0 -60px;
        padding: 0 60px;
    }
}

@media (max-width: 900px) {
    .dossier-container {
        padding: 0 32px 120px;
    }
    .breadcrumb {
        margin: 0 -32px;
        padding: 0 32px;
    }
}

@media (max-width: 640px) {
    .dossier-container {
        padding: 0 18px 100px;
    }
    .breadcrumb {
        margin: 0 -18px;
        padding: 0 18px;
        font-size: 10px;
        letter-spacing: 0.10em;
    }
    /* Sur très petit écran, masquer le 1er crumb pour gagner de la place */
    .breadcrumb a:first-child,
    .breadcrumb .sep:first-of-type {
        display: none;
    }

    .dossier-header {
        padding: 36px 0 28px;
    }

    /* ── Side panel → overlay mobile ── */
    .dossier-side-panel {
        position: fixed;
        right: 0;
        top: 56px;       /* sous le header */
        bottom: 0;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
        background: rgba(4, 4, 10, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-left: 1px solid var(--accent-30);
        max-height: none;
        width: 260px;
        max-width: 80vw;
        padding: 20px 0;
        align-items: stretch;
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Pas de masque fondu en overlay mobile */
        -webkit-mask-image: none;
        mask-image: none;
    }
    .dossier-side-panel.is-open {
        transform: translateX(0);
    }

    /* Textes toujours visibles en mobile */
    .dossier-side-panel .dsp-text {
        max-width: 180px;
        opacity: 1;
    }
    .dossier-side-panel .dsp-link {
        border-right: none;
        max-width: none;
    }
    .dossier-side-panel .dsp-track {
        display: none;
    }
    .dossier-side-panel .dsp-label {
        padding: 0 16px 12px;
        text-align: left;
    }

    /* Hamburger visible */
    .dossier-panel-toggle {
        display: flex;
    }

    .article-content .keylist li,
    .article-content .keylist li {
        padding: 14px 16px;
    }

    .article-content .diag-criteria li,
    .article-content .diag-criteria li {
        padding: 12px 14px 12px 44px;
    }
    .article-content .diag-criteria li::before,
    .article-content .diag-criteria li::before {
        left: 12px;
    }

    .article-content .factor-grid,
    .article-content .factor-grid {
        grid-template-columns: 1fr;
    }

    .article-content table,
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content blockquote,
    .article-content blockquote {
        padding: 18px 16px 18px 16px;
    }

    .soutien-button {
        bottom: 12px; left: 12px;
        padding: 6px 10px;
        font-size: 9px;
    }
    .contact-button { bottom: 48px; left: 12px; }
    .mentions-button { bottom: 84px; left: 12px; }

    /* V1 wrapper compat */
    .article-wrapper { padding: 24px 16px; }
    .article-header { padding-bottom: 20px; margin-bottom: 32px; }
}

@media (max-width: 400px) {
    .dossier-title,
    .article-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .article-content p,
    .article-content p {
        font-size: 15px;
        line-height: 1.9;
    }
}


/* ════════════════════════════════════════════════════════════
   17. UTILITAIRES
   ════════════════════════════════════════════════════════════ */

/* Séparateur horizontal léger */
.dossier-hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hi), transparent);
    margin: var(--section-gap) 0;
}

/* Accent inline */
.dossier-accent {
    color: var(--accent);
}

/* Texte atténué */
.dossier-muted {
    color: var(--text-lo);
    font-size: 0.9em;
}

/* Note de bas */
.dossier-note {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-lo);
    line-height: 1.6;
    margin-top: 10px;
}

/* Espacement entre sous-sections factor-detail */
.article-content .factor-detail + .subsection,
.article-content .factor-detail + .subsection {
    margin-top: var(--subsection-gap);
}

/* ════════════════════════════════════════════════════════════
   PATCH V1 → V2 : composants manquants
   Classes héritées de style-common.css / style-dossier-page.css
   utilisées par les dossiers migrés.
   À ajouter en fin de style-dossier-v2.css
   ════════════════════════════════════════════════════════════ */
 
 
/* ── 1. H2 DIRECTEMENT DANS article-content ──────────────────
   Les articles-dossiers (HSA, DRD, HDP…) n'ont pas de
   <div class="section"> : les h2 vivent directement dans
   .article-content. On reproduit le style .section > h2.       */
 
.article-content > h2 {
    position: relative;
    margin: var(--section-gap) 0 36px;
    font-family: 'Jockey One', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.4vw, 28px);
    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 14px var(--accent-30));
    padding-bottom: 12px;
}
.article-content > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-60), transparent);
    border-radius: 1px;
}
.article-content > h2:first-of-type {
    margin-top: var(--subsection-gap);
}
 
 
/* ── 2. AUTHOR META ──────────────────────────────────────────
   Bloc auteur dans les dossiers éditoriaux.                    */
 
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent-30);
    object-fit: cover;
}
.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.author-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    color: var(--text-mid);
}
.publish-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-lo);
}
.author-name strong {
    color: var(--accent);
    font-weight: 600;
}
 
 
/* ── 3. IMAGES ARTICLE ───────────────────────────────────────
   Images responsives, figures, grilles d'images.               */
 
.responsive-article-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
}
 
.article-image {
    margin: 28px 0;
}
.article-image figcaption {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-lo);
    margin-top: 10px;
    text-align: center;
}
 
.article-figure,
.article-figure--fullwidth {
    margin: 28px 0;
}
.article-figure-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
}
.article-figure-caption {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-lo);
    margin-top: 10px;
    text-align: center;
}
 
.article-images-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.article-images-row img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    object-fit: cover;
}
 
 
/* ── 4. LIENS : internal-link, external-emphasis, cta-button ─ */
 
.internal-link {
    color: var(--accent-85);
    border-bottom: 1px dashed var(--accent-30);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.internal-link:hover {
    color: var(--accent);
    border-color: var(--accent-60);
}
 
.external-emphasis {
    color: var(--accent-85);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-30);
    transition: color 0.2s, border-color 0.2s;
}
.external-emphasis:hover {
    color: var(--accent);
    border-color: var(--accent);
}
 
.cta-button {
    display: inline-block;
    padding: 10px 22px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    border: 1px solid var(--accent-30);
    background: var(--accent-08);
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cta-button:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    border-color: var(--accent-60);
    box-shadow: 0 4px 16px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
}
 
 
/* ── 5. EMBEDS (YouTube, iframes, cartes) ────────────────────  */
 
.embed-wrap,
.vidéo-yt .embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-hi);
    margin: 24px auto;
    background: var(--bg-card);
}
.embed-wrap iframe,
.vidéo-yt .embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 8px;
}
.vidéo-yt {
    margin: 28px 0;
}
 
.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-hi);
    margin: 24px 0;
}
.map-container iframe {
    display: block;
    border: none;
}
 
 
/* ── 6. INFO-CARDS & GRILLES ─────────────────────────────────
   Composants de matériel.html et dosages.html                  */
 
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.info-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
 
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    transition: border-color 0.25s;
}
.info-card:hover {
    border-color: var(--accent-30);
}
.info-card h4 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-85);
    margin: 0 0 10px;
}
.info-card h5 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-85);
    margin: 0 0 8px;
}
.info-card p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-mid);
    margin: 0;
}
 
.example-card {
    border-left: 2px solid var(--accent-60);
}
 
 
/* ── 7. CARD GRID (matériel V1) ──────────────────────────────  */
 
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
}
.card h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-hi);
    margin: 0 0 14px;
}
.card-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.card-item {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-mid);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.card-item:last-child {
    border-bottom: none;
}
 
.card-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-85);
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.2s;
}
.card-learn-more:hover {
    color: var(--accent);
}
 
.card-link {
    display: inline-block;
    padding: 8px 18px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent-30);
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
}
.card-link:hover {
    background: var(--accent-08);
    border-color: var(--accent-60);
}
 
 
/* ── 8. STEP LIST ────────────────────────────────────────────  */
 
.step-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: step-counter;
}
.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 10px 0 10px 36px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
    content: counter(step-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--accent-60);
    opacity: 0.7;
}
 
 
/* ── 9. TABLES ───────────────────────────────────────────────
   .intoxication-table, .article-table, .data-table             */
 
.intoxication-table,
.article-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
}
.intoxication-table thead tr,
.article-table thead tr,
.data-table thead tr {
    border-bottom: 2px solid var(--accent-30);
}
.intoxication-table th,
.article-table th,
.data-table th {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-85);
    padding: 10px 12px;
    text-align: left;
}
.intoxication-table td,
.article-table td,
.data-table td {
    padding: 10px 12px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}
.intoxication-table tbody tr:hover td,
.article-table tbody tr:hover td,
.data-table tbody tr:hover td {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
}
 
.table-caption {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-hi);
    margin-bottom: 8px;
}
.table-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-lo);
    margin-bottom: 16px;
}
 
 
/* ── 10. ARTICLE ENCARTS (callouts) ──────────────────────────
   Boîtes thématiques dans DRD et pourquoi-on-se-drogue.        */
 
.article-encarts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    margin: 28px 0;
}
 
/* ── Base commune ── */
.article-encart--normal,
.article-encart--aside {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px 22px 20px;
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* Coin décoratif haut-gauche */
.article-encart--normal::before,
.article-encart--aside::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 1px solid var(--accent-30);
    border-left: 1px solid var(--accent-30);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* --aside : barre accent en haut */
.article-encart--aside {
    border-top: 2px solid var(--accent-60);
}

/* --normal : barre subtile */
.article-encart--normal {
    border-top: 2px solid var(--border-hi);
}

/* Hover */
.article-encart--normal:hover,
.article-encart--aside:hover {
    border-color: var(--accent-30);
    box-shadow: 0 4px 24px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
}
.article-encart--normal:hover::before,
.article-encart--aside:hover::before {
    width: 14px; height: 14px;
    border-color: var(--accent-60);
}

/* ── Titre h3 dans les encarts ── */
.article-encart--aside h3,
.article-encart--normal h3,
.factor-detail h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-85);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: none;
    -webkit-text-fill-color: var(--accent-85);
}
/* Accent underline partiel */
.article-encart--aside h3::after,
.article-encart--normal h3::after,
.factor-detail h3::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 28px; height: 1px;
    background: var(--accent);
}
/* Supprime le ::before hérité de .subsection > h3 */
.article-encart--aside h3::before,
.article-encart--normal h3::before,
.factor-detail h3::before {
    display: none;
}

/* ── Paragraphes dans les encarts ── */
.article-encart--aside p,
.article-encart--normal p {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-mid);
    margin: 0;
}
.article-encart--normal ul,
.article-encart--normal ol {
    margin: 0;
    padding-left: 1.2em;
}
.article-encart--normal li {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-mid);
}
.article-encart--aside p + p,
.article-encart--normal p + p {
    margin-top: 10px;
}

/* ── Liste dans les encarts (.article-encart--list est un <ul>) ── */
.article-encart--list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-encart--list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-mid);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.article-encart--list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.article-encart--list li::before {
    content: '›';
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent-60);
    flex-shrink: 0;
    line-height: 1;
}
 
.encart-blockquote {
    font-style: italic;
    color: var(--text-mid);
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
}
.encart-ref {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-lo);
    margin-top: 10px;
    font-style: normal;
}

/* Citation-ref inside encart-blockquote : même style que dans les blockquotes réguliers */
.encart-blockquote .citation-ref,
.encart-blockquote small.citation-ref {
    display: block;
    font-style: normal;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.02em;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.encart-blockquote .citation-ref em {
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}
 
 
/* ── 11. CHARTS ──────────────────────────────────────────────
   Conteneurs pour les graphiques JS (harm-scores, carousel…)   */
 
.chart-container {
    margin: 24px 0;
    position: relative;
}
.chart-wrapper {
    margin: 24px 0;
    position: relative;
}
 
.chart-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 24px 0;
}
.chart-slide {
    display: none;
}
.chart-slide.active {
    display: block;
}
.chart-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent-85);
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.chart-nav-arrow:hover {
    border-color: var(--accent-60);
    background: var(--accent-08);
}
.chart-nav-prev { left: 8px; }
.chart-nav-next { right: 8px; }
 
.chart-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.chart-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border-hi);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.chart-indicator.active {
    background: var(--accent-85);
}
 
 
/* ── 12. NPS UI ──────────────────────────────────────────────
   Composants du graphique NPS (nps-chart.js)                   */
 
.nps-filters,
.nps-filters-chart {
    margin: 20px 0;
}
.nps-load-error {
    margin: 24px 0;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    color: var(--text-lo);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
}
.nps-filter-type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}
.nps-filter-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-lo);
}
.nps-select {
    position: relative;
}
.nps-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.nps-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    color: var(--text-mid);
}
.nps-select-value { flex: 1; }
.nps-select-caret {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-lo);
}
.nps-select-popover {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border-hi);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
}
.nps-select-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nps-filters-note {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-lo);
    margin-top: 8px;
}
.nps-year-details {
    margin-top: 16px;
}

/* Résumé statistique au-dessus du graphique */
.nps-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.nps-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-60, var(--border-hi));
    min-width: 120px;
}
.nps-summary-value {
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-hi);
}
.nps-summary-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-lo);
}

/* Barres interactives */
.nps-bar {
    cursor: pointer;
    transition: fill 0.15s ease, opacity 0.15s ease;
}
.nps-bar:focus,
.nps-bar:focus-visible {
    outline: none;
}
.nps-filters-chart {
    position: relative;
}

/* Tooltip flottante */
.nps-tooltip {
    position: absolute;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 10px));
    background: var(--bg-card2, #1b1b1f);
    border: 1px solid var(--border-hi);
    color: var(--text-hi);
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 20;
}

/* Panneau de détail par année */
.nps-year-details-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    color: var(--text-hi);
}
.nps-year-details-title > div:last-child {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--accent-85, var(--text-mid));
}
.nps-year-details-group {
    margin-bottom: 16px;
}
.nps-year-details-group h4 {
    margin: 0 0 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.nps-year-details-group h4 span {
    color: var(--text-lo);
}
.nps-year-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nps-year-details-list li {
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    color: var(--text-mid);
}
 
 
/* ── 13. ACKNOWLEDGMENTS ─────────────────────────────────────
   Section remerciements (histoire-de-la-prohibition)           */
 
.acknowledgments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.ack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.25s;
}
.ack-item:hover {
    border-color: var(--accent-30);
}
.ack-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-hi);
}
.ack-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ack-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-hi);
}
.ack-role {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-lo);
}
 
 
/* ── 14. RESPONSIVE ──────────────────────────────────────────  */
 
@media (max-width: 768px) {
    .article-encarts {
        grid-template-columns: 1fr;
    }
    .info-grid,
    .info-grid.grid-3 {
        grid-template-columns: 1fr;
    }
    .article-images-row {
        grid-template-columns: 1fr;
    }
    .acknowledgments-grid {
        grid-template-columns: 1fr;
    }
    .chart-nav-arrow {
        width: 28px; height: 28px;
    }
}

/* ── 15. DRUG PILLS (pharmacosexualité) ──────────────────────
   Pastilles cliquables renvoyant vers les fiches substances.   */
 
.associated-drugs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
}
.drug-pill {
    display: inline-block;
    padding: 5px 14px;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 20px;
    border: 1px solid var(--accent-30);
    color: var(--accent-85);
    background: var(--accent-08);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.drug-pill:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    border-color: var(--accent-60);
    box-shadow: 0 2px 10px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.10);
}
/* Couleurs par catégorie de substance */
.drug-pill.stimulants      { --accent-r:240; --accent-g:134; --accent-b:117; }
.drug-pill.cathinones      { --accent-r:248; --accent-g:176; --accent-b:165; }
.drug-pill.depresseurs     { --accent-r:210; --accent-g:197; --accent-b: 95; }
.drug-pill.psychedeliques  { --accent-r:211; --accent-g: 75; --accent-b:215; }
.drug-pill.dissociatifs    { --accent-r:110; --accent-g:240; --accent-b:169; }
.drug-pill.empathogenes    { --accent-r:147; --accent-g:125; --accent-b:255; }
.drug-pill.cannabinoides   { --accent-r: 95; --accent-g:195; --accent-b: 80; }
.drug-pill.opioides        { --accent-r:210; --accent-g:197; --accent-b: 95; }
 
 
/* ── 16. EXTERNAL-LINK ───────────────────────────────────────  */
 
.external-link {
    color: var(--accent-85);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-30);
    transition: color 0.2s, border-color 0.2s;
}
.external-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}


/* ════════════════════════════════════════════════════════════
   17. THRESHOLD CARDS (machinesv2 — seuils de dépistage)
   Grille de cartes avec listes de données substance/seuil.
   ════════════════════════════════════════════════════════════ */

.threshold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.threshold-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.threshold-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-60);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.threshold-card h4 {
    margin: 0 0 20px 0;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.threshold-card h4 svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.threshold-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.threshold-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.threshold-item:last-child {
    border-bottom: none;
}

.threshold-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.threshold-value {
    color: var(--accent);
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
}

.threshold-unit {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 4px;
}

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


/* ════════════════════════════════════════════════════════════
   18. WARNING CARD
   Variante de .info-card pour les alertes / mises en garde.
   ════════════════════════════════════════════════════════════ */

.warning-card {
    border-left: 3px solid var(--red);
    background: var(--red-30);
    margin-top: 20px;
}
.warning-card p {
    margin: 0;
}


/* ════════════════════════════════════════════════════════════
   19. LEGAL STATUS BADGES
   Pastilles de statut légal (Classe A/B/C, Légal/Illégal…)
   utilisées dans drogues-risques-et-dangers.
   ════════════════════════════════════════════════════════════ */

.legal-danger  { color: #dc2626; font-weight: 600; }
.legal-warning { color: #f59e0b; font-weight: 600; }
.legal-ok      { color: #10b981; font-weight: 600; }
.legal-neutral { color: #6b7280; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   20. Dossiers crossref
   Encarts pour renvoi vers pages dossiers pour approfondir.
   ════════════════════════════════════════════════════════════ */

.dossier-crossref {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 24px;
	margin: 28px 0;
	position: relative;
	transition: border-color 0.3s, box-shadow 0.3s;
}
 
/* ── Corners : haut-gauche + bas-droite via ::before / ::after ── */
.dossier-crossref::before,
.dossier-crossref::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.dossier-crossref::before {
	top: -1px;
	left: -1px;
	border-top: 1.5px solid color-mix(in srgb, var(--xref-color) 40%, transparent);
	border-left: 1.5px solid color-mix(in srgb, var(--xref-color) 40%, transparent);
}
.dossier-crossref::after {
	bottom: -1px;
	right: -1px;
	border-bottom: 1.5px solid color-mix(in srgb, var(--xref-color) 40%, transparent);
	border-right: 1.5px solid color-mix(in srgb, var(--xref-color) 40%, transparent);
}
 
/* ── Corners : haut-droite + bas-gauche via spans ── */
.dossier-crossref__corner-tr,
.dossier-crossref__corner-bl {
	position: absolute;
	width: 12px;
	height: 12px;
	transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.dossier-crossref__corner-tr {
	top: -1px;
	right: -1px;
	border-top: 1.5px solid color-mix(in srgb, var(--xref-color) 25%, transparent);
	border-right: 1.5px solid color-mix(in srgb, var(--xref-color) 25%, transparent);
}
.dossier-crossref__corner-bl {
	bottom: -1px;
	left: -1px;
	border-bottom: 1.5px solid color-mix(in srgb, var(--xref-color) 25%, transparent);
	border-left: 1.5px solid color-mix(in srgb, var(--xref-color) 25%, transparent);
}
 
/* ── Hover global ── */
.dossier-crossref:hover {
	border-color: color-mix(in srgb, var(--xref-color) 18%, transparent);
	box-shadow: 0 0 30px color-mix(in srgb, var(--xref-color) 4%, transparent);
}
.dossier-crossref:hover::before,
.dossier-crossref:hover::after {
	width: 22px;
	height: 22px;
	border-color: color-mix(in srgb, var(--xref-color) 60%, transparent);
}
.dossier-crossref:hover .dossier-crossref__corner-tr,
.dossier-crossref:hover .dossier-crossref__corner-bl {
	width: 22px;
	height: 22px;
	border-color: color-mix(in srgb, var(--xref-color) 45%, transparent);
}
 
/* ── Header : icône + titre + scan path ── */
.dossier-crossref__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	position: relative;
}
.dossier-crossref__header::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 30px;
	height: 1px;
	background: var(--xref-color);
	opacity: 0.5;
}
 
/* Icône */
.dossier-crossref__icon svg {
	display: block;
	width: 32px;
	height: 32px;
	color: var(--xref-color);
	filter: drop-shadow(0 0 5px color-mix(in srgb, var(--xref-color) 30%, transparent));
	flex-shrink: 0;
}
.dossier-crossref:hover .dossier-crossref__icon svg {
	filter: drop-shadow(0 0 8px color-mix(in srgb, var(--xref-color) 50%, transparent));
}
 
/* Textes header */
.dossier-crossref__heading {
	flex: 1;
	min-width: 0;
}
.dossier-crossref__category {
	font-family: 'Orbitron', monospace;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--xref-color);
	opacity: 0.6;
	margin: 0 0 2px;
}
.dossier-crossref__title {
	font-family: 'Exo 2', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-hi);
	line-height: 1.3;
	margin: 0;
	/* Reset héritages possibles */
	letter-spacing: normal;
	text-transform: none;
	background: none;
	-webkit-text-fill-color: var(--text-hi);
	border: none;
	padding: 0;
}
.dossier-crossref__title::before,
.dossier-crossref__title::after {
	display: none;
}
 
/* Scan path décoratif */
.dossier-crossref__scan {
	font-family: 'Share Tech Mono', monospace;
	font-size: 8px;
	color: rgba(255, 255, 255, 0.12);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-left: auto;
	flex-shrink: 0;
	white-space: nowrap;
}
 
/* ── Description ── */
.dossier-crossref__desc {
	font-family: 'Exo 2', sans-serif;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--text-lo);
	margin: 0 0 14px;
}
 
/* ── Footer : data + CTA ── */
.dossier-crossref__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.dossier-crossref__data {
	font-family: 'Share Tech Mono', monospace;
	font-size: 9px;
	color: rgba(255, 255, 255, 0.15);
	letter-spacing: 0.1em;
}
.dossier-crossref__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Share Tech Mono', monospace;
	font-size: 10.5px;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--bg, #04040a);
	background: var(--xref-color);
	text-decoration: none;
	padding: 6px 16px;
	border-radius: 2px;
	transition: filter 0.25s;
}
.dossier-crossref__cta::after {
	content: '→';
	transition: transform 0.25s;
}
.dossier-crossref__cta:hover {
	filter: brightness(1.15);
}
.dossier-crossref__cta:hover::after {
	transform: translateX(3px);
}

/* ── Crossref: gardes de spécificité ──
   Empêche .subsection p / .section h3 d'écraser les styles internes */
.dossier-crossref .dossier-crossref__category {
	font-family: 'Orbitron', monospace;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--xref-color);
	opacity: 0.6;
	margin: 0 0 2px;
	line-height: 1.4;
	max-width: none;
}
.dossier-crossref .dossier-crossref__desc {
	font-family: 'Exo 2', sans-serif;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--text-lo);
	margin: 0 0 14px;
	max-width: none;
}
.dossier-crossref .dossier-crossref__title {
	font-family: 'Exo 2', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-hi);
	line-height: 1.3;
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
	background: none;
	-webkit-text-fill-color: var(--text-hi);
	border: none;
	padding: 0;
}
.dossier-crossref .dossier-crossref__title::before,
.dossier-crossref .dossier-crossref__title::after {
	display: none;
}
 
/* ── Responsive ── */
@media (max-width: 520px) {
	.dossier-crossref { padding: 18px 16px; }
	.dossier-crossref__header { gap: 10px; }
	.dossier-crossref__icon svg { width: 26px; height: 26px; }
	.dossier-crossref__scan { display: none; }
	.dossier-crossref__footer { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   DETAILS & SUMMARY (Aller plus loin)
   ======================================== */

details {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

summary {
    display: inline-flex;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    align-items: center;
    transition: color 0.15s ease;
    list-style: none;
    user-select: text;
    text-decoration: none;
}

summary:hover {
    color: var(--cyan);
}

summary:active {
    color: var(--cyan);
}

summary:focus-visible {
    outline: none;
    color: var(--cyan);
}

summary::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0.6rem;
    vertical-align: middle;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

details[open] summary::before {
    transform: rotate(90deg);
}

summary::after {
    content: none;
}

details[open] summary {
    color: var(--cyan);
    margin-bottom: 15px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    display: none;
}

details[open] .article-encart--normal {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
        margin-top: 0;
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

details .article-encart--normal {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}