/* ==========================================================================
   Restaurants près de {lieu} — template-restaurants-pres-de.php
   Tout est scopé sous #lieu-page. Palette des pages outils 2026 (rouge
   #c4302b, encre #1a1614, crème #fbf9f6). Les cartes rkl-card gardent les
   couleurs et les polices des listings « -new ».
   ========================================================================== */

#lieu-page {
	--rkp-red: #c4302b;
	--rkp-ink: #1a1614;
	--rkp-muted: #6b6660;
	--rkp-line: #e7e3dd;
	--rkp-cream: #fbf9f6;
	color: var(--rkp-ink);
}

#lieu-page h2:not(.rkl-card h2) {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 27px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--rkp-ink);
	margin: 0 0 12px;
	text-align: left;
}

#lieu-page p:not(.rkl-card p) { color: #4a4540; line-height: 1.65; }
#lieu-page a:not(.rkl-card a):not(.rkp-pill):not(.rkl-page-btn) { color: var(--rkp-red); }
#lieu-page [hidden] { display: none !important; }

/* --- Aperçu administrateur d'un lieu non publié --- */
.rkp-apercu { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 18px; }

/* --- Fil d'Ariane --- */
.rkp-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rkp-muted); margin: 0 0 22px; flex-wrap: wrap; }
#lieu-page .rkp-crumb a { color: var(--rkp-muted); text-decoration: none; }
#lieu-page .rkp-crumb a:hover { color: var(--rkp-red); }
.rkp-crumb b { color: var(--rkp-ink); font-weight: 600; }

/* --- En-tête --- */
.rkp-hero { display: flex; gap: 40px; align-items: flex-start; margin: 0 0 26px; }
.rkp-hero__text { flex: 1 1 60%; min-width: 0; }
.rkp-badge { display: inline-flex; align-items: center; background: rgba(196, 48, 43, .09); color: var(--rkp-red); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; }
.rkp-h1 { text-align: left; font-family: 'Playfair Display', Georgia, serif; font-size: 40px; line-height: 1.15; font-weight: 700; color: var(--rkp-ink); margin: 14px 0 16px; }
.rkp-lead { font-size: 17px; line-height: 1.6; margin: 0; max-width: 760px; }

.rkp-facts { flex: 0 0 300px; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rkp-facts li { background: var(--rkp-cream); border: 1px solid var(--rkp-line); border-radius: 14px; padding: 14px 16px; margin: 0; }
.rkp-facts b { display: block; font-size: 14.5px; color: var(--rkp-ink); margin-bottom: 3px; }
.rkp-facts span { display: block; font-size: 13px; color: var(--rkp-muted); line-height: 1.45; }

/* --- Filtres (liens) --- */
.rkp-filtres { display: grid; gap: 10px; background: var(--rkp-cream); border: 1px solid var(--rkp-line); border-radius: 18px; padding: 14px 16px; margin: 0 0 34px; }
.rkp-filtres__groupe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rkp-filtres__titre { flex: 0 0 76px; font-size: 11px; color: #8a847c; text-transform: uppercase; letter-spacing: .04em; }
.rkp-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--rkp-line); border-radius: 999px; background: #fff; color: #2c2a27; font-size: 14px; line-height: 1.2; text-decoration: none; transition: border-color .15s, color .15s; }
.rkp-pill span { font-size: 12px; color: var(--rkp-muted); font-variant-numeric: tabular-nums; }
.rkp-pill:hover { border-color: var(--rkp-red); color: var(--rkp-red); }
.rkp-pill.is-on { background: var(--rkp-ink); border-color: var(--rkp-ink); color: #fff; }
.rkp-pill.is-on span { color: rgba(255, 255, 255, .75); }

/* --- Liste : les cartes restent dans le wrapper de la page ---
   Les listings « -new » sortent .rkl-root du wrapper (100vw, marges
   négatives) parce qu'ils portent leur propre conteneur intérieur. Ici il
   n'y en a pas : on neutralise ce pleine-largeur, comme sur la page
   « ouverts le dimanche ». */
#lieu-page .rk-root.rkl-root { width: auto; max-width: 100%; margin: 0; padding: 0; background: transparent; }

/* --- Bas de page : texte à gauche, pub Amazon collante à droite ---
   Le texte est plafonné à 820 px ; la pub occupe l'espace libre du wrapper
   et suit le défilement (sous le header collant). Sous 1100 px elle passe
   sous le texte, centrée, sans effet collant. */
.rkp-bas--pub { display: grid; grid-template-columns: minmax(0, 820px) 320px; justify-content: space-between; column-gap: 48px; align-items: start; }
.rkp-bas__texte { min-width: 0; }
.rkp-bas__pub { align-self: stretch; margin: 0 0 44px; }
.rkp-bas__sticky { position: sticky; top: 116px; }
.rkp-bas__sticky .rkp, .rkp-bas__sticky .rkxm { margin-left: auto; margin-right: auto; }
/* Visuel moins haut : la carte entière tient sous le header sur un écran de 800 px. */
.rkp-bas__sticky .rkp--sidebar .rkp__media { aspect-ratio: 16 / 10; }

/* --- Sections --- */
.rkp-liste, .rkp-section { margin: 0 0 44px; }
.rkp-section-lead { font-size: 15px; color: var(--rkp-muted); margin: 0 0 18px; max-width: 780px; }
.rkp-chiffres, .rkp-article, .rkp-faq { max-width: 820px; }
.rkp-article h2 { margin-top: 34px; }
.rkp-article h2:first-child { margin-top: 0; }
.rkp-article p, .rkp-chiffres p { margin: 0 0 14px; font-size: 15.5px; }
.rkp-note { font-size: 13px !important; color: var(--rkp-muted) !important; }

.rkp-budget { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rkp-budget li { border: 1px solid var(--rkp-line); border-radius: 12px; padding: 12px 14px; background: #fff; margin: 0; }
.rkp-budget b { display: block; font-size: 16px; color: var(--rkp-ink); }
.rkp-budget span { font-size: 13px; color: var(--rkp-muted); font-variant-numeric: tabular-nums; }

/* --- FAQ --- */
.rkp-faq__item { border: 1px solid var(--rkp-line); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.rkp-faq__item summary { cursor: pointer; list-style: none; padding: 16px 46px 16px 18px; font-size: 15.5px; font-weight: 600; color: var(--rkp-ink); position: relative; }
.rkp-faq__item summary::-webkit-details-marker { display: none; }
.rkp-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--rkp-red); }
.rkp-faq__item[open] summary::after { content: "–"; }
.rkp-faq__item[open] summary { background: var(--rkp-cream); }
.rkp-faq__a { padding: 14px 18px 18px; }
.rkp-faq__a p { margin: 0; font-size: 15px; }

/* --- Maillage --- */
.rkp-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.rkp-links li { margin: 0; }
#lieu-page .rkp-links a { display: block; padding: 12px 15px; border: 1px solid var(--rkp-line); border-radius: 12px; background: #fff; color: #2c2a27; text-decoration: none; transition: border-color .15s; }
#lieu-page .rkp-links a:hover { border-color: var(--rkp-red); }
.rkp-links b { display: block; font-size: 14.5px; font-weight: 600; }
.rkp-links span { display: block; font-size: 13px; color: var(--rkp-muted); margin-top: 2px; }

/* Grille des restaurants (03/12/2026) : 4 colonnes sur ordinateur, 3 sur
   tablette, 1 sur mobile. La grille partagée des listings fait 3 / 2 / 1 ;
   sous 721 px sa règle à une colonne reste en place. */
@media (min-width: 721px) {
	#lieu-page .rkp-cards.rk-root.rkl-root .rkl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	#lieu-page .rkp-cards.rk-root.rkl-root .rkl-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* La publicité de la grille (AdSense fluide) demande 250 px de large : là où
   la colonne est plus étroite, elle occupe deux colonnes. « dense » fait
   remonter la carte suivante dans la case laissée libre. */
@media (min-width: 721px) and (max-width: 979px), (min-width: 1100px) and (max-width: 1299px) {
	#lieu-page .rkp-cards.rk-root.rkl-root .rkl-cards { grid-auto-flow: row dense; }
	#lieu-page .rkp-cards.rk-root.rkl-root .rkl-card--ad { grid-column: span 2; }
}
/* Publicité non servie : pas de case vide dans la grille. */
#lieu-page .rkp-cards .rkl-card--ad:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* --- Responsive --- */
@media (max-width: 1100px) {
	.rkp-bas--pub { display: block; }
	.rkp-bas__sticky { position: static; }
}

@media (max-width: 980px) {
	.rkp-hero { flex-direction: column; gap: 22px; }
	.rkp-facts { flex: none; width: 100%; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.rkp-h1 { font-size: 32px; }
}

@media (max-width: 600px) {
	.rkp-h1 { font-size: 27px; }
	#lieu-page h2:not(.rkl-card h2) { font-size: 22px; }
	.rkp-lead { font-size: 16px; }
	.rkp-filtres__titre { flex-basis: 100%; }
	/* Les familles de cuisine défilent sur une ligne plutôt que d'empiler 4 rangées. */
	.rkp-filtres__groupe { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
	.rkp-filtres__groupe::-webkit-scrollbar { display: none; }
	.rkp-filtres__titre { display: none; }
	.rkp-pill { flex: 0 0 auto; min-height: 40px; }
	/* La liste doit arriver vite : deux repères côte à côte, le troisième masqué. */
	.rkp-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
	.rkp-facts li { padding: 10px 12px; }
	.rkp-facts li:nth-child(n+3) { display: none; }
	.rkp-facts b { font-size: 13.5px; }
	.rkp-facts span { font-size: 12px; }
}
