/* La Maison du Gourmet — feuille de style du site
   Couleurs : taupe et prune de l'ancien site, rose du logo MG. */

:root {
	--paper: #faf6f1;
	--paper-2: #f3ece4;
	--white: #fff;
	--ink: #2b2527;
	--ink-soft: #5d5456;
	--taupe: #635153;
	--plum: #403b43;
	--plum-deep: #2f2b31;
	--rose: #e94390;       /* rose du logo : aplats, décor */
	--rose-text: #b8246a;  /* rose lisible pour du texte sur fond clair */
	--rose-light: #f7a8cc; /* rose lisible sur fond sombre (prune) */
	--rose-pale: #ffd6e8;  /* rose lisible sur fond taupe */
	--line: #e4d9ce;

	/* Une seule police, proche de celle du logo MG (linéale géométrique) */
	--font-display: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
	--font-body: var(--font-display);

	--radius: 14px;
	--radius-small: 8px;
	--shadow: 0 10px 30px rgba(43, 37, 39, .10);
	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

a { color: var(--rose-text); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--white);
	padding: 10px 16px; border-radius: var(--radius-small);
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
	font-family: var(--font-body);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rose-text);
	margin-bottom: .75em;
}

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

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: .75em 1.4em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--rose-text); color: var(--white); }
.btn-primary:hover { background: #9c1c59; color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-small { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }

/* ---------- En-tête ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 246, 241, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(43, 37, 39, .06); }

.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 48px; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: .85rem; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
	color: var(--ink); text-decoration: none; font-weight: 500;
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--rose); }

.nav-toggle {
	display: none;
	width: 48px; height: 48px;
	border: 0; border-radius: var(--radius-small);
	background: transparent; cursor: pointer;
	position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	position: absolute; left: 13px;
	width: 22px; height: 2px;
	background: var(--ink); border-radius: 2px;
	transition: transform .2s, top .2s, opacity .2s;
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(43, 37, 39, .12);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
}

/* ---------- Accueil ---------- */

.hero {
	position: relative;
	display: grid; align-items: end;
	min-height: min(88svh, 760px);
	color: var(--white);
	background: var(--plum-deep);
	overflow: hidden;
}
.hero-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 60% 50%;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(30, 26, 32, .88) 0%, rgba(30, 26, 32, .55) 45%, rgba(30, 26, 32, .15) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 120px clamp(48px, 9vh, 96px); }
.hero .eyebrow { color: var(--rose-light); }
.hero h1 {
	font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem);
	font-weight: 400;
	letter-spacing: .01em;
	margin-bottom: .1em;
}
.hero-tagline {
	font-family: var(--font-display); font-style: italic;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
	color: var(--rose-light);
	margin-bottom: .8em;
}
.hero-lead { max-width: 36em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

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

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-paper { background: var(--paper-2); }
.section-dark { background: var(--plum); color: var(--white); }
.section-dark .eyebrow { color: var(--rose-light); }
.section-taupe { background: var(--taupe); color: var(--white); }
.section-taupe .eyebrow { color: var(--rose-pale); }
.section-taupe a { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; }
.section-dark .section-intro { color: rgba(255, 255, 255, .8); }

/* Prestations */
.features {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin: 0; padding: 0; list-style: none;
}
.feature {
	background: var(--white);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
}
.feature-icon {
	width: 44px; height: 44px; margin-bottom: 16px;
	padding: 10px; border-radius: 50%;
	background: #fbe3ee;
	fill: none; stroke: var(--rose-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature p { color: var(--ink-soft); margin: 0; }

.shop-band {
	margin-top: 40px;
	padding: 28px 32px;
	border-left: 6px solid var(--rose);
	background: var(--white);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.shop-band h3 { margin-bottom: .4em; }
.shop-band p:last-child { margin: 0; }
.shop-hours { color: var(--ink-soft); font-size: .95rem; }

/* Fêtes */
.section-festive { background: linear-gradient(120deg, #7a1f4b, var(--rose-text)); color: var(--white); padding-block: 56px; }
.section-festive .eyebrow { color: #ffd7e8; }
.festive-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.festive-inner h2 { margin-bottom: .3em; }
.festive-inner p { margin: 0; }
.section-festive .btn-primary { background: var(--white); color: var(--rose-text); }

/* Formules */
.offers {
	display: grid; gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	margin: 0; padding: 0; list-style: none;
}
.offer {
	display: flex; flex-direction: column;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.offer img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.offer-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.offer-body h3 { margin-bottom: .3em; }
.offer-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--rose-text); margin: 0; line-height: 1.2; }
.offer-price span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.offer-prices { margin: .6em 0 0; padding: 0; list-style: none; font-size: .95rem; }
.offer-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.offer-prices span { font-weight: 500; color: var(--ink); }
.offer-note { color: var(--ink-soft); font-size: .95rem; margin: .25em 0 1.2em; }
.offer-note:last-child { margin-bottom: 0; }
.offer-link { margin-top: auto; font-weight: 500; }
.offer-link::after { content: " →"; }
.offer-custom { background: var(--plum); color: var(--white); justify-content: center; }
.offer-custom .offer-body { justify-content: center; gap: 4px; padding: 32px; }
.offer-custom p { color: rgba(255, 255, 255, .85); }
.offer-custom .btn { align-self: flex-start; margin-top: 8px; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
.filters button {
	min-height: 44px; padding: .5em 1.1em;
	border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
	background: transparent; color: var(--white);
	font: 500 .95rem var(--font-body);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--white); }
.filters button[aria-pressed="true"] { background: var(--white); color: var(--plum); border-color: var(--white); }

.gallery {
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(45%, 250px), 1fr));
	margin: 0; padding: 0; list-style: none;
}
.gallery li[hidden] { display: none; }
.gallery-item {
	position: relative;
	display: block;
	width: 100%; padding: 0;
	border: 0; border-radius: var(--radius-small);
	background: var(--plum-deep); color: var(--white); text-align: left;
	font: inherit;
	overflow: hidden; cursor: zoom-in;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
/* Légende en surimpression, seulement quand elle apporte une information (nom du plat, composition) */
.gallery-caption {
	position: absolute; inset: auto 0 0 0;
	display: flex; flex-direction: column; gap: 2px;
	padding: 36px 14px 12px;
	background: linear-gradient(to top, rgba(20, 17, 22, .9), rgba(20, 17, 22, .55) 60%, transparent);
	font-size: .9rem; line-height: 1.35;
}
.gallery-caption strong { font-size: 1.05rem; font-weight: 500; }
.gallery-caption span { color: rgba(255, 255, 255, .85); }
.gallery-more { margin: 32px 0 0; text-align: center; }
.gallery-more[hidden] { display: none; }

.lightbox {
	max-width: min(94vw, 980px); padding: 0;
	border: 0; border-radius: var(--radius);
	background: var(--plum-deep); color: var(--white);
	overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 17, 22, .85); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox-caption { margin: 0; padding: 14px 20px 18px; }
.lightbox-caption a { color: var(--rose-light); }
.lightbox-close {
	position: absolute; top: 10px; right: 10px; z-index: 1;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .55); color: var(--white);
	font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* La maison */
.maison { display: grid; gap: 48px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.maison-text p { color: var(--ink-soft); font-size: 1.1rem; }
.quote { margin: 32px 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--rose); }
.quote p { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--ink); margin-bottom: .4em; }
.quote footer { font-size: .95rem; color: var(--ink-soft); }
.quote footer::before { content: "— "; }
.team { display: flex; justify-content: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.team img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); border: 6px solid var(--white); }
.team p { margin: 14px 0 0; text-align: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

@media (max-width: 800px) {
	.maison { grid-template-columns: 1fr; }
	.team img { width: 140px; height: 140px; }
}

/* Contact */
.contact { display: grid; gap: 40px; grid-template-columns: 1fr 1.1fr; align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 28px 0 32px; }
.contact-list dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-pale); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--plum); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.contact-form-card {
	background: var(--white); color: var(--ink);
	border-radius: var(--radius);
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.contact-form-card a { color: var(--rose-text); }
.contact-form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; }
.field label span { color: var(--rose-text); }
.field input, .field textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #cfc3b8; border-radius: var(--radius-small);
	background: var(--paper);
	color: var(--ink);
	font: 1rem var(--font-body);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(233, 67, 144, .35); outline-offset: 0; border-color: var(--rose-text); background: var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.form-note { font-size: .88rem; color: var(--ink-soft); }

@media (max-width: 900px) {
	.contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.field-row { grid-template-columns: 1fr; }
}

/* Message après envoi du formulaire (Formspree) */
#form-status {
	display: none;
	margin: 0 0 20px;
	padding: 20px 24px;
	border-left: 6px solid #3f8f2a;
	border-radius: 0 var(--radius-small) var(--radius-small) 0;
	background: #eef7ea;
	color: var(--ink);
}
#form-status:focus { outline: none; }
#form-status.is-error { border-left-color: #c0392b; background: #fdecea; }
#form-status .status-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
#form-status .status-title::before { content: "\2714\00a0\00a0"; color: #3f8f2a; }
#form-status.is-error .status-title::before { content: "\26A0\00a0\00a0"; color: #c0392b; }
#form-status p { margin: 0; }
#form-status a { color: var(--rose-text); }

/* Pied de page */
.site-footer { background: var(--plum-deep); color: rgba(255, 255, 255, .8); font-size: .95rem; }
.footer-inner { padding-block: 32px; display: grid; gap: 6px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--white); }
