@charset "UTF-8";

/* =========================================================================
   CasinoHebdo — thème Dotclear 2 (tplset dotty)
   Direction : recto/verso. Chrome = dos de carte (encre), contenu = carton.
   Signature : index d'angle de carte à jouer sur chaque article.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Jetons
   ------------------------------------------------------------------------- */

:root {
	/* Encre : le dos de la carte */
	--ch-encre:        #12233a;
	--ch-encre-fonce:  #0c1725;
	--ch-encre-clair:  #1c3653;

	/* Carton : la face de la carte */
	--ch-carton:       #f4efe4;
	--ch-carton-pur:   #fffdf8;
	--ch-carton-creux: #e9e2d2;

	/* Encres d'impression */
	--ch-graphite:     #1a1a19;
	--ch-graphite-mid: #565349;
	--ch-cinabre:      #c2291f;
	--ch-cinabre-sombre: #99201a;
	--ch-laiton:       #a88b4a;

	/* Filets */
	--ch-filet:        rgba(26, 26, 25, .14);
	--ch-filet-laiton: rgba(168, 139, 74, .45);
	--ch-filet-encre:  rgba(244, 239, 228, .16);

	/* Fontes */
	--ch-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
	--ch-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ch-data:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* Rythme */
	--ch-gouttiere: clamp(1rem, 4vw, 2.5rem);
	--ch-largeur:   1180px;
	--ch-mesure:    68ch;
	--ch-rayon:     3px;

	/* Ombres : très sèches, comme une carte posée sur le tapis */
	--ch-ombre:     0 1px 0 rgba(26, 26, 25, .06), 0 8px 24px -18px rgba(18, 35, 58, .5);
	--ch-ombre-fort: 0 2px 0 rgba(26, 26, 25, .07), 0 22px 44px -26px rgba(18, 35, 58, .55);

	/* Guilloché du dos de carte */
	--ch-guilloche:
		repeating-linear-gradient(58deg, rgba(244, 239, 228, .045) 0 1px, transparent 1px 9px),
		repeating-linear-gradient(-58deg, rgba(244, 239, 228, .045) 0 1px, transparent 1px 9px);
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ch-carton);
	color: var(--ch-graphite);
	font: 400 1.0625rem/1.65 var(--ch-texte);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { border: 0; }

a {
	color: var(--ch-cinabre-sombre);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover, a:focus-visible { color: var(--ch-cinabre); }

:focus-visible {
	outline: 2px solid var(--ch-cinabre);
	outline-offset: 2px;
}

hr {
	height: 0;
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--ch-filet);
}

/* -------------------------------------------------------------------------
   3. Typographie
   ------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-family: var(--ch-titre);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.012em;
	text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p, ul, ol, dl, blockquote, pre, table, figure { margin: 0 0 1.15em; }

blockquote {
	padding: .2rem 0 .2rem 1.4rem;
	border-left: 3px solid var(--ch-laiton);
	color: var(--ch-graphite-mid);
	font-family: var(--ch-titre);
	font-size: 1.1em;
	font-style: italic;
}

code, kbd, pre, samp { font-family: var(--ch-data); font-size: .92em; }

pre {
	padding: 1rem 1.15rem;
	overflow-x: auto;
	background: var(--ch-encre);
	border-radius: var(--ch-rayon);
	color: var(--ch-carton);
}

/* Œil-de-bœuf : la petite étiquette monospace qui nomme chaque zone */
.ch-eyebrow {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0 0 1.15rem;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ch-eyebrow::after {
	flex: 1 1 auto;
	height: 1px;
	background: var(--ch-filet-laiton);
	content: "";
}

.ch-eyebrow a { color: inherit; text-decoration: none; }
.ch-eyebrow a:hover { color: var(--ch-cinabre); }

.visually-hidden, .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
   4. Gabarit
   ------------------------------------------------------------------------- */

.ch-shell {
	width: 100%;
	max-width: var(--ch-largeur);
	margin-inline: auto;
	padding-inline: var(--ch-gouttiere);
}

.wrapper {
	max-width: var(--ch-largeur);
	margin: 0 auto;
	padding: 2.5rem var(--ch-gouttiere) 4rem;
}

.main { min-width: 0; }

@media (min-width: 62rem) {
	.wrapper {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 19rem;
		gap: clamp(2rem, 4vw, 3.5rem);
		align-items: start;
	}

	body.ch-plein .wrapper { display: block; }
}

/* -------------------------------------------------------------------------
   5. Chrome — liens d'évitement, bandeau légal
   ------------------------------------------------------------------------- */

.skip-links {
	position: absolute;
	left: -9999px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.skip-links a:focus {
	position: fixed;
	top: .5rem;
	left: .5rem;
	z-index: 200;
	padding: .55rem .9rem;
	background: var(--ch-cinabre);
	color: #fff;
	font-family: var(--ch-data);
	font-size: .8rem;
	text-decoration: none;
}

.ch-rail {
	background: var(--ch-encre-fonce);
	color: rgba(244, 239, 228, .82);
	font-family: var(--ch-data);
	font-size: .72rem;
	letter-spacing: .04em;
}

.ch-rail__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.1rem;
	min-height: 2.4rem;
	padding-block: .45rem;
}

.ch-rail a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--ch-filet-laiton); }
.ch-rail a:hover { color: var(--ch-laiton); }

.ch-age {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	padding: .1rem .35rem;
	background: var(--ch-cinabre);
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0;
}

.ch-rail__sep { color: var(--ch-laiton); }

/* -------------------------------------------------------------------------
   6. Chrome — grande manchette
   ------------------------------------------------------------------------- */

.header { position: relative; }

.banner {
	position: relative;
	padding-block: clamp(1.8rem, 5vw, 3.1rem);
	background-color: var(--ch-encre);
	background-image: var(--ch-guilloche);
	border-bottom: 1px solid var(--ch-filet-laiton);
	color: var(--ch-carton);
	text-align: center;
}

.banner::before,
.banner::after {
	position: absolute;
	right: var(--ch-gouttiere);
	left: var(--ch-gouttiere);
	height: 1px;
	background: var(--ch-filet-laiton);
	content: "";
}

.banner::before { top: .85rem; }
.banner::after { bottom: .85rem; }

.site-title {
	margin: 0;
	font-size: clamp(2.2rem, 8vw, 4.15rem);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1;
}

.site-title__link { color: inherit; text-decoration: none; }
.site-title__link:hover { color: var(--ch-carton); }
.site-title__link:hover .site-title__text { border-bottom-color: var(--ch-laiton); }

.site-title__text {
	border-bottom: 2px solid transparent;
	transition: border-color .2s ease;
}

.site-baseline {
	max-width: 46ch;
	margin: .9rem auto 0;
	color: rgba(244, 239, 228, .72);
	font-family: var(--ch-data);
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1.7;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   7. Chrome — navigation
   ------------------------------------------------------------------------- */

.ch-nav {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--ch-encre-fonce);
	border-bottom: 1px solid var(--ch-filet-encre);
	box-shadow: 0 10px 26px -22px rgba(0, 0, 0, .9);
}

.ch-nav__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 3.25rem;
}

.ch-nav__burger {
	display: none;
	align-items: center;
	gap: .55rem;
	padding: .5rem .8rem;
	background: transparent;
	border: 1px solid var(--ch-filet-encre);
	border-radius: var(--ch-rayon);
	color: var(--ch-carton);
	font-family: var(--ch-data);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

.ch-nav__burger:hover { border-color: var(--ch-laiton); color: var(--ch-laiton); }

.ch-nav__burger span {
	position: relative;
	display: block;
	width: 15px;
	height: 1.5px;
	background: currentcolor;
}

.ch-nav__burger span::before,
.ch-nav__burger span::after {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentcolor;
	content: "";
}

.ch-nav__burger span::before { top: -5px; }
.ch-nav__burger span::after { top: 5px; }

/* Menu simple de Dotclear */
.simple-menu-navigation { flex: 1 1 auto; min-width: 0; }

ul.simple-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	list-style: none;
}

ul.simple-menu::-webkit-scrollbar { display: none; }

ul.simple-menu li { margin: 0; }

ul.simple-menu a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 1rem .8rem;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	color: rgba(244, 239, 228, .88);
	font-family: var(--ch-data);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .13em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .18s ease, border-color .18s ease;
}

ul.simple-menu a:hover { color: #fff; border-bottom-color: var(--ch-laiton); }
ul.simple-menu li.active a { color: #fff; border-bottom-color: var(--ch-cinabre); }

/* Recherche du bandeau */
.ch-search {
	display: flex;
	flex: 0 1 auto;
	min-width: 0;
	align-items: center;
	gap: 0;
	margin: 0;
}

.ch-search__field {
	width: 9.5rem;
	min-width: 0;
	padding: .45rem .7rem;
	background: rgba(244, 239, 228, .08);
	border: 1px solid var(--ch-filet-encre);
	border-right: 0;
	border-radius: var(--ch-rayon) 0 0 var(--ch-rayon);
	color: var(--ch-carton);
	font-family: var(--ch-data);
	font-size: .78rem;
	transition: width .22s ease, background .22s ease;
}

.ch-search__field::placeholder { color: rgba(244, 239, 228, .45); }
.ch-search__field:focus { width: 12.5rem; background: rgba(244, 239, 228, .14); outline-offset: -2px; }

.ch-search__go {
	padding: .45rem .8rem;
	background: var(--ch-laiton);
	border: 1px solid var(--ch-laiton);
	border-radius: 0 var(--ch-rayon) var(--ch-rayon) 0;
	color: var(--ch-encre-fonce);
	font-family: var(--ch-data);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

.ch-search__go:hover { background: var(--ch-cinabre); border-color: var(--ch-cinabre); color: #fff; }

@media (max-width: 61.99rem) {
	.ch-nav__burger { display: inline-flex; }

	.simple-menu-navigation {
		display: none;
		order: 3;
		flex: 1 0 100%;
	}

	.simple-menu-navigation.is-open { display: block; }

	ul.simple-menu { flex-direction: column; overflow-x: visible; padding-bottom: .6rem; }

	ul.simple-menu a {
		padding: .8rem .2rem;
		border-bottom: 1px solid var(--ch-filet-encre);
	}

	ul.simple-menu li.active a { border-bottom-color: var(--ch-cinabre); }
	.ch-nav__inner { flex-wrap: wrap; }
	.ch-search { flex: 1 1 auto; justify-content: flex-end; }
	.ch-search__field { width: 100%; max-width: 12rem; }
}

/* -------------------------------------------------------------------------
   8. Fil d'Ariane
   ------------------------------------------------------------------------- */

.breadcrumb {
	margin: 0 0 1.6rem;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .74rem;
	letter-spacing: .04em;
}

.breadcrumb a { color: inherit; }

/* -------------------------------------------------------------------------
   9. La signature : l'index d'angle de carte
   ------------------------------------------------------------------------- */

.ch-index {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 3.1rem;
	padding: .4rem .2rem .35rem;
	background: var(--ch-carton-pur);
	border-right: 1px solid var(--ch-filet-laiton);
	border-bottom: 1px solid var(--ch-filet-laiton);
	color: var(--ch-encre);
	font-family: var(--ch-data);
	line-height: 1;
	text-align: center;
}

.ch-index__jour {
	display: block;
	font-size: 1.32rem;
	font-weight: 700;
	letter-spacing: -.03em;
}

.ch-index__mois {
	display: block;
	margin-top: .18rem;
	color: var(--ch-cinabre);
	font-size: .56rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ch-index__an {
	display: block;
	margin-top: .1rem;
	color: var(--ch-graphite-mid);
	font-size: .54rem;
	letter-spacing: .08em;
}

/* -------------------------------------------------------------------------
   10. Cartes d'article
   ------------------------------------------------------------------------- */

.ch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: clamp(1.1rem, 2.4vw, 1.8rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.post.short,
.ch-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
	box-shadow: var(--ch-ombre);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post.short:hover,
.ch-card:hover {
	transform: translateY(-3px);
	border-color: var(--ch-filet-laiton);
	box-shadow: var(--ch-ombre-fort);
}

.ch-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--ch-carton-creux);
	border-bottom: 1px solid var(--ch-filet);
}

.ch-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.post.short:hover .ch-card__media img,
.ch-card:hover .ch-card__media img { transform: scale(1.035); }

.ch-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.15rem 1.25rem 1.25rem;
}

.ch-card__cat {
	margin: 0 0 .55rem;
	font-family: var(--ch-data);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ch-card__cat a { color: var(--ch-laiton); text-decoration: none; }
.ch-card__cat a:hover { color: var(--ch-cinabre); text-decoration: underline; }

.post-title {
	margin: 0 0 .6rem;
	font-size: 1.22rem;
	line-height: 1.24;
}

.post-title a { color: var(--ch-encre); text-decoration: none; }
.post-title a:hover { color: var(--ch-cinabre); }

.ch-card__chapo,
.post.short .post-content {
	margin: 0 0 1rem;
	color: var(--ch-graphite-mid);
	font-size: .94rem;
	line-height: 1.6;
}

.ch-card__chapo p:last-child,
.post.short .post-content p:last-child { margin-bottom: 0; }

.ch-card__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .8rem;
	margin-top: auto;
	padding-top: .85rem;
	border-top: 1px solid var(--ch-filet);
}

.ch-card__lire,
.post-read-it a {
	color: var(--ch-cinabre-sombre);
	font-family: var(--ch-data);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.ch-card__lire:hover, .post-read-it a:hover { color: var(--ch-cinabre); text-decoration: underline; }
.ch-card__lire::after { content: " →"; }

.post.short .post-icon { display: none; }
.post.short .post-day-date { display: none; }
.post.short .post-info { display: none; }
.post.short .post-meta { padding: 0 1.25rem 1.1rem; }
.post.short .post-read-it { margin: 0; }

.post-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-tags-item a {
	display: inline-block;
	padding: .16rem .5rem;
	background: var(--ch-carton-creux);
	border-radius: 999px;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .68rem;
	letter-spacing: .04em;
	text-decoration: none;
}

.post-tags-item a:hover { background: var(--ch-encre); color: var(--ch-carton); }

.post-info-co {
	margin: .6rem 0 0;
	font-family: var(--ch-data);
	font-size: .7rem;
}

/* -------------------------------------------------------------------------
   11. Grille magazine : la premiere carte tient la une
   ------------------------------------------------------------------------- */

.ch-section { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.ch-section:last-child { margin-bottom: 0; }

.ch-card__media--dos {
	background-color: var(--ch-encre);
	background-image: var(--ch-guilloche);
	border-bottom-color: var(--ch-filet-laiton);
}

.ch-card__date {
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .68rem;
	letter-spacing: .04em;
	white-space: nowrap;
}

@media (min-width: 54rem) {
	.ch-grid--une { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.ch-grid--une > .post:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.ch-grid--une > .post:first-child .ch-card__media { aspect-ratio: 16 / 10; }
	.ch-grid--une > .post:first-child .ch-card__body { padding: 1.5rem clamp(1.4rem, 2.6vw, 2rem) 1.7rem; }
	.ch-grid--une > .post:first-child .ch-index { width: 3.6rem; padding-block: .55rem .5rem; }
	.ch-grid--une > .post:first-child .ch-index__jour { font-size: 1.6rem; }

	.ch-grid--une > .post:first-child .post-title {
		font-size: clamp(1.55rem, 3vw, 2.1rem);
		line-height: 1.14;
	}

	.ch-grid--une > .post:first-child .ch-card__chapo { max-width: 52ch; font-size: 1.02rem; }
	.ch-grid--une > .post:nth-child(n+2) .ch-card__chapo { display: none; }
	.ch-grid--une > .post:nth-child(n+2) .ch-card__media { aspect-ratio: 2 / 1; }
}

/* -------------------------------------------------------------------------
   12. Accueil — les guides permanents
   ------------------------------------------------------------------------- */

.ch-guides {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	background: var(--ch-carton-pur);
	border-top: 1px solid var(--ch-filet-laiton);
	border-left: 1px solid var(--ch-filet-laiton);
	list-style: none;
}

.ch-guides > li {
	border-right: 1px solid var(--ch-filet-laiton);
	border-bottom: 1px solid var(--ch-filet-laiton);
}

@media (min-width: 34rem) {
	.ch-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 54rem) {
	.ch-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ch-guides__link {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	height: 100%;
	padding: 1.15rem 1.2rem 1.25rem;
	background: var(--ch-carton-pur);
	color: inherit;
	text-decoration: none;
	transition: background .18s ease;
}

.ch-guides__link:hover { background: var(--ch-encre); color: var(--ch-carton); }
.ch-guides__link:hover .ch-guides__num { color: var(--ch-laiton); }
.ch-guides__link:hover .ch-guides__title { color: var(--ch-carton); }

.ch-guides__num {
	color: var(--ch-laiton);
	font-family: var(--ch-data);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ch-guides__title {
	margin: 0;
	color: var(--ch-encre);
	font-family: var(--ch-titre);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.25;
}

/* -------------------------------------------------------------------------
   13. Accueil — bande prévention
   ------------------------------------------------------------------------- */

.ch-prevention {
	margin: clamp(2.6rem, 5vw, 4rem) 0 0;
	padding-block: clamp(2rem, 4.5vw, 3.2rem);
	background-color: var(--ch-encre);
	background-image: var(--ch-guilloche);
	border-top: 1px solid var(--ch-filet-laiton);
	border-bottom: 1px solid var(--ch-filet-laiton);
	color: var(--ch-carton);
}

.ch-prevention__inner {
	display: grid;
	gap: 1.4rem clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

@media (min-width: 48rem) {
	.ch-prevention__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

.ch-prevention .ch-eyebrow { color: var(--ch-laiton); }
.ch-prevention .ch-eyebrow::after { background: var(--ch-filet-encre); }

.ch-prevention h2 {
	margin: 0 0 .5rem;
	color: var(--ch-carton);
	font-size: clamp(1.4rem, 2.8vw, 1.85rem);
}

.ch-prevention p {
	max-width: 62ch;
	margin: 0;
	color: rgba(244, 239, 228, .78);
	font-size: .98rem;
}

.ch-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.35rem;
	background: var(--ch-cinabre);
	border: 1px solid var(--ch-cinabre);
	border-radius: var(--ch-rayon);
	color: #fff;
	font-family: var(--ch-data);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .18s ease, transform .18s ease;
}

.ch-btn:hover { background: var(--ch-cinabre-sombre); color: #fff; transform: translateY(-1px); }

.ch-btn--fantome {
	background: transparent;
	border-color: var(--ch-filet-laiton);
	color: var(--ch-carton);
}

.ch-btn--fantome:hover { background: rgba(244, 239, 228, .1); border-color: var(--ch-laiton); color: #fff; }

/* -------------------------------------------------------------------------
   14. En-tête de rubrique (catégorie, tag, recherche, archives)
   ------------------------------------------------------------------------- */

.content-info {
	margin: 0 0 2rem;
	padding: 0 0 1.4rem;
	border-bottom: 2px solid var(--ch-encre);
}

.content-info h2 {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.content-info h2 a { color: var(--ch-graphite-mid); text-decoration: none; }
.content-info h2 a:hover { color: var(--ch-cinabre); }

.content-info__cat-desc {
	max-width: var(--ch-mesure);
	margin-top: .9rem;
	color: var(--ch-graphite-mid);
}

.content-info__feed,
.feeds {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.1rem;
	margin: .9rem 0 0;
	padding: 0;
	list-style: none;
}

.feeds a,
a.feed {
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.content-info__sub-cat { margin-top: 1.3rem; }

.content-info__sub-cat h3 {
	font-family: var(--ch-data);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.content-info__sub-cat ul {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.content-info__sub-cat a {
	display: inline-block;
	padding: .3rem .75rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: 999px;
	color: var(--ch-encre);
	font-size: .85rem;
	text-decoration: none;
}

.content-info__sub-cat a:hover { border-color: var(--ch-laiton); color: var(--ch-cinabre); }

/* Grilles de listes héritées du jeu de gabarits */
body.dc-category .content-inner,
body.dc-tag .content-inner,
body.dc-search .content-inner,
body.dc-archive-month .content-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: clamp(1.1rem, 2.4vw, 1.8rem);
}

body.dc-category .content-inner .pagination,
body.dc-tag .content-inner .pagination,
body.dc-search .content-inner .pagination { grid-column: 1 / -1; }

/* -------------------------------------------------------------------------
   15. Article et page
   ------------------------------------------------------------------------- */

.post.simple {
	max-width: none;
	margin: 0;
	padding: 0;
}

.post.simple > header {
	padding-bottom: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--ch-encre);
}

.post.simple .post-title {
	margin: 0 0 1rem;
	font-size: clamp(1.85rem, 4.4vw, 2.85rem);
	line-height: 1.1;
}

.post.simple .post-meta { margin: 0; }

.post-info {
	margin: 0;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .74rem;
	letter-spacing: .04em;
}

.post-info a { color: var(--ch-graphite-mid); }
.post-info a:hover { color: var(--ch-cinabre); }
.post-info .post-author { display: none; }

.post.simple .post-tags-list { margin-top: .9rem; }

.post-excerpt {
	max-width: var(--ch-mesure);
	margin-bottom: 1.8rem;
	padding-left: 1.2rem;
	border-left: 3px solid var(--ch-cinabre);
	color: var(--ch-graphite);
	font-family: var(--ch-titre);
	font-size: 1.2rem;
	line-height: 1.5;
}

.post-excerpt p:last-child { margin-bottom: 0; }

.post.simple .post-content {
	max-width: var(--ch-mesure);
	font-size: 1.09rem;
	line-height: 1.72;
}

.post.simple .post-content h2 {
	margin-top: 2.4rem;
	padding-top: .9rem;
	border-top: 1px solid var(--ch-filet-laiton);
	font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.post.simple .post-content h3 { margin-top: 1.9rem; }
.post.simple .post-content ul, .post.simple .post-content ol { padding-left: 1.35rem; }
.post.simple .post-content li { margin-bottom: .4rem; }

.post.simple .post-content img {
	border-radius: var(--ch-rayon);
	box-shadow: var(--ch-ombre);
}

.post.simple .post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .96rem;
}

.post.simple .post-content th,
.post.simple .post-content td {
	padding: .6rem .75rem;
	border-bottom: 1px solid var(--ch-filet);
	text-align: left;
}

.post.simple .post-content th {
	background: var(--ch-encre);
	color: var(--ch-carton);
	font-family: var(--ch-data);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.post-attachments {
	max-width: var(--ch-mesure);
	margin-top: 2.2rem;
	padding: 1.1rem 1.3rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
}

.post-attachments-title {
	margin: 0 0 .6rem;
	font-family: var(--ch-data);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.post-attachments-list { margin: 0; padding-left: 1.1rem; }

/* Navigation article précédent / suivant */
.navlinks {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	justify-content: space-between;
	margin: 2.6rem 0 0;
	padding-top: 1.4rem;
	border-top: 1px solid var(--ch-filet-laiton);
	font-family: var(--ch-data);
	font-size: .76rem;
}

.navlinks.topnl {
	margin: 0 0 2rem;
	padding: 0 0 1.2rem;
	border-top: 0;
	border-bottom: 1px solid var(--ch-filet);
}

.navlinks a {
	max-width: 22rem;
	color: var(--ch-graphite-mid);
	text-decoration: none;
}

.navlinks a:hover { color: var(--ch-cinabre); text-decoration: underline; }
.navlinks .navlinks-separator { display: none; }

/* -------------------------------------------------------------------------
   16. Commentaires et formulaires
   ------------------------------------------------------------------------- */

.post-feedback {
	max-width: var(--ch-mesure);
	margin-top: 3rem;
}

.post-feedback h3 {
	font-size: 1.2rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--ch-filet-laiton);
}

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

.comments-list > li {
	margin-bottom: 1.1rem;
	padding: 1rem 1.2rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-left: 3px solid var(--ch-laiton);
	border-radius: var(--ch-rayon);
}

.comments-list > li.me { border-left-color: var(--ch-cinabre); }

.comment-info {
	margin: 0 0 .5rem;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .72rem;
}

.comment-number {
	display: inline-block;
	margin-right: .4rem;
	padding: .05rem .4rem;
	background: var(--ch-encre);
	border-radius: 2px;
	color: var(--ch-carton);
	text-decoration: none;
}

.comment-content p:last-child { margin-bottom: 0; }

.comment-form { margin-top: 2rem; }
.form-help { color: var(--ch-graphite-mid); font-size: .85rem; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }

.field label {
	font-family: var(--ch-data);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.field label span { color: var(--ch-cinabre); }

input[type="text"], input[type="email"], input[type="url"], textarea {
	width: 100%;
	max-width: 34rem;
	padding: .6rem .75rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
	color: var(--ch-graphite);
	font: inherit;
	font-size: .98rem;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, textarea:focus { border-color: var(--ch-laiton); }
textarea { min-height: 9rem; resize: vertical; }

.buttons { display: flex; gap: .6rem; }

button, .submit, .preview {
	padding: .65rem 1.2rem;
	background: var(--ch-encre);
	border: 1px solid var(--ch-encre);
	border-radius: var(--ch-rayon);
	color: var(--ch-carton);
	font-family: var(--ch-data);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}

button:hover { background: var(--ch-cinabre); border-color: var(--ch-cinabre); color: #fff; }
button.preview { background: transparent; color: var(--ch-encre); }
button.preview:hover { background: var(--ch-encre); color: var(--ch-carton); }

.comment-form-message .message,
.comment-form-message .error {
	padding: .8rem 1rem;
	border-radius: var(--ch-rayon);
	font-size: .95rem;
}

.comment-form-message .message { background: rgba(168, 139, 74, .16); border: 1px solid var(--ch-filet-laiton); }
.comment-form-message .error { background: rgba(194, 41, 31, .1); border: 1px solid var(--ch-cinabre); color: var(--ch-cinabre-sombre); }

.send-ping, .ping-url { font-family: var(--ch-data); font-size: .74rem; word-break: break-all; }

/* -------------------------------------------------------------------------
   17. Colonne latérale et widgets
   ------------------------------------------------------------------------- */

.sidebar {
	min-width: 0;
	font-size: .96rem;
}

@media (min-width: 62rem) {
	.sidebar {
		position: sticky;
		top: 4.5rem;
	}
}

.ch-promo { margin-bottom: 1.8rem; }

.ch-promo__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 .4rem;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ch-promo__label span:last-child {
	padding: .05rem .4rem;
	background: var(--ch-cinabre);
	border-radius: 999px;
	color: #fff;
	letter-spacing: 0;
}

.ch-promo__link {
	display: block;
	overflow: hidden;
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
	line-height: 0;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ch-promo__link:hover {
	border-color: var(--ch-laiton);
	box-shadow: var(--ch-ombre-fort);
}

.ch-promo__link img { width: 100%; height: auto; }

.ch-promo__note {
	margin: .45rem 0 0;
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .62rem;
	line-height: 1.55;
}

.sidebar .blognav__title,
.sidebar .blogextra__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.widget {
	margin-bottom: 1.6rem;
	padding: 1.1rem 1.2rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
}

.widget h3 {
	margin: 0 0 .8rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--ch-filet-laiton);
	color: var(--ch-encre);
	font-family: var(--ch-data);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.widget h4 { font-size: .95rem; }

.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: .35rem 0; border-bottom: 1px solid var(--ch-filet); }
.widget li:last-child { border-bottom: 0; }
.widget li ul { padding-left: .9rem; }

.widget a { color: var(--ch-encre); text-decoration: none; }
.widget a:hover { color: var(--ch-cinabre); text-decoration: underline; }
.widget p:last-child { margin-bottom: 0; }

.widget input[type="text"], .widget input[type="email"] { max-width: 100%; }

/* -------------------------------------------------------------------------
   18. Pagination
   ------------------------------------------------------------------------- */

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.2rem;
	align-items: center;
	justify-content: center;
	margin: 2.4rem 0 0;
	padding-top: 1.4rem;
	border-top: 1px solid var(--ch-filet-laiton);
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .78rem;
	letter-spacing: .06em;
}

.pagination a {
	padding: .45rem .9rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
	color: var(--ch-encre);
	text-decoration: none;
}

.pagination a:hover { background: var(--ch-encre); border-color: var(--ch-encre); color: var(--ch-carton); }
.pagination-separator-before, .pagination-separator-after { display: none; }

/* -------------------------------------------------------------------------
   19. Archives et nuage de tags
   ------------------------------------------------------------------------- */

body.dc-archive .content-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.6rem;
}

.arch-block {
	padding: 1.15rem 1.25rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: var(--ch-rayon);
}

.arch-block h3 {
	margin: 0 0 .8rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--ch-filet-laiton);
	font-family: var(--ch-data);
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.arch-block h4 { margin: 1rem 0 .4rem; font-family: var(--ch-data); font-size: .95rem; }
.arch-list { margin: 0; padding: 0; list-style: none; }
.arch-list li { padding: .25rem 0; }
.arch-list a { color: var(--ch-encre); text-decoration: none; }
.arch-list a:hover { color: var(--ch-cinabre); text-decoration: underline; }
.arch-list span { color: var(--ch-graphite-mid); font-family: var(--ch-data); font-size: .75rem; }
.fromto { color: var(--ch-graphite-mid); font-family: var(--ch-data); font-size: .78rem; }

.time-criteria, .other-criteria, .more-arch { margin: 0; }

ul.tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.tags a, .arch-tag-list a {
	display: inline-block;
	padding: .25rem .7rem;
	background: var(--ch-carton-pur);
	border: 1px solid var(--ch-filet);
	border-radius: 999px;
	text-decoration: none;
}

ul.tags a:hover, .arch-tag-list a:hover { border-color: var(--ch-laiton); }

.tag0, .tag10, .tag20 { font-size: .8rem; }
.tag30, .tag40 { font-size: .95rem; }
.tag50, .tag60 { font-size: 1.1rem; }
.tag70, .tag80 { font-size: 1.25rem; }
.tag90, .tag100 { font-size: 1.4rem; font-weight: 700; }

/* -------------------------------------------------------------------------
   20. Pied de page
   ------------------------------------------------------------------------- */

.gotop {
	margin: 0;
	padding: 1.4rem 0;
	text-align: center;
}

.gotop a {
	color: var(--ch-graphite-mid);
	font-family: var(--ch-data);
	font-size: .72rem;
	letter-spacing: .14em;
	text-decoration: none;
	text-transform: uppercase;
}

.gotop a::before { content: "↑  "; }
.gotop a:hover { color: var(--ch-cinabre); }

.footer {
	padding-block: clamp(2.2rem, 5vw, 3.4rem) 0;
	background-color: var(--ch-encre-fonce);
	background-image: var(--ch-guilloche);
	border-top: 1px solid var(--ch-filet-laiton);
	color: rgba(244, 239, 228, .8);
	font-size: .95rem;
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.8rem clamp(1.5rem, 4vw, 3rem);
}

.footer h2, .footer h3 {
	margin: 0 0 .8rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--ch-filet-encre);
	color: var(--ch-laiton);
	font-family: var(--ch-data);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.footer .widget {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.footer .widget li { border-bottom-color: var(--ch-filet-encre); }
.footer a { color: rgba(244, 239, 228, .9); text-decoration: none; }
.footer a:hover { color: var(--ch-laiton); text-decoration: underline; }

.footer__legal {
	margin-top: clamp(1.8rem, 4vw, 2.6rem);
	padding-block: 1.3rem;
	border-top: 1px solid var(--ch-filet-encre);
}

.footer__ident {
	margin: 0 0 .9rem;
	color: var(--ch-laiton);
	font-family: var(--ch-data);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.footer__ident a { color: var(--ch-laiton); text-decoration: none; border-bottom: 1px solid var(--ch-filet-laiton); }
.footer__ident a:hover { color: #fff; }
.footer__ident span { color: rgba(244, 239, 228, .35); }

.footer__legal p {
	margin: 0 0 .5rem;
	color: rgba(244, 239, 228, .6);
	font-family: var(--ch-data);
	font-size: .7rem;
	letter-spacing: .04em;
	line-height: 1.7;
}

.footer__legal p:last-child { margin-bottom: 0; }
.poweredby { color: rgba(244, 239, 228, .45) !important; }

/* -------------------------------------------------------------------------
   21. Confort de lecture
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--ch-carton:       #131a22;
		--ch-carton-pur:   #1a232e;
		--ch-carton-creux: #232f3d;
		--ch-graphite:     #e8e3d7;
		--ch-graphite-mid: #a3a69f;
		--ch-filet:        rgba(232, 227, 215, .14);
		--ch-cinabre:      #e5584c;
		--ch-cinabre-sombre: #f0776c;
		--ch-encre:        #0d1725;
		--ch-encre-fonce:  #090f18;
	}

	.post-title a, .ch-guides__title, .widget a, .arch-list a,
	.content-info__sub-cat a, .pagination a { color: var(--ch-graphite); }

	.ch-index { background: var(--ch-carton-creux); color: var(--ch-graphite); }
	.post.simple .post-content th { background: var(--ch-encre-clair); }
	.ch-guides__link:hover { background: var(--ch-encre-clair); }
	button.preview { color: var(--ch-graphite); }
}
