/* =============================================
   HOME — La Sérafine
============================================= */
:root {
	--serafine-beige:     #C4B9AC;
	--serafine-beige-alt: #F0EBE3;
	--serafine-rouge:     #8B1A2B;
	--serafine-navy:      #0D1B35;
	--serafine-dark:      #1C1C1C;
	--serafine-white:     #FFFFFF;
	--serafine-gray:      #6B6B6B;
	--nav-h:              72px;
}

/* Cache le header WordPress standard sur la home */
.home .site-header { display: none; }

/* =============================================
   NAV — DESKTOP
============================================= */
#home-nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 200;
	height: var(--nav-h);
	display: flex;
	align-items: center;
	padding: 0 2rem;
	background: transparent;
	transition: background 0.4s ease;
}

#home-nav.scrolled {
	background: rgba(13, 27, 53, 0.97);
	backdrop-filter: blur(8px);
}

/* Logo dans le flux, taille fixe */
.nav-logo-wrap {
	flex: 0 0 auto;
	padding: 0 2rem;
}

.nav-logo {
	height: 48px;
	width: auto;
	display: block;
}

/* Gauche : flex: 1, liens poussés vers la droite (vers le logo) */
.nav-left-links {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.75rem;
	list-style: none;
}

/* Droite : flex: 1, liens poussés vers la gauche (vers le logo) */
.nav-right {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1.75rem;
}

.nav-right-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
}

.nav-left-links a,
.nav-right-links a {
	color: var(--serafine-white);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	font-weight: 400;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.nav-left-links a:hover,
.nav-right-links a:hover { opacity: 0.65; }

/* Bouton Réservation */
.nav-btn-resa {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 1.1rem;
	border: 1.5px solid var(--serafine-white);
	border-radius: 3px;
	color: var(--serafine-white) !important;
	font-size: 0.8125rem !important;
	letter-spacing: 0.06em;
	font-weight: 400;
	transition: background 0.2s, color 0.2s !important;
}

.nav-btn-resa:hover {
	background: var(--serafine-white);
	color: var(--serafine-navy) !important;
	opacity: 1 !important;
}

/* Icônes réseaux */
.nav-social {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.nav-social a {
	color: var(--serafine-white);
	line-height: 0;
	transition: opacity 0.2s;
}

.nav-social a:hover { opacity: 0.65; }

/* Cache la version mobile sur desktop */
.nav-mobile { display: none; }

/* =============================================
   NAV — MOBILE
============================================= */
@media (max-width: 992px) {
	/* Cache tout le layout desktop */
	.nav-left-links,
	.nav-logo-wrap,
	.nav-right { display: none; }

	/* Affiche le layout mobile */
	.nav-mobile {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
	}

	#home-nav {
		grid-template-columns: 1fr;
		padding: 0 1rem;
		background: rgba(13, 27, 53, 0.9);
	}

	.nav-hamburger {
		background: none;
		border: none;
		cursor: pointer;
		padding: 0.5rem;
		color: var(--serafine-white);
		line-height: 0;
	}

	.nav-mobile-logo img { height: 36px; width: auto; }

	.nav-mobile .nav-btn-resa { font-size: 0.75rem !important; padding: 0.35rem 0.85rem; }
}

/* =============================================
   MENU MOBILE DÉROULANT
============================================= */
.mobile-menu {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	width: min(300px, 80vw);
	z-index: 300;
	background: var(--serafine-navy);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
	transform: translateX(0);
}

.mobile-menu-close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--serafine-white);
	line-height: 0;
	align-self: flex-end;
}

.mobile-menu-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mobile-menu-links a {
	color: var(--serafine-white);
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 400;
	transition: opacity 0.2s;
}

.mobile-menu-links a:hover { opacity: 0.65; }

.mobile-menu-social {
	display: flex;
	gap: 1rem;
	margin-top: auto;
}

.mobile-menu-social a {
	color: var(--serafine-white);
	line-height: 0;
	transition: opacity 0.2s;
}

.mobile-menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 290;
	background: rgba(0,0,0,0.5);
}

.mobile-menu-overlay.is-visible { display: block; }

/* =============================================
   LOADER
============================================= */

/*
  Ajuster --restaurant-x pour aligner le R dans le f de la calligraphie.
  Valeur positive = décale vers la droite.
*/
:root {
	--restaurant-x: 73%;   /* % horizontal — le f de Sérafine est à ~73% du SVG */
	--restaurant-y: 78%;   /* % vertical  — sous la ligne de base */
	--restaurant-w: 38%;   /* largeur du logo Restaurant relative au SVG */
}

#serafine-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: var(--serafine-beige);
	display: flex;
	align-items: center;
	justify-content: center;
}

.loader-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}

/* --- Bloc logo --- */
.loader-logo-block {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.loader-calligraphie {
	position: relative;
	width: min(520px, 80vw);
}

.loader-svg-anim {
	width: 100%;
	height: auto;
	display: block;
}

/* Couleur des lettres : blanc sur fond beige (écrase le fill:#1d1d1b du SVG) */
.loader-svg-anim .cls-1,
.loader-svg-anim #letters path,
.loader-svg-anim #letters polyline {
	fill: #ffffff !important;
	stroke: none;
}

/* Cache tous les traits de masque dès le chargement — GSAP prend la main ensuite */
.loader-svg-anim .strokeMask {
	stroke-dasharray: 10000;
	stroke-dashoffset: 10000;
	stroke-opacity: 0;
}

/* "Restaurant" COUPÉ positionné sur le f */
.loader-restaurant-wrap {
	position: absolute;
	left: var(--restaurant-x);
	top: var(--restaurant-y);
	width: var(--restaurant-w);
	transform: translateX(-50%);
	opacity: 0;
}

.loader-restaurant-svg {
	width: 100%;
	height: auto;
	display: block;
	transform: translateX(87px);
}

/* --- Ligne --- */
.loader-line {
	width: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.7);
	max-width: 320px;
}

/* --- Tagline --- */
.loader-tagline-wrap {
	position: relative;
	display: inline-block;
}

.loader-tagline {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(1.2rem, 2.5vw, 1.6rem);
	font-style: italic;
	color: #ffffff;
	letter-spacing: 0.04em;
	opacity: 0;
	margin: 0;
}

/* --- Étoiles --- */
.loader-stars {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.loader-star {
	position: absolute;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.85rem;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	user-select: none;
}

/* =============================================
   HERO
============================================= */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	will-change: transform;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Bloc logo hero — miroir exact de .loader-calligraphie */
.hero-logo-block {
	position: relative;
	width: min(520px, 80vw);
	margin: 0 auto;
}

.hero-logo-script {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 2px 20px rgba(0,0,0,0.35));
}

/* "Restaurant COUPÉ" — mêmes valeurs que .loader-restaurant-wrap */
.hero-restaurant-wrap {
	position: absolute;
	left: var(--restaurant-x);
	top:  var(--restaurant-y);
	width: var(--restaurant-w);
	transform: translateX(-50%);
}

.hero-restaurant-svg {
	width: 100%;
	height: auto;
	display: block;
	transform: translateX(87px);
}

.hero-scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.hero-scroll-hint span {
	display: block;
	width: 1px;
	height: 55px;
	background: rgba(255,255,255,0.45);
	margin: 0 auto;
	animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
	0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
	50%  { opacity: 1; }
	100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* =============================================
   SECTIONS GÉNÉRALES
============================================= */
.section { position: relative; }

.container--narrow {
	max-width: 700px;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.text-center { text-align: center; }

.section-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.4rem, 3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 1.25rem;
}

.title--red { color: var(--serafine-rouge); }

.section-text {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.85;
	color: var(--serafine-dark);
}

.section-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

/* =============================================
   SECTION INTRO
============================================= */
.section--intro {
	background: var(--serafine-white);
	padding: clamp(4rem, 8vw, 6rem) 0;
}

.intro-badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.intro-badges .badge-michelin {
	height: 38px;
	width: auto;
	max-height: 38px;
}

.intro-badges .badge-gm {
	height: 38px;
	width: auto;
	max-width: 120px;
}

.intro-reconnu {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 0.9rem;
	color: var(--serafine-gray);
	font-style: italic;
}

/* =============================================
   BOUTONS
============================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.6rem;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
	border-radius: 2px;
	transition: background 0.2s, color 0.2s;
	cursor: pointer;
}

.btn--outline {
	border: 1.5px solid var(--serafine-rouge);
	color: var(--serafine-rouge);
	background: transparent;
}

.btn--outline:hover {
	background: var(--serafine-rouge);
	color: var(--serafine-white);
}

/* =============================================
   CAROUSEL
============================================= */
.section--carousel {
	background: var(--serafine-beige-alt);
	padding: clamp(3rem, 6vw, 5rem) 0;
	overflow: hidden;
}

.carousel-viewport {
	overflow: hidden;
	cursor: grab;
	user-select: none;
}

.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
	display: flex;
	list-style: none;
	will-change: transform;
}

.carousel-slide {
	flex: 0 0 auto;
	width: 28vw;
	max-width: 420px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	transition: transform 0.5s ease;
}

.carousel-slide:hover img { transform: scale(1.05); }

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 1.5rem 0;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1.5px solid var(--serafine-rouge);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s;
}

.carousel-dot.is-active { background: var(--serafine-rouge); }

.carousel-cta {
	text-align: center;
	margin-top: 1rem;
}

@media (max-width: 768px) {
	.carousel-slide {
		width: 78vw;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.carousel-slide { width: 88vw; }
}

/* =============================================
   SECTIONS SPLIT (cuisine / cave)
============================================= */
.section--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 55vh;
}

.section--split-reverse {
	background: var(--serafine-beige-alt);
}

.split-image { overflow: hidden; }

.split-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.split-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
	background: var(--serafine-white);
}

.section--split-reverse .split-content {
	background: var(--serafine-beige-alt);
}

@media (max-width: 768px) {
	.section--split {
		grid-template-columns: 1fr;
	}

	/* Sur mobile, image toujours en premier */
	.section--split .split-image { order: 1; aspect-ratio: 4/3; }
	.section--split .split-content { order: 2; }
	.section--split-reverse .split-image { order: 1; }
	.section--split-reverse .split-content { order: 2; }
}

/* =============================================
   SECTION CONTACT
============================================= */
.section--contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 55vh;
}

.contact-map {
	overflow: hidden;
	min-height: 400px;
}

.contact-map iframe,
.contact-map img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.contact-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
	background: var(--serafine-white);
}

.contact-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1.5rem 0;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1rem;
}

.contact-list svg { flex-shrink: 0; margin-top: 0.1em; color: var(--serafine-rouge); }

.contact-list a,
.contact-list address {
	font-style: normal;
	color: var(--serafine-dark);
	transition: color 0.2s;
}

.contact-list a:hover { color: var(--serafine-rouge); }

.contact-logos {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

@media (max-width: 768px) {
	.section--contact {
		grid-template-columns: 1fr;
	}
	.contact-map { min-height: 260px; }
}

/* =============================================
   FOOTER (home override)
============================================= */
.home .site-footer {
	background: var(--serafine-beige);
	border-top: none;
	padding: 2rem 1.5rem;
	text-align: center;
}

.home .site-footer .container {
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
}

.home .site-footer .copyright {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 0.8rem;
	color: rgba(28,28,28,0.55);
}

/* =============================================
   ANIMATIONS — états initiaux GSAP
============================================= */
@media (prefers-reduced-motion: no-preference) {
	.panel .section-title,
	.panel .section-text,
	.panel .section-actions,
	.panel .intro-badges,
	.panel .contact-list,
	.panel .contact-logos {
		opacity: 0;
		transform: translateY(32px);
	}

	.section--split .split-image {
		clip-path: inset(0 100% 0 0);
	}
}
