/* ==========================================================================
   Beyrouth Bay Malo — Design system "Cèdre & Sel"
   Palette : cuivre (plateaux de mezze) + aubergine (mélasse de grenade, vin)
             + bleu-sarcelle (la mer, Digue de Mer) sur fond pierre chaude
   ========================================================================== */

/* Polices déclarées en <link> dans app/views/layout.php (SEO-09) */

:root {
	--aubergine: #3B1F2B;
	--aubergine-deep: #2A1520;
	--copper: #B8702E;
	--copper-light: #E0A461;
	--teal: #1F6B68;
	--teal-light: #4FA39E;
	--eco-green: #2F7A4F;
	--stone: #F4EEE4;
	--stone-warm: #FAF6EF;
	--text-body: #362A2C;
	--text-muted: #6B5C58;
	--white: #FFFFFF;
	--border-soft: #E4D9C8;

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--font-mono: 'IBM Plex Mono', 'Courier New', monospace;

	--radius: 16px;
	--shadow-card: 0 4px 24px rgba(59, 31, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text-body);
	background: var(--stone);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--aubergine); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--aubergine);
	line-height: 1.1;
	margin: 0 0 0.5em;
	font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--copper);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Motif cèdre (signature graphique, en trait fin) ---------- */

.cedar-mark { color: var(--copper); }

/* ---------- Header ---------- */

.site-header {
	background: url('images/sable.jpg');
	background-size: cover;
	background-position: center 65%;
	color: var(--aubergine);
	position: sticky;
	top: 0;
	z-index: 50;
	position: relative;
	overflow: hidden;
}

.site-header-sun {
	position: absolute;
	top: -10px;
	right: 3%;
	font-size: 2.6rem;
	opacity: 0.9;
	pointer-events: none;
}

.site-header .container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 16px;
	padding-bottom: 14px;
	gap: 10px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--aubergine);
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4.2vw, 3.6rem);
	font-weight: 600;
	white-space: nowrap;
}

.brand .cedar-mark { font-size: 1.5rem; }

.brand-cedar-photo {
	width: 70px;
	height: 70px;
	object-fit: contain;
	flex-shrink: 0;
}

.brand-subtitle {
	font-family: var(--font-mono);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--eco-green);
	margin-top: -4px;
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(59,31,43,0.3);
	color: var(--aubergine);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 1rem;
}

.main-nav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.lang-switch {
	display: flex;
	gap: 4px;
	margin-inline-start: 14px;
	padding-inline-start: 14px;
	border-inline-start: 3px solid var(--copper);
}

#mainNav .lang-switch a {
	font-size: 0.7rem !important;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 4px 8px !important;
}

.lang-switch a.active {
	background: rgba(59,31,43,0.12);
}

.main-nav a {
	color: var(--aubergine);
	background: rgba(255,255,255,0.45);
	border: 1.5px solid rgba(59,31,43,0.15);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 9px 18px;
	border-radius: 999px;
	transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}

.main-nav a:hover {
	background: var(--copper-light);
	border-color: transparent;
	color: var(--aubergine-deep);
	transform: translateY(-1px);
}

.main-nav a.active {
	background: linear-gradient(135deg, var(--copper) 0%, var(--teal) 100%);
	border-color: transparent;
	color: var(--white);
	box-shadow: 0 3px 10px rgba(184, 112, 46, 0.35);
}

@media (max-width: 860px) {
	.main-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 10px; }
	.main-nav.open { display: flex; }
	.main-nav a { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid rgba(59,31,43,0.1); }
	.nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	background: linear-gradient(135deg, #D9822E 0%, #178F8A 100%);
	color: var(--white);
	overflow: hidden;
	padding: 68px 0 76px;
}

.hero-cedar-bg {
	position: absolute;
	inset: 0;
	opacity: 0.55;
	pointer-events: none;
}

.hero-cedar-photo {
	position: absolute;
	object-fit: contain;
}

.hero-cedar-photo-1 { top: -20px; right: 4%; width: 200px; height: 200px; }
.hero-cedar-photo-2 { bottom: -30px; left: 2%; width: 150px; height: 150px; }

.hero-content { position: relative; text-align: center; max-width: 100%; margin: 0 auto; }

.hero .eyebrow {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	color: var(--stone-warm);
	margin-bottom: 12px;
	display: block;
	white-space: nowrap;
}

.hero h1 {
	color: var(--white);
	font-size: clamp(1.7rem, 3.4vw, 2.9rem);
	white-space: normal;
}

.hero .lead {
	font-size: 1.1rem;
	color: rgba(255,255,255,0.92);
	max-width: 100%;
	margin: 0 auto;
}

.hero-title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.hero-title-photo {
	width: 112px;
	height: 112px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.hero-badges {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 24px 0;
}

.hero-badge {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 999px;
	padding: 6px 16px 6px 6px;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-badge-img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	flex-shrink: 0;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }

/* ---------- Boutons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 13px 26px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover { background: var(--copper-light); color: var(--aubergine); }

.btn-outline {
	background: transparent;
	border: 1.5px solid rgba(255,255,255,0.5);
	color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-light); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--white); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow-inline {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.76rem;
	color: var(--teal);
	display: block;
	margin-bottom: 10px;
}

/* ---------- Cartes ---------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border-soft);
}

.card .cedar-bullet {
	color: var(--copper);
	font-size: 1.3rem;
	margin-bottom: 14px;
	display: block;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Galerie photos ---------- */

.gallery-category { margin-bottom: 48px; }
.gallery-category h2 { margin-bottom: 20px; }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.gallery-thumb {
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	aspect-ratio: 4 / 3;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 24px rgba(59, 31, 43, 0.18);
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 15, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.3);
	color: var(--white);
	font-size: 1.4rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 600px) {
	.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- Onglets de la carte ---------- */

.menu-tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 4px 12px;
	margin-bottom: 40px;
	-webkit-overflow-scrolling: touch;
}

.menu-tab-btn {
	flex-shrink: 0;
	background: var(--stone);
	border: 1.5px solid var(--border-soft);
	border-radius: 999px;
	padding: 10px 22px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--aubergine);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.menu-tab-btn:hover {
	background: var(--copper-light);
	color: var(--aubergine-deep);
	transform: translateY(-1px);
}

.menu-tab-btn.active {
	background: linear-gradient(135deg, var(--copper) 0%, var(--teal) 100%);
	border-color: transparent;
	color: var(--white);
	box-shadow: 0 3px 10px rgba(184, 112, 46, 0.35);
}

.menu-tab-panel { display: none; }
.menu-tab-panel.active { display: block; }

.menu-item-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.menu-tag {
	font-size: 0.7rem;
	font-family: var(--font-mono);
	background: var(--stone);
	color: var(--teal);
	border: 1px solid var(--border-soft);
	border-radius: 999px;
	padding: 2px 10px;
}

/* ---------- Menu (carte du restaurant) ---------- */

.menu-category { margin-bottom: 48px; }

.menu-category-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.menu-category-title h2 { margin: 0; }

.menu-category-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border-soft);
}

.menu-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--border-soft);
}

.menu-item:last-child { border-bottom: none; }

.menu-item-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--aubergine); }
.menu-item-desc { color: var(--text-muted); font-size: 0.92rem; margin-top: 2px; }
.menu-item-price {
	font-family: var(--font-mono);
	color: var(--copper);
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ---------- Bandeau horaires (style étiquette) ---------- */

.hours-strip {
	background: var(--teal);
	color: var(--white);
	border-radius: var(--radius);
	padding: 24px 28px;
	font-family: var(--font-mono);
}

.hours-strip .hours-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255,255,255,0.25);
	font-size: 0.92rem;
}
.hours-strip .hours-row:last-child { border-bottom: none; }

/* ---------- Avis / Tripadvisor ---------- */

.tripadvisor-banner {
	background: linear-gradient(135deg, var(--copper) 0%, var(--copper-light) 100%);
	color: var(--aubergine-deep);
	border-radius: var(--radius);
	padding: 40px;
	text-align: center;
}

.tripadvisor-banner .stars { font-size: 1.8rem; letter-spacing: 4px; margin-bottom: 12px; }

/* ---------- Formulaires ---------- */

.form-group { margin-bottom: 18px; }

.form-label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--aubergine);
	margin-bottom: 6px;
}

.form-control {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--border-soft);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 0.98rem;
	background: var(--white);
	color: var(--text-body);
}

.form-control:focus {
	border-color: var(--teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 107, 104, 0.15);
}

textarea.form-control { resize: vertical; min-height: 140px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.95rem; }
.alert-success { background: #E4F1EA; color: #1E4038; border: 1px solid #BEDDCC; }
.alert-danger { background: #FBEAEA; color: #8A2E2E; border: 1px solid #F1C6C6; }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--aubergine-deep);
	color: rgba(255,255,255,0.75);
	padding: 56px 0 28px;
	margin-top: 40px;
}

.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--copper-light); }

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 760px) {
	.footer-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
	padding-top: 20px;
	font-size: 0.85rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	color: rgba(255,255,255,0.5);
}

/* ---------- Fil d'ariane simple ---------- */

.page-intro {
	background: var(--stone-warm);
	padding: 48px 0;
	border-bottom: 1px solid var(--border-soft);
}
.page-intro h1 { margin-bottom: 8px; }
.page-intro .lead { color: var(--text-muted); max-width: 640px; }

/* ==========================================================================
   Pot de miel anti-spam (SEC-06) — masqué visuellement et pour les lecteurs
   d'écran, mais rempli par les robots qui remplissent tous les champs.
   Ne pas utiliser display:none : certains robots ignorent ces champs.
   ========================================================================== */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
