/* Page Recettes, piste A « Grille » (Coq, 18/10/2026). Mêmes jetons que les fiches recettes v2.
   Colonnes de la grille : 2, 3, 4 puis 6, jamais 5 : 12 recettes par page remplissent toujours la dernière rangée. */
.rxp-page {
	--rxp-blanc: #ffffff; --rxp-creme: #fbf7f3; --rxp-rose: #fbf2ec; --rxp-peche: #f6e0cc; --rxp-filet: #f0e3d8;
	--rxp-sable: #c99b7c; --rxp-caramel: #8a5f48; --rxp-brun: #4b3028; --rxp-brun-fonce: #2f1d17; --rxp-encre: #191919;
	--rxp-texte: #2b2421; --rxp-doux: #5b4d47; --rxp-or: #b7791f;
	--rxp-serif: "Jomolhari", Georgia, "Times New Roman", serif;
	--rxp-sans: "Poppins", "Segoe UI", system-ui, sans-serif;
	--rxp-pad: 20px;
	font-family: var(--rxp-sans); color: var(--rxp-texte); font-size: 15px; line-height: 1.55;
}
.rxp-page *, .rxp-page *::before, .rxp-page *::after { box-sizing: border-box; }
.rxp-page img { max-width: 100%; display: block; }
.rxp-page a { color: inherit; }
.rxp-page :focus-visible { outline: 2px solid var(--rxp-brun); outline-offset: 2px; }
.rxp-page [hidden] { display: none !important; }
.rxp-page .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; }
.rxp-page h1, .rxp-page h2, .rxp-page h3, .rxp-page p { margin: 0; text-transform: none; letter-spacing: normal; }

/* ---------- Bande du haut : fil d'Ariane, titre, recherche, catégories, temps et tri ---------- */
.rxp-tete { background: var(--rxp-creme); border-bottom: 1px solid var(--rxp-filet); }
.rxp-tete__in { padding-top: 12px; padding-bottom: 14px; display: grid; gap: 10px; }
.rxp-page .block-all-posts-recettes-roxane_breadcrumb, .rxp-page .custom-breadcrumb { margin: 0; padding: 0; background: none; }
.rxp-page .custom-breadcrumb .container { padding: 0; max-width: none; width: auto; margin: 0; }
.rxp-page .custom-breadcrumb, .rxp-page .custom-breadcrumb * { font-size: 12.5px; line-height: 1.4; }
.rxp-page .custom-breadcrumb a, .rxp-page .custom-breadcrumb span, .rxp-page .custom-breadcrumb li { color: var(--rxp-doux); }
.rxp-ligne { display: grid; gap: 10px; min-width: 0; }
.rxp-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
/* Hauteurs qui ne dépendent pas des polices (21/10/2026) : la feuille ne bloque plus l'affichage sur ordinateur,
   donc la page se dessine d'abord avec les polices de repli. Le nom de la catégorie a TOUJOURS sa ligne, sous le
   titre (avant, il passait à côté ou dessous selon la largeur de la police). */
.rxp-titre .rxp-compte { order: 1; }
.rxp-page .rxp-titre .rxp-sous { order: 2; flex-basis: 100%; }
.rxp-page .rxp-h1 { font-family: var(--rxp-serif); font-weight: 400; color: var(--rxp-encre); font-size: 30px; line-height: 1.12; text-wrap: balance; }
.rxp-page .rxp-sous { font-family: var(--rxp-serif); font-weight: 400; color: var(--rxp-brun); font-size: 20px; line-height: 1.2; }
.rxp-compte { font-size: 13px; color: var(--rxp-doux); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rxp-recherche { position: relative; display: flex; align-items: center; min-width: 0; margin: 0; }
.rxp-recherche svg { position: absolute; left: 16px; color: var(--rxp-caramel); pointer-events: none; }
.rxp-page .rxp-recherche input { -webkit-appearance: none; appearance: none; width: 100%; height: 46px; margin: 0; border: 1.5px solid #e6d6c9; border-radius: 99px; background: var(--rxp-blanc); padding: 0 16px 0 44px; font: inherit; font-size: 16px; color: var(--rxp-texte); box-shadow: none; }
.rxp-page .rxp-recherche input::placeholder { color: #7d6c64; opacity: 1; }
.rxp-page .rxp-recherche input:focus { outline: none; border-color: var(--rxp-brun); box-shadow: 0 0 0 3px rgba(75, 48, 40, .12); }

.rxp-defile { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--rxp-pad)); padding-inline: var(--rxp-pad); scroll-padding-inline: var(--rxp-pad); }
.rxp-defile::-webkit-scrollbar { display: none; }
.rxp-page .rxp-puce { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--rxp-filet); background: var(--rxp-blanc); color: var(--rxp-texte); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; flex: none; }
.rxp-puce small { font-size: 12px; color: var(--rxp-doux); font-weight: 500; font-variant-numeric: tabular-nums; }
.rxp-page .rxp-puce:hover { border-color: var(--rxp-sable); }
.rxp-page .rxp-puce[aria-current] { background: var(--rxp-brun); border-color: var(--rxp-brun); color: #fff; }
.rxp-page .rxp-puce[aria-current] small { color: #f1e4da; }
.rxp-page .rxp-puce[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.rxp-reglages { display: flex; gap: 8px; align-items: center; min-width: 0; margin: 0 calc(-1 * var(--rxp-pad)); padding: 0 var(--rxp-pad); overflow-x: auto; scrollbar-width: none; }
.rxp-reglages::-webkit-scrollbar { display: none; }
.rxp-reglages .rxp-defile { overflow: visible; margin: 0; padding: 0; flex: none; }
.rxp-reglages .rxp-puce { height: 34px; font-size: 13px; padding: 0 12px; }
.rxp-choix { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rxp-doux); white-space: nowrap; flex: none; margin: 0; }
.rxp-choix > span { display: none; }
.rxp-page .rxp-choix select { -webkit-appearance: none; appearance: none; height: 34px; margin: 0; border-radius: 99px; border: 1.5px solid var(--rxp-filet); background-color: var(--rxp-blanc); padding: 0 30px 0 14px; font: inherit; font-size: 13px; color: var(--rxp-texte); background-image: linear-gradient(45deg, transparent 50%, var(--rxp-brun) 50%), linear-gradient(135deg, var(--rxp-brun) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.rxp-choix--temps { display: none; }
/* Safari sur iPhone agrandit la page quand on touche un champ écrit sous 16 px. */
@media (pointer: coarse) { .rxp-page .rxp-choix select { font-size: 16px; } }
.rxp-ok { height: 34px; border-radius: 99px; border: 0; background: var(--rxp-brun); color: #fff; padding: 0 14px; }

/* ---------- Grille ---------- */
.rxp-liste .container { padding-top: 16px; display: grid; gap: 14px; }
.rxp-resultat { font-size: 14px; color: var(--rxp-doux); }
.rxp-resultat a { color: var(--rxp-brun); font-weight: 600; }
.rxp-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.rxp-grille[hidden] { display: none; }
.rxp-vide { grid-column: 1 / -1; font-size: 15px; }
.rxp-vide a { color: var(--rxp-brun); font-weight: 600; }

.rxp-carte { position: relative; min-width: 0; }
.rxp-carte__photo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--rxp-rose); }
.rxp-carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rxp-carte:hover .rxp-carte__photo img { transform: scale(1.03); }
.rxp-pastille { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .94); color: var(--rxp-texte); font-size: 12px; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 99px; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.rxp-pastille svg { flex: none; color: var(--rxp-caramel); }
.rxp-carte__corps { display: grid; gap: 3px; padding-top: 8px; }
.rxp-carte__cat { display: none; font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--rxp-caramel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Le titre réserve toujours ses lignes (3 sur téléphone, 2 ensuite) : une carte a la même hauteur quelle que soit la
   police, donc les rangées ne bougent pas à l'arrivée de Jomolhari. */
.rxp-page .rxp-carte__titre { font-family: var(--rxp-serif); font-weight: 400; font-size: 15px; line-height: 1.22; min-height: calc(3 * 1.22em); color: var(--rxp-encre); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rxp-page .rxp-carte__titre a { text-decoration: none; color: inherit; }
.rxp-carte__titre a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rxp-carte__titre a:focus-visible { outline: none; }
.rxp-carte:has(.rxp-carte__titre a:focus-visible) { outline: 2px solid var(--rxp-brun); outline-offset: 4px; border-radius: 16px; }
.rxp-carte__meta { display: flex; flex-wrap: nowrap; gap: 2px 10px; font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; color: var(--rxp-doux); font-variant-numeric: tabular-nums; }
.rxp-note { display: inline-flex; align-items: center; gap: 3px; }
.rxp-etoile { color: var(--rxp-or); display: inline-flex; }
.rxp-parts { display: none; }

/* Encart ebook : celui des fiches recettes v2, toujours à la 3e rangée (les cartes coulent autour) */
.rxp-ebook { grid-column: 1 / -1; grid-row: 3; background: var(--rxp-brun); color: #fff; border-radius: 22px; padding: 16px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.rxp-page .rxp-ebook img { width: 112px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.rxp-etiq { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rxp-peche); }
.rxp-page .rxp-ebook__titre { font-family: var(--rxp-serif); font-size: 19px; line-height: 1.2; margin-top: 4px; color: #fff; }
.rxp-page .rxp-ebook__texte { font-size: 13px; line-height: 1.5; color: #f4ece6; margin-top: 4px; }
.rxp-page .rxp-ebook__lien { grid-column: 1 / -1; justify-self: start; display: inline-block; background: #fff; color: var(--rxp-brun); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.rxp-page .rxp-ebook :focus-visible { outline-color: #fff; }

/* Plus de recettes */
.rxp-plus { display: grid; justify-items: center; gap: 10px; padding-top: 16px; text-align: center; }
.rxp-page .rxp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 99px; border: 1.5px solid var(--rxp-brun); background: var(--rxp-blanc); color: var(--rxp-brun); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.rxp-page .rxp-btn:hover { background: var(--rxp-brun); color: #fff; }
.rxp-page .rxp-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.rxp-jauge { width: 200px; height: 4px; border-radius: 4px; background: var(--rxp-filet); overflow: hidden; }
.rxp-jauge i { display: block; height: 100%; background: var(--rxp-sable); }
.rxp-pages { font-size: 13px; color: var(--rxp-doux); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
/* Téléphone : l'intitulé sur sa ligne, les numéros resserrés au centre, loin de la pastille de Roxxie (bas droite). */
.rxp-pages > span:first-child { flex-basis: 100%; }
@media (min-width: 700px) { .rxp-pages > span:first-child { flex-basis: auto; } }
.rxp-page .rxp-num { min-width: 40px; height: 40px; border-radius: 99px; border: 1.5px solid var(--rxp-filet); background: var(--rxp-blanc); color: var(--rxp-brun); font-size: 14px; display: inline-grid; place-items: center; padding: 0 12px; text-decoration: none; }
.rxp-page a.rxp-num:hover { border-color: var(--rxp-brun); }
.rxp-page .rxp-num[aria-current] { background: var(--rxp-brun); border-color: var(--rxp-brun); color: #fff; font-weight: 600; }

/* Présentation (lue par Google), en colonnes de journal : aucune colonne ne reste vide */
.rxp-apropos .container { padding-top: 40px; padding-bottom: 8px; }
.rxp-page .rxp-apropos__titre { font-family: var(--rxp-serif); font-size: 22px; color: var(--rxp-encre); line-height: 1.25; }
.rxp-apropos__texte { margin-top: 10px; color: var(--rxp-texte); font-size: 15px; column-gap: 32px; }
.rxp-page .rxp-apropos__texte p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--rxp-texte); }
.rxp-page .rxp-apropos__texte b, .rxp-page .rxp-apropos__texte strong { color: var(--rxp-brun); font-weight: 600; }
.rxp-pubs .container { padding-top: 12px; }

/* Téléphone : le thème place déjà « main » sous l'en-tête ET lui ajoute 68 px de marge en haut, ce qui laissait une
   bande blanche avant la page ; même correctif que la fiche recette. Dès 768 px, cette marge compense l'en-tête fixe. */
@media (max-width: 767px) {
	body.rxp main.main { padding-top: 0 !important; } /* main-archive-recettes et main-tax-categories-recettes */
}
@media (min-width: 700px) {
	.rxp-tete__in { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
	.rxp-page .rxp-h1 { font-size: 36px; }
	.rxp-page .rxp-sous { font-size: 24px; }
	.rxp-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
	.rxp-carte__cat { display: block; }
	.rxp-page .rxp-carte__titre { font-size: 17px; -webkit-line-clamp: 2; min-height: calc(2 * 1.22em); }
	.rxp-carte__meta { font-size: 13px; }
	.rxp-parts { display: inline; }
	.rxp-choix > span { display: inline; }
	.rxp-ebook { grid-template-columns: 200px 1fr auto; padding: 20px 28px 20px 20px; gap: 22px; }
	.rxp-page .rxp-ebook img { width: 200px; }
	.rxp-page .rxp-ebook__titre { font-size: 23px; }
	.rxp-page .rxp-ebook__lien { grid-column: auto; justify-self: end; }
}
@media (min-width: 900px) {
	.rxp-apropos__texte { columns: 3; }
}
@media (min-width: 1100px) {
	.rxp-page .rxp-h1 { font-size: 42px; }
	.rxp-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
	.rxp-liste .container { padding-top: 20px; }
}
/* Bande sur UNE rangée (titre, recherche, temps et tri) à partir de 1300 px seulement : entre 1100 et 1300, le
   nombre de recettes passait sous le titre ou non selon la police, et la liste sautait de 24 px (21/10/2026).
   Le titre et son nombre ne passent jamais à la ligne ; s'il manque de la place, c'est le champ qui rétrécit. */
@media (min-width: 1300px) {
	.rxp-tete__in { grid-template-columns: max-content minmax(0, 1fr) auto; grid-template-areas: "titre recherche reglages" "cats cats cats"; column-gap: 24px; align-items: center; padding-top: 14px; padding-bottom: 16px; }
	.rxp-ligne { display: contents; }
	.rxp-titre { grid-area: titre; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 4px 14px; }
	.rxp-titre .rxp-h1 { grid-row: 1; grid-column: 1; white-space: nowrap; }
	.rxp-titre .rxp-compte { grid-row: 1; grid-column: 2; }
	.rxp-page .rxp-titre .rxp-sous { grid-row: 2; grid-column: 1 / -1; }
	.rxp-ligne .rxp-recherche { grid-area: recherche; }
	/* Une seule ligne de catégories, qui défile si elle ne tient pas : elle passait à deux lignes selon la police. */
	.rxp-cats { grid-area: cats; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 0; gap: 6px; }
	.rxp-cats .rxp-puce { height: 36px; padding: 0 11px; font-size: 13.5px; gap: 5px; }
	.rxp-reglages { grid-area: reglages; gap: 10px; overflow: visible; margin: 0; padding: 0; }
	.rxp-temps-puces { display: none !important; }
	.rxp-choix--temps { display: inline-flex; }
	.rxp-page .rxp-choix select { height: 40px; font-size: 14px; }
}
@media (min-width: 1500px) {
	.rxp-grille { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.rxp-carte__photo img { transition: none; }
}
