/* =====================================================================
   COEURDESVIGNES — vitrine publique « plein jour » — DAMOTIC SAS
   La lumière du Plan-de-la-Tour : ciel pâle, pins, garrigue, pierre sèche.
   Titres en Bodoni Moda (hébergée), texte en Instrument Sans. Toujours clair :
   l'identité du lieu ne dépend pas du réglage sombre de l'ordinateur du visiteur.
   ===================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(../fonts/bodoni-moda-latin-standard-normal.woff2) format("woff2-variations"), url(../fonts/bodoni-moda-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(../fonts/bodoni-moda-latin-ext-standard-normal.woff2) format("woff2-variations"), url(../fonts/bodoni-moda-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-standard-normal.woff2) format("woff2-variations"), url(../fonts/instrument-sans-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons : toujours clairs */
body.site, :root:has(body.site) {
  --ink: #1d2a22;          /* vert des pins, presque noir */
  --ink-2: #4c5a51;
  --stone: #eef1ee;        /* pierre sèche lavée de ciel */
  --sky: #e3ebf1;          /* ciel du matin */
  --ochre: #a2713a;        /* garrigue brûlée */
  --wine: #7a1f3a;         /* lie-de-vin : réserver */
  --wine-2: #94284a;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f5f3; --line: #dfe4df;
  --text: var(--ink); --muted: #5d6a62; --gold: #a2713a; --olive: #4f6b2e;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
body.site { background: #fff; color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.site a { color: inherit; }

/* ---------- En-tête */
body.site .site-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 4vw, 48px); height: 64px;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink);
  transition: background .3s, border-color .3s, color .3s;
}
.v-wordmark { font: 500 21px/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
body.site .site-brand { color: inherit; gap: 0; }
body.site .site-brand:hover { text-decoration: none; }
body.site .site-nav { gap: clamp(14px, 2vw, 28px); font: 600 11.5px/1 var(--font); letter-spacing: .14em; }
body.site .site-nav a:not(.btn) { color: inherit; opacity: .82; padding: 6px 0; border-bottom: 1px solid transparent; }
body.site .site-nav a:not(.btn):hover { opacity: 1; text-decoration: none; border-bottom-color: currentColor; }
body.site .site-nav .btn { background: var(--wine); border: 1px solid var(--wine); color: #fff; border-radius: 0; padding: 10px 16px; font: 600 11.5px/1 var(--font); letter-spacing: .14em; }
body.site .site-nav .btn .ic { display: none; }
body.site .site-nav .btn:hover { background: var(--wine-2); }
body.site .lang-switch summary { color: inherit; }

/* Accueil : en-tête posé sur la photo, il se pose sur fond blanc au défilement */
body.site-home .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.site-home .site-header .site-nav .btn { background: transparent; border-color: rgba(255, 255, 255, .85); }
body.site-home .site-header .site-nav .btn:hover { background: #fff; color: var(--ink); }
body.site-home.is-scrolled .site-header { background: rgba(255, 255, 255, .96); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.site-home.is-scrolled .site-header .site-nav .btn { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- Grande photo */
.v-hero { position: relative; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; color: #fff; }
.v-hero-img, .v-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-hero-img img { object-fit: cover; object-position: 50% 42%; animation: v-drift 28s ease-out both; }
@keyframes v-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.v-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; z-index: 1; background: linear-gradient(rgba(10, 20, 30, .38), transparent); }
.v-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 58%; z-index: 1; background: linear-gradient(transparent, rgba(16, 24, 18, .62)); }
.v-hero-text { position: absolute; z-index: 2; left: clamp(20px, 5vw, 72px); right: 20px; bottom: clamp(40px, 9vh, 96px); max-width: 980px; }
.v-hero h1 { margin: 0; font: 400 clamp(48px, 7.4vw, 116px)/.98 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.v-hero-text > p { max-width: 520px; margin: 22px 0 30px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.v-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.v-btn { display: inline-flex; align-items: center; padding: 15px 26px; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.v-btn:hover { text-decoration: none; }
.v-btn-light { background: #fff; color: var(--ink) !important; }
.v-btn-light:hover { background: var(--stone); }
.v-btn-line { border: 1px solid rgba(255, 255, 255, .8); color: #fff !important; }
.v-btn-line:hover { background: rgba(255, 255, 255, .14); }
.v-caption { position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: 18px; margin: 0; font-size: 12px; letter-spacing: .02em; opacity: .8; writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---------- Phrase d'ouverture */
.v-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; max-width: 1240px; margin: 0 auto; padding: clamp(72px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 100px); }
.v-statement { margin: 0; font: 400 clamp(28px, 3.4vw, 50px)/1.18 var(--serif); letter-spacing: -.01em; color: var(--ink); max-width: 22ch; }
.v-intro-side { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.v-intro-side span, .v-contact-grid span { font-size: 13px; color: var(--muted); }
.v-phone { font: 500 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.v-phone:hover { color: var(--wine); text-decoration: none; }

/* ---------- Doubles pages : photo et texte */
.v-spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px) clamp(72px, 10vw, 130px); scroll-margin-top: 80px; }
.v-spread-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.v-spread-rev .v-spread-img { order: 2; }
.v-spread-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--stone); }
.v-spread-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.v-spread:hover .v-spread-img img { transform: scale(1.03); }
.v-spread-txt { max-width: 460px; }
body.site .v-spread h2, body.site .v-duo h2, body.site .v-contact h2 { margin: 0 0 18px; font: 400 clamp(32px, 3.2vw, 46px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.v-spread-txt p, .v-duo p { margin: 0 0 22px; color: var(--ink-2); font-size: 17px; }
.v-link { display: inline-block; margin-right: 22px; padding-bottom: 3px; font-weight: 600; font-size: 15px; color: var(--wine) !important; text-decoration: none; border-bottom: 1px solid currentColor; }
.v-link:hover { color: var(--ink) !important; text-decoration: none; }

/* ---------- Bandeau garrigue */
.v-band { height: clamp(220px, 42vh, 460px); overflow: hidden; }
.v-band-img, .v-band-img img { display: block; width: 100%; height: 100%; }
.v-band-img img { object-fit: cover; object-position: 50% 60%; }

/* ---------- Table et séjours */
.v-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px); }
.v-duo > div { scroll-margin-top: 80px; }
.v-note { font-size: 15px !important; color: var(--muted) !important; padding-left: 14px; border-left: 2px solid var(--ochre); }

/* ---------- Photos déposées par l'équipe */
.v-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; }
.v-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }

/* ---------- Contact */
.v-contact { background: var(--sky); padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px); scroll-margin-top: 64px; }
.v-contact > h2, .v-contact-grid { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.v-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.v-contact-grid > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.v-contact-grid a:not(.v-phone):not(.v-link) { font-size: 18px; color: var(--ink); }
.v-contact-grid p { margin: 0 0 8px; color: var(--ink-2); }

/* ---------- Pied de page */
body.site .site-footer { background: var(--ink); color: #cfd8d1; padding: 48px clamp(20px, 5vw, 72px) 0; }
body.site .site-footer a { color: #fff; }
body.site .site-footer .site-brand { color: #fff; }
body.site .site-footer .v-wordmark { font-size: 26px; }
body.site .site-footer .ic { display: none; }
body.site .site-footer .app-footer { border-color: rgba(255, 255, 255, .12); color: #9fb0a5; }
body.site .site-footer .damotic-logo strong { color: #fff; }
body.site .team-link { font-size: 12px; letter-spacing: .1em; }

/* ---------- Autres pages publiques (réservation, carte…) : même lumière */
body.site:not(.site-home) main { min-height: 60vh; }
body.site .btn-primary { background: var(--wine); border-color: var(--wine); }

/* ---------- Mobile */
@media (max-width: 860px) {
  body.site .site-header { height: 56px; gap: 10px; }
  .v-wordmark { font-size: 18px; }
  .v-intro { grid-template-columns: 1fr; gap: 28px; }
  .v-spread, .v-spread-rev { grid-template-columns: 1fr; gap: 24px; }
  .v-spread-rev .v-spread-img { order: 0; }
  .v-duo, .v-contact-grid { grid-template-columns: 1fr; }
  .v-caption { writing-mode: horizontal-tb; transform: none; left: 20px; right: auto; bottom: 12px; font-size: 11px; }
  .v-hero-text { bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-hero-img img { animation: none; }
  .v-spread-img img { transition: none; }
}

/* Pages de texte : mentions légales, CGV */
.v-doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 32px) 72px; color: var(--ink); }
.v-doc h1 { margin: 0 0 28px; font: 400 clamp(36px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.01em; }
.v-doc h2 { margin: 40px 0 10px; font: 400 clamp(22px, 2.4vw, 27px)/1.2 var(--serif); scroll-margin-top: 90px; }
.v-doc p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: #3c4a41; }
.v-doc a { color: var(--wine); }
.v-doc-lead { font-style: italic; }
.v-doc-warn { padding: 12px 16px; border-left: 3px solid var(--ochre); background: #f7f1e8; font-size: 14px !important; }
.v-doc-dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 24px; margin: 0; font-size: 16px; line-height: 1.5; }
.v-doc-dl dt { color: #6b766f; }
.v-doc-dl dd { margin: 0; }
.v-doc-links { margin-top: 44px !important; padding-top: 22px; border-top: 1px solid #dfe5e0; }
@media (max-width: 600px) { .v-doc-dl { grid-template-columns: 1fr; gap: 2px; } .v-doc-dl dd { margin-bottom: 10px; } }

/* Pied de page : ligne des mentions obligatoires */
body.site .site-legal { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #9fb0a5; }
body.site .site-legal a { color: #e4ebe6; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
body.site .site-legal a:hover { border-color: #fff; color: #fff; }
.cgv-note { margin: -4px 0 14px; font-size: 13px; }
