/* ==========================================================================
   Restaurants ouverts le dimanche — template-ouvert-dimanche.php
   Tout est scope sous #dimanche-page : aucun risque de fuite sur le reste
   du site, et aucune dependance a css/wizard-restaurant.css.
   Palette reprise des pages 2026 : rouge #c4302b, encre #1a1614, creme #fbf9f6.
   ========================================================================== */

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

#dimanche-page h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 27px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--rkd-ink);
	margin: 0 0 12px;
}

#dimanche-page h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }

#dimanche-page p { color: #4a4540; line-height: 1.65; }

/* [hidden] fait foi partout dans la page : les CSS des listings rkl-*
   posent des display: sur .rk-root et masqueraient sinon le comportement. */
#dimanche-page [hidden] { display: none !important; }

#dimanche-page a { color: var(--rkd-red); }

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

/* --- Hero --- */
.rkd-hero { display: flex; gap: 40px; align-items: flex-start; margin: 0 0 30px; }
.rkd-hero__text { flex: 1 1 60%; min-width: 0; }
.rkd-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(196, 48, 43, .09); color: var(--rkd-red); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; }
.rkd-h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 40px; line-height: 1.15; font-weight: 700; color: var(--rkd-ink); margin: 14px 0 16px; }
.rkd-lead { font-size: 17px; line-height: 1.6; margin: 0 0 12px; }
.rkd-lead strong { color: var(--rkd-ink); font-weight: 600; }
.rkd-sub { font-size: 15px; color: var(--rkd-muted); margin: 0; }

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

/* --- Barre de recherche --- */
.rkd-tool { margin: 0 0 34px; }
.rkd-bar { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1fr auto; gap: 10px; background: var(--rkd-cream); border: 1px solid var(--rkd-line); border-radius: 20px; padding: 14px; }
.rkd-bar__field { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--rkd-line); border-radius: 14px; padding: 8px 16px; min-width: 0; transition: border-color .15s; }
.rkd-bar__field:focus-within { border-color: var(--rkd-red); }
.rkd-bar__ico { color: var(--rkd-red); flex: 0 0 auto; display: flex; }
.rkd-bar__col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rkd-bar__lbl { font-size: 11px; color: #8a847c; text-transform: uppercase; letter-spacing: .04em; }
.rkd-bar__input,
.rkd-bar__select { border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--rkd-ink); width: 100%; padding: 0; margin: 0; height: auto; box-shadow: none; }
.rkd-bar__select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.rkd-bar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #1f1b17; color: #fff; border: 0; border-radius: 14px; padding: 0 26px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.rkd-bar__btn:hover { background: #000; }

.rkd-chips-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; align-items: center; }
.rkd-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--rkd-line); border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 500; color: #2c2a27; cursor: pointer; transition: all .15s; }
.rkd-chip svg { color: #8a847c; transition: color .15s; }
.rkd-chip:hover { border-color: var(--rkd-red); }
.rkd-chip.is-on { background: var(--rkd-red); border-color: var(--rkd-red); color: #fff; }
.rkd-chip.is-on svg { color: #fff; }
.rkd-chip--geo { margin-left: auto; border-style: dashed; }

.rkd-more { margin-top: 14px; background: var(--rkd-cream); border: 1px solid var(--rkd-line); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rkd-more[hidden] { display: none; }
.rkd-more__title { font-size: 13px; font-weight: 600; color: var(--rkd-ink); margin-bottom: 10px; }
.rkd-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rkd-check { margin: 0; cursor: pointer; }
.rkd-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.rkd-check span { display: inline-block; padding: 7px 13px; border: 1px solid var(--rkd-line); border-radius: 999px; background: #fff; font-size: 13px; color: #2c2a27; transition: all .15s; }
.rkd-check:hover span { border-color: var(--rkd-red); }
.rkd-check input:checked + span { background: var(--rkd-red); border-color: var(--rkd-red); color: #fff; }
.rkd-check input:focus-visible + span { outline: 2px solid var(--rkd-red); outline-offset: 2px; }

/* --- Résultats --- */
.rkd-results-wrapper { margin: 0 0 40px; scroll-margin-top: 120px; }
.rkd-results-wrapper[hidden] { display: none; }
.rkd-results-head { margin-bottom: 14px; }
.rkd-results-count { margin: 4px 0 0; font-size: 14px; color: var(--rkd-muted); }
.rkd-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 18px; }
.rkd-seg { display: inline-flex; gap: 6px; background: var(--rkd-cream); border: 1px solid var(--rkd-line); border-radius: 999px; padding: 4px; }
.rkd-seg__btn { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: #57524c; cursor: pointer; transition: all .15s; }
.rkd-seg__btn:hover { color: var(--rkd-red); }
.rkd-seg__btn.is-on { background: var(--rkd-red); color: #fff; }
.rkd-map { width: 100%; height: 520px; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.rkd-map[hidden] { display: none; }
.rkd-loading { text-align: center; padding: 30px 0; }
.rkd-loading[hidden] { display: none; }
.rkd-loading img { animation: rkdSpin 1.2s linear infinite; }
@keyframes rkdSpin { to { transform: rotate(360deg); } }
.rkd-empty { text-align: center; padding: 26px; background: var(--rkd-cream); border: 1px solid var(--rkd-line); border-radius: 14px; }
.rkd-empty[hidden] { display: none; }

/* Cartes rkl-* : on neutralise le full-bleed des listings pour rester
   aligne sur la barre de recherche (meme correctif que le wizard). */
#dimanche-page .rk-root.rkl-root { width: auto; max-width: 100%; margin: 0; background: transparent; padding: 0; }
@media (min-width: 1024px) {
	#dimanche-page .rk-root.rkl-root .rkl-cards { grid-template-columns: repeat(4, 1fr); }
}

/* Horaires du dimanche injectes sur chaque carte par le JS */
.rkd-hours { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 5px 11px; border-radius: 999px; background: rgba(196, 48, 43, .08); color: #9c2622; font-size: 12.5px; font-weight: 600; line-height: 1.3; }

/* --- Sélection serveur / villes / article --- */
.rkd-selection, .rkd-villes, .rkd-article, .rkd-faq { margin: 0 0 44px; }
.rkd-section-lead { font-size: 15px; color: var(--rkd-muted); margin: 0 0 18px; max-width: 780px; }

.rkd-villes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.rkd-villes__list li { margin: 0; }
.rkd-ville { display: block; padding: 11px 15px; border: 1px solid var(--rkd-line); border-radius: 12px; background: #fff; color: #2c2a27; font-size: 14px; text-decoration: none; transition: all .15s; }
.rkd-ville:hover { border-color: var(--rkd-red); color: var(--rkd-red); }
.rkd-ville.is-on { background: var(--rkd-red); border-color: var(--rkd-red); color: #fff; }

.rkd-article { max-width: 820px; }
.rkd-article h2 { margin-top: 34px; }
.rkd-article h2:first-child { margin-top: 0; }
.rkd-article p { margin: 0 0 14px; font-size: 15.5px; }
.rkd-tips { margin: 0 0 20px; padding-left: 20px; }
.rkd-tips li { margin-bottom: 9px; font-size: 15.5px; color: #4a4540; line-height: 1.6; }
.rkd-tips b { color: var(--rkd-ink); }

.rkd-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--rkd-cream); border: 1px solid var(--rkd-line); border-radius: 18px; padding: 22px 24px; margin-top: 26px; }
.rkd-cta p { margin: 0; font-size: 14.5px; color: var(--rkd-muted); }
.rkd-cta__btn { display: inline-flex; align-items: center; background: #1f1b17; color: #fff !important; border-radius: 12px; padding: 13px 22px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rkd-cta__btn:hover { background: #000; }

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

/* --- Responsive --- */
@media (max-width: 980px) {
	.rkd-bar { grid-template-columns: 1fr 1fr; }
	.rkd-bar__field--loc { grid-column: 1 / -1; }
	.rkd-bar__btn { grid-column: 1 / -1; padding: 14px 26px; }
	.rkd-hero { flex-direction: column; gap: 24px; }
	.rkd-hero__facts { flex: none; width: 100%; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.rkd-h1 { font-size: 32px; }
}

@media (max-width: 600px) {
	.rkd-bar { grid-template-columns: 1fr; }
	.rkd-chip--geo { margin-left: 0; width: 100%; justify-content: center; }
	.rkd-h1 { font-size: 27px; }
	#dimanche-page h2 { font-size: 22px; }
	.rkd-lead { font-size: 16px; }
	.rkd-toolbar { flex-direction: column; }
	.rkd-seg { width: 100%; }
	.rkd-seg__btn { flex: 1; padding: 11px 10px; }
	.rkd-map { height: 400px; }
	.rkd-cta { flex-direction: column; align-items: flex-start; }
	.rkd-cta__btn { width: 100%; justify-content: center; }
}
