/* ==========================================================
   DESIGN « CAVE À VIN » — FIGÉ
   Ce fichier définit l'identité visuelle. Il n'est jamais modifié
   par une mise à jour de contenu (prix, texte, image).
   Pour changer de design : remplacer ce fichier, pas les contenus.
   ========================================================== */

:root {
  --bg: #efe3d3;
  --panel: #f7eedf;
  --line: #d9c7ab;
  --ink: #2e2019;
  --muted: #6b5a4d;
  --wine: #5a1a25;
  --wine-ink: #f3e6d6;
  --terra: #9e4624;
  --wood: #3b2a22;
  --dark: #2e1a17;
  --sand: #e8c9a0;
  --radius: 2px;
  --gutter: clamp(18px, 5vw, 56px);
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[lang="zh"] { --font-head: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif; --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font-body); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); color: var(--wine); line-height: 1.12; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: var(--wine-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section--wine { background: var(--wine); color: var(--wine-ink); }
.section--wine h2, .section--wine h3 { color: var(--wine-ink); }
.eyebrow { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--terra); font-weight: 700; margin: 0 0 14px; }
.section--wine .eyebrow { color: var(--sand); }
.h2 { font-size: clamp(30px, 4.4vw, 48px); }
.lead { font-size: clamp(18px, 2vw, 20px); }
.center { text-align: center; }
.more { display: inline-block; color: var(--terra); font-weight: 700; padding: 10px 0; }

/* ---------- Barre d'infos + en-tête ---------- */
.topbar { background: var(--wine); color: var(--wine-ink); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-block: 8px; }
.topbar a { text-decoration: none; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 10px; border: 1px solid rgba(243, 230, 214, .4); border-radius: var(--radius); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; z-index: 30; margin: 4px 0 0; padding: 6px 0; list-style: none; background: var(--panel); color: var(--ink); border: 1px solid var(--line); min-width: 150px; box-shadow: 0 10px 24px rgba(46, 32, 25, .18); }
.lang li a { display: block; padding: 9px 16px; text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg); font-weight: 700; }

.site-header { background: var(--wine); color: var(--wine-ink); padding-bottom: 12px; }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand { text-align: center; text-decoration: none; padding-top: 10px; }
.brand__name { display: block; font-family: var(--font-head); font-size: clamp(30px, 5vw, 40px); font-weight: 700; line-height: 1.1; }
.brand__tag { display: block; font-size: 12px; letter-spacing: 5px; text-transform: uppercase; font-weight: 500; margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; font-weight: 500; }
.nav a { padding: 11px 14px; text-decoration: none; display: inline-block; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font: 700 17px var(--font-body); text-decoration: none; cursor: pointer; border: 0; }
.btn--light { background: var(--bg); color: var(--wine) !important; }
.btn--wine { background: var(--wine); color: var(--wine-ink); }
.btn--line { border: 1.5px solid var(--wine); color: var(--wine); background: transparent; }
.btn--line-light { border: 1.5px solid var(--wine-ink); color: var(--wine-ink); background: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--wood) var(--hero-img, none) center / cover no-repeat; color: var(--wine-ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 26, 23, .55), rgba(46, 26, 23, .78)); }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-block: clamp(64px, 11vw, 120px) clamp(120px, 14vw, 160px); }
.hero h1 { color: var(--wine-ink); font-size: clamp(36px, 6.4vw, 68px); max-width: 900px; }
.hero .lead { max-width: 620px; margin: 0; opacity: .94; }
.hero .eyebrow { color: var(--sand); margin: 0; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

.quick { position: relative; z-index: 5; margin: -64px auto 0; max-width: 1068px; width: calc(100% - 2 * var(--gutter)); background: #f7eedf; border: 1px solid #cdb89b; box-shadow: 0 12px 30px rgba(46, 32, 25, .18); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.quick .field { flex: 1 1 140px; }
.quick .btn { flex: 1 1 200px; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--wine); }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b79f7e; border-radius: var(--radius); min-height: 48px; padding: 0 12px; width: 100%; }
textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; padding: 0; flex: none; margin-top: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.form { background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 4vw, 34px); display: flex; flex-wrap: wrap; gap: 18px; }
.form .field { flex: 1 1 200px; }
.form .field--full, .form .check, .form .btn, .form .alert, .cf-turnstile { flex: 1 1 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 16px; }
.alert--ok { background: #e6efe2; border: 1px solid #9db894; color: #20401a; }
.alert--ko { background: #f8e3df; border: 1px solid #d49b92; color: #6b1d12; }
.reserve-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.reserve-grid > div:first-child { flex: 1 1 320px; }
.reserve-grid > div:last-child { flex: 2 1 460px; }

/* ---------- Sections d'accueil ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.media { aspect-ratio: 16/9; width: 100%; background: linear-gradient(135deg, #5a1a25, #3b2a22); position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--photo { aspect-ratio: 4/3; background: linear-gradient(135deg, #cdb89b, #bfa684); }
.video-lite { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; color: var(--wine-ink); }
.video-lite:focus-visible { outline: 3px solid var(--sand); outline-offset: -6px; }
.video-lite svg { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); }
.video-lite span { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: 14px; }
.video-lite + iframe, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.highlights { display: flex; flex-wrap: wrap; gap: 0; }
.highlights { padding-block: 8px; }
.highlights > div { flex: 1 1 260px; padding: 28px 28px; border-right: 1px solid #7a3a45; }
.highlights > div:first-child { padding-left: 0; }
.highlights > div:last-child { border-right: 0; padding-right: 0; }
.highlights h3 { font-size: 26px; margin-bottom: 6px; }
.highlights p { margin: 0; opacity: .88; font-size: 16px; }

/* ---------- Carte ---------- */
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px 56px; }
.menu-block h2, .menu-block h3 { font-size: 26px; font-style: italic; color: var(--terra); margin: 28px 0 6px; }
.menu-block:first-child h2, .menu-block:first-child h3 { margin-top: 0; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.menu-list .dots { flex: 1; border-bottom: 1px dotted #b79f7e; min-width: 16px; transform: translateY(-4px); }
.menu-list .price { font-weight: 700; white-space: nowrap; }
.note { color: var(--muted); font-size: 15px; }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.region { background: var(--panel); border: 1px solid var(--line); padding: 22px 24px; }
.region h3 { font-size: 24px; margin-bottom: 8px; }
.region ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.region li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }

/* ---------- Cartes d'actualité ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; }
.card:hover { text-decoration: none; border-color: var(--terra); }
.card .media { aspect-ratio: 3/2; }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.card__label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--terra); font-weight: 700; }
.card__title { font-family: var(--font-head); font-size: 24px; line-height: 1.2; color: var(--wine); font-weight: 700; }
.card__text { font-size: 15px; margin: 0; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 36px; }

/* ---------- Avis ---------- */
.quote { max-width: 780px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 14px; font-family: var(--font-head); font-style: italic; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; }
.quote cite { font-style: normal; color: var(--sand); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.reviews figure { margin: 0; background: var(--panel); border: 1px solid var(--line); padding: 26px; }
.reviews blockquote { margin: 0 0 12px; font-family: var(--font-head); font-style: italic; font-size: 20px; line-height: 1.35; }
.reviews figcaption { font-size: 15px; color: var(--muted); }

/* ---------- Pages de texte ---------- */
.page-head { padding-block: clamp(40px, 7vw, 72px) 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); }
.page-head p { color: var(--muted); font-size: 19px; margin: 12px 0 0; max-width: 720px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose img { margin: 24px 0; }
.faq details { background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--wine); }
.faq details p { padding: 0 22px 18px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.facts > div { background: var(--panel); border: 1px solid var(--line); padding: 22px 24px; }
.facts h2 { font-size: 22px; margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery .media { aspect-ratio: 3/4; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.meta { color: var(--muted); font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: #e9d9c4; padding: 56px 0 32px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px 48px; justify-content: space-between; }
.footer-cols > div { flex: 1 1 220px; }
.site-footer h2 { font-family: var(--font-body); font-size: 15px; color: #fff; margin-bottom: 8px; }
.site-footer .brandline { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.1; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 4px 0; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid #4a3530; font-size: 13px; opacity: .85; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  html.js .nav-toggle { display: inline-flex; margin: 6px 0 2px; }
  html.js .nav { display: none; flex-direction: column; width: 100%; }
  html.js .nav.is-open { display: flex; }
  html.js .nav a { width: 100%; text-align: center; }
  .quick { margin-top: -48px; }
  .highlights > div { border-right: 0; border-bottom: 1px solid #7a3a45; padding-inline: 0; }
  .highlights > div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .topbar, .site-header .nav, .quick, .nav-toggle { display: none; } body { background: #fff; } }
