/* ===========================================================
   Resto Générique — Feuille de style principale
   Style : contemporain / épuré
   =========================================================== */

:root {
	--rg-bg: #fdfcfa;
	--rg-surface: #ffffff;
	--rg-ink: #1a1a1a;
	--rg-ink-soft: #4a4a4a;
	--rg-muted: #8a8a8a;
	--rg-line: #e8e3dc;
	--rg-accent: #8b6f47;          /* terre brûlée discrète */
	--rg-accent-dark: #6b5536;
	--rg-news-bg: #1a1a1a;
	--rg-news-ink: #fdfcfa;

	/* Barre de menu — variables dédiées pour pouvoir piloter sa couleur
	   indépendamment du reste du thème. */
	--rg-header-bg: #ffffff;
	--rg-header-ink: var(--rg-ink);
	--rg-header-line: var(--rg-line);

	--rg-max: 1180px;
	--rg-radius: 4px;
	--rg-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--rg-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ─────────── Base ─────────── */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--rg-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--rg-ink);
	background: var(--rg-bg);
	-webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--rg-ink); text-decoration: underline; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--rg-accent); }

h1, h2, h3, h4 { font-family: var(--rg-serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--rg-ink-soft); }

.rg-container {
	width: 100%;
	max-width: var(--rg-max);
	margin: 0 auto;
	/* padding horizontal uniquement, pour ne pas être écrasé par .rg-section
	   quand un élément cumule les deux classes. */
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.rg-section {
	/* padding vertical uniquement (cf. note ci-dessus). */
	padding-top: 4rem;
	padding-bottom: 4rem;
}
.rg-section-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.rg-section-title { text-align: center; margin-bottom: 2.5rem; }
.rg-section-title::after {
	content: ""; display: block; width: 48px; height: 1px;
	background: var(--rg-accent); margin: 1rem auto 0;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden;
}

/* ─────────── Bandeau actu ─────────── */
.rg-news-banner {
	background: var(--rg-news-bg);
	color: var(--rg-news-ink);
	text-align: center;
	font-size: .9rem;
	padding: .6rem 1rem;
	letter-spacing: .02em;
}
.rg-news-banner a { color: var(--rg-news-ink); }
.rg-news-banner a:hover { color: #f0d9b5; }

/* ─────────── Header / nav ─────────── */
.rg-site-header {
	background: var(--rg-header-bg);
	color: var(--rg-header-ink);
	border-bottom: 1px solid var(--rg-header-line);
	position: sticky; top: 0; z-index: 50;
}
.rg-site-header a { color: var(--rg-header-ink); }
.rg-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 80px; gap: 1rem;
}
.rg-site-title {
	font-family: var(--rg-serif);
	font-size: 1.5rem;
	text-decoration: none;
	letter-spacing: .03em;
	color: var(--rg-header-ink);
}
.rg-site-tagline {
	margin: 0; font-size: .82rem; color: var(--rg-header-ink); opacity: .65; font-style: italic;
}
.custom-logo {
	display: block;
	max-height: 56px;
	max-width: 240px;
	width: auto;
	height: auto;
}
.custom-logo-link { display: inline-block; line-height: 0; }

.rg-nav { position: relative; }
.rg-menu-list {
	list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0;
}
.rg-menu-list a {
	text-decoration: none; font-size: .92rem; letter-spacing: .04em;
	text-transform: uppercase; padding: .5rem 0;
	color: var(--rg-header-ink);
}
.rg-menu-list a:hover, .rg-menu-list .current-menu-item a {
	color: var(--rg-accent);
	border-bottom: 1px solid var(--rg-accent);
}

.rg-nav-toggle {
	display: none; background: none; border: 0; cursor: pointer;
	padding: 8px; gap: 5px; flex-direction: column;
}
.rg-nav-toggle-bar {
	width: 24px; height: 2px; background: var(--rg-header-ink); display: block;
}

/* ─────────── Hero ─────────── */
.rg-hero {
	min-height: 70vh;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	background-color: #2a2520;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;       /* parallaxe : l'image reste fixe, le contenu défile par-dessus */
	color: #fff;
	padding: 4rem 1.5rem;
}
/* Mobile : iOS Safari gère mal background-attachment: fixed
   (effets sacadés, layout cassé). On revient à un fond classique. */
@media (max-width: 820px), (hover: none) {
	.rg-hero { background-attachment: scroll; }
}
/* Respect des préférences "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
	.rg-hero { background-attachment: scroll; }
}
.rg-hero-inner { max-width: 720px; }
.rg-hero-title {
	color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem);
	margin-bottom: .25em;
}
.rg-hero-tagline {
	color: rgba(255,255,255,.85); font-style: italic;
	font-family: var(--rg-serif); font-size: 1.2rem;
	margin: 0 0 2rem;
}
.rg-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 0; }

/* ─────────── Boutons ─────────── */
.rg-btn {
	display: inline-block;
	padding: .85rem 1.75rem;
	font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; border-radius: var(--rg-radius);
	transition: all .15s ease;
	border: 1px solid transparent;
	font-weight: 500;
}
.rg-btn-primary {
	background: var(--rg-accent); color: #fff; border-color: var(--rg-accent);
}
.rg-btn-primary:hover { background: var(--rg-accent-dark); border-color: var(--rg-accent-dark); color: #fff; }
.rg-btn-ghost {
	background: transparent; color: #fff; border-color: rgba(255,255,255,.7);
}
.rg-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ─────────── Lede / contenu ─────────── */
.rg-lede {
	font-size: 1.15rem; line-height: 1.7; text-align: center;
	color: var(--rg-ink-soft); font-family: var(--rg-serif); font-style: italic;
}

/* ─────────── Carte (menu) ─────────── */
.rg-menu-grid {
	display: grid; gap: 3rem;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.rg-menu-cat { margin-bottom: 3rem; }
.rg-menu-cat-title {
	font-size: 1.5rem; text-align: center; margin-bottom: 1.5rem;
	padding-bottom: .5rem; position: relative;
}
.rg-menu-cat-title::after {
	content: ""; display: block; width: 40px; height: 1px;
	background: var(--rg-accent); margin: .75rem auto 0;
}
.rg-menu-items { list-style: none; padding: 0; margin: 0; }
.rg-menu-item { margin-bottom: 1.5rem; }
.rg-menu-item-head {
	display: flex; align-items: baseline; gap: .5rem;
	font-family: var(--rg-serif); font-size: 1.1rem;
}
.rg-menu-item-name { color: var(--rg-ink); font-weight: 500; }
.rg-menu-item-dots {
	flex: 1; border-bottom: 1px dotted var(--rg-line);
	transform: translateY(-4px);
}
.rg-menu-item-price { color: var(--rg-accent); font-weight: 500; white-space: nowrap; }
.rg-menu-item-desc {
	margin: .25rem 0 0; font-size: .92rem; color: var(--rg-ink-soft);
	font-style: italic;
}
.rg-menu-item-allergens {
	margin: .35rem 0 0; font-size: .78rem; color: var(--rg-muted);
}
.rg-tag-label { font-weight: 500; }

.rg-menu-toc {
	display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
	margin-bottom: 3rem;
}
.rg-menu-toc a {
	font-size: .85rem; padding: .35rem .9rem;
	border: 1px solid var(--rg-line); border-radius: 999px;
	text-decoration: none; color: var(--rg-ink-soft);
}
.rg-menu-toc a:hover { border-color: var(--rg-accent); color: var(--rg-accent); }

.rg-page-header { text-align: center; margin-bottom: 3rem; }
.rg-updated { color: var(--rg-muted); font-size: .85rem; }

.rg-empty {
	text-align: center; padding: 4rem 1rem;
	background: var(--rg-surface); border: 1px solid var(--rg-line);
	border-radius: var(--rg-radius);
}

/* ─────────── Contact ─────────── */
.rg-contact-grid {
	display: grid; gap: 3rem;
	grid-template-columns: 1fr 1.2fr; align-items: start;
}
.rg-contact-info h2 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .25rem; color: var(--rg-muted); text-transform: uppercase; letter-spacing: .1em; font-family: var(--rg-sans); font-weight: 600; }
.rg-contact-info h2:first-child { margin-top: 0; }
.rg-big-link { font-family: var(--rg-serif); font-size: 1.4rem; }
.rg-contact-map { border: 1px solid var(--rg-line); }

@media (max-width: 720px) {
	.rg-contact-grid { grid-template-columns: 1fr; }
}

/* ─────────── Footer ─────────── */
.rg-site-footer {
	background: #1a1a1a; color: #d6d3cc;
	margin-top: 4rem;
}
.rg-site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; font-family: var(--rg-sans); font-weight: 500; }
.rg-site-footer p { color: #b0aca4; font-size: .9rem; }
.rg-site-footer a { color: #d6d3cc; }
.rg-site-footer a:hover { color: #fff; }
.rg-footer-inner {
	display: grid; gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	padding: 4rem 1.5rem 2rem;
}
.rg-socials {
	list-style: none; padding: 0; margin: 1rem 0 0;
	display: flex; flex-wrap: wrap; gap: .6rem;
}
.rg-socials li { margin: 0; }
.rg-socials a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	color: #d6d3cc;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rg-socials a:hover {
	background: var(--rg-accent);
	color: #fff;
	transform: translateY(-2px);
}
.rg-social-icon {
	width: 18px; height: 18px; fill: currentColor;
	display: block;
}
.rg-footer-bottom {
	border-top: 1px solid #2a2a2a; padding: 1.5rem; text-align: center;
}
.rg-footer-bottom p { margin: 0; font-size: .8rem; color: #8a8780; }
.rg-credits { margin-top: .35rem !important; }
.rg-credits a { color: #b0aca4; }
.rg-credits a:hover { color: #fff; }
.rg-credits sup { font-size: .65em; }
.rg-heart {
	color: #c0392b;
	display: inline-block;
	animation: rg-heartbeat 1.4s ease-in-out infinite;
	transform-origin: center;
}
@keyframes rg-heartbeat {
	0%   { transform: scale(1);    }
	14%  { transform: scale(1.3);  }   /* lub */
	28%  { transform: scale(1);    }
	42%  { transform: scale(1.3);  }   /* dub */
	70%  { transform: scale(1);    }
	100% { transform: scale(1);    }   /* pause avant le prochain cycle */
}
@media (prefers-reduced-motion: reduce) {
	.rg-heart { animation: none; }
}

/* ─────────── Mobile ─────────── */
@media (max-width: 820px) {
	.rg-nav-toggle { display: flex; }
	.rg-menu-list {
		position: absolute; top: 100%; right: 0;
		flex-direction: column; gap: 0;
		background: var(--rg-header-bg); border: 1px solid var(--rg-header-line);
		min-width: 200px; padding: .5rem 0;
		box-shadow: 0 4px 20px rgba(0,0,0,.08);
		display: none;
	}
	.rg-menu-list.is-open { display: flex; }
	.rg-menu-list li { width: 100%; }
	.rg-menu-list a { display: block; padding: .75rem 1.25rem; }
	.rg-menu-list a:hover { border-bottom: 0; background: rgba(0,0,0,.04); }
}

@media (max-width: 600px) {
	.rg-section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
	.rg-container { padding-left: .5rem; padding-right: .5rem; }
	.rg-hero { min-height: 55vh; }
}
