/* Conseil Brico Jardin — « L'atelier de nuit »
   Registre éditorial sombre (inspiration Altitude) traduit dans le vocabulaire de l'atelier :
   titres en Libre Baskerville, interface en Inter, cotes et fiches en Fira Code,
   surfaces en paliers de gris, filets fins, un seul accent : le bleu du cordeau à tracer. */

:root {
	--obsidienne: #111111;
	--carbone: #181818;
	--graphite: #1f1f1f;
	--ardoise: #262626;
	--fer: #323232;
	--os: #eeeeee;
	--cendre: #e4e4e4;
	--brume: #a4a19b;
	--fumee: #5e5d59;
	--etain: #4b4b4b;
	--blanc: #ffffff;
	--cordeau: #2b7fff;          /* seul accent : liens, focus, trait de cordeau */
	--cordeau-plein: #1a66e0;    /* fond des boutons pleins (texte blanc lisible) */
	--marine: #1a365d;
	--papier: #e7e5e4;

	--serif: "Libre Baskerville", "Source Serif Pro", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "Fira Code", "JetBrains Mono", ui-monospace, Consolas, monospace;

	--r-petit: 4px;
	--r-carte: 8px;
	--r-grand: 16px;
	--largeur: 1200px;
	--largeur-article: 1440px;
	--gouttiere: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--ombre-carte: 0 2px 15px rgba(51, 51, 51, .05), 0 1px 2px -1px rgba(51, 51, 51, .05);
	--ombre-haute: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2);
	--courbe: cubic-bezier(.2, .7, .1, 1);
	color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0; background: var(--carbone); color: var(--os);
	font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blanc); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cordeau); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cordeau); color: var(--blanc); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--os); color: var(--carbone); border-radius: var(--r-petit); transition: top .2s; }
.evitement:focus { top: 16px; }
.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-large { width: 100%; max-width: calc(var(--largeur-article) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.muet { color: var(--brume); }
.a-completer { color: #f0b37a; background: rgba(240, 179, 122, .08); border: 1px dashed rgba(240, 179, 122, .45); border-radius: var(--r-petit); padding: 0 .3em; }

/* Grain photographique : fine texture de bruit sur toute la page. */
.grain {
	position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
	0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
	60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ---------------------------------------------------------------- typographie */

.titre-affiche {
	font: 400 clamp(40px, 7.2vw, 88px)/1.06 var(--serif); letter-spacing: -.025em; color: var(--os); text-wrap: balance;
}
.titre-affiche--m { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.1; }
.titre-serif { font: 400 clamp(30px, 4vw, 48px)/1.15 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.titre-serif--m { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.titre-serif--s { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; margin-bottom: 20px; }
.section__sous, .heros__sous { color: var(--brume); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; max-width: 46em; }
.etiquette {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
	font: 500 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brume);
}
.badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r-petit);
	background: var(--fer); color: var(--os); font: 500 10.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	transition: background-color .2s, color .2s;
}
a.badge:hover { background: var(--os); color: var(--carbone); }
.badge--bientot { padding: 2px 5px; font-size: 9px; background: transparent; border: 1px solid var(--etain); color: var(--brume); }
.badge--clair { background: transparent; border: 1px solid #b9b6b0; color: #44423e; }
.badge--lien { background: transparent; border: 1px solid var(--etain); }

/* Révélation des titres ligne à ligne (classes posées par le script). */
.js [data-lignes]:not(.est-decoupe) { visibility: hidden; }
.js [data-lignes] .ligne { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-lignes] .ligne > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--courbe); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-lignes].est-visible .ligne > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--courbe), transform .9s var(--courbe); transition-delay: var(--d, 0ms); }
.js [data-reveal].est-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- boutons et liens */

.btn {
	position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px;
	border: 1px solid var(--os); border-radius: var(--r-petit); background: transparent; color: var(--os);
	font: 500 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
	transition: color .35s var(--courbe), border-color .35s, transform .35s var(--courbe);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--os);
	transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--courbe);
}
.btn:hover { color: var(--carbone); }
.btn:hover::before { transform: scaleY(1); }
.btn--plein { background: var(--cordeau-plein); border-color: var(--cordeau-plein); color: var(--blanc); }
.btn--plein::before { background: var(--blanc); }
.lien-fleche {
	display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1.2 var(--sans); color: var(--os); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--courbe);
}
.lien-fleche:hover { background-size: 100% 1px; }
.lien-fleche .icone { transition: transform .35s var(--courbe); }
.lien-fleche:hover .icone { transform: translateX(4px); }
.lien-fleche--bleu { color: var(--cordeau); }
.lien-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--os); }
.icone-btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--fer); border-radius: var(--r-petit);
	background: transparent; color: var(--os); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.icone-btn:hover { background: var(--ardoise); border-color: var(--etain); color: var(--os); }

/* ---------------------------------------------------------------- mètre ruban (progression) */

.ruban { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.ruban__lame {
	height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
	background:
		repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 10px),
		linear-gradient(90deg, #8fb8ff, var(--cordeau));
	box-shadow: 0 0 12px rgba(43, 127, 255, .6);
}
.ruban__lecture {
	position: absolute; top: 8px; left: clamp(64px, calc(var(--p, 0) * 100%), calc(100% - 12px)); transform: translateX(-100%);
	padding: 3px 6px; border-radius: var(--r-petit); background: rgba(17, 17, 17, .85);
	border: 1px solid var(--fer); font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--brume); white-space: nowrap;
	opacity: 0; transition: opacity .3s;
}
/* la cote n'apparaît que pendant la lecture, quand l'en-tête s'est effacé */
.entete-cachee .ruban.est-actif .ruban__lecture { opacity: 1; }

/* ---------------------------------------------------------------- en-tête */

.entete {
	position: sticky; top: 0; z-index: 50; height: 64px; border-bottom: 1px solid transparent;
	transition: transform .45s var(--courbe), background-color .3s, border-color .3s, backdrop-filter .3s;
}
.entete.est-colle { background: rgba(24, 24, 24, .78); border-bottom-color: var(--ardoise); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.entete.est-cache { transform: translateY(-100%); }
.entete__in { display: flex; align-items: center; gap: 24px; height: 100%; max-width: calc(1360px + 2 * var(--gouttiere)); margin: 0 auto; padding-inline: var(--gouttiere); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__nom { font: 400 17px/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.logo__bulle { transition: transform .6s var(--courbe); transform-origin: 16px 16px; }
.logo:hover .logo__bulle { transform: translateX(4px); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
	position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; text-decoration: none; color: var(--os);
}
.nav a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: #aeaeae;
	transform: scaleX(0); transform-origin: left; transition: transform .4s var(--courbe);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current]::after { background: var(--cordeau); }
.entete__actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--fer); border-radius: var(--r-petit); background: transparent; cursor: pointer; font-size: 13px; }
.burger__barres, .burger__barres::before { display: block; width: 16px; height: 1px; background: currentColor; position: relative; transition: transform .3s; }
.burger__barres::before { content: ""; position: absolute; top: 5px; }
.burger__barres { transform: translateY(-3px); }
.burger[aria-expanded="true"] .burger__barres { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__barres::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 1020px) {
	.burger { display: inline-flex; }
	.nav {
		position: fixed; inset: 64px 0 auto; margin: 0; padding: 8px var(--gouttiere) 24px; background: rgba(17, 17, 17, .97);
		border-bottom: 1px solid var(--ardoise); backdrop-filter: blur(16px);
		clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--courbe), visibility .5s;
	}
	.nav.est-ouvert { clip-path: inset(0); visibility: visible; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--ardoise); font: 400 24px/1.2 var(--serif); }
	.nav a::after { left: 0; right: auto; width: 32px; bottom: -1px; }
	.entete__actions { margin-left: auto; }
}
@media (max-width: 420px) { .logo__nom { font-size: 15px; } .burger__texte { display: none; } }

/* ---------------------------------------------------------------- cordeau à tracer (séparateur) */

.cordeau { position: relative; height: 56px; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding-inline: var(--gouttiere); }
.cordeau canvas { width: 100%; height: 100%; }
.cordeau::before {
	content: ""; position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: 50%; height: 1px; background: var(--ardoise);
}
.js .cordeau::before { opacity: 0; }
.cordeau--pied { max-width: none; }

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--section); position: relative; }
.section--serree { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.section--obsidienne { background: var(--obsidienne); border-block: 1px solid var(--graphite); }
.section__tete { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section__tete .section__sous { margin-top: 16px; }

/* ---------------------------------------------------------------- héros */

.heros {
	position: relative; min-height: calc(100svh - 64px); display: grid; grid-template-rows: auto 1fr auto; align-items: start;
	padding-top: clamp(48px, 9vh, 112px); overflow: hidden; isolation: isolate;
}
.heros::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 50% at 50% 62%, rgba(43, 127, 255, .07), transparent 70%),
		radial-gradient(40% 30% at 50% 100%, rgba(255, 255, 255, .04), transparent 70%);
}
.heros::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(var(--graphite) 1px, transparent 1px), linear-gradient(90deg, var(--graphite) 1px, transparent 1px);
	background-size: 64px 64px; background-position: center top;
	mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.heros__texte { text-align: center; display: grid; justify-items: center; }
.heros__texte .titre-affiche { max-width: 11.5em; }
.heros__sous { margin: 24px auto 0; max-width: 36em; }
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin: 32px 0 0; }

/* Lasers croisés qui suivent le pointeur, comme un niveau laser projeté sur le mur. */
.heros__laser { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.heros.laser-actif .heros__laser { opacity: 1; }
.heros__laser-h, .heros__laser-v { position: absolute; background: var(--cordeau); mix-blend-mode: screen; }
.heros__laser-h { left: 0; right: 0; top: 0; height: 1px; transform: translateY(var(--ly, 50vh)); box-shadow: 0 0 6px 1px rgba(43, 127, 255, .55), 0 0 22px 2px rgba(43, 127, 255, .25); opacity: .55; }
.heros__laser-v { top: 0; bottom: 0; left: 0; width: 1px; transform: translateX(var(--lx, 50vw)); box-shadow: 0 0 6px 1px rgba(43, 127, 255, .55), 0 0 22px 2px rgba(43, 127, 255, .25); opacity: .35; }

/* Niveau à bulle 3D */
.niveau { position: relative; z-index: 1; width: min(980px, 100%); margin: clamp(8px, 2vh, 24px) auto 0; aspect-ratio: 980 / 300; }
.niveau__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.niveau--3d .niveau__canvas { opacity: 1; }
.niveau__repli { position: absolute; left: 50%; top: 50%; width: 72%; transform: translate(-50%, -50%); transition: opacity .6s; }
.niveau--3d .niveau__repli { opacity: 0; }
.niveau__lecture {
	position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); margin: 0; white-space: nowrap;
	font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brume);
}
.niveau__lecture b { font-weight: 600; color: var(--os); font-variant-numeric: tabular-nums; display: inline-block; min-width: 4.2em; text-align: left; }
.niveau.est-de-niveau .niveau__lecture b { color: var(--cordeau); }

.heros__horizon { position: relative; color: var(--brume); }
.heros__horizon svg { width: 100%; height: clamp(120px, 14vw, 220px); }
.trace { stroke-dasharray: var(--long, 0); stroke-dashoffset: 0; }
.js .trace { stroke-dashoffset: var(--long, 0); transition: stroke-dashoffset 2.6s cubic-bezier(.45, .05, .2, 1); }
.js .trace--lente { transition-duration: 5.5s; }
.js .est-trace .trace, .js .trace.est-trace { stroke-dashoffset: 0; }

/* Règle graduée */
.regle {
	position: relative; display: flex; justify-content: space-between; height: 30px; padding-top: 12px; border-top: 1px solid var(--etain);
	background:
		repeating-linear-gradient(90deg, var(--etain) 0 1px, transparent 1px calc(100% / 150)) top / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, var(--brume) 0 1px, transparent 1px calc(100% / 15)) top / 100% 10px no-repeat;
	font: 400 9px/1 var(--mono); letter-spacing: .1em; color: var(--fumee);
}
.regle span { width: 0; display: flex; justify-content: center; }
.regle span:first-child { justify-content: flex-start; }
.regle span:last-child { justify-content: flex-end; }

/* ---------------------------------------------------------------- section claire : tuiles des rubriques */

.section--claire { background: var(--carbone); }
.rubriques { position: relative; }
.tuiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; perspective: 1000px; }
.tuile {
	position: relative; border-radius: var(--r-carte); background: linear-gradient(180deg, #f2f0ef, var(--papier)); color: var(--carbone);
	border: 1px solid var(--cendre); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
	transform-style: preserve-3d; transition: transform .5s var(--courbe), box-shadow .5s;
	overflow: hidden;
}
.tuile > a { display: grid; justify-items: center; gap: 12px; padding: 32px 16px 12px; text-align: center; text-decoration: none; color: inherit; }
.tuile > a:hover { color: inherit; }
.tuile__icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-carte); color: var(--marine); border: 1px solid #d4d1ce; background: #f7f6f5; transition: transform .5s var(--courbe); }
.tuile:hover .tuile__icone { transform: translateZ(30px) rotate(-6deg); }
.tuile__nom { font: 400 22px/1.2 var(--serif); letter-spacing: -.02em; }
.tuile__compte { font: 500 12px/1.3 var(--sans); color: #57544f; letter-spacing: .02em; }
.tuile__compte b { font: 600 12px var(--mono); color: var(--marine); }
.tuile__auteur { display: block; padding: 0 16px 24px; text-align: center; font-size: 12px; color: #6b6862; }
.tuile__auteur a { color: var(--marine); }
.section__tete--sombre .section__sous { color: var(--brume); }

/* Reflet spéculaire qui suit le pointeur (cartes et tuiles inclinables). */
.carte__reflet {
	position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; border-radius: inherit; mix-blend-mode: soft-light;
	background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%);
}
[data-tilt]:hover .carte__reflet { opacity: 1; }

/* ---------------------------------------------------------------- partage : texte + visuel */

.partage { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.partage__texte .section__sous { margin-top: 20px; }
.partage__visuel { position: relative; padding: 0 0 48px 48px; }
.visuel-photo { position: relative; border-radius: var(--r-grand); overflow: hidden; border: 1px solid var(--ardoise); background: var(--graphite); aspect-ratio: 4 / 3; }
.visuel-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.75) contrast(1.05) brightness(.7); transform: scale(1.08); transition: transform 1.6s var(--courbe), filter 1s; }
.visuel-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(26, 54, 93, .45), rgba(17, 17, 17, .35)); mix-blend-mode: multiply; }
.partage__visuel:hover .visuel-photo img { transform: scale(1.02); filter: grayscale(.2) brightness(.8); }

.fiche {
	position: absolute; left: 0; bottom: 0; width: min(560px, 88%); border-radius: var(--r-carte); background: rgba(31, 31, 31, .92);
	border: 1px solid var(--fer); box-shadow: var(--ombre-haute); backdrop-filter: blur(10px); overflow: hidden;
}
.fiche__barre { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--ardoise); background: var(--graphite); }
.fiche__barre i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.fiche__barre i:nth-child(2) { background: #febc20; }
.fiche__barre i:nth-child(3) { background: #28c840; }
.fiche__barre span { margin-left: 10px; font: 400 10px/1 var(--mono); color: var(--fumee); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche__corps { display: grid; grid-template-columns: 132px 1fr; min-height: 250px; }
.fiche__cote { margin: 0; padding: 12px 0; list-style: none; background: var(--carbone); border-right: 1px solid var(--ardoise); }
.fiche__cote li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 12px; color: var(--brume); }
.fiche__cote li.actif { background: var(--ardoise); color: var(--os); box-shadow: inset 2px 0 var(--cordeau); }
.fiche__ecran { padding: 14px 16px; font: 400 12px/1.6 var(--mono); color: var(--os); min-width: 0; }
.fiche__cmd { margin: 0 0 6px; color: var(--brume); letter-spacing: .04em; }
.fiche__infos { margin: 0 0 10px; }
.fiche__infos div { display: grid; grid-template-columns: 76px 1fr; }
.fiche__infos dt { color: var(--fumee); }
.fiche__infos dd { margin: 0; }
.fiche__toc { margin: 0; padding: 0; list-style: none; }
.fiche__toc li { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cendre); }
.fiche__num { color: var(--cordeau); flex: none; }
.fiche__curseur span { display: inline-block; width: 7px; height: 13px; background: var(--os); vertical-align: -2px; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.js [data-frappe] { opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.js [data-frappe].est-tape { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- registre (tableau) */

.registre-cadre { border: 1px solid var(--ardoise); border-radius: var(--r-carte); overflow: hidden; background: var(--graphite); }
.registre { width: 100%; border-collapse: collapse; font-size: 13px; }
.registre thead th { padding: 14px 16px; text-align: left; font: 500 11px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--brume); border-bottom: 1px solid var(--fer); background: var(--carbone); }
.registre td, .registre tbody th { padding: 16px; text-align: left; border-bottom: 1px solid var(--ardoise); vertical-align: middle; font-weight: 400; }
.registre tbody tr { position: relative; transition: background-color .2s; }
.registre tbody tr:nth-child(even) { background: rgba(38, 38, 38, .45); }
.registre tbody tr:hover { background: var(--ardoise); }
.registre tbody tr:last-child td, .registre tbody tr:last-child th { border-bottom: 0; }
.registre tbody th a { text-decoration: none; font-size: 14px; }
.registre tbody th a:hover { text-decoration: underline; }
.registre__date, .registre__lecture { font: 400 12px var(--mono); color: var(--brume); white-space: nowrap; }
.registre .auteur-lien { color: var(--brume); }
.registre__plus { margin-top: 24px; }
@media (max-width: 760px) {
	.registre thead { display: none; }
	.registre, .registre tbody, .registre tr, .registre td, .registre tbody th { display: block; }
	.registre tbody tr { display: grid; grid-template-columns: auto auto 1fr; gap: 8px 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--ardoise); }
	.registre td, .registre tbody th { padding: 0; border: 0; }
	.registre tbody th { grid-column: 1 / -1; order: 3; }
	.registre td:nth-child(4) { order: 4; grid-column: 1 / 3; font-size: 12px; }
	.registre__lecture { order: 5; justify-self: end; }
}

/* ---------------------------------------------------------------- conseils de pro (carrousel) */

.conseils { text-align: center; display: grid; justify-items: center; }
.conseils__diapos { display: grid; width: 100%; max-width: 980px; min-height: 260px; align-items: center; }
.citation { grid-area: 1 / 1; margin: 0; transition: opacity .8s var(--courbe), transform .8s var(--courbe); }
.citation[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(16px); }
.citation blockquote { margin: 0; }
.citation blockquote p { font: 400 clamp(24px, 3.2vw, 40px)/1.3 var(--serif); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.citation blockquote p::before { content: "« "; color: var(--cordeau); }
.citation blockquote p::after { content: " »"; color: var(--cordeau); }
.citation figcaption { margin-top: 28px; font-size: 13px; color: var(--brume); }
.citation figcaption a:not(.auteur-lien) { color: var(--brume); }
.conseils__nav { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.conseils__jauge { width: 160px; height: 1px; background: var(--fer); position: relative; overflow: hidden; }
.conseils__jauge i { position: absolute; inset: 0; background: var(--cordeau); transform-origin: left; transform: scaleX(0); }
.conseils__jauge.court i { animation: jauge var(--duree, 7s) linear forwards; }
@keyframes jauge { to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- cartes d'articles */

.carte {
	position: relative; display: flex; flex-direction: column; border-radius: var(--r-carte); background: var(--graphite); border: 1px solid var(--ardoise);
	overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--courbe), border-color .3s, background-color .3s; box-shadow: var(--ombre-carte);
}
.carte:hover { border-color: var(--etain); background: #222; }
.carte__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ardoise); position: relative; }
.carte__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(17, 17, 17, .5)); }
.carte__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.85) contrast(1.05); transform: scale(1.04); transition: transform 1.2s var(--courbe), filter .8s; }
.carte:hover .carte__media img { transform: scale(1.1); filter: none; }
.carte__corps { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.carte__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font: 400 11px var(--mono); color: var(--fumee); }
.carte__titre { font: 500 16px/1.35 var(--sans); letter-spacing: -.01em; text-wrap: pretty; }
.carte__titre a { text-decoration: none; }
.carte__titre a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.carte__meta a, .carte__pied a { position: relative; z-index: 2; }
.carte__extrait { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--brume); }
.carte__pied { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--ardoise); font-size: 12px; color: var(--brume); }
.carte__pied time { font: 400 11px var(--mono); }
.auteur-lien { color: var(--os); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; background-size: 0 1px; transition: background-size .3s; }
.auteur-lien:hover { background-size: 100% 1px; }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; perspective: 1200px; }
.carte--grande .carte__titre { font: 400 22px/1.25 var(--serif); }

.rangee { padding-block: 32px; border-top: 1px solid var(--ardoise); }
.rangee:first-of-type { border-top: 0; padding-top: 0; }
.rangee__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rangee__cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }

/* ---------------------------------------------------------------- profils (rédaction) */

.portrait { position: relative; display: block; flex: none; align-self: flex-start; width: 96px; aspect-ratio: 1; border-radius: var(--r-carte); background: var(--ardoise); overflow: hidden; border: 1px solid var(--fer); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--mini { width: 36px; border-radius: var(--r-petit); }
.portrait--sig { width: 44px; border-radius: var(--r-petit); }
.portrait--grand { width: clamp(140px, 18vw, 220px); border-radius: var(--r-grand); }
.profils { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.profil { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--ardoise); border-radius: var(--r-carte); background: var(--graphite); }
.profil p { color: var(--brume); font-size: 14px; }
.profil__nom { font: 400 22px/1.2 var(--serif); margin-bottom: 4px; }
.profil__nom a { text-decoration: none; }
.profil__poste { font: 500 12px var(--sans) !important; letter-spacing: .05em; text-transform: uppercase; color: var(--os) !important; }
.profil__rubs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.profils--colonne { grid-template-columns: 1fr; }
.profil--grand .portrait { width: clamp(110px, 14vw, 160px); }
.profil--ligne { align-items: center; padding: 16px; }
.profil--ligne .portrait { width: 64px; }
.profil--ligne p { margin: 0; }

/* ---------------------------------------------------------------- appel final */

.section--appel { border-top: 1px solid var(--ardoise); }
.appel { text-align: center; display: grid; justify-items: center; gap: 8px; }
.appel .section__sous { margin: 8px 0 24px; }

/* ---------------------------------------------------------------- en-têtes de pages */

.fil ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--fumee); }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--etain); }
.fil a { color: var(--brume); text-decoration: none; }
.fil a:hover { color: var(--os); }
.fil [aria-current] { color: var(--brume); }

.tete-rubrique, .tete-simple, .tete-auteur { padding-block: clamp(40px, 7vw, 96px) clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.tete-rubrique__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.tete-rubrique__page { font-size: .45em; color: var(--brume); letter-spacing: 0; }
.tete-rubrique__infos { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 13px; color: var(--brume); }
.tete-rubrique__infos b { font: 600 13px var(--mono); color: var(--os); }
.tete-rubrique__dessin { color: var(--brume); }
.illustration { width: 100%; height: auto; max-height: 340px; }
.vide { padding: 48px; border: 1px dashed var(--etain); border-radius: var(--r-carte); display: grid; gap: 16px; justify-items: start; }
.vide p { color: var(--brume); margin: 0; }
.vide__liens { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination__num, .pagination__pas { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--fer); border-radius: var(--r-petit); font: 400 13px var(--mono); text-decoration: none; }
.pagination a:hover { background: var(--ardoise); }
.pagination [aria-current] { background: var(--os); color: var(--carbone); border-color: var(--os); }

.tete-auteur__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tete-auteur__poste { margin: 16px 0 8px; font: 500 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.tete-auteur__fiche { display: grid; gap: 12px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--ardoise); }
.tete-auteur__fiche div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: baseline; }
.tete-auteur__fiche dt { font: 500 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fumee); }
.tete-auteur__fiche dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--brume); font-size: 13px; }
.tete-auteur__fiche dd b { font: 600 13px var(--mono); color: var(--os); }
.auteur-corps { display: grid; gap: 56px; }
.bio p { font-size: 18px; line-height: 1.65; max-width: 1060px; color: var(--cendre); }
.maj__liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ardoise); }
.maj__liste li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--ardoise); }
.maj__liste a { text-decoration: none; }
.maj__liste a:hover { text-decoration: underline; }
.maj__liste time { flex: none; font: 400 12px var(--mono); color: var(--brume); }
.autres { display: grid; gap: 12px; }
@media (max-width: 640px) {
	.tete-auteur__in { grid-template-columns: 1fr; }
	.tete-auteur__fiche div { grid-template-columns: 1fr; gap: 6px; }
	.maj__liste li { flex-direction: column; gap: 4px; }
}

/* ---------------------------------------------------------------- article */

.article-tete { padding-top: clamp(32px, 5vw, 64px); }
.article-tete > * { max-width: 1060px; }
.titre-article { font: 400 clamp(32px, 4.6vw, 56px)/1.12 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.chapo { margin: 24px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: var(--brume); }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ardoise); }
.signature p { margin: 0; }
.signature__auteur { font-size: 14px; }
.signature__auteur .auteur-lien { font-weight: 600; }
.signature__dates { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px !important; font: 400 12px var(--mono); color: var(--brume); }
.article-une { margin: 40px 0 0; border-radius: var(--r-grand); overflow: hidden; border: 1px solid var(--ardoise); background: var(--graphite); aspect-ratio: 16 / 7; }
.article-une img { width: 100%; height: 100%; object-fit: cover; }

.article-grille { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.article-grille--seule { grid-template-columns: minmax(0, 1fr); }
.sommaire { position: sticky; top: 88px; }
.sommaire__boite { border: 1px solid var(--ardoise); border-radius: var(--r-carte); background: var(--graphite); }
.sommaire__titre { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--os); }
.sommaire__titre::-webkit-details-marker { display: none; }
.sommaire__compte { font: 400 10px var(--mono); color: var(--fumee); letter-spacing: .04em; text-transform: none; }
.sommaire ol { margin: 0; padding: 4px 0 12px; list-style: none; counter-reset: s; border-top: 1px solid var(--ardoise); }
.sommaire li { counter-increment: s; }
.sommaire a { position: relative; display: grid; grid-template-columns: 28px 1fr; padding: 8px 16px; font-size: 13px; line-height: 1.4; color: var(--brume); text-decoration: none; transition: color .2s, background-color .2s; }
.sommaire a::before { content: counter(s, decimal-leading-zero); font: 400 11px/1.6 var(--mono); color: var(--fumee); transition: color .2s; }
.sommaire a::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--cordeau); transform: scaleY(0); transition: transform .3s var(--courbe); }
.sommaire a:hover { color: var(--os); }
.sommaire a.est-actif { color: var(--os); background: var(--ardoise); }
.sommaire a.est-actif::before { color: var(--cordeau); }
.sommaire a.est-actif::after { transform: scaleY(1); }

.article-corps { max-width: 1060px; min-width: 0; font-size: 18px; line-height: 1.65; color: var(--cendre); }
.article-corps > p, .article-corps li { text-wrap: pretty; }
.article-corps strong { color: var(--blanc); font-weight: 600; }
.article-corps a { color: var(--cordeau); text-decoration: underline; text-decoration-color: rgba(43, 127, 255, .4); }
.article-corps a:hover { text-decoration-color: currentColor; }
.article-corps a strong { color: inherit; }
.article-corps h2 { margin: 2.2em 0 .7em; font: 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); letter-spacing: -.02em; color: var(--os); text-wrap: balance; scroll-margin-top: 96px; }
.article-corps h3 { margin: 1.8em 0 .6em; font: 600 20px/1.35 var(--sans); color: var(--os); }
.article-corps ul, .article-corps ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-corps li { margin-bottom: .4em; }
.article-corps li::marker { color: var(--cordeau); }
.article-corps img { border-radius: var(--r-carte); margin: 1.5em 0; }
.article-corps figure { margin: 1.8em 0; }
.article-corps table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; border: 1px solid var(--ardoise); }
.article-corps th, .article-corps td { padding: 12px 14px; border-bottom: 1px solid var(--ardoise); text-align: left; }
.article-corps th { font: 500 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--brume); background: var(--graphite); }
.article-corps blockquote { margin: 1.8em 0; padding-left: 24px; border-left: 1px solid var(--etain); font-family: var(--serif); font-size: 21px; color: var(--os); }

/* Résumé de l'article */
.resume { margin: 0 0 2em; padding: 24px 28px; border: 1px solid var(--fer); border-radius: var(--r-carte); background: var(--graphite); position: relative; overflow: hidden; }
.resume::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--os); }
.resume__titre { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brume); }
.resume p:last-child { margin: 0; }

/* Conseil de pro : l'encadré principal, avec sa règle graduée. */
.conseil {
	position: relative; margin: 2.2em 0; padding: 36px 32px 28px; border-radius: var(--r-carte); background: linear-gradient(180deg, #1d2430, #1a1d22);
	border: 1px solid #2c3a52; box-shadow: 0 30px 60px -40px rgba(43, 127, 255, .5);
}
.conseil::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: var(--r-carte) var(--r-carte) 0 0;
	background:
		repeating-linear-gradient(90deg, rgba(143, 184, 255, .55) 0 1px, transparent 1px 10px) top / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, rgba(143, 184, 255, .9) 0 1px, transparent 1px 50px) top / 100% 10px no-repeat;
}
.conseil__titre { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8fb8ff; }
.conseil p:last-child { margin: 0; font-size: 19px; color: var(--os); }

/* À surveiller : plus petit et plus discret que le conseil de pro. */
.vigilance { margin: 1.6em 0; padding: 14px 18px; border: 1px dashed var(--etain); border-radius: var(--r-petit); background: rgba(31, 31, 31, .6); font-size: 15.5px; line-height: 1.6; }
.vigilance__titre { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--os); }
.vigilance__titre .icone { color: var(--brume); }
.vigilance__demo { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fumee); }
.vigilance p:last-child { margin: 0; color: var(--brume); }

/* FAQ dépliable */
.faq { margin-top: 2.4em; }
.faq__item { border-top: 1px solid var(--ardoise); }
.faq__item:last-of-type { border-bottom: 1px solid var(--ardoise); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 17px/1.4 var(--sans); color: var(--os); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blanc); }
.faq__item summary i { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--fer); border-radius: var(--r-petit); transition: transform .4s var(--courbe), background-color .3s, border-color .3s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; translate: -50% -50%; transition: transform .4s var(--courbe); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--cordeau-plein); border-color: var(--cordeau-plein); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__reponse { overflow: hidden; }
.faq__reponse p { margin: 0 0 20px; color: var(--brume); }

/* Encadré auteur (classes du plugin Fiche Auteur) */
.fa-encadre { display: flex; gap: 24px; margin-top: 3em; padding: 28px; border: 1px solid var(--ardoise); border-radius: var(--r-carte); background: var(--graphite); }
.fa-encadre p { margin: 0 0 6px; }
.fa-etiquette { font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fumee); }
.fa-nom { font: 400 24px/1.2 var(--serif); }
.fa-nom a { color: var(--os) !important; text-decoration: none !important; }
.fa-poste { font: 500 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--os); }
.fa-activite { font-size: 15px; color: var(--brume); }
.fa-specialisations { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px !important; }
.fa-encadre .lien-fleche { color: var(--os); text-decoration: none; }
.fa-photo { width: 88px; }
@media (max-width: 560px) { .fa-encadre { flex-direction: column; } }

.similaires__liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; perspective: 1200px; }

@media (max-width: 1024px) {
	.article-grille { grid-template-columns: minmax(0, 1fr); }
	.sommaire { position: static; }
	.sommaire__boite:not([open]) ol { display: none; }
	.similaires__liste { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Teinte de la rubrique dans les articles : jaune Travaux, violet Maison, vert Jardin, bleu Énergie.
   Le bleu cordeau reste celui des liens et des Actualités. */
.rub { --teinte: var(--cordeau); --teinte-rgb: 43, 127, 255; }
.rub-travaux { --teinte: #f2c14e; --teinte-rgb: 242, 193, 78; }
.rub-maison { --teinte: #a98bff; --teinte-rgb: 169, 139, 255; }
.rub-jardin { --teinte: #4cc38a; --teinte-rgb: 76, 195, 138; }
.rub-energie { --teinte: #4d9bff; --teinte-rgb: 77, 155, 255; }
.rub .article-corps > h2::before, .rub .faq > h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--teinte); }
.rub .article-corps li::marker { color: var(--teinte); }
.rub .resume { border-color: rgba(var(--teinte-rgb), .35); background: linear-gradient(120deg, rgba(var(--teinte-rgb), .10), var(--graphite) 55%); }
.rub .resume::before { width: 3px; background: var(--teinte); }
.rub .resume__titre { color: var(--teinte); }
.rub .conseil { border-color: rgba(var(--teinte-rgb), .45); background: linear-gradient(180deg, rgba(var(--teinte-rgb), .16), rgba(var(--teinte-rgb), .04) 70%), var(--graphite); box-shadow: 0 30px 60px -40px rgba(var(--teinte-rgb), .55); }
.rub .conseil::before {
	background:
		repeating-linear-gradient(90deg, rgba(var(--teinte-rgb), .55) 0 1px, transparent 1px 10px) top / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, rgba(var(--teinte-rgb), .95) 0 1px, transparent 1px 50px) top / 100% 10px no-repeat;
}
.rub .conseil__titre { color: var(--teinte); }
.rub .vigilance { border-left: 3px solid var(--teinte); }
.rub .vigilance__titre .icone { color: var(--teinte); }
.rub .faq__item summary:hover i { border-color: var(--teinte); }
.rub .faq__item[open] summary i { background: var(--teinte); border-color: var(--teinte); color: var(--obsidienne); }
.rub .sommaire a::after { background: var(--teinte); }
.rub .sommaire a.est-actif::before { color: var(--teinte); }
.rub .fa-encadre { border-top: 2px solid var(--teinte); }

/* Questionnaire « Avis Lecteurs » : accord avec l'identité du site (variables --al-* et retouches, sans toucher au plugin).
   Sélecteurs préfixés par .article-corps : la feuille du plugin est chargée après celle du thème. */
.article-corps .al {
	--al-trait: var(--os);
	--al-fond: var(--graphite);
	--al-texte: var(--os);
	--al-accent: var(--cordeau-plein);
	--al-sur-accent: var(--blanc);
	--al-bordure: 1px;
	--al-rayon: var(--r-carte);
	--al-rayon-petit: var(--r-petit);
	font-size: 16px; border-color: var(--fer);
}
.article-corps .al .al__titre { font: 400 24px/1.25 var(--serif); letter-spacing: -.02em; margin: 0 0 .3em; scroll-margin-top: 96px; }
.article-corps .al .al__option span { border-color: var(--fer); border-radius: var(--r-petit); }
.article-corps .al .al__option:hover span { border-color: var(--etain); background: var(--ardoise); }
.article-corps .al .al__option input:checked + span { border-color: var(--al-accent); }
.article-corps .al .al__jauge, .al .al__barre-piste { border-color: var(--fer); border-radius: 2px; }
.article-corps .al .al__envoyer { border-radius: var(--r-petit); background: var(--os); border-color: var(--os); color: var(--carbone); }
.article-corps .al .al__envoyer:hover { background: var(--cordeau-plein); border-color: var(--cordeau-plein); color: var(--blanc); }
.article-corps .al textarea { border-color: var(--fer); background: var(--carbone); }
.article-corps .al .al__etoile span[aria-hidden] { -webkit-text-stroke-color: var(--etain); }
.article-corps .al .al__moyenne strong { border-radius: var(--r-petit); font-family: var(--mono); }
.article-corps .al .al__voir-icone { border-radius: var(--r-petit); border-color: var(--fer); }
.article-corps .al .al__temoignages { border-top-color: var(--fer); }
.proto-note { margin: 1.2em 0 0; padding-top: 12px; border-top: 1px dashed var(--fer); font: 400 11px/1.5 var(--mono); color: var(--fumee); }
.proto-note__btn { padding: 0; border: 0; background: none; color: var(--cordeau); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- pages simples, formulaire, recherche */

.texte-page { max-width: 1060px; font-size: 17px; line-height: 1.7; color: var(--cendre); }
.texte-page h2 { margin: 1.8em 0 .6em; font: 400 26px/1.25 var(--serif); color: var(--os); }
.texte-page a { color: var(--cordeau); }
.texte-page .chapo { margin-bottom: 1.5em; }
.texte-page .profil a, .texte-page .lien-fleche, .texte-page .badge { color: var(--os); }
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ--large { grid-column: 1 / -1; }
.champ label { font: 500 12px var(--sans); letter-spacing: .04em; color: var(--brume); }
.champ input, .champ textarea, .recherche input {
	width: 100%; padding: 12px; border: 1px solid var(--fer); border-radius: var(--r-petit); background: var(--graphite); color: var(--os); font: 400 15px/1.4 var(--sans);
	transition: border-color .2s, box-shadow .2s;
}
.champ input::placeholder, .champ textarea::placeholder, .recherche input::placeholder { color: var(--fumee); }
.champ input:focus, .champ textarea:focus, .recherche input:focus { outline: none; border-color: var(--cordeau); box-shadow: 0 0 0 2px rgba(43, 127, 255, .35); }
.formulaire__retour { margin: 0; font-size: 14px; color: var(--brume); }
.contact__infos { padding: 24px; border: 1px solid var(--ardoise); border-radius: var(--r-carte); background: var(--graphite); font-size: 15px; }
.contact__infos .etiquette { margin-top: 8px; }
.plan__groupe { margin-bottom: 40px; }
.plan__groupe h2 { display: flex; align-items: baseline; gap: 12px; margin-top: 0; }
.plan__groupe h2 a { color: var(--os); text-decoration: none; }
.plan__groupe small { font: 400 12px var(--mono); color: var(--fumee); }
.plan__liste, .plan__pages { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ardoise); }
.plan__liste li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--ardoise); font-size: 15px; }
.plan__liste a, .plan__pages a { color: var(--os); text-decoration: none; }
.plan__liste a:hover, .plan__pages a:hover { text-decoration: underline; }
.plan__liste time { flex: none; font: 400 12px var(--mono); color: var(--fumee); }
.plan__pages { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; border: 0; }
.recherche { display: flex; gap: 12px; margin-bottom: 16px; }
.recherche__champ { position: relative; flex: 1; }
.recherche__champ .icone { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--brume); }
.recherche input { padding-left: 42px; font-size: 16px; }
.recherche__resultats { margin: 24px 0 0; padding: 0; list-style: none; }
.recherche__resultats li { padding: 18px 0; border-bottom: 1px solid var(--ardoise); }
.recherche__resultats a { font: 400 20px/1.3 var(--serif); color: var(--os); text-decoration: none; }
.recherche__resultats a:hover { text-decoration: underline; }
.recherche__resultats p { margin: 6px 0 0; font-size: 14px; color: var(--brume); }
.recherche__resultats mark { background: rgba(43, 127, 255, .25); color: var(--blanc); border-radius: 2px; }
.recherche__meta { font: 400 11px var(--mono) !important; color: var(--fumee) !important; }
@media (max-width: 760px) { .contact, .formulaire { grid-template-columns: 1fr; } .recherche { flex-direction: column; } }

.erreur { min-height: 70vh; display: grid; align-items: center; }
.erreur__in { position: relative; display: grid; justify-items: start; }
.erreur__code { position: absolute; right: var(--gouttiere); top: 50%; transform: translateY(-50%) rotate(-4deg); margin: 0; font: 400 clamp(120px, 24vw, 320px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--fer); pointer-events: none; }

/* ---------------------------------------------------------------- pied de page */

.pied { background: var(--obsidienne); border-top: 1px solid var(--graphite); padding-bottom: 32px; color: var(--brume); font-size: 13px; overflow: hidden; }
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr 1.6fr; gap: 40px; padding-top: 48px; }
.pied__marque p { margin: 16px 0 0; max-width: 28em; }
.pied__titre { margin: 0 0 14px; font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--os); }
.pied ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pied a { color: var(--brume); text-decoration: none; }
.pied a:hover { color: var(--os); }
.pied .logo, .pied .lien-mail { color: var(--os); }
.pied__auteur { display: flex; align-items: center; gap: 12px; }
.pied__auteur span { display: grid; gap: 2px; }
.pied__auteur .auteur-lien { color: var(--os); font-size: 14px; }
.pied__auteur small { font-size: 12px; color: var(--fumee); }
.pied__geant { margin-top: 64px; }
.pied__geant p { margin: 0; font: 400 clamp(40px, 9.6vw, 140px)/.9 var(--serif); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--fer); white-space: nowrap; text-align: center; transition: color 1.2s; }
.pied__geant:hover p { color: var(--graphite); }
.regle--pied { margin-top: 16px; }
.pied__bas { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font: 400 11px var(--mono); letter-spacing: .06em; color: var(--fumee); }
.pied__bas p { margin: 0; }
@media (max-width: 1020px) { .pied__grille { grid-template-columns: 1fr 1fr; } .pied__marque, .pied__redaction { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pied__grille { grid-template-columns: 1fr; } .pied__bas { flex-direction: column; } }

/* ---------------------------------------------------------------- responsive général */

@media (max-width: 1100px) {
	.tuiles { grid-template-columns: repeat(3, 1fr); }
	.partage { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.rangee__cartes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
	.rangee__cartes > * { scroll-snap-align: start; }
	.profils { grid-template-columns: 1fr; }
	.tete-rubrique__in { grid-template-columns: 1fr; }
	.tete-rubrique__dessin { max-width: 380px; }
}
@media (max-width: 640px) {
	.tuiles { grid-template-columns: repeat(2, 1fr); }
	.tuile:last-child { grid-column: 1 / -1; }
	.partage__visuel { padding: 0 0 120px 0; }
	.fiche { width: 94%; left: 3%; }
	.fiche__corps { grid-template-columns: 1fr; }
	.fiche__cote { display: none; }
	.profil { flex-direction: column; }
	.niveau { aspect-ratio: 980 / 320; width: 130%; margin-left: -15%; }
	.heros { min-height: auto; }
	.heros__laser { display: none; }
}

/* ---------------------------------------------------------------- mouvement réduit */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
	.grain { animation: none; }
	.js [data-reveal], .js [data-frappe] { opacity: 1; transform: none; }
	.js [data-lignes] .ligne > span { transform: none; }
	.js .trace { stroke-dashoffset: 0; }
	.heros__laser { display: none; }
}

/* en-têtes de rubrique et d'auteur : texte aligné à gauche */
.tete-rubrique .heros__sous, .tete-auteur .heros__sous, .erreur .heros__sous { margin-inline: 0; }
.erreur .heros__actions { justify-content: flex-start; }
