/* =========================================================================
   Domotik — feuille de styles principale
   Les couleurs, tailles et espacements viennent de theme.json : on n'écrit
   ici que des alias courts et les composants du thème.
   ========================================================================= */

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

:root {
	--c-base:      var(--wp--preset--color--base, #fff);
	--c-surface:   var(--wp--preset--color--surface, #f8fafc);
	--c-surface-2: var(--wp--preset--color--surface-2, #f1f5f9);
	--c-border:    var(--wp--preset--color--border, #e2e8f0);
	--c-text:      var(--wp--preset--color--contrast, #0f172a);
	--c-muted:     var(--wp--preset--color--muted, #475569);
	--c-subtle:    var(--wp--preset--color--subtle, #94a3b8);
	--c-primary:   var(--wp--preset--color--primary, #1e3a8a);
	--c-primary-6: var(--wp--preset--color--primary-600, #1d4ed8);
	--c-primary-1: var(--wp--preset--color--primary-50, #eff6ff);
	--c-accent:    var(--wp--preset--color--accent, #f97316);
	--c-accent-6:  var(--wp--preset--color--accent-600, #ea580c);
	--c-accent-1:  var(--wp--preset--color--accent-50, #fff7ed);
	--c-success:   var(--wp--preset--color--success, #15803d);
	--c-warning:   var(--wp--preset--color--warning, #b45309);
	--c-danger:    var(--wp--preset--color--danger, #b91c1c);

	--f-sans:  var(--wp--preset--font-family--sans);
	--f-serif: var(--wp--preset--font-family--serif);

	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--r-pill: 999px;

	--sh-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
	--sh-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .06);
	--sh-lg: 0 12px 28px -10px rgba(15, 23, 42, .18);

	--w-content: 720px;
	--w-wide: 1140px;
	--w-page: 1280px;
	--gutter: clamp(1rem, 4vw, 2rem);

	--header-h: 68px;
	--ease: cubic-bezier(.4, 0, .2, 1);
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--c-base);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: var(--wp--preset--font-size--base, 1.0625rem);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-6); }
a:hover { color: var(--c-accent-6); }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; top: -100px; left: 1rem; z-index: 999;
	background: var(--c-primary); color: #fff;
	padding: .75rem 1.25rem; border-radius: 0 0 var(--r-md) var(--r-md);
	text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- 3. Mise en page ---------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--w-page) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--w-content) + var(--gutter) * 2); }

.site-main { min-height: 60vh; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* --- 4. En-tête --------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.6) blur(10px);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }

.topbar {
	background: var(--c-primary);
	color: #dbeafe;
	font-size: var(--wp--preset--font-size--xs, .8125rem);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.topbar__claim { margin: 0; }
.topbar__menu { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar__menu a { color: #dbeafe; text-decoration: none; }
.topbar__menu a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 767px) { .topbar__claim { display: none; } }

.header-main__inner {
	display: flex; align-items: center; gap: 1.5rem;
	min-height: var(--header-h);
}

.brand { flex: 0 0 auto; }
.brand__link { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--c-text); }
.brand__mark {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: var(--r-md);
	background: var(--c-primary); color: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--f-serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.brand__tagline { font-size: .75rem; color: var(--c-muted); }
.custom-logo { max-height: 44px; width: auto; }
@media (max-width: 1319px) { .brand__tagline { display: none; } }

/* Navigation principale */
.nav { flex: 1 1 auto; min-width: 0; }
.nav__list {
	display: flex; align-items: center; flex-wrap: nowrap;
	gap: .125rem; margin: 0; padding: 0; list-style: none;
	overflow: visible;
}
.nav__item--more > .nav__link { cursor: default; color: var(--c-muted); }
.nav__item[hidden] { display: none; }

/* Le lien et son chevron forment une seule cible visuelle : sans display:flex
   sur le li, le bouton passait à la ligne sous le libellé. */
.nav__item {
	position: static;
	display: flex; align-items: center; gap: 0;
	flex: 0 0 auto; white-space: nowrap;
	border-radius: var(--r-sm);
	transition: background .15s var(--ease);
}
.nav__item:hover, .nav__item.is-current { background: var(--c-primary-1); }
.nav__item:hover > .nav__link, .nav__item.is-current > .nav__link { color: var(--c-primary); }
.nav__link {
	display: inline-block; padding: .5rem .5rem .5rem .625rem;
	color: var(--c-text); text-decoration: none;
	font-weight: 550; font-size: .875rem; letter-spacing: -.005em;
	transition: color .15s var(--ease);
}
.nav__item:not(.nav__item--has-mega) > .nav__link { padding-right: .625rem; }
.nav__toggle {
	display: none;
	background: none; border: 0; cursor: pointer;
	color: var(--c-subtle); padding: .5rem .5rem .5rem .125rem;
}
.nav__item:hover > .nav__toggle { color: var(--c-primary); }
.nav__item--has-mega > .nav__toggle { display: inline-flex; align-items: center; }
.nav__item--has-mega > .nav__toggle svg { transition: transform .2s var(--ease); }
.nav__item--has-mega.is-open > .nav__toggle svg { transform: rotate(180deg); }

@media (max-width: 1023px) { .nav { display: none; } }

/* Méga-menu */
.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--c-base);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
	box-shadow: var(--sh-lg);
	animation: mega-in .18s var(--ease);
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mega__inner {
	display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem;
	max-width: calc(var(--w-page) + var(--gutter) * 2);
	margin-inline: auto; padding: 1.75rem var(--gutter) 2rem;
}
.mega__columns {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.25rem 2rem; margin: 0; padding: 0; list-style: none;
}
.mega__column { min-width: 0; }
.mega__heading {
	display: block; font-family: var(--f-serif); font-weight: 600; font-size: 1.0625rem;
	color: var(--c-text); text-decoration: none; margin-bottom: .375rem;
}
.mega__heading:hover { color: var(--c-primary-6); }
.mega__count { margin: 0; font-size: .8125rem; color: var(--c-subtle); }
.mega__links { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .125rem; }
.mega__link { color: var(--c-muted); text-decoration: none; font-size: .875rem; }
.mega__link:hover { color: var(--c-primary-6); text-decoration: underline; }

.mega__featured { border-left: 1px solid var(--c-border); padding-left: 2rem; }
.mega__featured-title {
	margin: 0 0 .875rem; font-size: .75rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .07em; color: var(--c-accent-6);
}
.mega__card { display: flex; gap: .75rem; align-items: flex-start; text-decoration: none; margin-bottom: .875rem; }
.mega__card-img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: 0 0 auto; }
.mega__card-body { display: flex; flex-direction: column; gap: .25rem; }
.mega__card-title { color: var(--c-text); font-size: .875rem; font-weight: 550; line-height: 1.35; }
.mega__card:hover .mega__card-title { color: var(--c-primary-6); }

@media (max-width: 1200px) {
	.mega__inner { grid-template-columns: 1fr; }
	.mega__featured { border-left: 0; border-top: 1px solid var(--c-border); padding: 1.25rem 0 0; }
}

/* Actions d'en-tête */
.header-actions { display: flex; align-items: center; gap: .375rem; margin-left: auto; }
.icon-button {
	display: grid; place-items: center;
	width: 40px; height: 40px; border: 0; border-radius: var(--r-md);
	background: transparent; color: var(--c-text); cursor: pointer;
	transition: background .15s var(--ease);
}
.icon-button:hover { background: var(--c-surface-2); }
.icon-button--burger { display: none; }
@media (max-width: 1023px) { .icon-button--burger { display: grid; } }

.burger { display: grid; gap: 4px; width: 18px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Panneau de recherche */
.search-panel { border-top: 1px solid var(--c-border); background: var(--c-surface); }
.search-panel__inner { padding-block: 1.25rem 1.5rem; }
.search-panel__suggestions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .875rem; }
.search-panel__label { font-size: .8125rem; color: var(--c-muted); }

.search-form__control {
	display: flex; align-items: center; gap: .625rem;
	background: var(--c-base); border: 1px solid var(--c-border);
	border-radius: var(--r-md); padding: .375rem .375rem .375rem .875rem;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search-form__control:focus-within { border-color: var(--c-primary-6); box-shadow: 0 0 0 3px var(--c-primary-1); }
.search-form__icon { color: var(--c-subtle); flex: 0 0 auto; }
.search-form__input {
	flex: 1 1 auto; border: 0; background: none; padding: .5rem 0;
	font: inherit; font-size: 1rem; color: inherit; min-width: 0;
}
.search-form__input:focus { outline: none; }
.search-form__submit {
	flex: 0 0 auto; border: 0; border-radius: var(--r-sm);
	background: var(--c-primary); color: #fff;
	padding: .5rem 1rem; font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer;
}
.search-form__submit:hover { background: var(--c-primary-6); }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); animation: fade-in .2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer__panel {
	position: absolute; inset-block: 0; right: 0;
	width: min(400px, 88vw); background: var(--c-base);
	display: flex; flex-direction: column;
	box-shadow: var(--sh-lg); animation: slide-in .22s var(--ease);
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-border);
}
.drawer__title { font-family: var(--f-serif); font-weight: 600; font-size: 1.125rem; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: .5rem 0; }
.drawer__foot { padding: 1rem 1.25rem; border-top: 1px solid var(--c-border); background: var(--c-surface); }

.drawer-list { margin: 0; padding: 0; list-style: none; }
.drawer-item { border-bottom: 1px solid var(--c-border); }
.drawer-item__row { display: flex; align-items: stretch; }
.drawer-item__link { flex: 1 1 auto; padding: .875rem 1.25rem; color: var(--c-text); text-decoration: none; font-weight: 550; }
.drawer-item__toggle {
	flex: 0 0 auto; width: 52px; border: 0; border-left: 1px solid var(--c-border);
	background: none; color: var(--c-muted); cursor: pointer;
}
.drawer-item__toggle svg { transition: transform .2s var(--ease); margin-inline: auto; }
.drawer-item.is-open .drawer-item__toggle svg { transform: rotate(180deg); }
.drawer-sub { margin: 0; padding: 0 0 .75rem; list-style: none; background: var(--c-surface); }
.drawer-sub a { display: block; padding: .5rem 1.25rem .5rem 2rem; color: var(--c-muted); text-decoration: none; font-size: .9375rem; }
.drawer-sub a:hover { color: var(--c-primary-6); background: var(--c-surface-2); }

body.is-locked { overflow: hidden; }

/* --- 5. Fil d'Ariane, étiquettes, puces --------------------------------- */

.breadcrumbs { margin-bottom: 1rem; font-size: .8125rem; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; color: var(--c-subtle); }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin-right: .5rem; color: var(--c-border); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary-6); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-text); }

.badge {
	display: inline-block; padding: .25rem .625rem;
	border-radius: var(--r-pill); font-size: .75rem; font-weight: 650;
	letter-spacing: .02em; text-decoration: none; line-height: 1.5;
}
.badge--category { background: var(--c-primary-1); color: var(--c-primary); }
.badge--category:hover { background: var(--c-primary); color: #fff; }
.badge--format { background: var(--c-surface-2); color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.badge--test, .badge--comparatif { background: var(--c-accent-1); color: var(--c-accent-6); }
.badge--format:hover { background: var(--c-text); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips--center { justify-content: center; }
.chip {
	display: inline-block; padding: .375rem .75rem;
	background: var(--c-surface); border: 1px solid var(--c-border);
	border-radius: var(--r-pill); font-size: .8125rem; color: var(--c-muted); text-decoration: none;
	transition: all .15s var(--ease);
}
.chip:hover { background: var(--c-primary-1); border-color: var(--c-primary-6); color: var(--c-primary); }

.subnav { margin-top: 1.25rem; overflow-x: auto; scrollbar-width: thin; }
.subnav__list { display: flex; gap: .5rem; margin: 0; padding: 0 0 .5rem; list-style: none; }
.subnav__link {
	display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap;
	padding: .5rem .875rem; border: 1px solid var(--c-border); border-radius: var(--r-pill);
	color: var(--c-muted); text-decoration: none; font-size: .875rem; font-weight: 550;
	transition: all .15s var(--ease);
}
.subnav__link:hover { border-color: var(--c-primary-6); color: var(--c-primary); }
.subnav__link.is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.subnav__link--up { background: var(--c-surface-2); }
.subnav__count { font-size: .75rem; opacity: .65; }

/* --- 6. Cartes ---------------------------------------------------------- */

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); aspect-ratio: 16 / 9; }
.card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.card:hover .card__image { transform: scale(1.03); }
.card__score { position: absolute; right: .625rem; bottom: .625rem; }
.card__body { padding-top: .875rem; display: flex; flex-direction: column; gap: .5rem; }
.card__badges { display: flex; flex-wrap: wrap; gap: .375rem; }
.card__title { margin: 0; font-size: 1.1875rem; line-height: 1.3; font-family: var(--f-serif); font-weight: 600; }
.card__link { color: var(--c-text); text-decoration: none; }
.card__link:hover { color: var(--c-primary-6); }
.card__excerpt { margin: 0; color: var(--c-muted); font-size: .9375rem; line-height: 1.6; }
.card__footer { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--c-subtle); margin-top: auto; padding-top: .25rem; }

.card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.card--featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
	.card--featured .card__body { padding-top: 0; gap: .75rem; }
	.card--featured .card__title { font-size: clamp(1.5rem, 3vw, 2.125rem); }
	.card--featured .card__excerpt { font-size: 1.0625rem; }
}
.card--compact .card__title { font-size: 1rem; }

/* --- 7. Notes ----------------------------------------------------------- */

.score-pill {
	display: inline-flex; align-items: baseline; gap: 1px;
	padding: .3125rem .5rem; border-radius: var(--r-sm);
	font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
	color: #fff; background: var(--c-primary);
}
.score-pill--sm { font-size: .8125rem; }
.score-pill--md { font-size: 1rem; padding: .375rem .625rem; }
.score-pill--lg { font-size: 1.5rem; padding: .625rem .875rem; border-radius: var(--r-md); }
.score-pill__max { font-size: .7em; opacity: .75; font-weight: 600; }
.score-pill--exceptional { background: #166534; }
.score-pill--excellent   { background: var(--c-success); }
.score-pill--good        { background: var(--c-primary); }
.score-pill--fair        { background: var(--c-warning); }
.score-pill--weak        { background: #c2410c; }
.score-pill--bad         { background: var(--c-danger); }

/* --- 8. Article --------------------------------------------------------- */

.article__header { padding-block: .5rem 1.5rem; }
.article__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .875rem; }
.article__title {
	margin: 0 0 .75rem; font-family: var(--f-serif); font-weight: 600;
	font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.02em;
}
.article__lede { margin: 0 0 1.25rem; font-size: 1.1875rem; line-height: 1.6; color: var(--c-muted); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1rem; font-size: .875rem; color: var(--c-muted); }
.post-meta > * + *::before { content: "·"; margin-right: 1rem; color: var(--c-border); }
.post-meta a { color: var(--c-text); text-decoration: none; font-weight: 550; }
.post-meta a:hover { color: var(--c-primary-6); text-decoration: underline; }
.post-meta__updated { color: var(--c-accent-6); }

.article__scoreline {
	display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
	margin-top: 1.25rem; padding: 1rem 1.25rem;
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
}
.article__scoreline-text { display: flex; flex-direction: column; }
.article__scoreline-label { font-weight: 650; }
.article__scoreline-price { font-size: .875rem; color: var(--c-muted); }
.article__scoreline-jump { margin-left: auto; font-size: .875rem; font-weight: 600; }

.article__media { margin: 0 auto 2rem; max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.article__image { width: 100%; border-radius: var(--r-lg); background: var(--c-surface-2); }
.article__caption { margin-top: .625rem; font-size: .8125rem; color: var(--c-subtle); text-align: center; }

.article__layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 1024px) {
	.article__layout { grid-template-columns: minmax(0, var(--w-content)) 280px; justify-content: center; align-items: start; }
}
.article__main { min-width: 0; }

.article__taxonomies { display: grid; gap: .75rem; margin: 2.5rem 0; }

/* Contenu rédactionnel */
.entry-content { font-size: 1.0625rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 {
	margin-top: 2.5em; margin-bottom: .5em;
	font-family: var(--f-serif); font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.25; letter-spacing: -.015em; scroll-margin-top: calc(var(--header-h) + 20px);
}
.entry-content h3 {
	margin-top: 2em; margin-bottom: .4em;
	font-family: var(--f-serif); font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 20px);
}
.entry-content h2 + h3 { margin-top: 1em; }
.entry-content p { margin-block: 0; }
.entry-content a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content figure img { border-radius: var(--r-md); }
.entry-content figcaption { font-size: .8125rem; color: var(--c-subtle); text-align: center; margin-top: .5rem; }
.entry-content blockquote {
	margin-inline: 0; padding-left: 1.25rem;
	border-left: 3px solid var(--c-accent);
	font-family: var(--f-serif); font-size: 1.1875rem; color: var(--c-text);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-content th, .entry-content td { padding: .625rem .75rem; border: 1px solid var(--c-border); text-align: left; }
.entry-content thead th { background: var(--c-surface-2); font-weight: 650; }
.entry-content tbody tr:nth-child(even) { background: var(--c-surface); }
.entry-content .wp-block-table { overflow-x: auto; }

.is-style-domotik-callout {
	padding: 1.25rem 1.5rem; border-radius: var(--r-md);
	background: var(--c-primary-1); border-left: 3px solid var(--c-primary-6);
}
.is-style-domotik-warning {
	padding: 1.25rem 1.5rem; border-radius: var(--r-md);
	background: var(--c-accent-1); border-left: 3px solid var(--c-accent);
}
.is-style-domotik-checklist { list-style: none; padding-left: 0; }
.is-style-domotik-checklist li { position: relative; padding-left: 1.75rem; }
.is-style-domotik-checklist li::before {
	content: ""; position: absolute; left: 0; top: .55em;
	width: 8px; height: 14px; border: solid var(--c-success);
	border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.is-style-domotik-bordered img { border: 1px solid var(--c-border); }

/* --- 9. Sommaire et colonne ------------------------------------------- */

.sidebar { min-width: 0; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.5rem; }
@media (max-width: 1023px) { .sidebar { order: -1; } .sidebar__sticky { position: static; } }

.toc { padding: 1.125rem 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.toc__title { margin: 0 0 .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted); }
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; max-height: 60vh; overflow-y: auto; }
.toc__item { line-height: 1.4; }
.toc__item + .toc__item { margin-top: .5rem; }
.toc__item--h3 { padding-left: .875rem; }
.toc__link {
	color: var(--c-muted); text-decoration: none; font-size: .875rem;
	border-left: 2px solid transparent; padding-left: .625rem; margin-left: -.625rem;
	display: block; transition: all .15s var(--ease);
}
.toc__link:hover { color: var(--c-primary-6); }
.toc__link.is-active { color: var(--c-primary); font-weight: 600; border-left-color: var(--c-accent); }

.widget + .widget { margin-top: 1.5rem; }
.widget__title { margin: 0 0 .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted); }

/* --- 10. Verdict -------------------------------------------------------- */

.verdict {
	margin-top: 3rem; padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--c-border); border-radius: var(--r-lg);
	background: linear-gradient(180deg, var(--c-surface), var(--c-base));
	border-top: 4px solid var(--c-primary);
}
.verdict--exceptional, .verdict--excellent { border-top-color: var(--c-success); }
.verdict--fair { border-top-color: var(--c-warning); }
.verdict--weak, .verdict--bad { border-top-color: var(--c-danger); }

.verdict__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.verdict__eyebrow { margin: 0 0 .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-6); }
.verdict__title { margin: 0; font-size: clamp(1.375rem, 3vw, 1.75rem); font-family: var(--f-serif); }
.verdict__tested { margin: .375rem 0 0; font-size: .8125rem; color: var(--c-muted); }

.verdict__score { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 .125rem; text-align: right; }
.verdict__score-value { font-size: clamp(2.5rem, 7vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.verdict--exceptional .verdict__score-value, .verdict--excellent .verdict__score-value { color: var(--c-success); }
.verdict--fair .verdict__score-value { color: var(--c-warning); }
.verdict--weak .verdict__score-value, .verdict--bad .verdict__score-value { color: var(--c-danger); }
.verdict__score-max { font-size: 1.125rem; font-weight: 600; color: var(--c-subtle); }
.verdict__score-label { grid-column: 1 / -1; font-size: .8125rem; font-weight: 650; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }

.verdict__body { margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.65; }

.verdict__scores { display: grid; gap: .625rem; margin-top: 1.5rem; }
.score-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; align-items: center; gap: .875rem; font-size: .875rem; }
.score-row__label { color: var(--c-muted); }
.score-row__bar { height: 7px; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; }
.score-row__fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--c-primary); }
.score-row__value { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
@media (max-width: 600px) { .score-row { grid-template-columns: 1fr auto; } .score-row__bar { grid-column: 1 / -1; order: 3; } }

.verdict__balance { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .verdict__balance { grid-template-columns: 1fr 1fr; } }
.verdict__col-title { margin: 0 0 .625rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-family: var(--f-sans); }
.verdict__col--pros .verdict__col-title { color: var(--c-success); }
.verdict__col--cons .verdict__col-title { color: var(--c-danger); }
.verdict__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .9375rem; }
.verdict__list li { position: relative; padding-left: 1.5rem; line-height: 1.5; }
.verdict__col--pros li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--c-success); }
.verdict__col--cons li::before { content: "–"; position: absolute; left: 0; font-weight: 800; color: var(--c-danger); }

.verdict__offer {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border);
}
.verdict__price { display: flex; flex-direction: column; }
.verdict__price-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-subtle); }
.verdict__price-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.verdict__disclosure { margin: .875rem 0 0; font-size: .75rem; color: var(--c-subtle); line-height: 1.5; }

.button {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .75rem 1.5rem; border-radius: var(--r-md);
	background: var(--c-primary); color: #fff; text-decoration: none;
	font-weight: 650; font-size: .9375rem; border: 0; cursor: pointer;
	transition: background .15s var(--ease), transform .15s var(--ease);
}
.button:hover { background: var(--c-primary-6); color: #fff; transform: translateY(-1px); }
.button--accent { background: var(--c-accent); }
.button--accent:hover { background: var(--c-accent-6); color: #fff; }

/* --- 11. FAQ, auteur, navigation d'article, liés ----------------------- */

.faq { margin-top: 3rem; }
.faq__title { margin: 0 0 1rem; font-size: clamp(1.375rem, 3vw, 1.75rem); font-family: var(--f-serif); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__question { padding: 1rem 2rem 1rem 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
	content: ""; position: absolute; right: .5rem; top: 1.4rem;
	width: 9px; height: 9px; border: solid var(--c-muted); border-width: 0 2px 2px 0;
	transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq__item[open] .faq__question::after { transform: rotate(-135deg); }
.faq__answer { padding-bottom: 1rem; color: var(--c-muted); }
.faq__answer p { margin: 0; }

.author-box {
	display: flex; gap: 1.25rem; align-items: flex-start;
	margin-top: 3rem; padding: 1.5rem;
	background: var(--c-surface); border-radius: var(--r-md); border: 1px solid var(--c-border);
}
.author-box__avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box__name { margin: 0 0 .375rem; font-weight: 650; }
.author-box__name a { color: var(--c-text); text-decoration: none; }
.author-box__job { display: block; font-size: .8125rem; font-weight: 500; color: var(--c-muted); }
.author-box__bio { margin: 0; font-size: .9375rem; color: var(--c-muted); line-height: 1.6; }

.post-nav { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link {
	display: flex; flex-direction: column; gap: .25rem;
	padding: 1rem 1.25rem; border: 1px solid var(--c-border); border-radius: var(--r-md);
	text-decoration: none; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.post-nav__link:hover { border-color: var(--c-primary-6); background: var(--c-primary-1); }
.post-nav__link--next { text-align: right; }
.post-nav__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-subtle); }
.post-nav__title { color: var(--c-text); font-weight: 600; line-height: 1.35; font-size: .9375rem; }

.related { margin-top: clamp(3rem, 8vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--c-border); }
.related__title { margin: 0 0 1.5rem; font-family: var(--f-serif); font-size: clamp(1.375rem, 3vw, 1.75rem); }

/* --- 12. Accueil, archives, pagination, vide --------------------------- */

.home-intro { padding-block: clamp(1.5rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); }
.home-intro__title { margin: 0 0 .5rem; font-family: var(--f-serif); font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.02em; }
.home-intro__lede { margin: 0; font-size: 1.1875rem; color: var(--c-muted); line-height: 1.6; }

.archive-header { padding-block: .5rem clamp(1.5rem, 4vw, 2.5rem); }
.archive-header__title { margin: 0 0 .75rem; font-family: var(--f-serif); font-size: clamp(1.875rem, 5vw, 2.75rem); letter-spacing: -.02em; line-height: 1.15; }
.archive-header__intro { margin: 0; font-size: 1.0625rem; color: var(--c-muted); line-height: 1.65; max-width: 62ch; }
.archive-header__count { margin: .75rem 0 0; font-size: .8125rem; color: var(--c-subtle); }

.pagination { margin-top: clamp(2.5rem, 6vw, 4rem); }
.pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.pagination__item a, .pagination__item span {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: .875rem;
	border: 1px solid var(--c-border); border-radius: var(--r-md);
	color: var(--c-muted); text-decoration: none; font-size: .9375rem; font-weight: 550;
}
.pagination__item a:hover { border-color: var(--c-primary-6); color: var(--c-primary); background: var(--c-primary-1); }
.pagination__item .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination__item .dots { border-color: transparent; }

.empty { padding: clamp(2rem, 6vw, 4rem) 0; text-align: center; color: var(--c-muted); }
.empty .search-form { max-width: 480px; margin: 1.5rem auto 0; }

.error-404 { padding-block: clamp(2rem, 8vw, 5rem); text-align: center; }
.error-404__code { margin: 0; font-family: var(--f-serif); font-size: clamp(4rem, 16vw, 8rem); font-weight: 600; line-height: 1; color: var(--c-primary-1); }
.error-404__title { margin: -.25em 0 .75rem; font-family: var(--f-serif); font-size: clamp(1.5rem, 4vw, 2.25rem); }
.error-404__text { margin: 0 0 2rem; color: var(--c-muted); }
.error-404 .chips { margin-top: 2rem; }

.page-article__header { padding-block: .5rem 1.5rem; }
.page-article__title { margin: 0; font-family: var(--f-serif); font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.02em; line-height: 1.15; }
.page-article__media { margin-block: 1.5rem 2rem; }
.page-article__image { width: 100%; border-radius: var(--r-lg); }

/* --- 13. Pied de page --------------------------------------------------- */

.site-footer { background: var(--c-text); color: #cbd5e1; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; margin-top: clamp(3rem, 8vw, 5rem); }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.site-footer__name { margin: 0 0 .625rem; font-family: var(--f-serif); font-size: 1.375rem; font-weight: 600; color: #fff; }
.site-footer__pitch { margin: 0; font-size: .9375rem; line-height: 1.65; color: #94a3b8; max-width: 42ch; }
.site-footer__heading { margin: 0 0 .875rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #fff; font-family: var(--f-sans); }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .9375rem; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .8125rem; color: #94a3b8;
}
.site-footer__legal { margin: 0; max-width: 70ch; }
.site-footer__legal-menu { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

/* --- 14. Préférences système et impression ----------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

@media print {
	.site-header, .drawer, .site-footer, .related, .post-nav, .sidebar, .search-panel { display: none !important; }
	body { font-size: 11pt; }
	.article__layout { display: block; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
