/*
 * Pateo Enfant · styles de base, chargés sur toutes les pages.
 * Charte (docs/charte.md), en-tête, méga-menu, tiroir mobile, recherche, pied de page
 * et composants communs (boutons, badges, champs, cartes, FAQ, encadrés, fiche de test).
 * Repris des maquettes HTML (docs/maquettes/html/pateo.css), qui font foi.
 * Mobile d'abord ; points de rupture : 768 px (tablette), 1024 px (desktop).
 *
 * Accessibilité (WCAG 2.2 AA) : texte ≥ 4,5:1, éléments d'interface ≥ 3:1,
 * cibles ≥ 44 px, focus toujours visible, rien ne repose sur la couleur seule,
 * animations coupées si l'utilisateur a demandé moins de mouvement.
 */

/* ---------- Polices (fichiers du thème) ---------- */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/nunito-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); }

/* Polices de secours ajustées : même encombrement que Fraunces et Nunito Sans pendant leur chargement (pas de décalage). */
@font-face { font-family: "Pateo Fraunces Secours"; src: local("Georgia"); size-adjust: 93%; ascent-override: 105%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: "Pateo Nunito Secours"; src: local("Arial"), local("Helvetica"); size-adjust: 100.6%; ascent-override: 100%; descent-override: 35%; line-gap-override: 0%; }

/* ---------- Variables ---------- */
:root {
	--pateo-sauge: #7C9A82;
	--pateo-sauge-fonce: #4F6B55;
	--pateo-sauge-clair: #E6EDE7;
	--pateo-moutarde: #E2A848;
	--pateo-terracotta: #D97757;
	--pateo-terracotta-fonce: #A8462A; /* proposé : badge Promo, texte blanc 5,9:1 */
	--pateo-creme: #FBF8F3;
	--pateo-blanc: #FFFFFF;
	--pateo-anthracite: #2B2D42;
	--pateo-gris: #5A5C70;
	--pateo-bordure: #D8D2C6;
	--pateo-bordure-legere: #ECE6DC;
	--pateo-bordure-champ: #8C8578; /* proposé : contour des champs, cases et tailles, 3,5:1 (WCAG 1.4.11) */

	--pateo-ombre: 0 6px 20px rgba(43, 45, 66, 0.06);
	--pateo-rayon-carte: 20px;
	--pateo-rayon-image: 16px;
	--pateo-rayon-champ: 14px;
	--pateo-rayon-taille: 12px;

	--pateo-titres: "Fraunces", "Pateo Fraunces Secours", Georgia, serif;
	--pateo-texte: "Nunito Sans", "Pateo Nunito Secours", Arial, sans-serif;

	--pateo-largeur: 1200px;
	--pateo-gouttiere: 16px;
	--pateo-bande: 48px;          /* espacement vertical des bandes */
	--pateo-entete: 65px;         /* hauteur de l'en-tête collant (mobile) */
}
@media (min-width: 768px) {
	:root { --pateo-gouttiere: 24px; --pateo-bande: 72px; }
}
@media (min-width: 1024px) {
	:root { --pateo-entete: 118px; } /* ligne compacte 64 + navigation 53 + bordure */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--pateo-entete) + 16px); }
body {
	margin: 0;
	background: var(--pateo-creme);
	color: var(--pateo-anthracite);
	font-family: var(--pateo-texte);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--pateo-titres); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-family: var(--pateo-texte); font-weight: 800; font-size: 18px; line-height: 1.35; margin: 1.6em 0 .5em; }
@media (min-width: 768px) {
	h1 { font-size: 44px; }
	h2 { font-size: 30px; }
	h3 { font-size: 20px; }
}

a { color: var(--pateo-sauge-fonce); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pateo-anthracite); }
:focus-visible { outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 2px; border-radius: 6px; }

/* Lien d'évitement : premier élément focalisable de la page */
.pateo-evitement {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--pateo-anthracite); color: var(--pateo-creme);
	padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none;
}
.pateo-evitement:focus { top: 12px; color: var(--pateo-creme); }
#pateo-contenu { outline: none; }

.pateo-petit { font-size: 14px; }
.pateo-secondaire { color: var(--pateo-gris); }
.pateo-surtitre {
	display: block;
	font-family: var(--pateo-texte);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--pateo-sauge-fonce);
	margin: 0 0 8px;
}
.pateo-visuellement-cache, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.pateo-icone { width: 24px; height: 24px; flex: none; stroke: var(--pateo-sauge-fonce); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Mise en page ---------- */
.pateo-conteneur { width: 100%; max-width: calc(var(--pateo-largeur) + 2 * var(--pateo-gouttiere)); margin: 0 auto; padding: 0 var(--pateo-gouttiere); }
.pateo-bande { padding: var(--pateo-bande) 0; }
.pateo-bande--creme { background: var(--pateo-creme); }
.pateo-bande--sauge { background: var(--pateo-sauge-clair); }
.pateo-bande--blanc { background: var(--pateo-blanc); }
.pateo-bande__entete { margin-bottom: 28px; max-width: 70ch; }
.pateo-bande__entete p { color: var(--pateo-gris); margin: 0; }
.pateo-lecture { max-width: 70ch; }

/* Emplacement d'image (pas de vraie photo dans les maquettes) */
.pateo-image {
	display: flex; align-items: center; justify-content: center; text-align: center;
	background: var(--pateo-sauge-clair);
	color: var(--pateo-sauge-fonce);
	font-size: 13px; font-weight: 700; line-height: 1.35;
	padding: 12px;
	border-radius: var(--pateo-rayon-image);
	aspect-ratio: 1 / 1;
	width: 100%;
}
.pateo-bande--sauge .pateo-image { background: var(--pateo-blanc); }
.pateo-carte .pateo-image, .pateo-article .pateo-image { background: var(--pateo-sauge-clair); } /* toujours visibles dans une carte blanche */
.pateo-image--4-3 { aspect-ratio: 4 / 3; }
.pateo-image--16-10 { aspect-ratio: 16 / 10; }
/* Vraie photo : même cadre que l'emplacement, recadrée sans déformation */
img.pateo-image { padding: 0; height: auto; object-fit: cover; }

/* ---------- Boutons ---------- */
.pateo-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 28px;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--pateo-texte); font-weight: 800; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; text-align: center;
}
.pateo-bouton--principal { background: var(--pateo-moutarde); color: var(--pateo-anthracite); }
.pateo-bouton--principal:hover { background: #D99A33; color: var(--pateo-anthracite); }
.pateo-bouton--secondaire { background: transparent; border-color: var(--pateo-sauge-fonce); color: var(--pateo-sauge-fonce); }
.pateo-bouton--secondaire:hover { background: var(--pateo-sauge-fonce); color: var(--pateo-creme); }
.pateo-bouton--compact { min-height: 44px; padding: 0 18px; }
.pateo-bouton .pateo-icone { width: 20px; height: 20px; stroke: currentColor; }

/* Lien avec icône (zone cliquable de 44 px) */
.pateo-lien-icone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }

/* ---------- Badges ----------
 * Texte toujours lisible (≥ 4,5:1) et liseré blanc pour ressortir sur n'importe quelle photo.
 * Nouveau : anthracite / crème (12,7:1). Promo : terracotta foncé / blanc (5,9:1).
 * En stock : sauge très clair / sauge foncé (4,9:1). Bientôt de retour : grège clair / gris (5,3:1).
 */
.pateo-badge {
	display: inline-flex; align-items: center; min-height: 28px;
	padding: 3px 12px; border-radius: 999px;
	font-size: 14px; font-weight: 800; line-height: 1.3;
	color: var(--pateo-anthracite);
	box-shadow: 0 0 0 2px var(--pateo-blanc);
}
.pateo-badge--nouveau { background: var(--pateo-anthracite); color: var(--pateo-creme); }
.pateo-badge--promo { background: var(--pateo-terracotta-fonce); color: var(--pateo-blanc); }
.pateo-badge--stock { background: var(--pateo-sauge-clair); color: var(--pateo-sauge-fonce); }
.pateo-badge--retour { background: var(--pateo-bordure-legere); color: var(--pateo-gris); }

/* ---------- Champs ---------- */
.pateo-champ { display: flex; flex-direction: column; gap: 6px; }
.pateo-champ label { font-size: 14px; font-weight: 700; }
.pateo-champ input, .pateo-champ select {
	height: 52px; padding: 0 16px;
	background: var(--pateo-blanc);
	border: 2px solid var(--pateo-bordure-champ); border-radius: var(--pateo-rayon-champ);
	width: 100%;
}
.pateo-champ select {
	appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F6B55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.pateo-champ input:focus, .pateo-champ select:focus { border-color: var(--pateo-sauge-fonce); outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 1px; }

/* Case à cocher */
.pateo-case { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.pateo-case input {
	appearance: none; width: 24px; height: 24px; flex: none; margin: 0;
	border: 2px solid var(--pateo-bordure-champ);
	border-radius: 7px; background: var(--pateo-blanc);
	display: grid; place-content: center; cursor: pointer;
}
.pateo-case input::before {
	content: ""; width: 12px; height: 7px; margin-top: -3px;
	border-left: 2.5px solid var(--pateo-creme); border-bottom: 2.5px solid var(--pateo-creme);
	transform: rotate(-45deg); opacity: 0;
}
.pateo-case input:checked { background: var(--pateo-sauge-fonce); border-color: var(--pateo-sauge-fonce); }
.pateo-case input:checked::before { opacity: 1; }
.pateo-case input:focus-visible { outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 2px; }
.pateo-case__compte { margin-left: auto; color: var(--pateo-gris); font-size: 14px; }

/* Sélecteur de taille (l'état choisi est porté par aria-pressed, pas seulement la couleur) */
.pateo-tailles { display: flex; flex-wrap: wrap; gap: 8px; }
.pateo-taille {
	min-width: 48px; height: 44px; padding: 0 10px;
	border: 2px solid var(--pateo-bordure-champ); border-radius: var(--pateo-rayon-taille);
	background: var(--pateo-blanc); font-weight: 800; font-size: 15px; cursor: pointer;
}
.pateo-taille:hover { border-color: var(--pateo-sauge-fonce); }
.pateo-taille[aria-pressed="true"] { background: var(--pateo-sauge-fonce); border-color: var(--pateo-sauge-fonce); color: var(--pateo-creme); }

/* Pastilles de couleur (toujours accompagnées du nom) */
.pateo-coloris { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(43, 45, 66, .3); flex: none; }

/* ---------- En-tête collant ---------- */
.pateo-entete {
	position: sticky; top: 0; z-index: 40;
	background: var(--pateo-blanc); border-bottom: 1px solid var(--pateo-bordure-legere);
}
.pateo-entete__ligne { display: flex; align-items: center; gap: 4px; height: 64px; }
.pateo-entete__logo { display: block; padding: 6px 0; margin-right: auto; }
.pateo-entete__logo svg { display: block; width: 120px; height: auto; }
.pateo-entete__recherche { display: none; }
.pateo-entete__actions { display: flex; align-items: center; }
.pateo-entete__action {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; min-height: 44px; padding: 0 6px;
	background: none; border: 0; border-radius: 12px; cursor: pointer;
	color: var(--pateo-anthracite); text-decoration: none; font-weight: 700; font-size: 15px;
}
.pateo-entete__action:hover { background: var(--pateo-sauge-clair); color: var(--pateo-anthracite); }
.pateo-entete__texte { display: none; }
.pateo-entete__compteur {
	position: absolute; top: 0; right: -2px;
	min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
	background: var(--pateo-sauge-fonce); color: var(--pateo-creme);
	font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
	box-shadow: 0 0 0 2px var(--pateo-blanc);
}
.pateo-entete__compteur[hidden] { display: none; }
.pateo-entete__compte { display: none; }
.pateo-entete__burger { margin-right: -6px; }

/* Panneau de recherche (mobile) */
.pateo-entete__recherche-mobile { padding: 4px 0 16px; }

/* Barre de recherche (le champ et son bouton sont dans .pateo-recherche__champ) */
.pateo-recherche { position: relative; }
.pateo-recherche__champ { position: relative; }
.pateo-recherche__libelle { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pateo-recherche input {
	width: 100%; height: 52px; padding: 0 56px 0 20px;
	border: 2px solid var(--pateo-bordure-champ); border-radius: 999px; background: var(--pateo-creme);
}
.pateo-recherche input:focus { border-color: var(--pateo-sauge-fonce); outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 1px; background: var(--pateo-blanc); }
.pateo-recherche button {
	position: absolute; right: 4px; top: 4px; width: 44px; height: 44px;
	border: 0; border-radius: 50%; background: transparent; cursor: pointer;
	display: grid; place-items: center;
}

/* ---------- Suggestions de recherche (pendant la frappe) ----------
 * Panneau sous le champ : recherches fréquentes au focus, puis suggestions,
 * catégories et produits dès 2 lettres ; « aucun résultat » avec pistes.
 * Clavier : flèche bas entre dans la liste, flèches haut / bas s'y déplacent, Échap ferme.
 */
.pateo-suggestions {
	margin-top: 8px; background: var(--pateo-blanc);
	border: 1px solid var(--pateo-bordure-legere); border-radius: var(--pateo-rayon-carte); box-shadow: var(--pateo-ombre);
	padding: 12px 0; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
	text-align: left;
}
.pateo-suggestions__groupe { padding: 4px 0 8px; }
.pateo-suggestions__groupe + .pateo-suggestions__groupe { border-top: 1px solid var(--pateo-bordure-legere); padding-top: 12px; }
.pateo-suggestions__titre { padding: 0 20px; margin: 0 0 4px; font-size: 12px; }
.pateo-suggestions__lien {
	display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 20px;
	color: var(--pateo-anthracite); text-decoration: none; font-size: 15px;
}
.pateo-suggestions__lien:hover, .pateo-suggestions__lien:focus-visible { background: var(--pateo-sauge-clair); color: var(--pateo-anthracite); outline: none; }
.pateo-suggestions__lien:focus-visible { box-shadow: inset 3px 0 0 var(--pateo-sauge-fonce); border-radius: 0; }
.pateo-suggestions__lien .pateo-icone { width: 18px; height: 18px; }
.pateo-suggestions__lien strong { font-weight: 800; }
.pateo-suggestions__lien small { color: var(--pateo-gris); font-size: 13px; }
.pateo-suggestions__pastilles { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 4px; }
.pateo-suggestions__pastilles a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
	border: 2px solid var(--pateo-bordure-legere); border-radius: 999px;
	color: var(--pateo-anthracite); text-decoration: none; font-weight: 700; font-size: 14px;
}
.pateo-suggestions__pastilles a:hover, .pateo-suggestions__pastilles a:focus-visible { border-color: var(--pateo-sauge-fonce); color: var(--pateo-sauge-fonce); }
.pateo-suggestions__produit { display: grid; grid-template-columns: 52px 1fr auto; }
.pateo-suggestions__produit .pateo-image { width: 52px; height: 52px; padding: 0; border-radius: 12px; font-size: 0; }
.pateo-suggestions__prix { font-weight: 800; font-size: 15px; white-space: nowrap; }
.pateo-suggestions__tout { justify-content: space-between; font-weight: 800; color: var(--pateo-sauge-fonce); }
.pateo-suggestions__vide { padding: 4px 20px 8px; margin: 0; }
.pateo-suggestions__vide + .pateo-suggestions__pastilles { padding-bottom: 8px; }
.pateo-suggestions__colonne + .pateo-suggestions__colonne { border-top: 1px solid var(--pateo-bordure-legere); padding-top: 8px; }
.pateo-recherche input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
@media (min-width: 1024px) {
	.pateo-entete__recherche { position: relative; }
	.pateo-entete__recherche .pateo-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; }
	/* Avec des résultats : panneau plus large, sur deux colonnes (requêtes et catégories | produits) */
	.pateo-entete__recherche .pateo-suggestions--resultats { right: auto; width: 780px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); padding: 12px 0; }
	.pateo-suggestions--resultats .pateo-suggestions__colonne + .pateo-suggestions__colonne { border-top: 0; padding-top: 0; border-left: 1px solid var(--pateo-bordure-legere); }
}

/* ---------- Menu mobile : tiroir à niveaux (univers > catégories > sous-catégories) ---------- */
.pateo-tiroir {
	position: fixed; left: 0; right: 0; top: var(--pateo-entete); bottom: 0; z-index: 39;
	background: var(--pateo-blanc); overflow-y: auto; overscroll-behavior: contain;
	border-top: 1px solid var(--pateo-bordure-legere);
}
.pateo-tiroir__niveau { padding: 8px var(--pateo-gouttiere) 32px; }
.pateo-tiroir__retour {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 4px -8px; padding: 0 8px;
	background: none; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--pateo-sauge-fonce);
}

.pateo-tiroir__titre { font-family: var(--pateo-titres); font-weight: 600; font-size: 24px; margin: 0 0 8px; }
.pateo-tiroir__tout { display: flex; align-items: center; min-height: 48px; font-weight: 800; }
.pateo-tiroir__liste a, .pateo-tiroir__liste button {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	min-height: 56px; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--pateo-bordure-legere);
	color: var(--pateo-anthracite); text-decoration: none; font-weight: 800; font-size: 17px; text-align: left; cursor: pointer;
}
.pateo-tiroir__liste [aria-current] { color: var(--pateo-sauge-fonce); }
.pateo-tiroir__secondaire { margin-top: 24px; }
.pateo-tiroir__secondaire a { font-weight: 700; font-size: 16px; min-height: 48px; }

/* ---------- Méga-menu (desktop) ---------- */
.pateo-nav { display: none; }

@media (min-width: 1024px) {
	.pateo-entete__ligne { gap: 32px; height: 88px; transition: height .2s; }
	.pateo-entete__logo svg { width: 150px; transition: width .2s; }
	.pateo-entete.est-compact .pateo-entete__ligne { height: 64px; }
	.pateo-entete.est-compact .pateo-entete__logo svg { width: 120px; }
	.pateo-entete__logo { margin-right: 0; }
	.pateo-entete__recherche { display: block; flex: 1; max-width: 560px; margin: 0 auto; }
	.pateo-entete__action[aria-current] { color: var(--pateo-sauge-fonce); }
	.pateo-entete__texte { display: inline; }
	.pateo-entete__action { padding: 0 12px; }
	.pateo-entete__compteur { position: static; box-shadow: none; }
	.pateo-entete__compte { display: inline-flex; }
	.pateo-entete__burger, .pateo-entete__loupe, .pateo-entete__recherche-mobile, .pateo-tiroir { display: none !important; }

	.pateo-nav { display: block; border-top: 1px solid var(--pateo-bordure-legere); }
	.pateo-nav__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
	.pateo-nav__univers, .pateo-nav__droite { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
	.pateo-nav__droite .pateo-icone { width: 18px; height: 18px; }
	.pateo-nav__declencheur, .pateo-nav__lien {
		display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 14px;
		background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
		color: var(--pateo-anthracite); text-decoration: none; font-weight: 700; font-size: 16px;
	}
	.pateo-nav__declencheur .pateo-icone { width: 18px; height: 18px; transition: transform .2s; }
	.pateo-nav__declencheur:hover, .pateo-nav__lien:hover { color: var(--pateo-sauge-fonce); }
	.pateo-nav__declencheur[aria-expanded="true"] { color: var(--pateo-sauge-fonce); border-bottom-color: var(--pateo-sauge); }
	.pateo-nav__declencheur[aria-expanded="true"] .pateo-icone { transform: rotate(180deg); }
	.pateo-nav .est-courant { color: var(--pateo-sauge-fonce); border-bottom-color: var(--pateo-sauge-fonce); }

	/* Panneau pleine largeur sous la navigation */
	.pateo-mega {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--pateo-blanc); border-top: 1px solid var(--pateo-bordure-legere);
		box-shadow: var(--pateo-ombre);
	}
	.pateo-mega__grille { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 28px; padding-bottom: 32px; min-height: 400px; }
	.pateo-mega__tout { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; padding-left: 14px; font-weight: 800; }
	.pateo-mega__tout .pateo-icone { width: 18px; height: 18px; }

	/* Colonne 1 : catégories (survol ou focus = affiche ses sous-catégories) */
	.pateo-mega__cats { border-right: 1px solid var(--pateo-bordure-legere); padding-right: 16px; }
	.pateo-mega__cat-lien {
		display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px 0 14px;
		border-radius: 12px; color: var(--pateo-anthracite); text-decoration: none; font-weight: 800;
	}
	.pateo-mega__cat-lien .pateo-icone { width: 18px; height: 18px; opacity: 0; }
	.pateo-mega__cat.est-actif > .pateo-mega__cat-lien { background: var(--pateo-sauge-clair); color: var(--pateo-sauge-fonce); }
	.pateo-mega__cat.est-actif > .pateo-mega__cat-lien .pateo-icone { opacity: 1; }

	/* Colonnes 2 à 4 : sous-catégories de la catégorie active + mise en avant */
	.pateo-mega__sous {
		display: none; position: absolute; top: 28px; bottom: 32px; left: calc(var(--pateo-gouttiere) + 300px); right: var(--pateo-gouttiere);
		grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; align-content: start;
	}
	/* Vignettes photo des sous-catégories (piste A) */
	.pateo-mega__vignette { display: block; border-radius: 12px; overflow: hidden; background: var(--pateo-sauge-clair); }
	.pateo-mega__vignette img, .pateo-mega__vignette .pateo-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
	.pateo-mega__vignette:hover img { transform: scale(1.04); }
	.pateo-mega__groupe { min-width: 0; }
	.pateo-mega__groupe .pateo-mega__groupe-titre { min-height: 0; margin: 10px 0 4px; line-height: 1.3; }
	.pateo-mega__groupe ul { list-style: none; margin: 0; padding: 0; }
	.pateo-mega__groupe li a { min-height: 28px; font-size: 14px; }
	.pateo-mega__plus { font-weight: 800; color: var(--pateo-sauge-fonce) !important; }
	.pateo-mega__rayon { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 44px; margin-top: 4px; font-weight: 800; color: var(--pateo-sauge-fonce); }
	.pateo-mega__rayon .pateo-icone { width: 18px; height: 18px; }
	.pateo-mega__avant { grid-column: auto; grid-row: auto; }
	.pateo-mega__cat.est-actif > .pateo-mega__sous { display: grid; }
	.pateo-mega__groupe-titre { display: inline-flex; align-items: center; min-height: 40px; font-weight: 800; color: var(--pateo-anthracite); text-decoration: none; }
	.pateo-mega__groupe-titre:hover { color: var(--pateo-sauge-fonce); text-decoration: underline; }
	.pateo-mega__groupe-titre[aria-current] { color: var(--pateo-sauge-fonce); text-decoration: underline; }
	.pateo-mega__groupe ul { margin-bottom: 12px; }
	.pateo-mega__groupe li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--pateo-gris); text-decoration: none; font-size: 15px; } /* cible ≥ 24 px (WCAG 2.5.8) */
	.pateo-mega__groupe li a:hover { color: var(--pateo-sauge-fonce); text-decoration: underline; }
	.pateo-mega__avant { position: relative; }
	.pateo-mega__avant .pateo-image { margin-bottom: 12px; }
	.pateo-mega__avant-titre { font-family: var(--pateo-titres); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 0; }
	.pateo-mega__avant-titre a { color: var(--pateo-anthracite); text-decoration: none; }
	.pateo-mega__avant-titre a::after { content: ""; position: absolute; inset: 0; }
	.pateo-mega__avant-titre a:hover { text-decoration: underline; }

	/* Voile sous le menu ouvert */
	.pateo-voile { position: fixed; inset: 0; z-index: 30; background: rgba(43, 45, 66, .25); }
}

/* ---------- Fil d'Ariane ---------- */
.pateo-ariane { padding: 12px 0 0; font-size: 14px; color: var(--pateo-gris); }
.pateo-ariane ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.pateo-ariane li { display: inline-flex; align-items: center; }
.pateo-ariane li + li::before { content: "›"; margin: 0 8px; color: var(--pateo-gris); }
.pateo-ariane a { display: inline-flex; align-items: center; min-height: 44px; }
.pateo-ariane [aria-current] { color: var(--pateo-gris); }
/* Mobile : seul le lien vers la page parente reste visible (« ‹ Anti-traction ») ;
   le chemin complet reste lu par les lecteurs d'écran. */
@media (max-width: 767px) {
	.pateo-ariane li:not(:nth-last-child(2)) {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
	.pateo-ariane li:nth-last-child(2)::before { content: "‹"; margin: 0 8px 0 0; font-size: 18px; }
}

/* ---------- Carte produit ----------
 * Toute la carte est cliquable (lien sur le nom). Au survol : la carte se soulève,
 * un contour sauge apparaît, la photo zoome légèrement et le nom se souligne.
 * Focus clavier : contour sauge foncé sur toute la carte.
 */
.pateo-carte {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--pateo-blanc); border-radius: var(--pateo-rayon-carte);
	box-shadow: var(--pateo-ombre); padding: 10px 10px 16px;
	outline: 2px solid transparent; outline-offset: 0;
	transition: transform .25s ease, outline-color .25s ease;
}
.pateo-carte__image { position: relative; margin-bottom: 12px; border-radius: var(--pateo-rayon-image); overflow: hidden; }
.pateo-carte__image .pateo-image { font-size: 12px; border-radius: 0; transition: transform .4s ease; }
.pateo-carte__badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.pateo-carte__corps { display: flex; flex-direction: column; flex: 1; padding: 0 4px; }
.pateo-carte__nom { font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0 0 6px; }
.pateo-carte__nom a { color: var(--pateo-anthracite); text-decoration: none; }
.pateo-carte__nom a::after { content: ""; position: absolute; inset: 0; border-radius: var(--pateo-rayon-carte); z-index: 2; }
.pateo-carte__nom a:focus-visible { outline: none; }
.pateo-carte:focus-within { outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 2px; }
.pateo-carte__note { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--pateo-gris); margin-bottom: 8px; }
/* Note Patéo sur la carte (option des grilles de produits) */
.pateo-carte__note-pateo { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pateo-sauge-fonce); margin: 0 0 8px; }
.pateo-carte__note-pateo .pateo-icone { flex: none; width: 18px; height: 18px; }
.pateo-etoile { width: 16px; height: 16px; fill: var(--pateo-moutarde); }
.pateo-carte__prix { font-weight: 800; font-size: 17px; margin: auto 0 0; }
.pateo-carte__prix s { font-weight: 400; font-size: 14px; color: var(--pateo-gris); margin-left: 6px; }
@media (hover: hover) {
	.pateo-carte:hover { transform: translateY(-4px); outline-color: var(--pateo-sauge); }
	.pateo-carte:hover .pateo-carte__image .pateo-image { transform: scale(1.05); }
	.pateo-carte:hover .pateo-carte__nom a { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 768px) {
	.pateo-carte { padding: 12px 12px 20px; }
	.pateo-carte__nom { font-size: 16px; }
	.pateo-carte__corps { padding: 0 6px; }
}

/* ---------- Fiche de test notée (fiche produit, homepage, comparatifs) ---------- */
.pateo-fiche { background: var(--pateo-blanc); border-radius: var(--pateo-rayon-carte); box-shadow: var(--pateo-ombre); overflow: hidden; }
.pateo-fiche__entete { display: flex; align-items: center; gap: 16px; background: var(--pateo-sauge-fonce); color: var(--pateo-creme); padding: 20px; }
.pateo-fiche__entete .pateo-surtitre { color: var(--pateo-creme); margin-bottom: 4px; }
.pateo-fiche__produit { font-family: var(--pateo-titres); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 4px; }
.pateo-fiche__testeur { font-size: 14px; margin: 0; }
.pateo-fiche__note {
	flex: none; width: 84px; height: 84px; margin-left: auto; border-radius: 50%;
	background: var(--pateo-creme); color: var(--pateo-anthracite);
	display: grid; place-content: center; text-align: center; line-height: 1.1;
}
.pateo-fiche__note small { display: block; max-width: 56px; margin: 0 auto 2px; font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; color: var(--pateo-sauge-fonce); } /* « Note / Patéo » sur deux lignes : tient toujours dans le rond */
.pateo-fiche__note strong { font-family: var(--pateo-titres); font-weight: 600; font-size: 24px; }
.pateo-fiche__note span { font-size: 12px; font-weight: 700; }
.pateo-fiche__corps { padding: 20px; }
.pateo-verdict { margin: 0 0 8px; }
.pateo-verdict__titre { font-weight: 800; font-size: 14px; color: var(--pateo-sauge-fonce); margin: 0 0 4px; }
.pateo-verdict__texte { font-family: var(--pateo-titres); font-weight: 600; font-size: 20px; line-height: 1.35; margin: 0; }
.pateo-criteres li { padding: 14px 0; border-top: 1px solid var(--pateo-bordure-legere); }
.pateo-criteres li:first-child { margin-top: 12px; }
.pateo-critere__ligne { display: flex; align-items: center; gap: 12px; }
.pateo-critere__nom { font-weight: 800; }
.pateo-critere__jauge { display: flex; gap: 4px; margin-left: auto; }
.pateo-critere__jauge i { width: 18px; height: 8px; border-radius: 999px; background: var(--pateo-sauge-clair); border: 1px solid var(--pateo-sauge); }
.pateo-critere__jauge i.est-plein { background: var(--pateo-sauge-fonce); border-color: var(--pateo-sauge-fonce); }
.pateo-critere__jauge i.est-demi { background: linear-gradient(90deg, var(--pateo-sauge-fonce) 50%, var(--pateo-sauge-clair) 50%); border-color: var(--pateo-sauge-fonce); }

/* Bloc « Fiche de test » avec récit (fiche produit) : récit à gauche, fiche à droite en desktop.
   Sur téléphone, la suite du récit est repliée (bouton « Lire la suite du test », editorial.js / produit.js). */
.pateo-fiche-test { display: grid; gap: 24px; }
.pateo-recit .pateo-image { margin-bottom: 16px; }
.pateo-recit h3 { font-family: var(--pateo-titres); font-weight: 600; font-size: 22px; margin: 0 0 10px; }
.pateo-recit__suite.est-replie { display: none; }
.pateo-recit__bouton { margin-top: 4px; }
.pateo-recit__bouton .pateo-icone { transition: transform .2s; }
.pateo-recit__bouton[aria-expanded="true"] .pateo-icone { transform: rotate(180deg); }
.pateo-avis-test { display: grid; gap: 10px; margin: 16px 0 0; }
.pateo-avis-test li { display: flex; gap: 12px; align-items: flex-start; background: var(--pateo-blanc); border-radius: 16px; padding: 14px 16px; font-size: 15px; }
.pateo-bande--blanc .pateo-avis-test li { background: var(--pateo-creme); }
.pateo-avis-test .pateo-icone { width: 22px; height: 22px; margin-top: 1px; flex: none; }
@media (min-width: 1024px) {
	.pateo-fiche-test:not(.pateo-fiche-test--seule) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	.pateo-fiche-test .pateo-recit { order: 2; }
	.pateo-recit__bouton { display: none !important; }
	.pateo-recit__suite.est-replie { display: block; }
}
.pateo-critere__note { font-weight: 800; font-size: 14px; white-space: nowrap; }
.pateo-critere p { margin: 4px 0 0; font-size: 14px; color: var(--pateo-gris); }
.pateo-fiche__methode { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; margin-top: 4px; }
.pateo-fiche__methode .pateo-icone { width: 18px; height: 18px; }
@media (min-width: 768px) { .pateo-fiche__note { width: 96px; height: 96px; } .pateo-fiche__note small { font-size: 11px; max-width: 70px; } }

/* ---------- Carte d'avis client ---------- */
.pateo-avis-carte { background: var(--pateo-blanc); border: 2px solid var(--pateo-bordure-legere); border-radius: var(--pateo-rayon-carte); padding: 20px; }
.pateo-avis-carte__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.pateo-avis-carte__haut .pateo-badge { box-shadow: none; font-size: 13px; }
.pateo-avis-carte__titre { font-weight: 800; margin: 0 0 4px; }
.pateo-avis-carte__texte { margin: 0 0 10px; }
.pateo-avis-carte__meta { font-size: 14px; color: var(--pateo-gris); margin: 0; }

/* ---------- Encadré « Le conseil de Patéo » ---------- */
.pateo-conseil {
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--pateo-sauge-clair); border-radius: var(--pateo-rayon-carte);
	padding: 24px 20px;
}
.pateo-conseil__picto {
	flex: none; width: 52px; height: 52px; border-radius: 50%;
	background: var(--pateo-blanc); display: grid; place-items: center;
}
.pateo-conseil__picto .pateo-icone { width: 28px; height: 28px; }
.pateo-conseil__titre { font-family: var(--pateo-titres); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.pateo-conseil p:last-child { margin-bottom: 0; }
/* Espace entre l'encadré et un bloc qui le suit (ex. engagements sous le conseil, page Idées cadeaux) */
.pateo-conseil + * { margin-top: 28px; }

/* ---------- Réassurance ---------- */
.pateo-reassurance { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pateo-reassurance li { display: flex; gap: 14px; align-items: flex-start; }
.pateo-reassurance__picto {
	flex: none; width: 48px; height: 48px; border-radius: 50%;
	background: var(--pateo-sauge-clair); display: grid; place-items: center;
}
.pateo-reassurance strong { display: block; font-weight: 800; line-height: 1.35; }
.pateo-reassurance span.pateo-petit { color: var(--pateo-gris); line-height: 1.45; display: block; }
@media (min-width: 600px) { .pateo-reassurance { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .pateo-reassurance { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ (accordéon) ---------- */
.pateo-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.pateo-faq details { background: var(--pateo-blanc); border-radius: var(--pateo-rayon-carte); box-shadow: var(--pateo-ombre); }
.pateo-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 64px; padding: 14px 20px; cursor: pointer; list-style: none;
	font-weight: 800; line-height: 1.4; border-radius: var(--pateo-rayon-carte);
}
.pateo-faq summary::-webkit-details-marker { display: none; }
.pateo-faq summary .pateo-icone { transition: transform .3s; }
.pateo-faq details[open] summary .pateo-icone { transform: rotate(180deg); }
.pateo-faq__reponse { padding: 0 20px 20px; max-width: 70ch; }
.pateo-faq__reponse p:last-child { margin: 0; }

/* ---------- Cartes d'article ---------- */
.pateo-articles { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .pateo-articles { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pateo-article {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--pateo-blanc); border-radius: var(--pateo-rayon-carte); box-shadow: var(--pateo-ombre);
	padding: 12px 12px 20px; transition: transform .25s ease;
}
.pateo-article .pateo-image { margin-bottom: 16px; }
.pateo-article__corps { padding: 0 8px; display: flex; flex-direction: column; flex: 1; }
.pateo-article__titre { font-family: var(--pateo-titres); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.pateo-article__titre a { color: var(--pateo-anthracite); text-decoration: none; }
.pateo-article__titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--pateo-rayon-carte); }
.pateo-article__titre a:focus-visible { outline: none; }
.pateo-article:focus-within { outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 2px; }
.pateo-article__meta { margin-top: auto; font-size: 14px; color: var(--pateo-gris); }
@media (hover: hover) {
	.pateo-article:hover { transform: translateY(-4px); }
	.pateo-article:hover .pateo-article__titre a { text-decoration: underline; }
}

/* ---------- Pied de page ---------- */
.pateo-pied { background: var(--pateo-sauge-fonce); color: var(--pateo-creme); padding: 48px 0 24px; }
.pateo-pied a { color: var(--pateo-creme); text-decoration: none; }
.pateo-pied a:hover { text-decoration: underline; color: var(--pateo-creme); }
.pateo-pied :focus-visible { outline-color: var(--pateo-creme); }
.pateo-pied__logo { display: inline-block; margin-bottom: 16px; }
.pateo-pied__logo svg { display: block; width: 150px; height: auto; }
.pateo-pied__marque p { max-width: 34ch; margin: 0 0 24px; }
.pateo-pied__colonnes { display: grid; grid-template-columns: 1fr; }
.pateo-pied__colonne { border-top: 1px solid rgba(251, 248, 243, .25); }
.pateo-pied__colonne summary {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 56px; cursor: pointer; list-style: none; font-weight: 800;
}
.pateo-pied__colonne summary::-webkit-details-marker { display: none; }
.pateo-pied__colonne summary .pateo-icone { stroke: var(--pateo-creme); transition: transform .3s; }
.pateo-pied__colonne[open] summary .pateo-icone { transform: rotate(180deg); }
.pateo-pied__colonne ul { padding-bottom: 16px; }
.pateo-pied__colonne li a, .pateo-pied__colonne li span { display: inline-block; padding: 8px 0; line-height: 1.4; }
.pateo-pied__bas {
	display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
	border-top: 1px solid rgba(251, 248, 243, .25); margin-top: 8px; padding-top: 20px; font-size: 14px;
}
@media (min-width: 1024px) {
	.pateo-pied { padding: 64px 0 28px; }
	.pateo-pied__haut { display: grid; grid-template-columns: 1.3fr 3fr; gap: 48px; }
	.pateo-pied__colonnes { grid-template-columns: repeat(4, 1fr); gap: 32px; }
	.pateo-pied__colonne { border-top: 0; }
	.pateo-pied__colonne summary { min-height: 0; margin-bottom: 12px; cursor: default; pointer-events: none; }
	.pateo-pied__colonne summary .pateo-icone { display: none; }
	.pateo-pied__bas { margin-top: 40px; }
}

/* ---------- Moins de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.pateo-carte:hover, .pateo-article:hover { transform: none !important; }
	.pateo-carte:hover .pateo-carte__image .pateo-image { transform: none !important; }
}

/* ---------- Barre de progression « livraison offerte » (panier, panneau d'ajout) ---------- */
.pateo-progression { background: var(--pateo-sauge-clair); border-radius: 14px; padding: 12px 14px; }
.pateo-progression p { margin: 0 0 8px; font-size: 14px; }
.pateo-progression strong { color: var(--pateo-sauge-fonce); }
.pateo-progression__barre { height: 8px; border-radius: 999px; background: var(--pateo-blanc); overflow: hidden; }
.pateo-progression__barre span { display: block; height: 100%; border-radius: 999px; background: var(--pateo-sauge-fonce); }

/* ---------- Panneau « Ajouté au panier » ---------- */
.pateo-ajout-voile { position: fixed; inset: 0; z-index: 70; background: rgba(43, 45, 66, .35); }
.pateo-ajout {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(100%, 440px);
	background: var(--pateo-creme); display: flex; flex-direction: column; box-shadow: var(--pateo-ombre);
}
.pateo-ajout__entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; background: var(--pateo-blanc); border-bottom: 1px solid var(--pateo-bordure-legere); }
.pateo-ajout__titre { display: flex; align-items: center; gap: 10px; font-family: var(--pateo-titres); font-weight: 600; font-size: 22px; margin: 0; }
.pateo-ajout__titre .pateo-icone { width: 26px; height: 26px; }
.pateo-ajout__fermer { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.pateo-ajout__fermer:hover { background: var(--pateo-sauge-clair); }
.pateo-ajout__corps { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 16px; align-content: start; }
.pateo-ajout__produit { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; background: var(--pateo-blanc); border-radius: 16px; padding: 10px 14px 10px 10px; }
.pateo-ajout__produit .pateo-image { aspect-ratio: 1; padding: 4px; font-size: 9px; border-radius: 12px; }
.pateo-ajout__nom { font-weight: 800; margin: 0 0 2px; line-height: 1.3; }
.pateo-ajout__variante { font-size: 14px; color: var(--pateo-gris); margin: 0; }
.pateo-ajout__prix { font-weight: 800; margin: 0; }
.pateo-ajout__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 18px; margin: 0; }
.pateo-ajout__total span { font-weight: 400; font-size: 14px; color: var(--pateo-gris); }
.pateo-ajout__actions { display: grid; gap: 10px; }
.pateo-ajout__actions .pateo-bouton { width: 100%; }
.pateo-ajout__continuer { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--pateo-sauge-fonce); text-decoration: underline; text-underline-offset: 3px; }
.pateo-ajout__avec-titre { font-weight: 800; margin: 8px 0 0; }
.pateo-ajout__avec { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pateo-ajout__avec li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--pateo-blanc); border-radius: 14px; padding: 8px 12px 8px 8px; font-size: 15px; }
.pateo-ajout__avec .pateo-image { aspect-ratio: 1; padding: 0; font-size: 0; border-radius: 10px; }
.pateo-ajout__avec a { font-weight: 700; }
.pateo-ajout__avec span { font-weight: 800; }

/* ==========================================================================
   Compléments du thème (WordPress, WooCommerce, vraies images)
   ========================================================================== */

/* Kadence n'apporte plus de styles : le cadre de page reste neutre. */
#wrapper { min-height: 100vh; display: flex; flex-direction: column; }
#inner-wrap { flex: 1 0 auto; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
.pateo-bande__entete--centre { margin-left: auto; margin-right: auto; text-align: center; }
.pateo-bande--fonce { background: var(--pateo-sauge-fonce); color: var(--pateo-creme); }
.pateo-bande--fonce a { color: var(--pateo-creme); }
.pateo-bande--fonce .pateo-surtitre { color: var(--pateo-creme); }
.pateo-bande--fonce :focus-visible { outline-color: var(--pateo-creme); }

/* Vraies images : mêmes cadres que les emplacements des maquettes */
.pateo-carte__image img, .pateo-article > img, .pateo-mega__avant img {
	display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
	background: var(--pateo-sauge-clair); transition: transform .4s ease;
}
.pateo-article > img, .pateo-mega__avant img { aspect-ratio: 16 / 10; border-radius: var(--pateo-rayon-image); margin-bottom: 16px; }
.pateo-mega__avant img { aspect-ratio: 4 / 3; margin-bottom: 12px; }
@media (hover: hover) { .pateo-carte:hover .pateo-carte__image img { transform: scale(1.05); } }
.pateo-etoile { display: inline-block; flex: none; vertical-align: -3px; }

/* Message affiché seulement dans l'éditeur quand un bloc est vide */
.pateo-bloc-vide { padding: 16px; border: 2px dashed var(--pateo-bordure-champ); border-radius: 14px; color: var(--pateo-gris); font-size: 14px; }

/* Texte riche (contenu saisi dans l'éditeur : guides, pages, descriptions) */
.pateo-riche > * + * { margin-top: 1em; }
.pateo-riche > :first-child { margin-top: 0; }
.pateo-riche h2 { margin-top: 1.6em; }
.pateo-riche h3 { margin-top: 1.4em; }
/* Listes du texte seulement (bloc Liste, ou liste sans classe de l'éditeur classique) : pas celles des composants */
.pateo-riche :is(ul, ol):is(.wp-block-list, :not([class])) { padding-left: 1.4em; margin-bottom: 1em; }
.pateo-riche ul:is(.wp-block-list, :not([class])) { list-style: disc; }
.pateo-riche ol:is(.wp-block-list, :not([class])) { list-style: decimal; }
.pateo-riche :is(ul, ol):is(.wp-block-list, :not([class])) > li + li { margin-top: .35em; }
.pateo-riche :is(ul, ol):is(.wp-block-list, :not([class])) > li::marker { color: var(--pateo-sauge-fonce); }
.pateo-riche img { height: auto; border-radius: var(--pateo-rayon-image); }
.pateo-riche figure { margin: 1.6em 0; }
.pateo-riche figcaption, .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--pateo-gris); }
.pateo-riche blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--pateo-sauge); font-family: var(--pateo-titres); font-size: 20px; line-height: 1.45; }
.pateo-riche hr, .wp-block-separator { border: 0; border-top: 1px solid var(--pateo-bordure-legere); margin: 2em 0; }
.pateo-riche .wp-block-table, .pateo-tableau-defile { overflow-x: auto; margin: 1.6em 0; }
.pateo-riche table, .pateo-tableau { width: 100%; background: var(--pateo-blanc); border-radius: 14px; box-shadow: var(--pateo-ombre); font-size: 15px; overflow: hidden; }
.pateo-riche th, .pateo-riche td, .pateo-tableau th, .pateo-tableau td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pateo-bordure-legere); }
.pateo-riche thead th, .pateo-tableau thead th { background: var(--pateo-sauge-clair); color: var(--pateo-anthracite); font-weight: 800; }
.pateo-riche tbody th, .pateo-tableau tbody th { font-weight: 800; }
.pateo-riche tr:last-child > *, .pateo-tableau tr:last-child > * { border-bottom: 0; }
.pateo-riche caption, .pateo-tableau caption { caption-side: top; text-align: left; font-weight: 800; padding: 0 0 8px; }
.alignwide { max-width: 1200px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Boutons des blocs natifs (Boutons) : mêmes formes que le thème */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
	border-radius: 999px; border: 2px solid transparent; background: var(--pateo-moutarde); color: var(--pateo-anthracite);
	font-weight: 800; font-size: 16px; text-decoration: none;
}
.wp-block-button__link:hover { background: #D99A33; color: var(--pateo-anthracite); }
.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--pateo-sauge-fonce); color: var(--pateo-sauge-fonce); }
.is-style-outline .wp-block-button__link:hover { background: var(--pateo-sauge-fonce); color: var(--pateo-creme); }

/* Messages WooCommerce (ajout au panier, erreurs, informations) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; list-style: none;
	margin: 16px 0; padding: 14px 18px; border-radius: 14px; background: var(--pateo-sauge-clair); color: var(--pateo-anthracite);
	border-left: 4px solid var(--pateo-sauge-fonce); font-size: 15px;
}
.woocommerce-error, .wc-block-components-notice-banner.is-error { background: #FBEDE8; border-left-color: var(--pateo-terracotta-fonce); }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; font-weight: 800; }

/* Pagination (catégories, guides, recherche) */
.pateo-pagination { margin-top: 32px; }
.pateo-pagination ul, .pateo-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pateo-pagination a, .pateo-pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 999px; border: 2px solid var(--pateo-bordure-legere); background: var(--pateo-blanc);
	color: var(--pateo-anthracite); text-decoration: none; font-weight: 800;
}
.pateo-pagination a:hover { border-color: var(--pateo-sauge-fonce); color: var(--pateo-sauge-fonce); }
.pateo-pagination .current { background: var(--pateo-sauge-fonce); border-color: var(--pateo-sauge-fonce); color: var(--pateo-creme); }
.pateo-pagination .dots { border: 0; background: none; }
.pateo-pagination .prev, .pateo-pagination .next { gap: 4px; border-color: var(--pateo-sauge-fonce); color: var(--pateo-sauge-fonce); }
.pateo-pagination .prev .pateo-icone, .pateo-pagination .next .pateo-icone { width: 18px; height: 18px; stroke: currentColor; }
.pateo-suggestions__produit img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--pateo-sauge-clair); }

/* Grilles de cartes produit (blocs, recherche, sections) */
.pateo-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .pateo-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .pateo-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Variante défilante en mobile (sections secondaires) */
@media (max-width: 767px) {
	.pateo-grille--defile { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pateo-gouttiere)); padding: 4px var(--pateo-gouttiere) 12px; scrollbar-width: none; }
	.pateo-grille--defile::-webkit-scrollbar { display: none; }
	.pateo-grille--defile > li { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Lien « tout voir » sous une section */
.pateo-tout-voir { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; font-weight: 800; }
.pateo-tout-voir .pateo-icone { width: 18px; height: 18px; stroke: currentColor; }

/* ---------- Styles des blocs natifs proposés dans l'éditeur (inc/blocs.php) ---------- */
/* Paragraphe « Réponse directe » : la réponse en une phrase, juste sous le titre */
p.is-style-reponse { font-weight: 700; }
/* Listes à pictogramme (dessins des icônes du thème, en masque : couleur réglée ici) */
ul.wp-block-list.is-style-coches, ul.wp-block-list.is-style-infos, ul.wp-block-list.is-style-tests, ol.wp-block-list.is-style-coches, ol.wp-block-list.is-style-infos, ol.wp-block-list.is-style-tests { list-style: none; padding-left: 0; margin: 0 0 1em; }
.is-style-coches > li, .is-style-infos > li, .is-style-tests > li { position: relative; padding: 6px 0 6px 34px; }
.pateo-riche .is-style-coches > li + li, .pateo-riche .is-style-infos > li + li, .pateo-riche .is-style-tests > li + li, .is-style-coches > li + li, .is-style-infos > li + li, .is-style-tests > li + li { margin-top: 0 !important; }
.is-style-coches > li::before, .is-style-infos > li::before, .is-style-tests > li::before {
	content: ""; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; background: var(--pateo-sauge-fonce);
	-webkit-mask: var(--pateo-masque) center / contain no-repeat; mask: var(--pateo-masque) center / contain no-repeat;
}
.is-style-coches { --pateo-masque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.is-style-infos { --pateo-masque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.is-style-tests { --pateo-masque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 3v2h6V3M9 11l2 2 4-4M9 17h6'/%3E%3C/svg%3E"); }
/* Étapes numérotées */
ul.wp-block-list.is-style-etapes, ol.wp-block-list.is-style-etapes { list-style: none; padding-left: 0; margin: 0 0 1em; counter-reset: pateo-etape; }
/* Pastille numérotée à gauche, texte en un seul bloc (même avec du gras au début de l'étape) */
.is-style-etapes > li { position: relative; padding: 12px 0 12px 48px; min-height: 56px; }
.is-style-etapes > li + li { margin-top: 0 !important; }
.is-style-etapes > li::before { counter-increment: pateo-etape; content: counter(pateo-etape); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--pateo-sauge-fonce); color: var(--pateo-creme); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
@media (forced-colors: active) { .is-style-coches > li::before, .is-style-infos > li::before, .is-style-tests > li::before { background: CanvasText; } }

/* Auteur sans photo : son initiale dans le cercle (le cadre vient des règles .pateo-image de chaque gabarit) */
span.pateo-image.pateo-auteur-photo--initiale { font-family: var(--pateo-titres); font-weight: 600; font-size: 18px; line-height: 1; padding: 0; color: var(--pateo-sauge-fonce); }

/* ---------- Tableaux du texte (bloc Tableau, enveloppé par le thème : inc/blocs.php) ---------- */
.pateo-g-tableau { overflow-x: auto; margin: 16px 0 8px; border-radius: var(--pateo-rayon-carte); box-shadow: var(--pateo-ombre); background: var(--pateo-blanc); }
.pateo-g-tableau:focus-visible { outline: 3px solid var(--pateo-sauge-fonce); outline-offset: 2px; }
.pateo-g-tableau table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
/* Petit tableau (1 à 3 colonnes) : il tient dans l'écran du téléphone, sans défilement */
.pateo-g-tableau--compact table { min-width: 0; }
@media (max-width: 767px) { .pateo-g-tableau--compact th, .pateo-g-tableau--compact td { padding: 10px 12px; } .pateo-g-tableau--compact tbody th { white-space: normal; } }
.pateo-g-tableau caption { text-align: left; padding: 14px 16px 0; font-weight: 800; font-size: 14px; color: var(--pateo-gris); }
.pateo-g-tableau th, .pateo-g-tableau td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--pateo-bordure-legere); line-height: 1.45; }
.pateo-g-tableau thead th { background: var(--pateo-sauge-clair); color: var(--pateo-sauge-fonce); font-size: 14px; }
.pateo-g-tableau tbody th { font-weight: 800; white-space: nowrap; }
.pateo-g-tableau tr:last-child th, .pateo-g-tableau tr:last-child td { border-bottom: 0; }
.pateo-g-tableau__aide { font-size: 14px; color: var(--pateo-gris); }
/* Le style natif du bloc Tableau (bordures foncées, marges) est neutralisé dans ce cadre */
.pateo-g-tableau .wp-block-table, .pateo-riche .pateo-g-tableau .wp-block-table { margin: 0; overflow: visible; }
.pateo-g-tableau table, .pateo-riche .pateo-g-tableau table { border: 0; border-radius: 0; box-shadow: none; background: none; }
.pateo-g-tableau thead { border-bottom: 0; }
.pateo-g-tableau tfoot { border-top: 0; }
.pateo-g-tableau th, .pateo-g-tableau td { border-width: 0 0 1px; border-style: solid; border-color: var(--pateo-bordure-legere); }
.pateo-g-tableau figcaption { padding: 0 16px 12px; }
@media (min-width: 1024px) { .pateo-g-tableau__aide { display: none; } }

/* ---------- Encadré « Une question ? Écris-nous » (bloc Contact, pages d'aide, Mon compte) ---------- */
.pateo-cf-contact { display: grid; gap: 14px; align-items: center; background: var(--pateo-sauge-clair); border-radius: var(--pateo-rayon-carte); padding: 22px; margin-top: 44px; }
.pateo-cf-contact__titre { font-family: var(--pateo-titres); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.pateo-cf-contact p { margin: 0; }
@media (min-width: 768px) { .pateo-cf-contact { grid-template-columns: 1fr auto; padding: 26px 32px; } }

/* Cadres défilants : position relative, sinon un lien étendu (::after) d’une cellule en sort et élargit la page */
.pateo-g-tableau, .pateo-tableau-defile, .pateo-riche .wp-block-table { position: relative; }
