/* =====================================================================
   Wowcost v2 — la refonte de site internet, par des pros augmentés par l'IA.
   Écrite contre le balisage du kit Jolifish (balisage.html, v1.15.3).
   Même palette et mêmes typographies que la v1 : violet de nuit, tomate
   franche, jaune d'étiquette ; typographie système, grasse et serrée.
   Seuils : 1160, 940, 720, 480 — ceux du thème.
   Toutes les animations sont en CSS : la feuille est seule à voyager.
   ===================================================================== */

:root {
	--ink: #1d1b26;
	--muted: #55526a;
	--line: #e4e1ec;
	--paper: #ffffff;
	--soft: #f5f3fa;
	--purple: #c73a1b;
	--pink: #ffd84d;
	--night: #1f1840;
	--lavender: #e9e4f7;
	--peach: #ffeae2;
	--radius: 18px;
	--container: 1200px;

	--purple-fonce: #a52e13;
	--tag-ink: #962b11;
	--nuit-texte: #d9d4ee;
	--nuit-2: #2a2155;
	--display: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--ombre: 0 1px 2px rgba(31, 24, 64, .06), 0 18px 40px -18px rgba(31, 24, 64, .25);
	--ressort: cubic-bezier(.2, .8, .2, 1);
	--gouttiere: clamp(20px, 4vw, 40px);
}

/* Transitions entre les pages : un fondu enchaîné, natif, sans script. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: wc-sortie .22s ease-in both; }
::view-transition-new(root) { animation: wc-entree .38s var(--ressort) both; }

@keyframes wc-sortie { to { opacity: 0; transform: translateY(-8px); } }
@keyframes wc-entree { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Base ---------- */

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

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

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

img,
video,
svg { max-width: 100%; }

img,
video { height: auto; display: block; }

h1,
h2,
h3 {
	font-family: var(--display);
	color: var(--ink);
	margin: 0;
	text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

::selection { background: var(--pink); color: var(--night); }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gouttiere));
	margin-inline: auto;
	padding-inline: var(--gouttiere);
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	background: var(--night);
	color: var(--paper);
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus { top: 12px; }

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

.btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: .55em;
	min-height: 52px;
	padding: .85rem 1.45rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ressort), box-shadow .25s;
}

/* Un reflet qui traverse le bouton au survol. */
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .6s var(--ressort);
}

.btn:hover::after { transform: translateX(120%); }

.btn .icon { transition: transform .25s var(--ressort); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--purple); color: var(--paper); }
.btn-primary:hover { background: var(--purple-fonce); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(199, 58, 27, .65); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: var(--lavender); transform: translateY(-2px); }

.btn-small { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }

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

.text-link {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin-top: 26px;
	color: var(--purple);
	font-weight: 700;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size .35s var(--ressort);
}

a.text-link:hover { background-size: 100% 2px; }
.text-link .icon { transition: transform .25s var(--ressort); }
a.text-link:hover .icon,
a:hover > .text-link .icon { transform: translateX(4px); }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
}

/* L'en-tête se densifie quand on défile : animation pilotée par le défilement. */
@supports (animation-timeline: scroll()) {
	.site-header {
		animation: wc-entete linear both;
		animation-timeline: scroll();
		animation-range: 0 140px;
	}
}

@keyframes wc-entete {
	to { background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(31, 24, 64, .35); }
}

@supports not (animation-timeline: scroll()) {
	.site-header { border-bottom-color: var(--line); }
}

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

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--ink);
	flex: none;
}

.brand-mot {
	font-family: var(--display);
	font-size: 1.6rem;
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
}

.brand-mot::after {
	content: "";
	display: inline-block;
	width: .3em;
	height: .3em;
	margin-left: .08em;
	border-radius: 50%;
	background: var(--purple);
	transition: transform .4s var(--ressort);
}

.brand:hover .brand-mot::after { transform: translateY(-.35em) scale(1.25); }

.brand-logo,
.brand-marque { display: block; max-height: 44px; width: auto; }

.main-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.nav-link,
.nav-group > summary {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}

.nav-link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--purple);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ressort);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-group > summary:hover,
.nav-group[open] > summary { background: var(--soft); }

.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.8; transition: transform .2s; }
.nav-group[open] .chevron { transform: rotate(180deg); }

.nav-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 10;
	display: grid;
	gap: 2px;
	min-width: 280px;
	padding: 8px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
}

.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
.nav-dropdown a:hover { background: var(--soft); }
.nav-dropdown small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; font-weight: 400; }

.mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-account { font-weight: 600; text-decoration: none; }

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

.nav-toggle:hover { border-color: var(--ink); }

/* ---------- Accueil : en-tête ---------- */

.home-intro {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px);
}

.home-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(var(--lavender) 1.2px, transparent 1.6px);
	background-size: 24px 24px;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000, transparent 75%);
	pointer-events: none;
}

/* Une lueur lente derrière l'illustration. */
.home-intro::after {
	content: "";
	position: absolute;
	top: 10%;
	right: -8%;
	width: min(640px, 70vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 40%, rgba(255, 216, 77, .55), transparent 55%),
		radial-gradient(circle at 65% 60%, rgba(199, 58, 27, .28), transparent 55%);
	filter: blur(40px);
	animation: wc-lueur 14s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes wc-lueur {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-6%, 8%) scale(1.12); }
}

.intro-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 56px;
}

.intro-copy { max-width: 780px; }

.eyebrow,
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--purple);
	font-family: var(--mono);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .01em;
}

.kicker::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
	transform-origin: left;
}

/* Dans les en-têtes, le surtitre n'est pas une pastille : une ligne de texte, signée du point de la marque. */
.eyebrow,
.page-hero .kicker {
	display: block;
	color: var(--ink);
	font-size: .9rem;
}

.page-hero .kicker::before { content: none; }

.eyebrow::after,
.page-hero .kicker::after {
	content: "";
	display: inline-block;
	width: .42em;
	height: .42em;
	margin-left: .3em;
	border-radius: 50%;
	background: var(--purple);
}

/* Le surligneur : le texte est là d'emblée, seul le jaune arrive. */
.home-intro h1 em,
.page-hero h1 em {
	font-style: normal;
	background: linear-gradient(var(--pink), var(--pink)) 0 88% / 100% 34% no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-inline: .04em;
	animation: wc-surligne 1s .35s var(--ressort) backwards;
}

@keyframes wc-surligne { from { background-size: 0 34%; } }

.lead {
	margin-top: 26px;
	max-width: 54ch;
	color: var(--muted);
	font-size: clamp(1.12rem, 1.6vw, 1.28rem);
	line-height: 1.55;
}

.intro-foot {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	max-width: 56ch;
	color: var(--muted);
	font-size: .95rem;
}

.media { margin: 0; }
.media img { width: 100%; border-radius: calc(var(--radius) + 6px); }

/*
 * L'illustration : un site, avant et après sa refonte.
 * Deux fenêtres superposées dans la même case ; « après » se dévoile par
 * un balayage, tient, puis rend la main. Dessiné entièrement en CSS.
 */
@media (min-width: 941px) {
	.intro-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }

	.intro-grid::before,
	.intro-grid::after {
		content: "";
		grid-row: 1;
		grid-column: 2;
		justify-self: end;
		width: min(100%, 500px);
		aspect-ratio: 500 / 400;
		border-radius: 20px;
		transform: perspective(1400px) rotateY(-14deg) rotateX(5deg);
		box-shadow: 0 50px 80px -40px rgba(31, 24, 64, .45), 0 0 0 1px rgba(31, 24, 64, .08);
	}

	/* Avant : gris, tassé, daté. */
	.intro-grid::before {
		background:
			radial-gradient(circle at 20px 18px, #c9c6d2 0 5px, transparent 6px),
			radial-gradient(circle at 38px 18px, #c9c6d2 0 5px, transparent 6px),
			radial-gradient(circle at 56px 18px, #c9c6d2 0 5px, transparent 6px),
			linear-gradient(#e2e0e8, #e2e0e8) 0 0 / 100% 9% no-repeat,
			linear-gradient(#d4d1dc, #d4d1dc) 50% 21.4% / 86% 30% no-repeat,
			linear-gradient(#d9d6e0, #d9d6e0) 17.5% 53.6% / 60% 3% no-repeat,
			linear-gradient(#d9d6e0, #d9d6e0) 23.3% 58.8% / 70% 3% no-repeat,
			linear-gradient(#d9d6e0, #d9d6e0) 12.7% 63.9% / 45% 3% no-repeat,
			linear-gradient(#e6e4eb, #e6e4eb) 8.6% 87.8% / 19% 18% no-repeat,
			linear-gradient(#e6e4eb, #e6e4eb) 35.8% 87.8% / 19% 18% no-repeat,
			linear-gradient(#e6e4eb, #e6e4eb) 63% 87.8% / 19% 18% no-repeat,
			linear-gradient(#e6e4eb, #e6e4eb) 90.1% 87.8% / 19% 18% no-repeat,
			#f3f2f6;
	}

	/* Après : le même site, refait. */
	.intro-grid::after {
		background:
			radial-gradient(circle at 20px 18px, #ff6b5a 0 5px, transparent 6px),
			radial-gradient(circle at 38px 18px, var(--pink) 0 5px, transparent 6px),
			radial-gradient(circle at 56px 18px, #57c27a 0 5px, transparent 6px),
			radial-gradient(circle at 80% 32%, var(--purple) 0 52px, transparent 53px),
			radial-gradient(circle at 86% 24%, var(--pink) 0 22px, transparent 23px),
			linear-gradient(var(--paper), var(--paper)) 14% 19% / 50% 5.5% no-repeat,
			linear-gradient(var(--paper), var(--paper)) 11.3% 27.5% / 38% 5.5% no-repeat,
			linear-gradient(var(--pink), var(--pink)) 8.8% 40.9% / 20% 7% no-repeat,
			linear-gradient(var(--night), var(--night)) 0 15.8% / 100% 43% no-repeat,
			linear-gradient(var(--purple), var(--purple)) 11.4% 66.7% / 12% 2.5% no-repeat,
			linear-gradient(var(--purple), var(--purple)) 45.5% 66.7% / 12% 2.5% no-repeat,
			linear-gradient(var(--purple), var(--purple)) 79.5% 66.7% / 12% 2.5% no-repeat,
			linear-gradient(var(--line), var(--line)) 12.2% 72.3% / 18% 1.8% no-repeat,
			linear-gradient(var(--line), var(--line)) 48.8% 72.3% / 18% 1.8% no-repeat,
			linear-gradient(var(--line), var(--line)) 85.4% 72.3% / 18% 1.8% no-repeat,
			linear-gradient(var(--line), var(--line)) 11.5% 76.4% / 13% 1.8% no-repeat,
			linear-gradient(var(--line), var(--line)) 46% 76.4% / 13% 1.8% no-repeat,
			linear-gradient(var(--line), var(--line)) 80.5% 76.4% / 13% 1.8% no-repeat,
			linear-gradient(var(--paper), var(--paper)) 9.5% 85.7% / 26% 30% no-repeat,
			linear-gradient(var(--paper), var(--paper)) 50% 85.7% / 26% 30% no-repeat,
			linear-gradient(var(--paper), var(--paper)) 90.5% 85.7% / 26% 30% no-repeat,
			linear-gradient(var(--lavender), var(--lavender)) 0 0 / 100% 9% no-repeat,
			var(--soft);
		clip-path: inset(0 0 0 0 round 20px);
		animation: wc-refonte 8s var(--ressort) infinite;
	}

	.intro-grid:has(.media)::before,
	.intro-grid:has(.media)::after { display: none; }
}

@keyframes wc-refonte {
	0%, 12% { clip-path: inset(0 0 0 100% round 20px); }
	38%, 82% { clip-path: inset(0 0 0 0 round 20px); }
	100% { clip-path: inset(0 100% 0 0 round 20px); }
}

/* ---------- En-têtes des pages internes ---------- */

.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 6vw, 64px) 0 clamp(64px, 9vw, 112px);
	background:
		radial-gradient(ellipse 50% 80% at 100% 0, rgba(255, 216, 77, .22), transparent 70%),
		radial-gradient(ellipse 40% 60% at 85% 100%, rgba(233, 228, 247, .9), transparent 70%);
}

/* Un cadre de sélection de designer, poignées comprises. */
.page-hero::after {
	content: "";
	position: absolute;
	right: max(var(--gouttiere), calc((100% - var(--container)) / 2));
	top: 50%;
	display: none;
	width: 240px;
	height: 170px;
	margin-top: -60px;
	border: 1.5px dashed var(--purple);
	background:
		linear-gradient(var(--paper), var(--paper)) 0 0 / 12px 12px no-repeat,
		linear-gradient(var(--paper), var(--paper)) 100% 0 / 12px 12px no-repeat,
		linear-gradient(var(--paper), var(--paper)) 0 100% / 12px 12px no-repeat,
		linear-gradient(var(--paper), var(--paper)) 100% 100% / 12px 12px no-repeat,
		linear-gradient(var(--purple), var(--purple)) 0 0 / 14px 14px no-repeat,
		linear-gradient(var(--purple), var(--purple)) 100% 0 / 14px 14px no-repeat,
		linear-gradient(var(--purple), var(--purple)) 0 100% / 14px 14px no-repeat,
		linear-gradient(var(--purple), var(--purple)) 100% 100% / 14px 14px no-repeat;
	transform: rotate(-6deg);
	animation: wc-cadre 6s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes wc-cadre {
	from { transform: rotate(-6deg) scale(1); }
	to { transform: rotate(-2deg) scale(1.06); }
}

@media (min-width: 1161px) {
	.page-hero::after { display: block; }
}

.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 14em; font-size: clamp(2.3rem, 5.4vw, 4.4rem); }

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(28px, 5vw, 56px);
	color: var(--muted);
	font-family: var(--mono);
	font-size: .82rem;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

.page-hero .hero-notes,
.page-hero .lead ~ p:not(.lead) { margin-top: 18px; color: var(--muted); font-size: .95rem; }

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

.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section.soft { background: var(--soft); }

.section.dark {
	background:
		radial-gradient(ellipse 60% 50% at 0 0, rgba(199, 58, 27, .22), transparent 70%),
		radial-gradient(ellipse 50% 60% at 100% 100%, rgba(255, 216, 77, .12), transparent 70%),
		var(--night);
	color: var(--nuit-texte);
}

.section.dark h2,
.section.dark h3 { color: var(--paper); }
.section.dark .kicker { color: var(--pink); }

.section-title { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.section.dark .section-title p { color: var(--nuit-texte); }

.row-title {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.row-title .section-title { margin-bottom: 0; }
.row-title .text-link { margin-top: 0; }

/* ---------- Grilles et cartes ---------- */

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

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 32px 30px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	transition: transform .35s var(--ressort), box-shadow .35s, border-color .35s, background-color .35s;
}

.card p { color: var(--muted); }
.section:not(.soft):not(.dark) .card { background: var(--soft); border-color: transparent; }

.feature-card h3 { font-size: 1.3rem; }

.tag,
.resource-kind {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--peach);
	color: var(--tag-ink);
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 600;
}

.icon-badge { display: inline-flex; color: var(--purple); }
.icon-badge .icon { width: 30px; height: 30px; stroke-width: 1.8; }

.card:has(> .icon-badge) {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	align-content: start;
	gap: 14px;
}

.card:has(> .icon-badge) > :not(.icon-badge):not(h3) { grid-column: 1 / -1; }
.card:has(> .icon-badge) > .tag { justify-self: start; }

.card__media { width: calc(100% + 60px); margin: -32px -30px 8px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ressort); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

a.card:hover,
.use-card:hover,
.resource-card:hover {
	transform: translate(-4px, -4px);
	border-color: var(--night);
	box-shadow: 8px 8px 0 var(--night);
}

.use-card h3 { font-size: 1.45rem; margin-top: 8px; }
.use-card .text-link,
.resource-card .text-link { margin-top: auto; padding-top: 14px; }

/* Cartes sur fond sombre : du verre, et un bord qui s'allume. */
.section.dark .card {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .12);
	color: var(--nuit-texte);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.section.dark .card p { color: var(--nuit-texte); }
.section.dark .card:hover { border-color: var(--pink); transform: translateY(-4px); }
.section.dark .tag { background: var(--pink); color: var(--night); }

/* Bento : une grande carte, deux plus petites à côté. */
.bento .card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

@media (min-width: 941px) {
	.bento .grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
	.bento .grid-3 > :nth-child(1) { grid-column: span 4; grid-row: span 2; justify-content: flex-end; padding: 44px; overflow: hidden; }
	.bento .grid-3 > :nth-child(2),
	.bento .grid-3 > :nth-child(3) { grid-column: span 2; }
	.bento .grid-3 > :nth-child(1) h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; max-width: 12em; }
	.bento .grid-3 > :nth-child(1) p { font-size: 1.15rem; max-width: 46ch; }

	/* Un anneau qui tourne, derrière la grande carte. */
	.bento .grid-3 > :nth-child(1)::before {
		content: "";
		position: absolute;
		top: -120px;
		right: -120px;
		width: 380px;
		aspect-ratio: 1;
		border-radius: 50%;
		background: conic-gradient(from 0deg, var(--pink), var(--purple), transparent 60%, var(--pink));
		-webkit-mask: radial-gradient(circle, transparent 54%, #000 55%);
		mask: radial-gradient(circle, transparent 54%, #000 55%);
		opacity: .85;
		animation: wc-tourne 14s linear infinite;
		pointer-events: none;
	}
}

@keyframes wc-tourne { to { transform: rotate(1turn); } }

/* Étapes numérotées, reliées par un pointillé. */
.step-card { padding-top: 30px; }

.number {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--pink);
	color: var(--night);
	font-family: var(--mono);
	font-size: 1.05rem;
	font-weight: 700;
	transition: transform .4s var(--ressort);
}

.step-card:hover .number { transform: rotate(-12deg) scale(1.08); }

@media (min-width: 941px) {
	.grid-4 .step-card:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 58px;
		left: calc(30px + 56px + 12px);
		right: -32px;
		height: 2px;
		background: radial-gradient(circle, var(--purple) 1.2px, transparent 1.6px) 0 50% / 10px 2px repeat-x;
	}
}

.note {
	margin-top: 28px;
	padding: 18px 22px;
	border: 1.5px dashed var(--night);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--muted);
}

.note strong { color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.filter {
	padding: 8px 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
}

.filter[aria-pressed="true"],
.filter.is-active { background: var(--night); border-color: var(--night); color: var(--paper); }

.filter-count,
.empty { color: var(--muted); font-size: .95rem; }

.feature-presentation { display: block; text-decoration: none; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; }
.feature-links .text-link { margin-top: 0; }

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

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.split .section-title { margin-bottom: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.feature-list li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
	transition: padding-left .35s var(--ressort);
}

.feature-list li:hover { padding-left: 8px; }

.feature-list .icon {
	grid-row: span 2;
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 50%;
	background: var(--pink);
	color: var(--night);
	stroke-width: 2.2;
	transition: transform .35s var(--ressort), background-color .35s;
}

.feature-list li:hover .icon { transform: scale(1.1) rotate(-8deg); background: var(--purple); color: var(--paper); }

.feature-list strong { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.feature-list span { color: var(--muted); }

.media--split img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Appels à l'action ---------- */

.wide-cta {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	padding: clamp(40px, 6vw, 80px);
	border-radius: calc(var(--radius) + 12px);
	background: var(--night);
	color: var(--nuit-texte);
}

/* Un soleil jaune et un anneau tomate, qui glissent au défilement. */
.wide-cta::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffe68a, var(--pink) 60%);
}

.wide-cta::after {
	content: "";
	position: absolute;
	top: 80px;
	right: 170px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 14px solid var(--purple);
}

@supports (animation-timeline: view()) {
	.wide-cta::before,
	.wide-cta::after {
		animation: wc-derive linear both;
		animation-timeline: view();
		animation-range: entry 0% exit 100%;
	}

	.wide-cta::after { animation-name: wc-derive-anneau; }
}

@keyframes wc-derive { from { transform: translate(40px, 60px) scale(.85); } to { transform: translate(-30px, -30px) scale(1.05); } }
@keyframes wc-derive-anneau { from { transform: translate(-60px, 40px) rotate(0); } to { transform: translate(40px, -40px) rotate(90deg); } }

.wide-cta > * { position: relative; z-index: 1; }
.wide-cta > div:first-child { max-width: 38em; }
.wide-cta .kicker { color: var(--pink); }
.wide-cta h2 { color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); text-wrap: pretty; }
.wide-cta p { margin-top: 18px; font-size: 1.12rem; }
.wide-cta .actions { margin-top: 0; align-self: end; }
.wide-cta .btn-primary { background: var(--pink); color: var(--night); }
.wide-cta .btn-primary:hover { background: var(--paper); box-shadow: none; }
.wide-cta .btn-secondary { color: var(--paper); border-color: var(--paper); }
.wide-cta .btn-secondary:hover { background: var(--paper); color: var(--night); }

.cta-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 32px 36px;
	border: 2px solid var(--night);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: 8px 8px 0 var(--pink);
}

.cta-inline h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.cta-inline p { margin-top: 8px; color: var(--muted); }

/* ---------- Questions fréquentes ---------- */

.faq { max-width: 880px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }

/* Ouverture en douceur, là où le navigateur le permet. */
.faq details::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size .4s var(--ressort), content-visibility .4s allow-discrete;
}

.faq details[open]::details-content { block-size: auto; }

.faq summary {
	position: relative;
	padding: 24px 60px 24px 0;
	list-style: none;
	font-family: var(--display);
	font-size: 1.18rem;
	font-weight: 700;
	cursor: pointer;
	transition: color .2s;
}

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

.faq summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background:
		linear-gradient(var(--night), var(--night)) center / 12px 2px no-repeat,
		linear-gradient(var(--night), var(--night)) center / 2px 12px no-repeat,
		var(--pink);
	transition: transform .35s var(--ressort), background-color .35s;
}

.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--purple); }
.faq details p { max-width: 68ch; padding: 0 60px 26px 0; color: var(--muted); }
.faq details a { color: var(--purple); text-underline-offset: 3px; }

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

.stats-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.stat { padding-top: 22px; border-top: 3px solid var(--night); }

.stat strong {
	display: block;
	font-family: var(--display);
	font-size: clamp(2.6rem, 5.2vw, 3.8rem);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
}

.stat span { display: inline-block; margin-top: 12px; padding: 3px 12px; background: var(--pink); color: var(--night); font-weight: 700; }
.stat p { margin-top: 12px; color: var(--muted); max-width: 32ch; }

/* ---------- Tarifs (type du kit, gardé pour plus tard) ---------- */

.pricing-three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 560px; }

.pricing-card {
	display: flex;
	flex-direction: column;
	padding: 34px 30px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 4px);
}

.pricing-card h3 { font-size: 1.35rem; }
.price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.unit { color: var(--muted); font-size: .95rem; }
.plan-desc { margin-top: 12px; color: var(--muted); }
.plan-features { list-style: none; margin: 24px 0 30px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .icon { margin-top: .2em; color: var(--purple); stroke-width: 2.2; }
.pricing-card .btn { margin-top: auto; justify-content: center; }
.pricing-card.featured { background: var(--night); border-color: var(--night); color: var(--nuit-texte); }
.pricing-card.featured h3,
.pricing-card.featured .price strong { color: var(--paper); }
.pricing-card.featured .unit,
.pricing-card.featured .plan-desc { color: var(--nuit-texte); }
.pricing-card.featured .plan-features .icon { color: var(--pink); }
.pricing-card.featured .btn-primary { background: var(--pink); color: var(--night); }

/* ---------- Tableau comparatif ---------- */

.compare-table {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 4px);
	background: var(--paper);
	box-shadow: var(--ombre);
}

.compare-table table { width: 100%; min-width: 600px; border-collapse: collapse; }

.compare-table caption { caption-side: bottom; padding: 16px 22px; color: var(--muted); font-size: .9rem; text-align: left; }

.compare-table th,
.compare-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }

.compare-table thead th { background: var(--night); color: var(--paper); font-family: var(--display); font-size: 1.05rem; font-weight: 700; border-bottom: 0; }
.compare-table thead th:first-child { color: var(--pink); font-family: var(--mono); font-size: .85rem; font-weight: 600; }
.compare-table tbody th { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.compare-table tbody tr { transition: background-color .2s; }
.compare-table tbody tr:hover { background: var(--soft); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table td { color: var(--muted); }
.compare-table td:last-child { color: var(--ink); }

/* ---------- Logos, galerie, témoignages, vidéo ---------- */

.logo-band { display: grid; gap: 28px; }
.logo-band .section-title { margin-bottom: 0; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.logo-row img { height: 40px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-row a:hover img { filter: none; opacity: 1; }

.gallery { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.gallery__item figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }

.quote-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.quote-row.single { max-width: 820px; }
.quote { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.quote blockquote::before { content: "« "; color: var(--purple); }
.quote blockquote::after { content: " »"; color: var(--purple); }
.quote figcaption { margin-top: 20px; display: grid; }
.quote figcaption span { color: var(--muted); font-size: .95rem; }

.video-heading .section-title { margin-bottom: 28px; }
.video-frame { width: 100%; border-radius: var(--radius); background: var(--night); }
.video-caption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

/* ---------- Contenu long ---------- */

.article-title { max-width: 42rem; margin: 0 auto 28px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article-body { max-width: 42rem; margin: 0 auto; }

/* Le court chapeau posé au-dessus de la liste des articles. */
.section:has(+ .section .filters) { padding-bottom: 0; }
.section:has(+ .section .filters) .article-title,
.section:has(+ .section .filters) .article-body { max-width: none; margin-inline: 0; }
.section:has(+ .section .filters) .article-title { margin-bottom: 12px; }
.section:has(+ .section .filters) + .section { padding-top: clamp(28px, 4vw, 40px); }
.article-body > * + * { margin-top: 1em; }
.article-body h3 { margin-top: 2.2em; font-size: 1.3rem; }
.article-body a { color: var(--purple); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-body ul,
.article-body ol { padding-left: 1.3em; }

/* ---------- Formulaires ---------- */

#jolifish-form:empty { display: none; }

.jolifish-form,
.nf-form-cont {
	padding: clamp(24px, 4vw, 44px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 6px);
	box-shadow: var(--ombre);
}

.jolifish-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.jolifish-form-group { display: grid; gap: 7px; }
.jolifish-form-row { grid-column: 1 / -1; }

.jolifish-form label,
.nf-form-cont .nf-field-label label { font-weight: 600; font-size: .95rem; }

.jolifish-form input,
.jolifish-form select,
.jolifish-form textarea,
.nf-form-cont input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.nf-form-cont select,
.nf-form-cont textarea {
	width: 100%;
	min-height: 52px;
	padding: 13px 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--soft);
	color: var(--ink);
	font: inherit;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.jolifish-form textarea,
.nf-form-cont textarea { min-height: 170px; resize: vertical; }

.jolifish-form input:focus,
.jolifish-form select:focus,
.jolifish-form textarea:focus,
.nf-form-cont input:focus,
.nf-form-cont select:focus,
.nf-form-cont textarea:focus {
	outline: none;
	background: var(--paper);
	border-color: var(--purple);
	box-shadow: 0 0 0 4px rgba(199, 58, 27, .16);
}

.jolifish-form .btn { grid-column: 1 / -1; justify-self: start; }

.nf-form-cont .nf-field-container { margin-bottom: 18px; }
.nf-form-cont .nf-form-fields-required { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.nf-form-cont .nf-error-msg { color: var(--purple-fonce); font-size: .9rem; }

.nf-form-cont input[type="submit"] {
	min-height: 52px;
	padding: .85rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--purple);
	color: var(--paper);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nf-form-cont input[type="submit"]:hover { background: var(--purple-fonce); }

.jolifish-form-consent { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.nf-form-cont ~ .jolifish-form-consent { margin-top: 14px; }

.jolifish-form-done,
.jolifish-form-error { padding: 16px 20px; border-radius: 10px; }
.jolifish-form-done { background: var(--lavender); }
.jolifish-form-error { background: var(--peach); color: var(--tag-ink); }
.jolifish-form-trap { position: absolute; left: -9999px; }
.jolifish-form-option { display: flex; gap: 8px; align-items: center; font-weight: 400; }

/* =====================================================================
   Le simulateur — sans JavaScript.
   Il voyage dans le champ « customHtml » d'une section split (classe
   « simulateur ») : aucune classe à l'intérieur, tout est visé par des
   attributs data-sim-*. Les choix sont lus avec :has() ; le total est
   une variable CSS déclarée, qui s'anime toute seule, affichée par des
   compteurs. Le calcul est dans le bloc généré juste en dessous.
   Jamais de chevron ouvrant dans cette feuille : l'import WordPress la refuserait.
   ===================================================================== */

/* [simulateur:bareme] */
/* Généré par generateur/generer.py depuis le barème de contenu.py : ne pas modifier ici. */

@property --sim-coef { syntax: '\3c integer\3e'; inherits: true; initial-value: 1; }
@property --sim-prop { syntax: '\3c integer\3e'; inherits: true; initial-value: 1; }
@property --sim-ar { syntax: '\3c integer\3e'; inherits: true; initial-value: 1; }
@property --sim-total { syntax: '\3c integer\3e'; inherits: true; initial-value: 738; }
@property --sim-socle { syntax: '\3c integer\3e'; inherits: true; initial-value: 738; }
@property --sim-inspirations { syntax: '\3c integer\3e'; inherits: true; initial-value: 0; }
@property --sim-contenus { syntax: '\3c integer\3e'; inherits: true; initial-value: 0; }
@property --sim-seo_studio { syntax: '\3c integer\3e'; inherits: true; initial-value: 0; }
@property --sim-social_studio { syntax: '\3c integer\3e'; inherits: true; initial-value: 0; }
@property --wc-n { syntax: '\3c integer\3e'; inherits: false; initial-value: 0; }
@property --wc-nk { syntax: '\3c integer\3e'; inherits: false; initial-value: 0; }
@property --wc-nr { syntax: '\3c integer\3e'; inherits: false; initial-value: 0; }

@counter-style wc-vide { system: cyclic; symbols: "\200b"; }
@counter-style wc-milliers { system: fixed 1; symbols: "1\202f" "2\202f" "3\202f" "4\202f" "5\202f" "6\202f" "7\202f" "8\202f" "9\202f"; fallback: wc-vide; }
@counter-style wc-trois { system: extends decimal; pad: 3 "0"; }

[data-sim]:has(input[name="niveau"][value="Soigné"]:checked) { --sim-coef: 2; }
[data-sim]:has(input[name="niveau"][value="Affirmé"]:checked) { --sim-coef: 3; }
[data-sim]:has(input[name="niveau"][value="Signature"]:checked) { --sim-coef: 4; }
[data-sim]:has(input[name="niveau"][value="Sur-mesure"]:checked) { --sim-coef: 5; }
[data-sim]:has(input[name="propositions"][value="2"]:checked) { --sim-prop: 2; }
[data-sim]:has(input[name="propositions"][value="3"]:checked) { --sim-prop: 3; }
[data-sim]:has(input[name="allers_retours"][value="2"]:checked) { --sim-ar: 2; }
[data-sim]:has(input[name="allers_retours"][value="3"]:checked) { --sim-ar: 3; }
[data-sim]:has(input[name="allers_retours"][value="4"]:checked) { --sim-ar: 4; }
[data-sim]:has(input[name="allers_retours"][value="5"]:checked) { --sim-ar: 5; }
[data-sim]:has(input[name="inspirations"]:checked) { --sim-inspirations: 1; }
[data-sim]:has(input[name="contenus"]:checked) { --sim-contenus: 1; }
[data-sim]:has(input[name="seo_studio"]:checked) { --sim-seo_studio: 1; }
[data-sim]:has(input[name="social_studio"]:checked) { --sim-social_studio: 1; }

[data-sim] {
	--sim-socle: calc(636.5 + 67.5 * var(--sim-coef) + 33.75 * var(--sim-ar));
	--sim-total: calc(636.5 + 67.5 * var(--sim-coef) + 33.75 * var(--sim-ar) + 45 * (var(--sim-prop) - 1) * var(--sim-coef) + 67.5 * var(--sim-inspirations) + 45 * var(--sim-contenus) + 349 * var(--sim-seo_studio) + 449 * var(--sim-social_studio));
	transition: --sim-total .7s cubic-bezier(.2, .8, .2, 1), --sim-socle .7s cubic-bezier(.2, .8, .2, 1);
}

[data-sim-nombre][data-n="total"] { --wc-n: var(--sim-total); }
[data-sim-nombre][data-n="socle"] { --wc-n: var(--sim-socle); }

[data-sim]:has(input[name="niveau"][value="Efficace"]:checked):has(input[name="propositions"][value="2"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "45"; }
[data-sim]:has(input[name="niveau"][value="Efficace"]:checked):has(input[name="propositions"][value="3"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "90"; }
[data-sim]:has(input[name="niveau"][value="Soigné"]:checked):has(input[name="propositions"][value="2"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "90"; }
[data-sim]:has(input[name="niveau"][value="Soigné"]:checked):has(input[name="propositions"][value="3"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "180"; }
[data-sim]:has(input[name="niveau"][value="Affirmé"]:checked):has(input[name="propositions"][value="2"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "135"; }
[data-sim]:has(input[name="niveau"][value="Affirmé"]:checked):has(input[name="propositions"][value="3"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "270"; }
[data-sim]:has(input[name="niveau"][value="Signature"]:checked):has(input[name="propositions"][value="2"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "180"; }
[data-sim]:has(input[name="niveau"][value="Signature"]:checked):has(input[name="propositions"][value="3"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "360"; }
[data-sim]:has(input[name="niveau"][value="Sur-mesure"]:checked):has(input[name="propositions"][value="2"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "225"; }
[data-sim]:has(input[name="niveau"][value="Sur-mesure"]:checked):has(input[name="propositions"][value="3"]:checked) [data-ligne="propositions"] [data-sim-val]::before { content: "450"; }

[data-sim-lignes] li:not([data-ligne="socle"]) { display: none; }
[data-sim]:has(input[name="propositions"][value="2"]:checked) [data-ligne="propositions"],
[data-sim]:has(input[name="propositions"][value="3"]:checked) [data-ligne="propositions"] { display: flex; }
[data-sim]:has(input[name="inspirations"]:checked) [data-ligne="inspirations"] { display: flex; }
[data-sim]:has(input[name="contenus"]:checked) [data-ligne="contenus"] { display: flex; }
[data-sim]:has(input[name="seo_studio"]:checked) [data-ligne="seo_studio"] { display: flex; }
[data-sim]:has(input[name="social_studio"]:checked) [data-ligne="social_studio"] { display: flex; }
[data-sim-mensuel] { display: none; }
[data-sim]:has(input[name="seo_studio"]:checked) [data-sim-mensuel],
[data-sim]:has(input[name="social_studio"]:checked) [data-sim-mensuel] { display: inline-block; }
[data-sim]:has(input[name="seo_studio"]:checked) [data-sim-abonnement],
[data-sim]:has(input[name="social_studio"]:checked) [data-sim-abonnement] { border-color: var(--night); border-style: solid; background: var(--pink); color: var(--night); }
/* [/simulateur:bareme] */

/* Le module occupe toute la largeur, sous son titre. */
.simulateur .split { grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); }
.simulateur .split > div:first-child { max-width: 760px; }

[data-sim] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; }
[data-sim-config] { display: grid; gap: clamp(28px, 3vw, 36px); min-width: 0; }

[data-sim] fieldset {
	margin: 0;
	padding: 0 0 clamp(28px, 3vw, 36px);
	min-width: 0;
	border: 0;
	border-bottom: 1px solid var(--line);
}

[data-sim-config] > fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }

[data-sim] legend {
	float: left;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 0;
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -.01em;
}

[data-sim] legend + * { clear: both; }

[data-sim-etape] {
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--night);
	color: var(--pink);
	font-family: var(--mono);
	font-size: .85rem;
}

/* Les trois réglages du design, chacun dans son sous-groupe. */
[data-sim] [data-sim-sous] { padding: 0; border: 0; margin-top: 22px; }
[data-sim] [data-sim-sous]:first-of-type { margin-top: 0; }
[data-sim] [data-sim-sous] legend { margin-bottom: 4px; font-size: 1.02rem; }
[data-sim-aide] { margin-bottom: 12px; color: var(--muted); font-size: .93rem; }

/* Un sélecteur segmenté : des boutons radio habillés. */
[data-sim-choix] {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
}

[data-sim-choix="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-sim-choix] label { position: relative; cursor: pointer; }

[data-sim-choix] input,
[data-sim-option] input { position: absolute; opacity: 0; width: 1px; height: 1px; }

[data-sim-choix] span {
	display: grid;
	place-items: center;
	min-height: 50px;
	padding: 8px 4px;
	border-radius: 12px;
	font-size: .93rem;
	font-weight: 650;
	text-align: center;
	transition: background-color .3s var(--ressort), color .3s, transform .3s var(--ressort), box-shadow .3s;
}

[data-sim-choix] label:hover span { background: var(--soft); }

[data-sim-choix] input:checked + span {
	background: var(--night);
	color: var(--paper);
	box-shadow: 0 10px 20px -12px rgba(31, 24, 64, .8);
	transform: translateY(-1px);
}

[data-sim-choix] input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }

/* Inclus dans toutes les refontes. */
[data-sim-socle] { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

[data-sim-socle] li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	font-weight: 550;
}

[data-sim-socle] svg { width: 22px; height: 22px; color: var(--purple); }

/* Options : des cartes avec un interrupteur. */
[data-sim-cartes] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

[data-sim-option] {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
	cursor: pointer;
	transition: border-color .3s, background-color .3s, transform .3s var(--ressort), box-shadow .3s;
}

/* L'interrupteur, dessiné autour de la case masquée. */
[data-sim-option]::before {
	content: "";
	grid-column: 1;
	grid-row: 1;
	width: 48px;
	height: 28px;
	border-radius: 999px;
	background: var(--line);
	transition: background-color .3s;
}

[data-sim-option]::after {
	content: "";
	position: absolute;
	left: 23px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: 0 2px 6px rgba(31, 24, 64, .25);
	transition: transform .35s var(--ressort);
}

[data-sim-option]:hover { border-color: var(--night); transform: translateY(-2px); }
[data-sim-option]:has(input:checked) { border-color: var(--night); background: var(--lavender); box-shadow: 4px 4px 0 var(--night); }
[data-sim-option]:has(input:checked)::before { background: var(--purple); }
[data-sim-option]:has(input:checked)::after { transform: translateX(20px); }
[data-sim-option]:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }

[data-sim-option-corps] { grid-column: 2; grid-row: 1; display: grid; gap: 2px; }
[data-sim-option-corps] strong { font-family: var(--display); font-size: 1.06rem; }
[data-sim-option-corps] span { color: var(--muted); font-size: .92rem; }

[data-sim-prix] {
	grid-column: 3;
	grid-row: 1;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--soft);
	font-family: var(--mono);
	font-size: .88rem;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color .3s, color .3s;
}

[data-sim-option]:has(input:checked) [data-sim-prix] { background: var(--pink); color: var(--night); }

[data-sim-abonnement] {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-top: 14px;
	padding: 14px 18px;
	border: 1.5px dashed var(--line);
	border-radius: 14px;
	color: var(--muted);
	font-size: .93rem;
	transition: background-color .3s, border-color .3s, color .3s;
}

[data-sim-abonnement] strong { color: var(--ink); }
[data-sim-abo-prix] { font-family: var(--mono); font-weight: 700; color: var(--ink); }
[data-sim-abonnement] > span:last-child { flex-basis: 100%; }

/* Les nombres : des compteurs, avec l'espace des milliers. */
[data-sim-nombre] {
	--wc-nk: calc((var(--wc-n) - 500) / 1000);
	--wc-nr: calc(var(--wc-n) - var(--wc-nk) * 1000);
	counter-reset: wc-k var(--wc-nk) wc-r var(--wc-nr);
	font-variant-numeric: tabular-nums;
}

[data-sim-nombre]::before { content: counter(wc-k, wc-milliers) counter(wc-r, wc-trois); }

/* Le récapitulatif : sombre, collant, un compteur qui défile. */
[data-sim-resume] {
	position: relative;
	overflow: hidden;
	padding: clamp(26px, 3vw, 36px);
	border-radius: calc(var(--radius) + 8px);
	background: var(--night);
	color: var(--nuit-texte);
	box-shadow: 0 40px 70px -40px rgba(31, 24, 64, .7);
}

[data-sim-resume-titre] { color: var(--pink); font-family: var(--mono); font-size: .85rem; font-weight: 600; }

[data-sim-total] { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; color: var(--paper); }
[data-sim-total] > span:last-child { font-weight: 700; color: var(--nuit-texte); }

[data-sim-montant] {
	font-family: var(--display);
	font-size: clamp(3.2rem, 6vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -.05em;
	line-height: 1;
}

[data-sim-mensuel] {
	margin-top: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--pink);
	color: var(--night);
	font-weight: 700;
	animation: wc-apparait .4s var(--ressort);
}

@keyframes wc-apparait { from { opacity: 0; transform: translateY(6px) scale(.96); } }

[data-sim-lignes] {
	list-style: none;
	margin: 24px 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	display: grid;
	gap: 10px;
	font-size: .93rem;
}

[data-sim-lignes] li { justify-content: space-between; gap: 16px; animation: wc-apparait .35s var(--ressort); }
[data-sim-lignes] li[data-ligne="socle"] { display: flex; }
[data-sim-lignes] li > span:last-child { color: var(--paper); font-family: var(--mono); white-space: nowrap; }

[data-sim-cta] {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	width: 100%;
	min-height: 58px;
	padding: 1rem 1.4rem;
	border: 0;
	border-radius: 999px;
	background: var(--pink);
	color: var(--night);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform .25s var(--ressort), box-shadow .25s, background-color .25s;
}

[data-sim-cta] svg { width: 1.2em; height: 1.2em; transition: transform .25s var(--ressort); }
[data-sim-cta]:hover { background: var(--paper); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 216, 77, .6); }
[data-sim-cta]:hover svg { transform: translateX(4px); }

/* Le bouton respire doucement : c'est l'étape suivante. */
[data-sim-cta]::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	animation: wc-respire 2.8s ease-out infinite;
}

@keyframes wc-respire {
	0% { box-shadow: 0 0 0 0 rgba(255, 216, 77, .55); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(255, 216, 77, 0); }
}

[data-sim-cta-aide] { margin-top: 10px; text-align: center; font-size: .88rem; }

[data-sim-outils] { margin-top: 18px; }

[data-sim-outils] button {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--paper);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(255, 255, 255, .35);
	cursor: pointer;
}

[data-sim-outils] button:hover { text-decoration-color: var(--pink); }

[data-sim-mention] { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; }

/* Au téléphone, une barre collée en bas de la colonne des choix : le total reste en vue. */
[data-sim-barre] {
	position: sticky;
	bottom: 12px;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px 12px 20px;
	border-radius: 999px;
	background: var(--night);
	color: var(--nuit-texte);
	box-shadow: 0 20px 40px -16px rgba(31, 24, 64, .7);
	font-size: .92rem;
}

[data-sim-barre] strong { color: var(--paper); font-family: var(--mono); }

[data-sim-barre] a {
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--pink);
	color: var(--night);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

/* =====================================================================
   Le blog. La liste et l'en-tête des articles sont écrits par le thème :
   cartes « card use-card post-card », vignette « post-thumb », date
   « post-meta », image de une « post-cover ». Les sections de l'article
   sont imbriquées dans « article-body ».
   La feuille blog.css du thème passe après celle-ci : les sélecteurs
   ci-dessous sont un cran plus précis pour garder la main.
   ===================================================================== */

/* La liste */
.post-card { gap: 12px; }

.card.post-card .post-thumb {
	width: calc(100% + 60px);
	margin: -32px -30px 10px;
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--soft);
	aspect-ratio: 3 / 2;
}

.card.post-card .post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ressort);
}

.card.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card h3 { font-size: 1.22rem; line-height: 1.25; }
.post-card .post-meta { margin: -4px 0 0; }

.post-meta {
	color: var(--muted);
	font-family: var(--mono);
	font-size: .82rem;
}

.filters .filter { text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.filters .filter:hover { border-color: var(--night); }
.filters .filter[aria-current="page"] { background: var(--night); border-color: var(--night); color: var(--paper); }

/* L'article : une colonne de lecture, l'image de une en tête. */
.page-hero a.kicker { text-decoration: none; }
.page-hero a.kicker:hover { color: var(--purple); }
.page-hero .post-meta { margin-top: 18px; }

.post-cover,
.post-cover ~ .article-body {
	max-width: 820px;
	margin-inline: auto;
}

.post-cover { margin-bottom: clamp(32px, 5vw, 56px); }

/* Le texte courant garde une longueur de ligne confortable. */
.article-body .article-body p,
.article-body .article-body li,
.article-body .faq p,
.article-body .split p,
.article-body .section-title p { max-width: 58ch; }

.post-cover img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius) + 6px);
	box-shadow: var(--ombre);
}

/* Les sections imbriquées : pas de second conteneur, pas de grand vide. */
.article-body .section { padding: 0; margin-top: clamp(40px, 6vw, 64px); background: none; }
.article-body .section:first-child { margin-top: 0; }
.article-body .section > .container { padding-inline: 0; max-width: none; }
.article-body .article-title,
.article-body .article-body { max-width: none; margin-inline: 0; }
.article-body .article-title { margin-bottom: 18px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.article-body .article-body { font-size: 1.08rem; line-height: 1.7; }
.article-body .section h2,
.article-body .section h3 { margin-top: 0; }
.article-body .article-body h3 { margin-top: 1.8em; font-size: 1.25rem; }
.article-body .article-body li + li { margin-top: .4em; }
.article-body .section-title { margin-bottom: 28px; }
.article-body .section-title h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.article-body .section.soft {
	padding: clamp(28px, 4vw, 44px);
	border-radius: calc(var(--radius) + 6px);
	background: var(--soft);
}

.article-body .section.soft .card { background: var(--paper); border-color: var(--line); }
.article-body .section:not(.soft) .card { background: var(--soft); }
.article-body .grid-3,
.article-body .grid-4 { grid-template-columns: minmax(0, 1fr); }
.article-body .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.article-body .stats-row { gap: 24px; }
.article-body .stat strong { font-size: clamp(2.2rem, 4vw, 2.8rem); }
.article-body .wide-cta { padding: clamp(32px, 5vw, 52px); }
.article-body .wide-cta h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.article-body .faq { border-top-width: 1px; }

.post-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	max-width: 820px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

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

.site-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 9vw, 104px) 0 32px;
	background: var(--night);
	color: var(--nuit-texte);
}

/* Le nom, très grand, en bas de page. */
.site-footer::after {
	content: "wowcost";
	position: absolute;
	left: 50%;
	bottom: -.28em;
	transform: translateX(-50%);
	font-family: var(--display);
	font-size: clamp(6rem, 22vw, 20rem);
	font-weight: 900;
	letter-spacing: -.06em;
	line-height: 1;
	color: rgba(255, 255, 255, .04);
	white-space: nowrap;
	pointer-events: none;
}

.site-footer > .container { position: relative; z-index: 1; }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }

.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-mot { font-size: 2.2rem; }
.footer-brand .brand-mot::after { background: var(--pink); }
.footer-brand p { margin-top: 18px; max-width: 36ch; font-size: 1.05rem; }

.footer-col { display: grid; align-content: start; gap: 10px; }

.footer-col h3 { margin-bottom: 6px; color: var(--pink); font-family: var(--mono); font-size: .82rem; font-weight: 600; letter-spacing: .01em; }

.footer-col a,
.footer-bottom a { color: var(--nuit-texte); text-decoration: none; transition: color .2s; }
.footer-col a:hover,
.footer-bottom a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: .9rem;
}

.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Fenêtre de rendez-vous (si un agenda est branché) ---------- */

.demo-booking-modal { width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: var(--ombre); }
.demo-booking-modal::backdrop { background: rgba(31, 24, 64, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.demo-booking-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.demo-booking-head h2 { font-size: 1.2rem; }
.demo-booking-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.4rem; cursor: pointer; }
.demo-booking-frame { display: block; width: 100%; height: min(70vh, 680px); border: 0; }
.demo-booking-footer { padding: 12px 20px; font-size: .9rem; border-top: 1px solid var(--line); }

/* ---------- Avis du thème ---------- */

.notice { padding: 14px 18px; border-radius: 10px; background: var(--soft); }
.notice-success { background: var(--lavender); }
.notice-warning,
.notice-error { background: var(--peach); color: var(--tag-ink); }

/* ---------- Mouvement ----------
   Rien n'est masqué tant que le script n'a pas posé « js-anime ». */

@keyframes wc-monte { from { opacity: 0; transform: translateY(28px); } }
@keyframes wc-fondu { from { opacity: 0; } }
@keyframes wc-zoom { from { opacity: 0; transform: scale(.95); } }
@keyframes wc-trait { from { transform: scaleX(0); } }
@keyframes wc-carte { from { opacity: 0; transform: translateY(36px) scale(.97); } }

.js-anime .section:not(.est-visible):not([data-anime="none"]) > .container { opacity: 0; }

.js-anime .section.est-visible > .container { animation: wc-monte .8s var(--ressort) backwards; }
.js-anime .section.est-visible[data-anime="fade"] > .container { animation-name: wc-fondu; }
.js-anime .section.est-visible[data-anime="zoom"] > .container { animation-name: wc-zoom; }
.js-anime .section[data-anime="none"] > .container { animation: none; }

.js-anime .section.est-visible .kicker::before { animation: wc-trait .7s .25s var(--ressort) backwards; }

.js-anime .section.est-visible :is(.grid-2, .grid-3, .grid-4, .pricing-three) > * {
	animation: wc-carte .7s var(--ressort) backwards;
	animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}

.js-anime .section.est-visible .feature-list li { animation: wc-monte .6s var(--ressort) backwards; }
.js-anime .section.est-visible .feature-list li:nth-child(2) { animation-delay: .1s; }
.js-anime .section.est-visible .feature-list li:nth-child(3) { animation-delay: .2s; }
.js-anime .section.est-visible .feature-list li:nth-child(4) { animation-delay: .3s; }

/* ---------- Plus large : on ouvre en montant ---------- */

@media (min-width: 721px) {
	.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3,
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.quote-row:not(.single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jolifish-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.footer-bottom > span:last-child { margin-left: auto; }
	[data-sim-socle] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 721px) and (max-width: 940px) {
	.grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 721px) {
	.article-body .grid-3,
	.article-body .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-body .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 941px) {
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 104px); }
	.split.reverse > :first-child { order: 2; }
	.pricing-three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
	.wide-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

	.section > .container:has(> .jolifish-form),
	.section > .container:has(> .nf-form-cont) {
		display: grid;
		grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
		gap: 0 clamp(40px, 6vw, 96px);
		align-items: start;
	}

	.section > .container:has(> .jolifish-form) > .section-title,
	.section > .container:has(> .nf-form-cont) > .section-title { position: sticky; top: 120px; }

	.section > .container:has(> .nf-form-cont) > .jolifish-form-consent { grid-column: 2; }

	[data-sim] { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr); gap: 32px; }
	[data-sim-resume] { position: sticky; top: 104px; }
}

/* ---------- Téléphone et tablette : le tiroir du thème (il l'ouvre en posant « nav-open ») ---------- */

@media (max-width: 1160px) {
	.header-inner { gap: 18px; }
	.nav-link,
	.nav-group > summary { padding-inline: 11px; }
}

@media (max-width: 940px) {
	.nav-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		margin: 0;
		padding: 12px var(--gouttiere) 24px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(31, 24, 64, .35);
		max-height: calc(100vh - 78px);
		overflow-y: auto;
	}

	.nav-open .main-nav { display: flex; animation: wc-tiroir .35s var(--ressort); }

	@keyframes wc-tiroir { from { opacity: 0; transform: translateY(-10px); } }

	.nav-link,
	.nav-group > summary { display: flex; padding: 16px 12px; border-radius: 12px; font-size: 1.1rem; }

	.nav-link::after { display: none; }
	.nav-link:hover { background: var(--soft); }
	.nav-group > summary { justify-content: space-between; }

	.nav-dropdown {
		position: static;
		min-width: 0;
		margin: 2px 0 8px 12px;
		padding: 4px 0 4px 12px;
		border: 0;
		border-left: 2px solid var(--pink);
		border-radius: 0;
		box-shadow: none;
	}

	.mobile-only { display: flex; }

	[data-sim-barre] { display: flex; }
}

@media (max-width: 720px) {
	.header-register { display: none; }
	.header-inner { min-height: 68px; }
	.main-nav { max-height: calc(100vh - 68px); }
	.actions .btn { flex: 1 1 auto; justify-content: center; }
	.wide-cta::before { width: 180px; height: 180px; top: -70px; right: -60px; }
	.wide-cta::after { display: none; }
	.wide-cta > div:first-child { padding-right: 40px; }
	.faq details p { padding-right: 0; }
	[data-sim-choix] span { min-height: 46px; font-size: .8rem; }
}

@media (max-width: 480px) {
	body { font-size: 1rem; }
	.brand-mot { font-size: 1.4rem; }
	.card { padding: 26px 22px; }
	.card__media { width: calc(100% + 44px); margin: -26px -22px 8px; }
	.pricing-card { padding: 28px 22px; }
	.faq summary { font-size: 1.05rem; padding-right: 48px; }
	.wide-cta > div:first-child { padding-right: 0; }
	.wide-cta::before { width: 120px; height: 120px; top: -56px; right: -48px; }
	[data-sim-choix="5"] {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	[data-sim-choix="5"] label { flex: 1 0 auto; scroll-snap-align: start; }
	[data-sim-choix] span { padding-inline: 14px; font-size: .88rem; }
	[data-sim-option] { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
	[data-sim-option]::before { margin-top: 2px; }
	[data-sim-option]::after { top: 23px; margin-top: 0; }
	[data-sim-prix] { grid-column: 2; grid-row: 2; justify-self: start; }
	[data-sim-barre] { font-size: .85rem; }
}

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