/* ==========================================================================
   Usages IA — feuille du magazine
   Écrite contre le balisage du moteur Jolifish 1.32.2 (references/balisage.html).
   ========================================================================== */

:root {
	--ink: #14161a;
	--muted: #555b63;
	--line: #dcdfe3;
	--paper: #ffffff;
	--soft: #eef0f2;
	--purple: #c8321b;           /* l’accent : un rouge d’imprimerie */
	--pink: #ff8a73;             /* l’accent sur fond sombre */
	--night: #11161d;
	--lavender: #f6d9d2;         /* l’accent pâle : cadres et surlignages */
	--sur-sombre: #b9c0c8;       /* texte secondaire sur fond sombre */
	--radius: 3px;
	--container: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
	--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Socle ---------- */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; }

p { text-wrap: pretty; }

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Surtitres ---------- */

.kicker,
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--purple);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
}
.kicker::before,
.eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: currentColor;
	flex: none;
}

/* ---------- Boutons ---------- */

.btn,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 22px;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	font: 700 15px/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary,
.button-primary,
.button-hero { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--purple); border-color: var(--purple); }

.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--paper); }

.btn-small { padding: 9px 16px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .2s; }
a.text-link:hover { color: var(--purple); }
a.text-link:hover .icon,
a.card:hover .text-link .icon { transform: translateX(4px); }

/* ---------- En-tête ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-top: 6px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}

.header-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 74px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex: none;
}
.brand-logo,
.brand-marque { display: block; height: 40px; width: auto; }
.brand-mot {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1;
}
.brand-mot::after { content: "."; color: var(--purple); }

.main-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1;
}

.nav-link,
.nav-group > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border-radius: var(--radius);
}
.nav-link:hover,
.nav-group > summary:hover { color: var(--purple); }

.nav-group { position: relative; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group .chevron { width: 12px; height: 12px; stroke-width: 1.6; transition: transform .2s; }
.nav-group[open] .chevron { transform: rotate(180deg); }

.nav-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 60;
	display: grid;
	min-width: 300px;
	padding: 8px;
	background: var(--paper);
	border: 1px solid var(--ink);
	box-shadow: 8px 8px 0 var(--lavender);
}
.nav-dropdown a {
	display: block;
	padding: 10px 12px;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius);
}
.nav-dropdown a:hover { background: var(--soft); }
.nav-dropdown small {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}

.mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.header-register { background: var(--purple); border-color: var(--purple); }
.header-register::before { content: "✦"; font-size: 13px; }
.header-register:hover { background: var(--ink); border-color: var(--ink); }

.header-account { font-size: 15px; font-weight: 600; text-decoration: none; }

.lang-switch { position: relative; font-size: 14px; }
.lang-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	padding: 6px;
	background: var(--paper);
	border: 1px solid var(--ink);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	cursor: pointer;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section.soft { background: var(--soft); }
.section.dark { background: var(--night); color: #e9ecef; }
.section.dark .kicker { color: var(--pink); }

.section-title { max-width: 780px; margin-bottom: 44px; }
.section-title h2 {
	margin: 14px 0 0;
	font-family: var(--serif);
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.025em;
}
.section-title p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.section.dark .section-title p { color: var(--sur-sombre); }

/* Le filet de une : chaque grande section s’ouvre sur un trait plein. */
.section > .container > .section-title,
.row-title {
	max-width: none;
	padding-top: 18px;
	border-top: 3px solid var(--ink);
}
.section.dark > .container > .section-title,
.section.dark .row-title { border-top-color: #e9ecef; }

.row-title {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 44px;
}
.row-title .section-title { margin: 0; }

/* ---------- Accueil : la une ---------- */

.home-intro {
	padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px);
}
.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.intro-copy h1 {
	margin: 20px 0 0;
	font-family: var(--serif);
	font-size: clamp(40px, 5.8vw, 80px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.035em;
}
.intro-copy .lead {
	margin: 24px 0 0;
	max-width: 34em;
	color: var(--muted);
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.5;
}
.intro-foot {
	margin: 28px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.media { margin: 0; }
.media img { width: 100%; height: auto; border-radius: var(--radius); }
.media--hero { position: relative; padding: 0 18px 18px 0; }
.media--hero::before {
	content: "";
	position: absolute;
	inset: 18px 0 0 18px;
	background: var(--lavender);
	border-radius: var(--radius);
}
.media--hero img { position: relative; aspect-ratio: 6 / 5; object-fit: cover; }

/* ---------- En-tête de page ---------- */

.page-hero {
	padding: 28px 0 clamp(16px, 3vw, 40px);
}
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	color: var(--muted);
	font-size: 13.5px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] {
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink);
}
.page-hero .kicker { margin-top: clamp(28px, 4vw, 48px); }
.page-hero h1 {
	margin: 18px 0 0;
	max-width: 16ch;
	font-family: var(--serif);
	font-size: clamp(40px, 6.4vw, 88px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.035em;
}
.page-hero .lead {
	margin: 24px 0 0;
	max-width: 40em;
	color: var(--muted);
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.5;
}

/* L’en-tête d’un article (gabarit du thème : surtitre-lien, titre, date et temps de lecture). */
a.kicker { text-decoration: none; }
a.kicker:hover { color: var(--ink); }
.page-hero:has(.post-meta) { padding-bottom: 32px; }
.page-hero:has(.post-meta) .container > div { max-width: 900px; margin-inline: auto; }
.page-hero:has(.post-meta) h1 { max-width: 22ch; font-size: clamp(34px, 5vw, 62px); line-height: 1.04; }
.page-hero .post-meta { margin: 22px 0 0; }

/* L’en-tête du carnet des artisans : papier saumon. */
.mag-carnet-hero { background: var(--lavender); padding-bottom: clamp(44px, 6vw, 72px); }
.mag-carnet-hero .kicker { color: var(--ink); }
.mag-carnet-hero .breadcrumbs a,
.mag-carnet-hero .lead { color: #4a3f3c; }

/* ---------- Cartes ---------- */

.grid-2, .grid-3, .grid-4 { display: grid; gap: 44px 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}
article.card { padding-top: 20px; border-top: 2px solid var(--ink); }

.card__media {
	overflow: hidden;
	margin-bottom: 6px;
	aspect-ratio: 3 / 2;
	background: var(--soft);
	border-radius: var(--radius);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
a.card:hover .card__media img { transform: scale(1.04); }

.tag {
	color: var(--purple);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}
.card h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.01em;
}
a.card:hover h3 {
	text-decoration: underline;
	text-decoration-color: var(--purple);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card > .text-link { margin-top: auto; padding-top: 6px; font-size: 14px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.icon-badge {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--purple);
	background: var(--lavender);
	border-radius: var(--radius);
}
.number {
	font-family: var(--serif);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--purple);
}
.step-card { padding-top: 20px; }
.resource-kind {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.note {
	margin-top: 36px;
	padding: 18px 22px;
	border-left: 4px solid var(--purple);
	background: var(--soft);
}
.empty { margin: 24px 0 0; color: var(--muted); }

.feature-card, .feature-presentation { text-decoration: none; }
.feature-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; }

/* La mosaïque : une grande carte, quatre petites. */
.mag-mosaique .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.mag-mosaique .grid-3 > :first-child { grid-column: span 2; grid-row: span 2; }
.mag-mosaique .grid-3 > :first-child .card__media { aspect-ratio: 4 / 3; }
.mag-mosaique .grid-3 > :first-child h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; }
.mag-mosaique .grid-3 > :first-child p { font-size: 17px; }
.mag-mosaique .grid-3 > :not(:first-child) h3 { font-size: 20px; }
.mag-mosaique .grid-3 > :not(:first-child) p { display: none; }

/* Les rubriques : un sommaire, ligne à ligne. */
.mag-index .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
.mag-index .card {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	grid-template-areas: "tag title link" "tag text link";
	align-items: center;
	gap: 6px 32px;
	padding: 28px 0;
	border-top: 1px solid rgba(233, 236, 239, .22);
	transition: padding-left .3s;
}
.mag-index .card:last-child { border-bottom: 1px solid rgba(233, 236, 239, .22); }
.mag-index .tag { grid-area: tag; color: var(--pink); }
.mag-index h3 { grid-area: title; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.mag-index p { grid-area: text; color: var(--sur-sombre); font-size: 16px; }
.mag-index .text-link { grid-area: link; margin: 0; padding: 0; color: #e9ecef; }
.mag-index a.card:hover { padding-left: 14px; }
.mag-index a.card:hover h3 { color: var(--pink); text-decoration: none; }

/* Les portraits d’artisans. */
.mag-portraits .card__media { aspect-ratio: 16 / 10; }
.mag-portraits .card h3 { font-size: 20px; }

/* Les chiffres. */
.mag-chiffres .stats-row { border-top: 0; }

/* ---------- Filtres ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
	padding: 8px 16px;
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	font: 700 14px/1.2 var(--sans);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.filter:hover { background: var(--soft); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-count { margin: 16px 0 32px; color: var(--muted); font-size: 14px; }
.card[hidden] { display: none; }

/* ---------- Deux colonnes ---------- */

.split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split .section-title { margin-bottom: 26px; }
.media--split img { aspect-ratio: 16 / 10; object-fit: cover; }
.mag-carnet .media--split { position: relative; padding: 0 0 18px 18px; }
.mag-carnet .media--split::before {
	content: "";
	position: absolute;
	inset: 18px 18px 0 0;
	background: var(--purple);
	border-radius: var(--radius);
}
.mag-carnet .media--split img { position: relative; }

.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 2px 16px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .icon { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--purple); }
.feature-list strong { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.feature-list span { color: var(--muted); font-size: 15.5px; }

/* ---------- Chiffres ---------- */

.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stat { padding-left: 22px; border-left: 3px solid var(--purple); }
.stat strong {
	display: block;
	font-family: var(--serif);
	font-size: clamp(56px, 7vw, 96px);
	font-weight: 700;
	line-height: .95;
	letter-spacing: -.04em;
}
.stat span {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.stat p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Appels à l’action ---------- */

.wide-cta {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) auto;
	gap: 32px 48px;
	align-items: end;
	padding: clamp(32px, 5vw, 64px);
	background: var(--night);
	color: var(--paper);
	border-radius: var(--radius);
}
.wide-cta .kicker { color: var(--pink); }
.wide-cta h2 {
	margin: 16px 0 0;
	font-family: var(--serif);
	font-size: clamp(30px, 4.2vw, 54px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.025em;
}
.wide-cta p { margin: 18px 0 0; max-width: 36em; color: var(--sur-sombre); font-size: 18px; }
.wide-cta .actions { margin: 0; }
.wide-cta .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.wide-cta .btn-primary:hover { background: var(--purple); border-color: var(--purple); color: var(--paper); }

/* Le générateur : le bandeau rouge. */
.mag-generateur .wide-cta { position: relative; overflow: hidden; background: var(--purple); }
.mag-generateur .wide-cta::after {
	content: "✦";
	position: absolute;
	right: clamp(12px, 4vw, 48px);
	top: -28px;
	font-size: 220px;
	line-height: 1;
	color: rgba(255, 255, 255, .1);
	pointer-events: none;
}
.mag-generateur .wide-cta > * { position: relative; z-index: 1; }
.mag-generateur .kicker { color: var(--paper); }
.mag-generateur .wide-cta p { color: #fff3f0; }
.mag-generateur .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mag-generateur .btn-primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.cta-inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 30px 0;
	border-top: 3px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}
.cta-inline h2 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.cta-inline p { margin: 8px 0 0; color: var(--muted); }
.cta-inline .btn { flex: none; }

/* ---------- Article ---------- */

/* L’image de une, posée par le thème au-dessus du texte. */
.post-cover { max-width: 900px; margin: 0 auto clamp(32px, 5vw, 56px); }
.post-cover img { width: 100%; height: auto; }

/* Le contenu d’un article arrive du bundle sous forme de sections, logées par le thème
   dans sa propre colonne .article-body : on neutralise la double enveloppe. */
.article-body .section { padding: 0; background: none; }
.article-body .container { width: auto; margin: 0; }
.article-body .article-body { max-width: none; }

/* L’appel « Article à la demande » en fin d’article. */
.post-demande { margin-top: 48px; }
.post-demande .cta-inline { font-family: var(--sans); }
.post-demande .cta-inline p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }

/* Le bandeau de fin générique du thème (« Parlons de votre projet ») ne convient pas à un
   magazine : l’appel « Article à la demande » le remplace, dans le contenu de l’article. */
main > .section:last-child:has(> .container > .cta-inline) { display: none; }

.article-title {
	max-width: 720px;
	margin: 0 auto 28px;
	font-family: var(--serif);
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.08;
}
.article-body {
	max-width: 720px;
	margin-inline: auto;
	font-family: var(--serif);
	font-size: clamp(18px, 1.5vw, 20px);
	line-height: 1.7;
}
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; overflow-wrap: break-word; }
.article-body h2 {
	margin: 1.9em 0 .55em;
	font-size: clamp(25px, 2.4vw, 31px);
	line-height: 1.15;
	letter-spacing: -.015em;
}
.article-body h3 {
	margin: 1.6em 0 .4em;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}
.article-body a:not(.btn) {
	overflow-wrap: anywhere;
	text-decoration-color: var(--purple);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.article-body a:not(.btn):hover { color: var(--purple); }
.article-body ul,
.article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin: .35em 0; }
.article-body li::marker { color: var(--purple); }
.article-body blockquote {
	margin: 1.6em 0;
	padding-left: 24px;
	border-left: 4px solid var(--purple);
	font-size: 1.2em;
	font-style: italic;
}
.post-corps .article-body > p:first-child::first-letter {
	float: left;
	margin: .06em .1em 0 0;
	color: var(--purple);
	font-size: 4.3em;
	font-weight: 700;
	line-height: .82;
}

/* ---------- Galerie ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; border-radius: var(--radius); }
.gallery__item figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Le reste du vocabulaire du kit ---------- */

.faq { max-width: 860px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	padding: 22px 40px 22px 0;
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--muted); }

.pricing-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pricing-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.pricing-card.featured { background: var(--night); color: var(--paper); }
.pricing-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.price { margin: 0; }
.price strong { font-family: var(--serif); font-size: 36px; }
.unit { display: block; color: var(--muted); font-size: 14px; }
.featured .unit, .featured .plan-desc { color: var(--sur-sombre); }
.plan-desc { margin: 0; color: var(--muted); }
.plan-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan-features li { display: flex; gap: 10px; }
.plan-features .icon { color: var(--purple); }
.pricing-card .btn { margin-top: auto; }

.compare-table { overflow-x: auto; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare-table caption { text-align: left; color: var(--muted); padding-bottom: 12px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table thead th { border-bottom: 2px solid var(--ink); }

.logo-band .section-title { margin-bottom: 24px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.logo-row img { height: 40px; width: auto; filter: grayscale(1); }

.quote-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.quote-row.single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.quote { margin: 0; padding-left: 24px; border-left: 4px solid var(--purple); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-style: italic; }
.quote figcaption { margin-top: 16px; display: grid; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

.video-heading .section-title { margin-bottom: 24px; }
.video-frame { width: 100%; height: auto; background: var(--night); border-radius: var(--radius); }
.video-caption { color: var(--muted); font-size: 14px; }
.is-playing { outline: 0; }

.jolifish-form { display: grid; gap: 18px; max-width: 720px; }
.jolifish-form-row { display: grid; gap: 6px; margin: 0; }
.jolifish-form-row label { font-weight: 700; font-size: 15px; }
.jolifish-form input, .jolifish-form select, .jolifish-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	font: inherit;
	background: var(--paper);
}
.jolifish-form-group, .jolifish-form-option { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.jolifish-form-trap { position: absolute; left: -9999px; }
.jolifish-form-consent { color: var(--muted); font-size: 14px; margin: 0; }
.jolifish-form-done { padding: 18px; background: var(--soft); border-left: 4px solid var(--purple); }
.jolifish-form-error { color: var(--purple); font-weight: 700; }

.notice { padding: 14px 18px; border-left: 4px solid var(--ink); background: var(--soft); }
.notice-error { border-color: var(--purple); }
.notice-info { border-color: var(--night); }
.notice-success { border-color: #1f7a4d; }
.notice-warning { border-color: #a86400; }

.communes { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.communes__cp { color: var(--muted); }

/* La liste d’articles du thème (archives, catégories, recherche). */
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.post-cover { overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.post-thumb { overflow: hidden; margin-bottom: 6px; aspect-ratio: 3 / 2; background: var(--soft); border-radius: var(--radius); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card .post-meta { margin: 0; }
.post-meta { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-share { display: flex; gap: 12px; font-size: 14px; }

/* ---------- Pied de page ---------- */

.site-footer {
	padding: 72px 0 32px;
	background: var(--night);
	color: #c9cfd6;
	border-top: 6px solid var(--purple);
}
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}
.footer-brand .brand-mot { color: var(--paper); font-size: 40px; }
.footer-brand p { max-width: 32em; margin: 18px 0 0; }
.footer-col h3 {
	margin: 4px 0 14px;
	color: var(--paper);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.footer-col a { display: block; padding: 5px 0; color: #c9cfd6; text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 56px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: 14px;
}
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #c9cfd6; }

/* ---------- La fenêtre du générateur (dialog du thème) ---------- */

.demo-booking-modal {
	width: min(920px, 100% - 24px);
	height: min(780px, 100% - 32px);
	max-height: none;
	padding: 0;
	border: 0;
	border-top: 6px solid var(--purple);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 30px 80px rgba(17, 22, 29, .35);
}
.demo-booking-modal[open] { display: flex; flex-direction: column; }
.demo-booking-modal::backdrop { background: rgba(17, 22, 29, .62); backdrop-filter: blur(3px); }
.demo-booking-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px 14px 24px;
	border-bottom: 1px solid var(--line);
}
.demo-booking-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; }
.demo-booking-close {
	width: 40px;
	height: 40px;
	background: var(--soft);
	border: 0;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	color: var(--ink);
	cursor: pointer;
}
.demo-booking-close:hover { background: var(--ink); color: var(--paper); }
.demo-booking-frame { flex: 1; width: 100%; border: 0; }
.demo-booking-footer { padding: 10px 24px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.demo-booking-footer a { color: var(--muted); }

/* ---------- Mouvement ---------- */

@keyframes mag-monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mag-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes mag-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.js-anime .section:not([data-anime="none"]):not(.est-visible) > .container { opacity: 0; }
.js-anime .section.est-visible > .container { animation: mag-monte .7s cubic-bezier(.2, .7, .2, 1) both; }
.js-anime .section[data-anime="fade"].est-visible > .container { animation-name: mag-fondu; }
.js-anime .section[data-anime="zoom"].est-visible > .container { animation-name: mag-zoom; }
.js-anime .section[data-anime="none"] > .container { animation: none; }
.js-anime .section.est-visible :is(.grid-2, .grid-3, .grid-4, .gallery, .pricing-three) > * {
	animation: mag-monte .6s cubic-bezier(.2, .7, .2, 1) backwards;
	animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js-anime .section > .container { opacity: 1 !important; }
}

/* ---------- Paliers : 1160, 940, 720, 480 ---------- */

@media (max-width: 1160px) {
	.header-inner { gap: 18px; }
	.nav-link, .nav-group > summary { padding: 8px 9px; }
	.mag-index .card { grid-template-columns: 120px minmax(0, 1fr) auto; }
}

@media (max-width: 940px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; }
	.nav-open .main-nav {
		position: absolute;
		top: 100%;
		left: calc(-1 * var(--gutter));
		right: calc(-1 * var(--gutter));
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px var(--gutter) 24px;
		background: var(--paper);
		border-bottom: 1px solid var(--ink);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	.nav-open .nav-link,
	.nav-open .nav-group > summary { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; border-radius: 0; }
	.nav-open .nav-dropdown { position: static; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; }
	.nav-open .mobile-only { display: block; }

	.intro-grid { grid-template-columns: minmax(0, 1fr); }
	.media--hero { max-width: 640px; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mag-mosaique .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mag-mosaique .grid-3 > :first-child { grid-row: auto; }
	.split { grid-template-columns: minmax(0, 1fr); }
	.split.reverse > :first-child { order: 0; }
	.wide-cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
	.pricing-three, .quote-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.grid-2, .grid-3, .mag-mosaique .grid-3 { grid-template-columns: minmax(0, 1fr); }
	.mag-mosaique .grid-3 > :first-child { grid-column: auto; }
	.mag-mosaique .grid-3 > :not(:first-child) p { display: block; }
	.row-title { flex-direction: column; align-items: flex-start; }
	.stats-row { grid-template-columns: minmax(0, 1fr); }
	.mag-index .card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "tag" "title" "text" "link";
		gap: 8px;
	}
	.mag-index .text-link { margin-top: 6px; }
	.cta-inline { flex-direction: column; align-items: flex-start; }
	.header-register { padding: 8px 12px; font-size: 13px; }
	.breadcrumbs [aria-current] { max-width: 100%; }
}

@media (max-width: 480px) {
	.brand-mot { font-size: 24px; }
	.header-inner { gap: 10px; min-height: 64px; }
	.header-register::before { display: none; }
	.grid-4 { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.actions .btn { width: 100%; }
	.media--hero { padding: 0 10px 10px 0; }
	.media--hero::before { inset: 10px 0 0 10px; }
}
