/* AreuhAreuh — feuille de styles principale
   Palette : vert sauge, crème, blanc cassé, terracotta, jaune sable. */

:root {
	--sauge: #5E7654;
	--sauge-fonce: #46583F;
	--sauge-clair: #E6EDDD;
	--creme: #FBF4E9;
	--creme-2: #F5EBDB;
	--blanc: #FFFDFA;
	--terra: #C4573B;
	--terra-btn: #B34A2F;
	--terra-fonce: #A94529;
	--sable: #F5DE9B;
	--sable-bord: #E3A93B;
	--encre: #2E3B2C;
	--muted: #59664F;
	--ligne: #E8DFCF;
	--rayon: 18px;
	--rayon-s: 12px;
	--ombre: 0 6px 22px rgba(70, 88, 63, .10);
	--f-titre: 'Fraunces', Georgia, 'Times New Roman', serif;
	--f-texte: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--f-main: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
	--w: 1380px;
}

@font-face { font-family: 'Caveat'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/caveat-600.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--creme); color: var(--encre);
	font-family: var(--f-texte); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-fonce); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 600; line-height: 1.18; color: var(--encre); margin: 0 0 .5em; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: calc(var(--w) + 48px); margin-inline: auto; padding-inline: 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; background: var(--blanc); padding: 10px 16px; z-index: 1000; left: 8px; top: 8px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }

.ico { flex: none; }

/* --- Boutons ---------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
	font-weight: 700; font-size: 17px; line-height: 1; padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn .ico { width: 20px; height: 20px; }
.btn-terra { background: var(--terra-btn); color: #fff; box-shadow: 0 4px 12px rgba(196, 87, 59, .28); }
.btn-terra:hover { background: var(--terra-fonce); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 12px 20px; font-size: 16px; }
.areuh-btn-outline {
	display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 15px;
	color: var(--terra-fonce); background: var(--blanc); border: 1.6px solid var(--terra); border-radius: 999px; padding: 8px 16px; line-height: 1.1;
}
.areuh-btn-outline:hover { background: var(--terra); color: #fff; }

/* --- En-tête ---------------------------------------------------------- */
.site-header { background: var(--creme); position: relative; z-index: 50; }
.header-top { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--sauge-fonce); flex: none; }
.brand-mark { width: 62px; height: 62px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-titre); font-weight: 700; font-size: 42px; letter-spacing: -.5px; color: var(--sauge-fonce); }
.brand-tld { font-weight: 600; }
.brand-tag { font-size: 16px; color: var(--sauge); margin-top: 6px; letter-spacing: .2px; }
.brand-tag i { font-style: normal; color: var(--terra); padding-inline: 4px; }

.search-pill {
	flex: 1 1 auto; max-width: 450px; margin-inline: auto; display: flex; align-items: center; gap: 10px;
	background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: 999px; padding: 0 18px; height: 46px; color: var(--sauge-fonce);
}
.search-pill:focus-within { border-color: var(--sauge); }
.search-pill input { border: 0; background: transparent; width: 100%; font: inherit; font-size: 16px; color: var(--encre); outline: none; }
.search-pill input::placeholder { color: #6d7868; }
.search-pill .ico { width: 22px; height: 22px; }

.header-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.socials { display: flex; gap: 14px; }
.socials a { color: var(--terra); display: grid; place-items: center; }
.socials .ico { width: 30px; height: 30px; }

.nav-toggle { display: none; background: var(--sauge); color: #fff; border: 0; border-radius: 12px; width: 46px; height: 46px; place-items: center; cursor: pointer; margin-left: auto; }

/* --- Navigation ------------------------------------------------------- */
.primary-nav { background: var(--sauge); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.primary-nav .menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; flex: 1; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px;
	padding: 17px 18px; white-space: nowrap;
}
.primary-nav .menu > li > a:hover, .primary-nav .menu > li.current-menu-item > a, .primary-nav .menu > li.current-menu-parent > a { background: rgba(0, 0, 0, .22); }
.primary-nav .menu > li.menu-item-has-children > a::after {
	content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px;
}
.primary-nav .menu > li.nav-home > a { font-size: 0; color: transparent; overflow: hidden;
	width: 56px; padding-inline: 0; justify-content: center;
	background: no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E");
}
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--blanc); border-radius: 0 0 14px 14px; box-shadow: var(--ombre);
	padding: 8px; display: none; z-index: 20;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 10px 14px; color: var(--encre); text-decoration: none; font-weight: 600; border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--sauge-clair); }

/* Bouton jaune sable « Guides & Comparatifs » (élément de menu avec la classe CSS menu-cta) */
.primary-nav .menu > li.menu-cta { margin-left: auto; }
.primary-nav .menu > li.menu-cta > a {
	background: var(--sable); color: var(--encre); border: 2px solid var(--sable-bord); border-radius: 999px; margin-block: 8px; padding: 12px 22px 12px 20px;
	box-shadow: 0 0 0 4px rgba(245, 222, 155, .35); font-size: 18px;
}
.primary-nav .menu > li.menu-cta > a::before {
	content: ''; width: 26px; height: 26px; flex: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E3B2C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.4l2.1 10.2h10.4L20.5 7H6.2'/%3E%3Ccircle cx='9.5' cy='18.6' r='1.4'/%3E%3Ccircle cx='17' cy='18.6' r='1.4'/%3E%3C/svg%3E");
}
.primary-nav .menu > li.menu-cta > a:hover { background: #F8E7B4; }

/* --- Bandeau d'accueil ------------------------------------------------ */
.hero { position: relative; background: var(--creme); overflow: hidden; min-height: 300px; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 70%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--creme) 0, rgba(251, 244, 233, .85) 14%, rgba(251, 244, 233, 0) 55%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 34px; z-index: 1; }
.hero-copy { max-width: 560px; }
.pill { display: inline-block; background: var(--sauge); color: #fff; font-weight: 800; letter-spacing: .6px; font-size: 14px; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 14px; text-wrap: balance; }
.hero-text { font-size: 19px; line-height: 1.5; margin-bottom: 20px; max-width: 520px; }
.hero-aside { position: relative; display: block; width: 360px; height: 220px; text-decoration: none; color: var(--encre); }
.handwritten { position: absolute; left: 0; top: 4px; font-family: var(--f-main); font-size: 31px; line-height: 1; transform: rotate(-4deg); background: rgba(255, 253, 250, .92); padding: 10px 16px; border-radius: 16px; box-shadow: var(--ombre); }
.curved-arrow { position: absolute; right: 26px; top: 56px; color: var(--encre); width: 56px; }
.polaroids { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; }
.polaroid { width: 100px; height: 112px; background: var(--blanc); border: 5px solid #fff; border-radius: 6px; box-shadow: 0 6px 16px rgba(46, 59, 44, .22); display: grid; place-items: center; color: var(--sauge); }
.polaroid .ico { width: 62px; height: 62px; }
.polaroid.p1 { transform: rotate(-4deg); }
.polaroid.p2 { transform: rotate(3deg) translateY(-14px); color: var(--encre); }
.polaroid.p3 { transform: rotate(-2deg); color: var(--terra); }

/* --- Bandeau des rubriques ------------------------------------------- */
.cat-strip { margin-top: 16px; }
.cat-strip ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; background: var(--creme-2); border-radius: 18px; padding: 12px; }
.cat-strip a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; text-decoration: none; color: var(--encre); border-radius: 12px; height: 100%; }
.cat-strip a:hover { background: rgba(255, 253, 250, .8); }
.cat-ico { width: 44px; height: 44px; color: var(--terra); stroke-width: 1.6; }
.cat-text { display: flex; flex-direction: column; line-height: 1.25; }
.cat-text strong { font-size: 16.5px; white-space: nowrap; }
.cat-text small { font-size: 13px; color: var(--muted); }

/* --- Grille principale ------------------------------------------------ */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px 350px; grid-template-areas: "latest dossiers news" "selection selection guides" "editorial editorial guides"; gap: 28px; margin-top: 34px; align-items: start; }
.area-latest { grid-area: latest; min-width: 0; }
.area-dossiers { grid-area: dossiers; min-width: 0; }
.area-news { grid-area: news; }
.area-selection { grid-area: selection; margin-top: 0 !important; min-width: 0; }
.area-guides { grid-area: guides; min-width: 0; }
.area-editorial { grid-area: editorial; min-width: 0; margin-top: 12px; max-width: 800px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.block-title { font-size: 27px; margin: 0; padding-bottom: 8px; position: relative; display: inline-block; }
.block > .block-title:not(.title-sel)::after, .block-head .block-title:not(.title-sel)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--sauge); }
.more { font-weight: 700; font-size: 15px; color: var(--sauge-fonce); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.more:hover { color: var(--terra); }
.more .ico { width: 16px; height: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--sauge-clair); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.chip { position: absolute; left: 12px; top: calc((100% - 0px) * 0); margin-top: 0; }
.card .chip { top: 12px; left: 12px; background: var(--blanc); color: var(--terra-fonce); font-weight: 700; font-size: 13.5px; text-decoration: none; padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--f-texte); font-weight: 800; font-size: 16.5px; line-height: 1.3; margin: 0; }
.card-title a { color: var(--encre); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-title a:hover { color: var(--terra-fonce); }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin: auto 0 0; white-space: nowrap; }
.meta .ico { width: 16px; height: 16px; }

/* --- Sélection produits ---------------------------------------------- */
.selection { margin-top: 0; background: var(--sauge-clair); border: 1.5px solid #D5E0C8; border-radius: 22px; padding: 18px 22px 20px; }
.title-sel { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 0; }
.sel-ico { width: 30px; height: 30px; color: var(--terra); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product { background: var(--blanc); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; box-shadow: 0 2px 10px rgba(70, 88, 63, .08); min-width: 0; }
.product-media { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; background: var(--creme); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-family: var(--f-texte); font-weight: 800; font-size: 14.5px; line-height: 1.25; margin: 0 0 8px; overflow-wrap: anywhere; }
.disclosure { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

/* --- Colonne latérale ------------------------------------------------- */
.home-side { display: flex; flex-direction: column; gap: 22px; }
.dossiers { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dossiers a { display: grid; grid-template-columns: 96px 1fr 24px; align-items: center; gap: 14px; background: #F9E9D8; border-radius: 16px; padding: 8px 14px 8px 8px; text-decoration: none; color: var(--encre); transition: transform .2s; }
.dossiers a:hover { transform: translateX(3px); }
.dossier-media { width: 96px; height: 64px; border-radius: 12px; overflow: hidden; display: block; }
.dossier-media img { width: 100%; height: 100%; object-fit: cover; }
.dossier-text { display: flex; flex-direction: column; line-height: 1.25; }
.dossier-text strong { font-size: 16.5px; }
.dossier-text small { font-size: 13.5px; color: var(--muted); }
.dossier-arrow { width: 22px; height: 22px; color: var(--terra); }

.newsletter { background: var(--blanc); border-radius: 20px; box-shadow: var(--ombre); padding: 18px 20px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.news-ico { width: 54px; height: 54px; color: var(--sauge); stroke-width: 1.4; }
.news-title { font-size: 21px; margin: 0 0 6px; }
.newsletter p { font-size: 15px; margin: 0; color: var(--muted); }
.news-form { margin-top: 10px; }
.news-form form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input[type=email], .news-form input[type=text] { flex: 1 1 160px; padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: 999px; font: inherit; }
.news-form button, .news-form input[type=submit] { background: var(--terra-btn); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; }

.popular { background: var(--blanc); border-radius: 20px; box-shadow: var(--ombre); padding: 16px 18px 6px; }
.popular .block-title { margin-bottom: 6px; font-size: 24px; }
.guide-list li + li { border-top: 1px solid var(--ligne); }
.guide-list a { display: grid; grid-template-columns: 52px 1fr 20px; gap: 14px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--encre); font-weight: 700; }
.guide-list a:hover { color: var(--terra-fonce); }
.guide-media { width: 52px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--creme); }
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-arrow { width: 20px; height: 20px; transform: rotate(-90deg); color: var(--terra); }

/* --- Bloc éditorial --------------------------------------------------- */
.editorial { margin-top: 0; }
.editorial h2 { font-size: 31px; }
.editorial h3 { font-size: 22px; margin-top: 1.4em; color: var(--sauge-fonce); }
.editorial p { font-size: 18px; }
.editorial a { font-weight: 700; }
.areuh-note { font-size: 15px !important; color: var(--muted); border-left: 4px solid var(--sauge); padding-left: 14px; margin-top: 1.4em; }

/* --- Grands guides ---------------------------------------------------- */
.grands-guides { margin-top: 40px; margin-bottom: 44px; display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: center; background: #FBEBDD; border-radius: 22px; padding: 20px 22px; max-width: var(--w); }
.gg-intro { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.gg-ico { width: 54px; height: 54px; color: var(--terra); }
.gg-intro .block-title { font-size: 26px; }
.gg-intro p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.gg-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gg-tiles a { position: relative; display: block; aspect-ratio: 1 / .92; border-radius: 14px; overflow: hidden; text-decoration: none; }
.gg-tiles img { width: 100%; height: 100%; object-fit: cover; }
.gg-label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 253, 250, .96); color: var(--encre); font-weight: 800; font-size: 14.5px; border-radius: 999px; padding: 7px 12px; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.gg-label .ico { width: 16px; height: 16px; color: var(--terra); }

/* --- Pied de page ----------------------------------------------------- */
.site-footer { background: var(--sauge-fonce); color: #EAF0E4; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.site-footer a { color: #EAF0E4; text-decoration: none; }
.site-footer a:hover { color: var(--sable); text-decoration: underline; }
.brand-footer .brand-name, .brand-footer .brand-tag { color: #fff; }
.brand-footer .brand-mark { width: 52px; height: 52px; }
.brand-footer .brand-name { font-size: 32px; }
.footer-brand p { margin-top: 14px; font-size: 15.5px; opacity: .9; max-width: 340px; }
.footer-title { font-family: var(--f-texte); font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .8px; color: var(--sable); margin-bottom: 12px; }
.footer-col li { margin-bottom: 7px; font-size: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 16px; font-size: 14.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom p { margin: 0; opacity: .85; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.to-top .ico { transform: rotate(180deg); width: 18px; height: 18px; }

/* --- Pages intérieures (articles, rubriques, pages) ------------------ */
.page-wrap { padding-block: 34px 50px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 3.2vw, 42px); }
.page-head .lead { font-size: 19px; color: var(--muted); max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--sauge-fonce); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 9px 15px; border-radius: 999px; background: var(--blanc); text-decoration: none; font-weight: 700; color: var(--encre); box-shadow: 0 2px 8px rgba(70, 88, 63, .08); }
.pagination .current { background: var(--sauge); color: #fff; }
.entry { max-width: 740px; margin-inline: auto; }
.entry-hero { margin: 0 auto 26px; max-width: 980px; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.entry-hero img { width: 100%; height: auto; }
.entry-meta { color: var(--muted); font-size: 15px; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.entry-content { font-size: 18.5px; line-height: 1.75; }
.entry-content h2 { font-size: 29px; margin-top: 1.7em; }
.entry-content h3 { font-size: 23px; margin-top: 1.5em; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--ligne); padding: 10px 12px; text-align: left; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 22px; border-left: 4px solid var(--sauge); background: var(--sauge-clair); border-radius: 0 12px 12px 0; }

.ph-ico { width: 60%; height: 60%; margin: auto; color: var(--sauge); opacity: .6; }
.product-media, .guide-media { display: grid; place-items: center; }

/* --- Tablette et petits écrans d'ordinateur --------------------------- */
@media (max-width: 1180px) {
	.brand-name { font-size: 36px; }
	.home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "latest latest" "dossiers dossiers" "news guides" "selection selection" "editorial editorial"; }
	.dossiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dossiers a { grid-template-columns: 84px 1fr 20px; gap: 10px; }
	.dossier-media { width: 84px; height: 60px; }
	.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-strip ul { grid-template-columns: repeat(3, 1fr); }
	.grands-guides { grid-template-columns: 1fr; }
	.gg-tiles { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.primary-nav .menu > li > a { padding: 15px 12px; font-size: 17px; }
}

/* Menu replié, bandeau empilé : en dessous de 1000 px */
@media (max-width: 1000px) {
	.header-top { flex-wrap: wrap; gap: 10px 14px; }
	.search-pill { order: 3; flex-basis: 100%; max-width: none; margin-inline: 0; }
	.socials { display: none; }
	.header-actions { margin-left: auto; }
	.nav-toggle { display: grid; margin-left: 0; }
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; }
	.nav-inner { display: block; padding-inline: 12px; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding-block: 6px; }
	.primary-nav .menu > li > a { padding: 13px 12px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.primary-nav .nav-home > a { width: auto; justify-content: flex-start; background-position: 12px center; padding-left: 52px; font-size: 18px; color: #fff; }
	.primary-nav .menu > li.menu-cta { margin: 10px 4px 6px; }
	.primary-nav .menu > li.menu-cta > a { justify-content: center; border-bottom: 2px solid var(--sable-bord); }
	.primary-nav .sub-menu { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 0 14px; }
	.primary-nav .sub-menu a { color: #fff; }

	.hero { min-height: 0; display: block; }
	.hero-media { position: relative; inset: auto; width: 100%; height: 300px; }
	.hero-media img { object-position: 50% 30%; }
	.hero-media::after { background: linear-gradient(180deg, rgba(251, 244, 233, 0) 60%, var(--creme) 100%); }
	.hero-grid { grid-template-columns: 1fr; padding-block: 6px 26px; }
	.hero-aside { display: none; }
}

/* --- Mobile ----------------------------------------------------------- */
@media (max-width: 760px) {
	body { font-size: 16.5px; }
	.container { padding-inline: 16px; }
	.brand { gap: 10px; }
	.brand-mark { width: 46px; height: 46px; }
	.brand-name { font-size: 29px; }
	.brand-tag { font-size: 12.5px; margin-top: 4px; }
	.header-actions { display: none; }
	.search-pill { height: 42px; }
	.nav-toggle { margin-left: auto; }
	.hero-media { height: 200px; }
	.hero h1 { font-size: 28px; }
	.hero-text { font-size: 17px; }
	.cat-strip ul { grid-template-columns: repeat(2, 1fr); }
	.cat-strip a { padding: 6px; }
	.cat-ico { width: 38px; height: 38px; }
	.cat-text small { display: none; }
	.cat-text strong { white-space: normal; font-size: 16px; }
	.home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "latest" "dossiers" "selection" "news" "guides" "editorial"; gap: 26px; }
	.cards { grid-template-columns: 1fr; }
	.card { flex-direction: row; }
	.card-media { width: 40%; aspect-ratio: auto; min-height: 120px; flex: none; }
	.card .chip { top: 8px; left: 8px; font-size: 12px; }
	.card-title { font-size: 16.5px; }
	.block-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.block-title { font-size: 24px; }
	.products { grid-template-columns: 1fr; }
	.selection { padding: 16px; }
	.dossiers { display: flex; }
	.dossiers a { grid-template-columns: 90px 1fr 22px; }
	.dossier-media { width: 90px; height: 60px; }
	.editorial h2 { font-size: 26px; }
	.editorial p { font-size: 17px; }
	.grands-guides { padding: 16px; }
	.gg-tiles { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; gap: 22px; padding-block: 30px 18px; }
	.archive-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1000px) {
	.archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* AreuhAreuh - gabarits : article, rubrique, guides, comparatifs, sponsorise, publicite */

/* --- Repli visuel (aucune photo) --- */
.fallback-visual { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background: linear-gradient(135deg, var(--sauge-clair), var(--creme-2)); }
.fallback-visual .brand-mark { width: 46%; max-width: 64px; height: auto; opacity: .38; filter: grayscale(.2); }
.product-media .fallback-visual, .guide-media .fallback-visual { border-radius: inherit; }

/* --- Fil d'Ariane --- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--sauge); }
.crumbs a { color: var(--sauge-fonce); text-decoration: none; padding: 6px 0; display: inline-block; }
.crumbs a:hover { text-decoration: underline; }

.chip-static { position: static; display: inline-block; background: var(--sauge-clair); color: var(--sauge-fonce); font-weight: 800; font-size: 13.5px; text-decoration: none; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; box-shadow: none; }
a.chip-static:hover { background: var(--sauge); color: #fff; }

.entry-wide { max-width: 980px; margin-inline: auto; }
.entry-wide.page-head, .single .page-head.entry { margin-bottom: 20px; }
.page-head .lead p { margin: 0 0 .8em; }
.cat-intro { max-width: 780px; }

/* --- Article --- */
.single .entry-meta { gap: 6px 18px; }
.entry-content > p:first-of-type { font-size: 20px; }
.entry-content a { font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content ul { list-style: disc; }
.entry-content li { margin-bottom: .35em; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content .wp-block-table, .entry-content table { display: block; overflow-x: auto; max-width: 100%; }
.entry-content table { font-size: 16.5px; }
.entry-content th { background: var(--sauge-clair); }
.entry-content hr { border: 0; border-top: 2px solid var(--ligne); margin: 2em 0; }

.toc { background: var(--blanc); border: 1.5px solid var(--ligne); border-left: 5px solid var(--sauge); border-radius: var(--rayon-s); padding: 14px 20px 10px; margin: 0 0 1.8em; }
.toc-title { font-family: var(--f-titre); font-weight: 600; font-size: 19px; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; list-style: decimal; font-size: 16.5px; }
.toc li { margin-bottom: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--sauge-fonce); font-weight: 600; text-decoration: none; line-height: 1.4; }
.crumbs li { display: flex; align-items: center; }
.crumbs li[aria-current] { font-size: 14px; padding: 6px 0; }
.category-page .featured { margin-top: 30px; }
.toc a:hover { color: var(--terra-fonce); text-decoration: underline; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 20px; }

.callout { margin: 1.6em 0; padding: 14px 18px; border-radius: var(--rayon-s); background: var(--sauge-clair); border-left: 5px solid var(--sauge); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 4px; font-family: var(--f-titre); font-size: 18px; }
.callout-astuce { background: #FBEFD0; border-color: var(--sable-bord); }
.callout-attention { background: #F8E4DC; border-color: var(--terra); }

.entry-foot { margin-top: 34px; }
.note-sante { font-size: 14.5px; color: var(--muted); border-left: 4px solid var(--sauge); padding-left: 14px; margin: 18px auto 0; max-width: 740px; }
.cat-chips, .cat-useful { margin: 22px 0 0; }
.chips-title { font-weight: 800; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--sauge-fonce); margin: 0 0 8px; }
.cat-chips ul, .cat-useful ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a, .cat-useful a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--blanc); border: 1.5px solid var(--ligne); color: var(--encre); font-weight: 700; text-decoration: none; }
.cat-chips a:hover, .cat-useful a:hover { border-color: var(--sauge); background: var(--sauge-clair); }
.cat-useful a { background: var(--sauge-clair); border-color: transparent; }

.related { margin-top: 10px; margin-bottom: 40px; }
.related .block-title, .featured .block-title, .category-page .block-title { margin-bottom: 16px; }
.featured { margin-bottom: 28px; }
.category-page section + section { margin-top: 34px; }
.category-page .ad-slot { margin-top: 30px; }

/* --- Article sponsorise --- */
.sponsored-banner { display: flex; flex-direction: column; gap: 2px; background: #FBEFD0; border: 1.5px solid var(--sable-bord); border-radius: var(--rayon-s); padding: 12px 16px; margin-top: 14px; font-size: 15.5px; }
.sponsored-banner strong { font-size: 16.5px; }
.sponsored-banner span { color: #4d5a49; }
.is-sponsored .entry-hero { box-shadow: 0 0 0 3px var(--sable); }

/* --- Publicite : hauteur reservee, jamais collante --- */
.ad-slot { position: relative; display: block; margin: 28px auto; max-width: 980px; text-align: center; background: transparent; }
.ad-slot .ad-label { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-preview { border: 2px dashed var(--sauge); border-radius: var(--rayon-s); padding: 12px; display: grid; place-content: center; gap: 6px; background: rgba(230, 237, 221, .45); }
.ad-preview em { font-size: 14px; color: var(--sauge-fonce); font-style: normal; }
.entry-content .ad-slot { max-width: 100%; }

/* --- Guides et comparatifs --- */
.guide-page .entry, .guide-page .entry-wide { max-width: 980px; }
.guide-page .entry-content > * { max-width: 760px; }
.guide-page .faq { margin-top: 40px; }
.guide-page .entry-content h2 { margin-top: 1.6em; }
.guide-page > section, .guide-page > nav { margin-top: 34px; }
.disclosure-box { background: var(--blanc); border: 1.5px solid var(--ligne); border-left: 5px solid var(--terra); border-radius: var(--rayon-s); padding: 12px 16px; font-size: 15px; color: #4d5a49; margin-top: 16px; }

.pcards { display: grid; gap: 20px; margin-top: 14px; }
.pcard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; }
.pcard-media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--creme-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard h3 { font-size: 24px; margin: 0 0 4px; }
.pcard-brand { color: var(--muted); font-weight: 700; margin: 0 0 8px; font-size: 15px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0; }
.proscons h4 { font-family: var(--f-texte); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 4px; color: var(--sauge-fonce); }
.proscons ul { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.proscons li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.pros li::before { content: "+"; position: absolute; left: 4px; color: var(--sauge-fonce); font-weight: 800; }
.cons li::before { content: "\2212"; position: absolute; left: 4px; color: var(--terra-fonce); font-weight: 800; }
.pcard-cta { margin: 12px 0 0; }
.areuh-btn-outline { min-height: 44px; }

.cmp-wrap { overflow-x: auto; margin-top: 14px; border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--blanc); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.cmp-table thead th { background: var(--sauge); color: #fff; font-family: var(--f-texte); font-weight: 800; }
.cmp-table tbody th { background: var(--sauge-clair); width: 22%; font-weight: 800; }
.cmp-table .nr { color: var(--muted); font-style: italic; }

.faq details { background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: var(--rayon-s); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 18px; min-height: 44px; list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--ligne); }
.faq details p { padding: 12px 18px 4px; margin: 0 0 8px; }
.related-guides ul { display: grid; gap: 8px; }
.related-guides a { display: block; padding: 12px 16px; border-radius: var(--rayon-s); background: var(--blanc); border: 1.5px solid var(--ligne); font-weight: 700; text-decoration: none; color: var(--encre); }
.related-guides a:hover { border-color: var(--sauge); }

/* --- Accessibilite : zones cliquables, focus, contrastes --- */
.nav-toggle { min-width: 44px; min-height: 44px; }
.more, .to-top { min-height: 44px; display: inline-flex; align-items: center; }
.pagination .page-numbers { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.footer-col a { display: inline-block; padding: 4px 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--terra-fonce); outline-offset: 3px; }
.primary-nav a:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.card:focus-within { box-shadow: 0 0 0 3px var(--terra-fonce), var(--ombre); }
.card-title a:focus-visible { outline: none; }

/* --- Responsive --- */
@media (max-width: 1000px) {
	.primary-nav .menu > li.nav-home > a { font-size: 18px; color: #fff; width: auto; justify-content: flex-start; padding: 13px 12px 13px 52px; background-position: 12px center; }
	.pcard { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.entry-content > p:first-of-type { font-size: 18.5px; }
	.entry-content { font-size: 17.5px; }
	.pcard { grid-template-columns: 1fr; padding: 14px; }
	.pcard-media { aspect-ratio: 16 / 10; }
	.proscons { grid-template-columns: 1fr; }
	.crumbs { font-size: 13.5px; }
	.related .cards { grid-template-columns: 1fr; }

	/* Tableau comparatif -> cartes empilees */
	.cmp-wrap { box-shadow: none; background: transparent; overflow: visible; }
	.cmp-table, .cmp-table thead, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; min-width: 0; width: 100%; }
	.cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cmp-table tbody tr { background: var(--blanc); border-radius: var(--rayon-s); margin-bottom: 14px; box-shadow: var(--ombre); overflow: hidden; }
	.cmp-table tbody th { width: 100%; background: var(--sauge); color: #fff; }
	.cmp-table td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; border-bottom: 1px solid var(--ligne); }
	.cmp-table td::before { content: attr(data-label); font-weight: 800; color: var(--sauge-fonce); }
}
