/*
 * Petits Espaces.
 *
 * The site answers one question: est-ce que cet appareil rentre chez moi, et comment il s'installe. So the design is
 * built around measurement and provenance. Figures are set in a monospaced face because they are measurements, and
 * every figure can carry the state of its source next to it. Everything else stays quiet: one accent for the action
 * that leaves the site, hairlines instead of shadows, and a single family of type doing both jobs.
 *
 * Astra's own stylesheet is dequeued, so this file carries the base styles too.
 */

@font-face {
	font-family: 'Plex Sans';
	src: url('../fonts/plex-sans.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Plex Mono';
	src: url('../fonts/plex-mono.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #f4f6f7;
	--card: #ffffff;
	--ink: #16242b;
	--mute: #5a6b72;
	--line: #dce3e6;
	--line-soft: #e9eef0;
	--deep: #0e4e52;
	--deep-dark: #0a3a3d;
	--wash: #e8f0f0;
	--act: #f2a71b;
	--act-dark: #d8900c;
	--r: 10px;
	--r-lg: 16px;
	--wrap: 1220px;
	--prose: 760px;
	--sans: 'Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

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

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

img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep-dark); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.14; letter-spacing: -0.021em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.125rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.0625rem); }
h3 { font-size: 1.3125rem; }
h4 { font-size: 1.0625rem; }

/* Measurements read as measurements, wherever they appear. */
.pe-dim, .pe-num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.pe-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}
.pe-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--ink); color: #fff;
	padding: 10px 18px; border-radius: var(--r);
	text-decoration: none;
}
.pe-skip:focus { left: 12px; color: #fff; }

.pe-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.pe-wrap--prose { max-width: calc(var(--prose) + 48px); }

/* ---------------------------------------------------------------- Bars and masthead */

.pe-topbar {
	background: var(--ink);
	color: #b9cace;
	font-size: 0.8125rem;
	line-height: 1.5;
}
.pe-topbar p { margin: 0; padding-block: 9px; }
.pe-topbar a { color: #fff; font-weight: 600; }

.pe-masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.pe-masthead__in { display: flex; align-items: center; gap: 24px; padding-block: 14px; }

.pe-brand { display: flex; flex: none; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.pe-brand:hover { color: var(--ink); }
.pe-brand__mark { width: 40px; height: 24px; flex: none; color: var(--deep); }
.pe-brand__text { display: flex; flex-direction: column; line-height: 1.12; white-space: nowrap; }
.pe-brand__name { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.03em; }
.pe-brand__tag { font-size: 0.75rem; color: var(--mute); }

.pe-navtoggle {
	display: none; margin-left: auto;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	background: transparent; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--r);
	cursor: pointer;
}
.pe-navtoggle svg { width: 22px; height: 22px; }

.pe-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; min-width: 0; }
.pe-nav .pe-search { width: 200px; flex: none; }
.pe-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pe-menu li { position: relative; }
.pe-menu a {
	display: block; padding: 9px 12px;
	color: var(--ink); text-decoration: none;
	font-size: 0.9375rem; font-weight: 500;
	border-radius: var(--r);
	white-space: nowrap;
}
.pe-menu a:hover, .pe-menu .current-menu-item > a { background: var(--wash); color: var(--deep-dark); }
.pe-menu__more {
	position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
	display: none; width: 30px; height: 30px;
	align-items: center; justify-content: center;
	background: transparent; border: 0; color: var(--mute); cursor: pointer;
}
.pe-menu__more svg { width: 18px; height: 18px; }

.pe-menu .sub-menu {
	position: absolute; left: 0; top: 100%; z-index: 30;
	display: none; min-width: 250px;
	margin: 0; padding: 8px; list-style: none;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: 0 14px 36px rgba(22, 36, 43, 0.12);
}
.pe-menu li:hover > .sub-menu,
.pe-menu li:focus-within > .sub-menu,
.pe-menu li.is-open > .sub-menu { display: block; }
.pe-menu .sub-menu a { font-weight: 400; white-space: normal; }

/* Astra's script is gone, but a stray toggle of its own must never show through. */
.ast-menu-toggle, .main-header-menu-toggle, .ast-mobile-menu-buttons { display: none !important; }

.pe-search { position: relative; display: inline-flex; width: min(100%, 320px); }
.pe-search input {
	width: 100%; min-height: 42px;
	padding: 0 42px 0 14px;
	font: inherit; font-size: 0.9375rem;
	color: var(--ink); background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--r);
}
.pe-search input::placeholder { color: var(--mute); }
.pe-search button {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center;
	width: 34px; height: 34px;
	background: transparent; border: 0; color: var(--mute); cursor: pointer;
}
.pe-search button svg { width: 18px; height: 18px; }
.pe-search button:hover { color: var(--deep); }

/* The rail keeps the five families one click away on every page. */
.pe-rail { background: var(--card); border-bottom: 1px solid var(--line); }
.pe-rail ul {
	display: flex; gap: 2px;
	margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scrollbar-width: none;
}
.pe-rail ul::-webkit-scrollbar { display: none; }
.pe-rail a {
	display: block; padding: 13px 14px;
	color: var(--mute); text-decoration: none;
	font-size: 0.875rem; font-weight: 500;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}
.pe-rail a:hover { color: var(--ink); }
.pe-rail a[aria-current] { color: var(--deep-dark); border-bottom-color: var(--act); }

/* ---------------------------------------------------------------- Trail and page heads */

.pe-crumbs { padding-block: 14px; font-size: 0.8125rem; color: var(--mute); }
.pe-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pe-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.pe-crumbs a { color: var(--mute); text-decoration: none; }
.pe-crumbs a:hover { color: var(--deep); text-decoration: underline; }

.pe-pagehead { padding-block: 10px 28px; }
.pe-pagehead h1 { margin-bottom: 14px; }
.pe-lead { margin: 0; color: var(--mute); font-size: 1.125rem; line-height: 1.55; }

.pe-byline {
	display: flex; flex-wrap: wrap; gap: 4px 20px;
	margin: 18px 0 0;
	font-size: 0.875rem; color: var(--mute);
}
.pe-disclosure {
	margin: 16px 0 0; padding: 12px 16px;
	background: var(--wash); border-radius: var(--r);
	font-size: 0.875rem; color: var(--mute);
}
.pe-figure { margin: 24px auto 0; }
.pe-figure img { width: 100%; border-radius: var(--r-lg); }

/* ---------------------------------------------------------------- Sections and grids */

.pe-sec { padding-block: 52px 0; }
.pe-sec:last-of-type { padding-bottom: 64px; }

.pe-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
	margin-bottom: 26px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}
.pe-head h2 { margin-bottom: 6px; }
.pe-head .pe-lead { font-size: 1rem; max-width: 62ch; }
.pe-head__link { flex: none; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.pe-head__link:hover { text-decoration: underline; }

.pe-grid { display: grid; gap: 20px; }
.pe-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pe-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.pe-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.pe-card {
	display: flex; flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden;
	transition: border-color 0.15s ease;
}
.pe-card:hover { border-color: var(--deep); }
.pe-card__media { aspect-ratio: 3 / 2; background: var(--wash); }
.pe-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.pe-card__kicker { margin: 0; font-size: 0.8125rem; color: var(--mute); }
.pe-card__title { font-size: 1.1875rem; }
.pe-card__title a { color: inherit; text-decoration: none; }
.pe-card:hover .pe-card__title a { text-decoration: underline; }
.pe-card__text { margin: 0; color: var(--mute); font-size: 0.9375rem; }
.pe-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.pe-card__meta li {
	padding: 3px 10px;
	background: var(--wash); color: var(--deep-dark);
	border-radius: 999px;
	font-size: 0.75rem; font-weight: 500;
}

.pe-subnav { padding-top: 8px; }
.pe-subnav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pe-subnav a {
	display: block; padding: 8px 16px;
	background: var(--card); border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); text-decoration: none;
	font-size: 0.875rem; font-weight: 500;
}
.pe-subnav a:hover { border-color: var(--deep); color: var(--deep-dark); }

.pe-empty { color: var(--mute); font-size: 1.0625rem; }

.pagination, .pe-pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination .current {
	display: block; padding: 8px 14px;
	border: 1px solid var(--line); border-radius: var(--r);
	background: var(--card); text-decoration: none; color: var(--ink);
	font-size: 0.9375rem;
}
.pagination .current { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ---------------------------------------------------------------- Buttons */

.pe-btn, .pe-buy {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px;
	border: 1px solid transparent; border-radius: var(--r);
	font-family: inherit; font-size: 1rem; font-weight: 600;
	text-decoration: none; cursor: pointer;
}
.pe-btn { background: var(--deep); color: #fff; }
.pe-btn:hover { background: var(--deep-dark); color: #fff; }
.pe-btn.alt { background: transparent; border-color: currentColor; color: inherit; }
.pe-btn.alt:hover { background: rgba(255, 255, 255, 0.14); color: inherit; }

/* The one warm colour on the site is the action that leaves it. */
.pe-buy { background: var(--act); color: var(--ink); }
.pe-buy:hover { background: var(--act-dark); color: var(--ink); }
.pe-buy--block { width: 100%; }

/* ---------------------------------------------------------------- Prose written in the editor */

.pe-prose { padding-bottom: 56px; }
.pe-prose > * { margin-block: 0 1.1em; }
.pe-prose h2 { margin-block: 1.9em 0.5em; }
.pe-prose h3 { margin-block: 1.6em 0.4em; }
.pe-prose ul, .pe-prose ol { padding-left: 1.3em; }
.pe-prose li { margin-bottom: 0.45em; }
.pe-prose a { font-weight: 500; }
.pe-prose blockquote {
	margin-inline: 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--act);
	color: var(--mute);
}
.pe-prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.pe-prose th, .pe-prose td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.pe-prose thead th { background: var(--ink); color: #fff; border-top: 0; font-size: 0.8125rem; }
.pe-prose img { border-radius: var(--r); }

/* ---------------------------------------------------------------- Figures and their sources */

.pe-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 0 0 20px;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden;
}
.pe-facts div { padding: 16px 18px; border-right: 1px solid var(--line); }
.pe-facts div:last-child { border-right: 0; }
.pe-facts dt { font-size: 0.8125rem; color: var(--mute); }
.pe-facts dd { margin: 3px 0 0; font-family: var(--mono); font-weight: 500; font-size: 1.0625rem; }

.pe-etat {
	display: inline-block;
	padding: 2px 9px; border-radius: 999px;
	font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.pe-etat-confirme { background: #dcf0e2; color: #15603a; }
.pe-etat-concordant { background: var(--wash); color: var(--deep-dark); }
.pe-etat-contradictoire { background: #fdeed3; color: #8a5200; }
.pe-etat-non_confirme { background: #e9ecee; color: #566066; }

.pe-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); margin: 18px 0; }
.pe-sources, .pe-compare { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.9375rem; }
.pe-sources th, .pe-sources td, .pe-compare th, .pe-compare td { padding: 12px 15px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.pe-sources thead th, .pe-compare thead th { background: var(--ink); color: #fff; border-top: 0; font-size: 0.8125rem; white-space: nowrap; }
.pe-sources tbody th { width: 26%; background: var(--paper); font-weight: 600; }
.pe-sources td.pe-num { font-family: var(--mono); }
.pe-sources .pe-src { color: var(--mute); font-size: 0.8125rem; min-width: 190px; }
.pe-sources tr.is-missing td { color: var(--mute); font-style: italic; }

/* ---------------------------------------------------------------- Sections built in the editor */

.pe-sections > .pe-sec,
.pe-sections > section,
.pe-sections > div:not(.pe-hero):not(.pe-trust) { width: 100%; }
.pe-sections .pe-sec,
.pe-sections .pe-hero-in,
.pe-sections .pe-trust ul { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.pe-hero {
	position: relative;
	display: grid; align-items: center;
	min-height: 440px;
	color: #fff;
	background: linear-gradient(92deg, rgba(10, 42, 45, 0.94) 0%, rgba(10, 42, 45, 0.78) 46%, rgba(10, 42, 45, 0.1) 100%), var(--hero) center / cover;
}
.pe-hero-in { width: 100%; padding-block: 60px; }
.pe-hero h1 { max-width: 16ch; margin-bottom: 18px; color: #fff; }
.pe-hero p { max-width: 54ch; margin: 0 0 28px; color: #d3e3e3; font-size: 1.1875rem; }
.pe-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.pe-trust { background: var(--card); border-bottom: 1px solid var(--line); }
.pe-trust ul {
	display: flex; flex-wrap: wrap; gap: 10px 36px;
	margin: 0; padding-block: 16px; list-style: none;
	font-size: 0.875rem; font-weight: 500; color: var(--mute);
}
.pe-trust li { display: flex; align-items: center; gap: 8px; }
.pe-trust li::before {
	content: ''; flex: none;
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--act);
}

/* A band breaks the rhythm of a long page. The dark one carries the method, which is the site's argument. */
.pe-band { margin-top: 56px; padding-bottom: 60px; background: var(--card); border-block: 1px solid var(--line); }
.pe-band--dark { background: var(--ink); border-block: 0; color: #c3d2d6; }
.pe-band--dark h2, .pe-band--dark h3 { color: #fff; }
.pe-band--dark .pe-lead, .pe-band--dark p { color: #c4d4d8; }
.pe-band--dark a { color: #fff; }
.pe-band--dark .pe-steps li { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.pe-band--dark .pe-steps li::before { color: var(--act); }

/* The vocabulary we use for a figure, shown rather than described. */
.pe-legend { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.pe-legend li { display: flex; align-items: baseline; gap: 10px; font-size: 0.875rem; color: var(--mute); }
.pe-legend .pe-etat { flex: none; }

/* A measurement shown the way the fiches will show it: the figure, then where it comes from. */
.pe-measure { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pe-measure b { font-family: var(--mono); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; }
.pe-measure span { font-size: 0.8125rem; color: var(--mute); }

.pe-sec > h2 { margin-bottom: 8px; }
.pe-sec > .pe-lead { margin-bottom: 28px; max-width: 68ch; }

.pe-feature {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px;
	padding: 30px;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r-lg);
}
.pe-feature h3 { margin-bottom: 12px; }
.pe-feature ul { margin: 0 0 22px; padding-left: 1.2em; }
.pe-feature li { margin-bottom: 8px; }

.pe-links { display: grid; gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none; }
.pe-links a {
	display: block; padding: 15px 18px;
	background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--r);
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.pe-links a:hover { border-color: var(--deep); color: var(--deep-dark); }
.pe-links small { display: block; margin-top: 2px; color: var(--mute); font-weight: 400; font-size: 0.875rem; }

.pe-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.pe-col { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pe-col h3 { margin-bottom: 8px; }
.pe-col p { margin: 0; color: var(--mute); font-size: 0.9375rem; }

/* Numbered only where the content really is a sequence. */
.pe-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pe-steps li {
	counter-increment: step; position: relative;
	padding: 24px 24px 24px 66px;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r-lg);
}
.pe-steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute; left: 24px; top: 24px;
	font-family: var(--mono); font-size: 0.9375rem; font-weight: 500;
	color: var(--deep);
}
.pe-steps h3 { margin-bottom: 6px; }
.pe-steps p { margin: 0; color: var(--mute); font-size: 0.9375rem; }

.pe-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pe-criteria li { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }

.pe-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.pe-guide {
	display: flex; flex-direction: column; gap: 10px;
	padding: 24px;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r-lg);
	color: inherit; text-decoration: none;
}
.pe-guide:hover { border-color: var(--deep); color: inherit; }
.pe-guide p { margin: 0; flex: 1; color: var(--mute); font-size: 0.9375rem; }

.pe-faq details {
	margin-bottom: 10px; padding: 16px 20px;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--r);
}
.pe-faq details[open] { border-color: var(--deep); }
.pe-faq summary { cursor: pointer; font-weight: 600; }
.pe-faq summary::marker { color: var(--deep); }
.pe-faq p { margin: 12px 0 0; color: var(--mute); }

.pe-rule { margin: 0 0 22px; padding: 16px 20px; background: var(--wash); border-radius: var(--r); font-size: 0.9375rem; }
.pe-fit { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pe-fit li { padding: 3px 12px; background: var(--wash); color: var(--deep-dark); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.pe-note { padding: 36px 24px 0; font-size: 0.8125rem; color: var(--mute); }

/* ---------------------------------------------------------------- Footer */

.pe-footer { margin-top: 64px; background: var(--ink); color: #b9cace; }
.pe-footer a { color: #fff; text-decoration: none; }
.pe-footer a:hover { color: #fff; text-decoration: underline; }
.pe-footer__top {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px 48px;
	padding-block: 52px 40px;
}
.pe-footer__about p { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.6; }
.pe-footer__name { font-size: 1.1875rem; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.pe-footer__title { margin: 0 0 14px; font-size: 0.9375rem; font-weight: 600; color: #fff; }
.pe-footer__col ul { margin: 0; padding: 0; list-style: none; }
.pe-footer__col li { margin-bottom: 9px; font-size: 0.9375rem; }
.pe-footer__legal {
	padding-block: 20px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem; line-height: 1.6;
}
.pe-footer__legal p { margin: 0 0 4px; }

/* ---------------------------------------------------------------- Narrower screens */

@media (max-width: 1040px) {
	.pe-brand__tag { display: none; }
	.pe-search input { width: 150px; }
}

@media (max-width: 920px) {
	.pe-navtoggle { display: flex; }
	.pe-nav {
		display: none; order: 3;
		width: 100%; margin-left: 0; padding-top: 14px;
		flex-direction: column; align-items: stretch; gap: 14px;
		border-top: 1px solid var(--line);
	}
	.pe-nav.is-open { display: flex; }
	.pe-masthead__in { flex-wrap: wrap; }
	.pe-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.pe-menu > li { border-bottom: 1px solid var(--line-soft); }
	.pe-menu a { padding: 12px 4px; white-space: normal; }
	.pe-menu__more { display: flex; }
	.pe-menu .sub-menu {
		position: static; display: none;
		min-width: 0; margin: 0 0 8px; padding: 0 0 0 16px;
		border: 0; border-left: 2px solid var(--line); border-radius: 0;
		box-shadow: none;
	}
	.pe-menu li.is-open > .sub-menu { display: block; }
	.pe-menu li:hover > .sub-menu, .pe-menu li:focus-within > .sub-menu { display: none; }
	.pe-menu li.is-open > .sub-menu { display: block; }
	.pe-search input { width: 100%; }
	.pe-feature { grid-template-columns: 1fr; padding: 24px; }
	.pe-footer__top { grid-template-columns: 1fr 1fr; }
	.pe-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	.pe-wrap { padding-inline: 16px; }
	.pe-hero { min-height: 0; }
	.pe-hero-in { padding-block: 44px; }
	.pe-sections .pe-sec, .pe-sections .pe-hero-in, .pe-sections .pe-trust ul { padding-inline: 16px; }
	.pe-sec { padding-top: 40px; }
	.pe-head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.pe-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
	.pe-facts div:last-child { border-bottom: 0; }
	.pe-footer__top { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
}

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

/* PEC_FAMILY_LAYOUT_V1 */

/* Une seule navigation visible sur le site. */
.pe-rail {
    display: none !important;
}

/* Les modèles précèdent désormais les conseils. */
.pe-family-catalogue {
    padding-top: 16px;
    padding-bottom: 24px;
}

.pe-family-guide {
    margin-top: 36px;
    padding-bottom: 48px;
    border-top: 1px solid #dce5e5;
}

.pe-family-guide h2:first-child {
    margin-top: 30px;
}

/* Photo entière, sans découpe. */
.pe-family-catalogue .pe-card__media {
    height: 230px;
    aspect-ratio: auto;
    background: #fff;
}

.pe-family-catalogue .pe-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.pe-family-catalogue .pe-card__body {
    padding: 20px;
}

.pe-family-catalogue .pe-card__title {
    font-size: 19px;
    line-height: 1.35;
}

.pe-family-catalogue .pe-card__text {
    line-height: 1.65;
}

/* Appel à l’action vers la fiche, pas directement vers le marchand. */
.pe-family-catalogue .pe-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 18px;
    padding: 11px 18px;
    border-radius: 7px;
    background: #07545a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.pe-family-catalogue .pe-card__cta:hover {
    background: #123f44;
}

.pe-family-catalogue .pe-card__cta:focus-visible {
    outline: 3px solid #b87512;
    outline-offset: 4px;
}

/* Une carte unique ne reste pas coincée dans une colonne étroite. */
.pe-family-catalogue .pe-grid:has(> .pe-card:only-child) {
    grid-template-columns: minmax(0, 800px);
    max-width: 800px;
    margin-inline: auto;
}

.pe-family-catalogue .pe-card:only-child {
    display: grid;
    grid-template-columns: 43% 57%;
}

.pe-family-catalogue .pe-card:only-child .pe-card__media {
    height: 100%;
    min-height: 280px;
}

.pe-family-catalogue .pe-card:only-child .pe-card__media img {
    max-height: 350px;
}

/* L’avertissement de préparation reste discret dans l’aperçu. */
.pe-family-catalogue > p {
    font-size: 13px;
    line-height: 1.6;
    color: #53676d;
}

@media (max-width: 680px) {
    .pe-family-catalogue .pe-card:only-child {
        display: block;
    }

    .pe-family-catalogue .pe-card:only-child .pe-card__media {
        height: 250px;
        min-height: 0;
    }

    .pe-family-catalogue .pe-card:only-child .pe-card__media img {
        max-height: none;
    }

    .pe-family-guide {
        margin-top: 24px;
    }
}

