/*
Theme Name: Serafine
Theme URI: https://serafine.fr
Author: Jessy Canto
Description: Thème personnalisé Serafine — Site vitrine
Version: 1.1.24
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serafine
Tags: custom, one-column, two-columns, responsive-layout
*/

/* =============================================
   MARK PRO — SELF-HOSTED
============================================= */
@font-face {
	font-family: 'Mark Pro';
	src: url('assets/fonts/MarkPro-Light.woff2') format('woff2'),
		 url('assets/fonts/MarkPro-Light.otf') format('opentype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Mark Pro';
	src: url('assets/fonts/MarkPro.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Mark Pro';
	src: url('assets/fonts/MarkPro.woff2') format('woff2'),
		 url('assets/fonts/MarkPro.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body, system-ui, sans-serif);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text, #1a1a1a);
	background-color: var(--color-bg, #ffffff);
	-webkit-font-smoothing: antialiased;
}

img, video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	list-style: none;
}

/* =============================================
   CSS CUSTOM PROPERTIES (à personnaliser)
============================================= */
:root {
	--color-primary:   #000000;
	--color-secondary: #ffffff;
	--color-accent:    #000000;
	--color-text:      #1a1a1a;
	--color-text-muted: #6b6b6b;
	--color-bg:        #ffffff;
	--color-bg-alt:    #f5f5f5;
	--color-border:    #e0e0e0;

	--font-heading: 'Mark Pro', system-ui, sans-serif;
	--font-body:    'Mark Pro', system-ui, sans-serif;

	--spacing-xs:  0.5rem;
	--spacing-sm:  1rem;
	--spacing-md:  2rem;
	--spacing-lg:  4rem;
	--spacing-xl:  6rem;

	--container-width: 1280px;
	--container-padding: 1.5rem;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;

	--transition: 200ms ease;
}

/* =============================================
   LAYOUT
============================================= */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

/* =============================================
   HEADER
============================================= */
.site-header,
.site-header a,
.main-navigation a {
	font-weight: 400;
}

.site-header {
	width: 100%;
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--spacing-sm);
}

.site-branding .site-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-branding .site-title a {
	color: var(--color-primary);
}

.site-branding .site-description {
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

/* =============================================
   NAVIGATION
============================================= */
.main-navigation ul {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
}

.main-navigation a {
	font-size: 0.9375rem;
	font-weight: 500;
	transition: color var(--transition);
}

.main-navigation a:hover {
	color: var(--color-accent);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--spacing-xs);
}

/* =============================================
   FOOTER
============================================= */
.site-footer,
.site-footer a {
	font-weight: 400;
}

.site-footer {
	border-top: 1px solid var(--color-border);
	padding-block: var(--spacing-md);
}

.site-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.site-footer .copyright {
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
	:root {
		--container-padding: 1rem;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--color-bg);
		border-bottom: 1px solid var(--color-border);
		padding: var(--spacing-sm);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--spacing-xs);
	}

	.site-footer .container {
		flex-direction: column;
		text-align: center;
	}
}

/* =============================================
   PAGE NOS VINS — tpl-vins
============================================= */
.tpl-vins .site-header { display: none; }

.tpl-vins .page-hero {
	position: relative;
	height: 70vh;
	min-height: 450px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 72px;
}

.tpl-vins .page-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.tpl-vins .page-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 1.5rem;
}

.tpl-vins .page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

.tpl-vins .page-vins-main {
	background: #f2ece6;
	padding: 4rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
}

.tpl-vins .page-vins-intro {
	max-width: 640px;
	text-align: center;
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	line-height: 1.7;
}

.tpl-vins .page-vins-flipbook {
	width: 100%;
	max-width: 860px;
}

.tpl-vins .page-vins-legal {
	font-size: 0.8rem;
	color: #6b6b6b;
	text-align: center;
}

@media (max-width: 600px) {
	.tpl-vins .page-vins-main { padding: 2.5rem 1rem; gap: 2rem; }
}

/* =============================================
   PAGE CONTACT — tpl-contact
============================================= */
.tpl-contact .site-header { display: none; }

/* Réutilise le hero identique à la page vins */
.tpl-contact .page-hero {
	position: relative;
	height: 70vh;
	min-height: 450px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 72px;
}

.tpl-contact .page-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.tpl-contact .page-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 1.5rem;
}

.tpl-contact .page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

/* Contenu */
.contact-main {
	background: #ffffff;
}

.contact-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	max-width: 960px;
	margin: 0 auto;
	padding: 4rem 1.5rem;
	align-items: stretch;
}

.contact-heading {
	font-family: 'Mark Pro', system-ui, sans-serif;
	font-size: 1.35rem;
	font-weight: 300;
	font-style: normal;
	color: #a5042b;
	margin: 2rem 0 0.75rem;
}

.contact-heading:first-child { margin-top: 0; }

.contact-heading--upper {
	letter-spacing: 0.08em;
}

.contact-hours {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #1c1c1c;
}

.contact-hours__separator { margin-top: 0.75rem; }

.contact-rouge { color: #a5042b; }
.contact-rouge--label { font-weight: 700; }

.contact-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: 0.9rem;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #1c1c1c;
}

.contact-picto {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	fill: #a5042b;
}

.contact-list a,
.contact-list address {
	font-style: normal;
	color: inherit;
	transition: color 0.2s;
}

.contact-list a:hover { color: #a5042b; }

.contact-acces {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #1c1c1c;
}

/* Colonne photo */
.contact-col-photo {
	position: relative;
	overflow: hidden;
}

.contact-col-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Carte */
.tpl-contact .contact-map {
	max-width: 960px;
	margin: 0 auto 4rem;
	padding: 0 2rem;
	height: 420px;
	cursor: pointer;
	background: #e8e8e8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tpl-contact .contact-map__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: #6b6b6b;
	font-size: 0.875rem;
}

.tpl-contact .contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.contact-split {
		grid-template-columns: 1fr;
		padding: 2.5rem 1.25rem;
		gap: 2rem;
	}

	.contact-col-photo { order: -1; }

	.contact-col-photo img { max-height: 280px; }

	.tpl-contact .contact-map { height: 300px; }
}

/* =============================================
   PAGE MENUS — tpl-menus
============================================= */
.tpl-menus .site-header { display: none; }

/* Réutilise le hero identique aux autres pages intérieures */
.tpl-menus .page-hero {
	position: relative;
	height: 70vh;
	min-height: 450px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 72px;
}
.tpl-menus .page-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.tpl-menus .page-hero__content { position: relative; z-index: 1; text-align: center; padding: 0 1.5rem; }
.tpl-menus .page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

/* Intro */
.menus-intro {
	text-align: center;
	padding: 3.5rem 1.5rem 2rem;
	background: #ffffff;
}

.menus-intro__icon {
	width: 44px;
	height: 44px;
	margin: 0 auto 1rem;
	display: block;
}

.menus-intro__text {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #1c1c1c;
	max-width: 520px;
	margin: 0 auto;
}

/* Grille menus */
.menus-main {
	background: #ffffff;
	padding: 2rem 0 4rem;
}

.menus-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem;
	align-items: stretch;
}

/* Colonnes */
.menus-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* La carte qui grandit pour remplir la colonne */
.menu-card--grow {
	flex: 1;
}

/* Fromage : hauteur naturelle */
.menu-card--fromage {
	flex: 0 0 auto;
}

/* Card */
.menu-card {
	background: #f2ece6;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Photo */
.menu-card__photo {
	width: 100%;
	height: 270px;
	overflow: hidden;
	flex-shrink: 0;
}

.menu-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Inner : prend tout l'espace restant, price collé en bas */
.menu-card__inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.75rem 1.5rem;
	text-align: center;
}

.menu-card__inner--center {
	justify-content: center;
	gap: 0.75rem;
}

/* Titre */
.menu-card__title {
	font-family: 'Mark Pro', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #a5042b;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

/* Zone plats : flex:1 pour absorber l'espace extra */
.menu-card__plats {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Plat */
.menu-card__plat {
	font-size: 0.875rem;
	line-height: 1.55;
	color: #1c1c1c;
	text-align: center;
}

/* Séparateur entre plats */
.menu-card__sep {
	display: block;
	width: 36px;
	height: 1px;
	background: #a5042b;
	margin: 0.75rem auto;
	opacity: 0.6;
}

/* Prix */
.menu-card__price {
	font-family: 'Mark Pro', system-ui, sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #a5042b;
	margin-top: 1.5rem;
}

/* Note bas de page */
.menus-note {
	max-width: 520px;
	margin: 3rem auto 0;
	text-align: center;
	padding: 0 1.5rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: #1c1c1c;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
	.menus-grid {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
		padding: 0 1rem;
	}

	.menus-col--left,
	.menus-col--right { display: contents; }

	.menus-col--left .menu-card--grow  { order: 1; }
	.menus-col--right .menu-card       { order: 2; }
	.menu-card--fromage                { order: 3; }

	.menu-card--grow { flex: none; }
}

/* =============================================
   PAGE NOTRE ESPRIT — tpl-notre-esprit
============================================= */
.tpl-notre-esprit .site-header { display: none; }

.tpl-notre-esprit .page-hero {
	position: relative;
	height: 70vh;
	min-height: 450px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 72px;
}
.tpl-notre-esprit .page-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.05);
}
.tpl-notre-esprit .page-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 1.5rem;
}
.tpl-notre-esprit .page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

/* Sections alternées */
.esprit-section {
	padding: 5rem 0;
}

.esprit-section--white { background: #fff; }
.esprit-section--beige { background: var(--serafine-beige-alt); }

.esprit-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 3rem;
	align-items: center;
}

.esprit-section--img-left .esprit-col--img  { order: 1; }
.esprit-section--img-left .esprit-col--text { order: 2; }
.esprit-section--img-right .esprit-col--text { order: 1; }
.esprit-section--img-right .esprit-col--img  { order: 2; }

.esprit-col--img img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.esprit-title {
	font-family: 'Mark Pro', sans-serif;
	font-weight: 300;
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	color: var(--serafine-rouge);
	margin: 0 0 1.5rem;
	line-height: 1.25;
}

.esprit-text {
	font-weight: 300;
	line-height: 1.75;
	color: #3c3c3c;
	font-size: 0.95rem;
}

.esprit-text p { margin: 0 0 1rem; }

.esprit-btn { margin-top: 2rem; display: inline-block; }

/* Citation pleine largeur */
.esprit-quote {
	padding: 7rem 2rem;
	text-align: center;
	background: var(--serafine-beige-alt);
}

.esprit-quote__text {
	max-width: 640px;
	margin: 0 auto;
	font-weight: 300;
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	line-height: 1.8;
	color: #3c3c3c;
}

/* Vidéo */
.esprit-video {
	padding: 5rem 3rem;
}

.esprit-video__wrap {
	max-width: 1100px;
	margin: 0 auto;
}

.esprit-video__player {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

.esprit-video__placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a1a;
}

.esprit-video__play {
	color: rgba(255,255,255,0.6);
	width: 72px;
	height: 72px;
}

.esprit-video__play svg { width: 100%; height: 100%; }

/* Carousel */
.esprit-carousel {
	padding: 5rem 0 4rem;
	background: #fff;
	overflow: hidden;
	position: relative;
}

/* Responsive */
@media (max-width: 768px) {
	.esprit-split {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1.5rem;
	}

	.esprit-section--img-left .esprit-col--img,
	.esprit-section--img-right .esprit-col--img { order: 1; }
	.esprit-section--img-left .esprit-col--text,
	.esprit-section--img-right .esprit-col--text { order: 2; }

	.esprit-col--img img { height: 280px; }
	.esprit-section { padding: 3rem 0; }
}

/* ══════════════════════════════════════════════════════════════
   TPL : RÉSERVATION
══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.tpl-reservation .page-hero {
	position: relative;
	height: 70vh; min-height: 450px;
	background-size: cover;
	background-position: center;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	margin-top: var(--nav-h);
}
.tpl-reservation .page-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.5) 100%);
}
.tpl-reservation .page-hero__content {
	position: relative; z-index: 1;
	text-align: center;
}
.tpl-reservation .page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

/* ── Intro ────────────────────────────────────────────── */
.resa-intro {
	padding: 72px 24px 64px;
	text-align: center;
	background: #fff;
}
.resa-intro__ornament {
	display: flex; align-items: center; justify-content: center;
	gap: 20px; margin-bottom: 28px;
}
.resa-intro__ornament::before,
.resa-intro__ornament::after {
	content: ''; display: block;
	width: 56px; height: 1px;
	background: var(--serafine-rouge);
}
.resa-intro__ornament-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--serafine-rouge);
}
.resa-intro__heading {
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 400;
	font-style: italic;
	color: var(--serafine-dark);
	margin: 0 0 16px;
	letter-spacing: .5px;
}
.resa-intro__sub {
	font-size: 15px;
	line-height: 1.75;
	color: #6B6B6B;
	margin: 0 auto;
	max-width: 520px;
}

/* ── Section formulaire ───────────────────────────────── */
.resa-section {
	background: var(--serafine-beige-alt);
	padding: 72px 24px 96px;
}
.resa-layout {
	max-width: 1060px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.8fr;
	gap: 64px;
	align-items: start;
}

/* ── Colonne gauche — infos ───────────────────────────── */
.resa-info { padding-top: 8px; }
.resa-info__label {
	font-size: 10px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--serafine-rouge);
	margin: 0 0 20px;
}
.resa-info__title {
	font-size: clamp(26px, 2.8vw, 36px);
	font-weight: 400;
	font-style: italic;
	color: var(--serafine-dark);
	line-height: 1.3;
	margin: 0 0 32px;
}
.resa-info__divider {
	width: 40px; height: 2px;
	background: var(--serafine-rouge);
	margin-bottom: 32px;
}
.resa-info__block { margin-bottom: 28px; }
.resa-info__block-label {
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--serafine-rouge);
	margin: 0 0 8px;
}
.resa-info__block-text {
	font-size: 14px;
	line-height: 1.75;
	color: var(--serafine-dark);
	margin: 0;
}
.resa-info__block-text a {
	color: var(--serafine-dark);
	text-decoration: none;
	transition: color .2s;
}
.resa-info__block-text a:hover { color: var(--serafine-rouge); }

/* ── Carte formulaire ─────────────────────────────────── */
.resa-card {
	background: #fff;
	padding: 48px 52px;
	box-shadow: 0 4px 40px rgba(0,0,0,.07);
}
.resa-card__title {
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--serafine-dark);
	margin: 0 0 36px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--serafine-beige-alt);
}

/* ── Champs formulaire ────────────────────────────────── */
.resa-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 0;
}
.resa-field { margin-bottom: 32px; }
.resa-field--full { grid-column: 1 / -1; }
.resa-label {
	display: block;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #6B6B6B;
	margin-bottom: 10px;
}
.resa-label .req { color: var(--serafine-rouge); margin-left: 2px; }
.resa-input,
.resa-textarea,
.resa-select {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1.5px solid #d9cfc6;
	padding: 10px 0 8px;
	font-size: 15px;
	color: var(--serafine-dark);
	font-family: inherit;
	outline: none;
	transition: border-color .25s;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	box-sizing: border-box;
}
.resa-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
	padding-right: 24px;
	cursor: pointer;
}
.resa-textarea {
	resize: vertical;
	min-height: 90px;
	padding-top: 10px;
}
.resa-input:focus,
.resa-textarea:focus,
.resa-select:focus { border-bottom-color: var(--serafine-rouge); }
.resa-input.is-error,
.resa-textarea.is-error,
.resa-select.is-error { border-bottom-color: var(--serafine-rouge); }
.resa-input::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
.resa-select:disabled { opacity: .45; cursor: not-allowed; color: #6B6B6B; }
.resa-error-msg {
	display: none;
	font-size: 11px;
	color: var(--serafine-rouge);
	margin-top: 6px;
	letter-spacing: .3px;
}
.resa-error-msg.is-visible { display: block; }
.resa-hp { display: none !important; }
.resa-alert-error {
	background: #fff5f7;
	border: 1px solid #f5c6c6;
	color: var(--serafine-rouge);
	padding: 14px 18px;
	font-size: 13px;
	margin-bottom: 28px;
	letter-spacing: .3px;
}

/* ── Bouton envoyer ───────────────────────────────────── */
.resa-submit-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--serafine-beige-alt);
}
.resa-required-note { font-size: 11px; color: #6B6B6B; letter-spacing: .5px; }
.resa-btn {
	background: var(--serafine-rouge);
	color: #fff;
	border: 1.5px solid var(--serafine-rouge);
	padding: 14px 40px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: background .25s, color .25s, transform .15s;
	border-radius: 0;
	-webkit-appearance: none;
}
.resa-btn:hover { background: transparent; color: var(--serafine-rouge); }
.resa-btn:active { transform: scale(.98); }
.resa-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── État succès ──────────────────────────────────────── */
.resa-success-section {
	background: var(--serafine-beige-alt);
	padding: 120px 24px;
	text-align: center;
	min-height: 60vh;
	display: flex; align-items: center; justify-content: center;
}
.resa-success-inner { max-width: 540px; margin: 0 auto; }
.resa-success-check {
	width: 60px; height: 60px;
	border-radius: 50%;
	border: 2px solid var(--serafine-rouge);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 32px;
}
.resa-success-heading {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 400;
	font-style: italic;
	color: var(--serafine-dark);
	margin: 0 0 20px;
}
.resa-success-text { font-size: 15px; line-height: 1.8; color: #6B6B6B; margin: 0 0 40px; }
.resa-success-divider { width: 40px; height: 1px; background: var(--serafine-rouge); margin: 0 auto 40px; }
.resa-back-link {
	font-size: 11px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--serafine-dark);
	text-decoration: none;
	border-bottom: 1px solid var(--serafine-beige);
	padding-bottom: 2px;
	transition: color .2s, border-color .2s;
}
.resa-back-link:hover { color: var(--serafine-rouge); border-color: var(--serafine-rouge); }

/* ── Reveal animation ─────────────────────────────────── */
.resa-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.resa-reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
	.resa-layout { grid-template-columns: 1fr; gap: 48px; max-width: 600px; }
	.resa-info { order: 2; padding-top: 0; }
	.resa-card { order: 1; }
}
@media (max-width: 640px) {
	.resa-card { padding: 32px 24px; }
	.resa-row { grid-template-columns: 1fr; gap: 0; }
	.resa-submit-wrap { flex-direction: column; gap: 16px; align-items: flex-start; }
	.resa-btn { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   TPL : BON CADEAU
══════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.tpl-bon-cadeau .page-hero {
	position: relative; height: 70vh; min-height: 450px;
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	margin-top: var(--nav-h);
}
.tpl-bon-cadeau .page-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.5) 100%);
}
.tpl-bon-cadeau .page-hero__content { position: relative; z-index: 1; text-align: center; }
.tpl-bon-cadeau .page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
}

/* ── Intro ───────────────────────────────────────────── */
.bc-intro { padding: 72px 24px 64px; text-align: center; background: #fff; }
.bc-intro__kicker {
	font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
	color: var(--serafine-rouge); margin: 0 0 20px;
}
.bc-intro__heading {
	font-size: clamp(22px, 3.5vw, 36px); font-weight: 400;
	color: var(--serafine-rouge); margin: 0 0 20px; letter-spacing: 1px;
	text-transform: uppercase;
}
.bc-intro__sub { font-size: 15px; line-height: 1.8; color: #6B6B6B; margin: 0 auto; max-width: 580px; }

/* ── Cartes menus ────────────────────────────────────── */
.bc-cards-section { background: var(--serafine-beige-alt); padding: 72px 24px 96px; }
.bc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 960px; margin: 0 auto; }
.bc-card {
	display: flex; flex-direction: column;
	opacity: 0; transform: translateY(22px);
	transition: opacity .65s ease, transform .65s ease;
}
.bc-card.is-visible { opacity: 1; transform: none; }
.bc-card:nth-child(2) { transition-delay: .12s; }
.bc-card__img-wrap { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 28px; }
.bc-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bc-card:hover .bc-card__img-wrap img { transform: scale(1.03); }
.bc-card__title {
	font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
	color: var(--serafine-rouge); margin: 0 0 8px; text-align: center;
}
.bc-card__desc { font-size: 13px; line-height: 1.7; color: #6B6B6B; text-align: center; margin: 0 0 20px; font-style: italic; }
.bc-card__price { font-size: 22px; color: var(--serafine-rouge); text-align: center; margin: 0 0 24px; font-family: Georgia, serif; }
.bc-card__btn {
	display: block; text-align: center;
	border: 1.5px solid var(--serafine-rouge);
	color: var(--serafine-rouge); padding: 12px 24px;
	font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	background: transparent; font-family: inherit;
	transition: background .25s, color .25s;
	margin-top: auto;
}
.bc-card__btn:hover { background: var(--serafine-rouge); color: #fff; }

/* ── Modal overlay ───────────────────────────────────── */
.bc-overlay {
	position: fixed; inset: 0; z-index: 300;
	background: rgba(0,0,0,.6);
	display: flex; align-items: center; justify-content: center;
	padding: 24px 16px;
	opacity: 0; pointer-events: none;
	transition: opacity .3s ease;
}
.bc-overlay.is-open { opacity: 1; pointer-events: all; }
.bc-modal {
	background: #fff;
	width: 100%; max-width: 620px;
	max-height: 90vh; overflow-y: auto;
	position: relative;
	transform: translateY(16px);
	transition: transform .3s ease;
	box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.bc-overlay.is-open .bc-modal { transform: translateY(0); }
.bc-modal__header {
	background: var(--serafine-rouge);
	padding: 24px 32px;
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px; position: sticky; top: 0; z-index: 1;
}
.bc-modal__header-text { flex: 1; }
.bc-modal__title { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.bc-modal__price { font-size: 20px; color: rgba(255,255,255,.85); margin: 0; font-family: Georgia, serif; }
.bc-modal__close {
	background: none; border: none; cursor: pointer;
	color: #fff; padding: 4px; flex-shrink: 0;
	opacity: .8; transition: opacity .2s;
}
.bc-modal__close:hover { opacity: 1; }
.bc-modal__body { padding: 36px 40px 40px; }

/* ── Options ─────────────────────────────────────────── */
.bc-section-label {
	font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
	color: var(--serafine-rouge); margin: 0 0 16px; display: block;
}
.bc-qty-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding: 14px 0;
	border-bottom: 1px solid rgba(194,177,159,.3);
}
.bc-qty-info { flex: 1; min-width: 0; }
.bc-qty-label { display: block; font-size: 13px; color: var(--serafine-dark); line-height: 1.45; }
.bc-qty-price { display: block; font-size: 12px; color: var(--serafine-rouge); margin-top: 3px; }
.bc-qty-ctrl {
	display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.bc-qty-btn {
	width: 32px; height: 32px; flex-shrink: 0;
	border: 1.5px solid var(--serafine-rouge); background: transparent;
	color: var(--serafine-rouge); font-size: 18px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background .2s, color .2s; border-radius: 0; padding: 0;
	font-family: inherit;
}
.bc-qty-btn:hover { background: var(--serafine-rouge); color: #fff; }
.bc-qty-input {
	width: 36px; text-align: center; border: none; background: transparent;
	font-size: 15px; font-family: Georgia, serif; color: var(--serafine-dark);
	font-weight: 600; -moz-appearance: textfield; padding: 0;
}
.bc-qty-input::-webkit-outer-spin-button,
.bc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Compteur total ──────────────────────────────────── */
.bc-price-counter {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 0 20px; margin-top: 4px;
}
.bc-price-counter__label {
	font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
	color: var(--serafine-dark); opacity: .55;
}
.bc-price-counter__amount {
	font-size: 1.25rem; font-weight: 700; color: var(--serafine-rouge);
	font-family: Georgia, serif;
}

/* ── Champs formulaire ───────────────────────────────── */
.bc-divider { height: 1px; background: var(--serafine-beige-alt); margin: 8px 0 28px; }
.bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bc-field { margin-bottom: 28px; }
.bc-field--full { grid-column: 1 / -1; }
.bc-label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #6B6B6B; margin-bottom: 10px; }
.bc-label .req { color: var(--serafine-rouge); margin-left: 2px; }
.bc-input, .bc-select, .bc-textarea {
	width: 100%; background: transparent; border: none;
	border-bottom: 1.5px solid #d9cfc6;
	padding: 10px 0 8px; font-size: 15px; color: var(--serafine-dark);
	font-family: inherit; outline: none; transition: border-color .25s;
	-webkit-appearance: none; appearance: none; border-radius: 0; box-sizing: border-box;
}
.bc-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 4px center;
	padding-right: 24px; cursor: pointer;
}
.bc-textarea { resize: vertical; min-height: 80px; padding-top: 10px; }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus { border-bottom-color: var(--serafine-rouge); }
.bc-input.is-error, .bc-select.is-error { border-bottom-color: var(--serafine-rouge); }
.bc-error-msg { display: none; font-size: 11px; color: var(--serafine-rouge); margin-top: 6px; letter-spacing: .3px; }
.bc-error-msg.is-visible { display: block; }
.bc-hp { display: none !important; }

/* ── Message counter ─────────────────────────────────── */
.bc-msg-counter {
	display: block; text-align: right; font-size: 11px; color: #aaa;
	margin-top: 5px; letter-spacing: .3px;
}

/* ── Submit ──────────────────────────────────────────── */
.bc-submit-wrap {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 24px; border-top: 1px solid var(--serafine-beige-alt); margin-top: 8px;
}
.bc-required-note { font-size: 11px; color: #6B6B6B; letter-spacing: .5px; }
.bc-btn {
	background: var(--serafine-rouge); color: #fff;
	border: 1.5px solid var(--serafine-rouge);
	padding: 14px 40px; font-size: 12px; font-weight: 600;
	letter-spacing: 2px; text-transform: uppercase;
	cursor: pointer; font-family: inherit;
	transition: background .25s, color .25s, transform .15s;
	border-radius: 0; -webkit-appearance: none;
}
.bc-btn:hover { background: transparent; color: var(--serafine-rouge); }
.bc-btn:active { transform: scale(.98); }
.bc-btn:disabled { opacity: .5; cursor: not-allowed; }
.bc-alert-error {
	background: #fff5f7; border: 1px solid #f5c6c6;
	color: var(--serafine-rouge); padding: 14px 18px;
	font-size: 13px; margin-bottom: 24px;
}

/* ── Succès ──────────────────────────────────────────── */
.bc-success-section {
	background: var(--serafine-beige-alt); padding: 120px 24px;
	text-align: center; min-height: 60vh;
	display: flex; align-items: center; justify-content: center;
}
.bc-success-inner { max-width: 540px; margin: 0 auto; }
.bc-success-check {
	width: 60px; height: 60px; border-radius: 50%;
	border: 2px solid var(--serafine-rouge);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 32px;
}
.bc-success-heading { font-size: clamp(22px, 3vw, 32px); font-weight: 400; font-style: italic; color: var(--serafine-dark); margin: 0 0 20px; }
.bc-success-divider { width: 40px; height: 1px; background: var(--serafine-rouge); margin: 0 auto 32px; }
.bc-success-text { font-size: 15px; line-height: 1.8; color: #6B6B6B; margin: 0 0 40px; }
.bc-back-link {
	font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
	color: var(--serafine-dark); text-decoration: none;
	border-bottom: 1px solid var(--serafine-beige); padding-bottom: 2px;
	transition: color .2s, border-color .2s;
}
.bc-back-link:hover { color: var(--serafine-rouge); border-color: var(--serafine-rouge); }

/* ── WooCommerce pages (checkout, order-pay…) ─────────── */

/* Masque le message "commande invité" sur la page de paiement */
.woocommerce-order-pay .woocommerce-error { display: none !important; }
.tpl-woo #primary { max-width: 760px; margin: 120px auto 80px; padding: 0 24px; }
.tpl-woo .site-footer { margin-top: 0; }

/* Titres */
.tpl-woo h1, .tpl-woo h2, .tpl-woo h3 {
	font-family: Georgia, 'Times New Roman', serif;
	color: var(--serafine-dark);
}

/* Boutons WooCommerce → couleurs Sérafine */
.tpl-woo .button,
.tpl-woo button[type="submit"],
.tpl-woo input[type="submit"],
.tpl-woo .wc-block-components-button,
.tpl-woo #place_order {
	background: var(--serafine-rouge) !important;
	color: #fff !important;
	border: 1.5px solid var(--serafine-rouge) !important;
	border-radius: 0 !important;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-size: 12px !important;
	padding: 14px 36px !important;
	transition: background .25s, color .25s;
}
.tpl-woo .button:hover,
.tpl-woo #place_order:hover {
	background: transparent !important;
	color: var(--serafine-rouge) !important;
}

/* Inputs */
.tpl-woo input[type="text"],
.tpl-woo input[type="email"],
.tpl-woo input[type="tel"],
.tpl-woo select,
.tpl-woo textarea {
	border: 1px solid #d5cdc4 !important;
	border-radius: 0 !important;
	font-family: inherit;
	font-size: 14px;
}
.tpl-woo input:focus,
.tpl-woo select:focus,
.tpl-woo textarea:focus {
	border-color: var(--serafine-rouge) !important;
	box-shadow: none !important;
	outline: none;
}


/* Méthodes de paiement */
.tpl-woo .wc_payment_method label { cursor: pointer; font-size: 14px; }
.tpl-woo .wc_payment_method.payment_method_bacs .payment_box {
	background: #f9f5f1;
	border-left: 3px solid var(--serafine-rouge);
	border-radius: 0;
}
.bc-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.bc-reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 700px) {
	.bc-cards { grid-template-columns: 1fr; max-width: 420px; }
	.bc-modal__body { padding: 28px 24px 32px; }
	.bc-row { grid-template-columns: 1fr; gap: 0; }
	.bc-submit-wrap { flex-direction: column; gap: 16px; align-items: flex-start; }
	.bc-btn { width: 100%; text-align: center; }
}

/* ── Pages légales (template-legal.php) ──────────────── */
.legal-wrap {
	background: #f9f5f1;
	min-height: 100vh;
	padding: 120px 24px 80px;
}
.legal-content {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	padding: 52px 60px;
	border-radius: 2px;
}
.legal-title {
	font-family: var(--serafine-serif, Georgia, serif);
	font-size: 28px;
	color: var(--serafine-dark, #1c1c1c);
	margin: 0 0 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e8dfd6;
	font-weight: 400;
}
.legal-body h2 {
	font-family: var(--serafine-serif, Georgia, serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--serafine-dark, #1c1c1c);
	margin: 36px 0 10px;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.legal-body h3 {
	font-size: 14px;
	font-weight: 600;
	color: var(--serafine-dark, #1c1c1c);
	margin: 24px 0 8px;
}
.legal-body p, .legal-body li {
	font-size: 14px;
	line-height: 1.8;
	color: #4a4035;
	margin: 0 0 10px;
}
.legal-body ul {
	padding-left: 20px;
	margin: 0 0 16px;
}
.legal-body a { color: var(--serafine-rouge, #a5042b); }
.legal-body strong { color: var(--serafine-dark, #1c1c1c); }

@media (max-width: 700px) {
	.legal-content { padding: 36px 24px; }
	.legal-title { font-size: 22px; }
}
