@font-face {
  font-family: 'HBS Serif';
  src: url('/assets/InstrumentSerif-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'HBS Serif';
  src: url('/assets/InstrumentSerif-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f4eb;
  --paper-deep: #ebe4d7;
  --text: #242920;
  --muted: #59574e;
  --dark: #19221c;
  --green: #253129;
  --light: #f7f0e2;
  --gold: #e5cda9;
  --bronze: #8c6448;
  --rule: #877c6659;
  --display: 'HBS Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(20px, 5.2vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
button { color: inherit; font: inherit; }
button:hover { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 20px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1, h2 { line-height: .96; letter-spacing: -.055em; }
h2 { font-size: clamp(3.2rem, 7.3vw, 7.4rem); }
h1 em, h2 em { font-weight: inherit; }
.shell { width: min(100% - var(--gutter) * 2, 1392px); margin-inline: auto; }
.eyebrow { font-size: .73rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px 16px; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--paper); }
.masthead { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; width: clamp(96px, 10.1vw, 137px); flex: 0 0 auto; align-items: center; }
.brand img { width: 100%; }
.masthead nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 55px); }
.masthead nav a { display: inline-flex; min-height: 44px; align-items: center; gap: 14px; font-size: .83rem; font-weight: 650; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.masthead .nav-visit { padding: 0 .2rem 0 1rem; border-inline-start: 1px solid var(--rule); }
.nav-visit:hover .link-icon, .text-link:hover .link-icon, .button:hover .link-icon { transform: translate(2px, -2px); }
.menu-toggle { display: none; }
.link-icon { display: inline-grid; flex: 0 0 auto; place-items: center; line-height: 1; font-family: system-ui, sans-serif; font-size: 1.05rem; transition: transform .24s var(--ease); }

/* Accueil et film de la cuvée XO */
.hero { color: var(--light); background: var(--dark); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  grid-template-areas: 'intro visual' 'notice visual';
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px clamp(35px, 6vw, 97px);
  padding-block: clamp(29px, 4vw, 66px);
}
.hero-text { grid-area: intro; align-self: center; padding-block: 36px 20px; }
.hero-label { color: var(--gold); margin-bottom: clamp(20px, 3vw, 35px); letter-spacing: .13em; }
.hero h1 { font-size: clamp(5.1rem, 11.5vw, 11rem); line-height: .8; letter-spacing: -.032em; }
.hero h1 em { display: block; color: var(--gold); }
.hero-description { max-width: 39ch; margin-top: clamp(22px, 3vw, 37px); color: #e7dece; font-size: clamp(.97rem, 1.3vw, 1.12rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(17px, 3vw, 43px); row-gap: 4px; margin-top: clamp(18px, 3vw, 33px); }
.button { display: inline-flex; width: fit-content; min-height: 51px; align-items: center; justify-content: space-between; gap: 18px; padding: .65rem .95rem .65rem 1.05rem; font-weight: 650; font-size: .86rem; line-height: 1.15; text-decoration: none; transition: background .24s var(--ease), color .24s var(--ease); }
.button .link-icon { width: 20px; height: 24px; }
.button-light { background: #e9d8bd; color: #25291f; }
.button-light:hover { background: #faecd7; }
.button-dark { background: var(--dark); color: var(--light); }
.button-dark:hover { background: #3a473b; }
.hero-actions .text-link { color: var(--light); text-decoration-color: #dac5a580; }
.hero-notice { grid-area: notice; align-self: end; color: #e0d4c0; font-size: .77rem; }
.hero-visual { grid-area: visual; min-width: 0; }
.hero-film { position: relative; aspect-ratio: 1 / 1; background: #252822; isolation: isolate; overflow: hidden; }
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.hero-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-block: 11px 0; color: #e2d5bf; font-size: .76rem; letter-spacing: .035em; }
.video-toggle { position: absolute; right: 12px; bottom: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 1px solid #e8ddc280; background: #20231cee; color: #f9f0e0; font-size: .81rem; }
.video-toggle:hover { background: #353a2d; }
.film-icon { width: 13px; height: 13px; }
.film-icon::before { content: ''; display: block; width: 0; height: 0; margin: 1px 0 0 2px; border: 5.5px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
.video-toggle[data-playing] .film-icon::before { width: 9px; height: 11px; border: 0; border-inline: 2px solid currentColor; }

/* Index des cuvées */
.collection { padding-block: clamp(66px, 9.5vw, 140px); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 350px); align-items: end; gap: 12px 50px; margin-bottom: 36px; }
.section-intro .eyebrow, .visit-title .eyebrow { color: #795139; margin-bottom: 14px; }
.section-intro > p { align-self: end; margin-bottom: 6px; color: var(--muted); line-height: 1.7; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 23px; border-block: 1px solid var(--rule); }
.filters { display: flex; flex-wrap: wrap; gap: 2px clamp(4px, 2vw, 28px); }
.filters button { position: relative; min-height: 50px; border: 0; padding: 0 .45rem; color: var(--muted); background: transparent; font-size: .86rem; }
.filters button[aria-pressed='true'] { color: var(--text); font-weight: 680; }
.filters button[aria-pressed='true']::after { position: absolute; content: ''; inset: auto .35rem -1px; height: 2px; background: var(--bronze); }
.result-count { color: var(--muted); font-size: .77rem; white-space: nowrap; }
.collection-index { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1fr); align-items: start; gap: clamp(30px, 6vw, 105px); }
.collection-preview { overflow: hidden; aspect-ratio: 4 / 4.7; background: var(--paper-deep); }
.collection-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.cuvee-grid { padding: 0; list-style: none; margin: 0; }
.cuvee-card { min-width: 0; border-bottom: 1px solid var(--rule); }
.cuvee-card:first-child { border-top: 1px solid var(--rule); }
.cuvee-link { display: grid; grid-template-columns: 39px minmax(0, 1fr) 22px; align-items: center; gap: clamp(14px, 2vw, 25px); min-height: 74px; padding: 10px 0; text-decoration: none; }
.cuvee-image { overflow: hidden; aspect-ratio: .75; background: var(--paper-deep); }
.cuvee-image img { width: 100%; height: 100%; object-fit: cover; }
.product-facts { margin-top: 4px; color: #655b4b; font-size: .74rem; line-height: 1.4; }
.product-facts span, .detail-facts span { margin-inline: .24em; }
.cuvee-info h3 { font-size: clamp(1.75rem, 2.85vw, 3rem); line-height: 1; letter-spacing: -.026em; }
.cuvee-link > .link-icon { justify-self: end; color: #664830; }
.cuvee-link:is(:hover, :focus-visible) h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.cuvee-link:hover .link-icon { transform: translate(2px, -2px); }

.estate { overflow: hidden; padding-block: clamp(61px, 8.3vw, 140px); background: var(--green); color: var(--light); }
.estate-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(34px, 8vw, 132px); }
.estate-photo { align-self: stretch; }
.estate-photo img { width: 100%; min-height: 320px; aspect-ratio: 1.22; object-fit: cover; }
.estate-photo figcaption { padding: 8px 3px 0; color: #ded0b3; font-size: .72rem; }
.estate-copy h2 { margin-bottom: 28px; font-size: clamp(3.2rem, 6.1vw, 6.25rem); }
.estate-copy h2 em { color: var(--gold); }
.estate-copy > p { max-width: 430px; margin-bottom: 16px; color: #f0e5cf; }
.text-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: .75rem; text-decoration: underline; font-size: .88rem; font-weight: 700; }
.estate-copy .text-link { margin-top: 8px; color: #f1d8ab; }

.visit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(30px, 11vw, 175px); align-items: center; padding-block: clamp(65px, 10vw, 150px); }
.visit-title h2 em { color: #6d4a35; }
.visit-title > p:last-child { color: var(--muted); margin-top: 24px; max-width: 305px; }
.visit-details dl, .detail-copy dl { border-top: 1px solid var(--rule); }
.visit-details dl > div, .detail-copy dl > div { display: grid; grid-template-columns: minmax(96px, .7fr) minmax(0, 1.3fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.visit-details dt, .detail-copy dt { font-weight: 700; font-size: .81rem; }
.visit-details dd, .detail-copy dd { color: var(--muted); font-size: .9rem; }
.visit-details .button { margin-top: 25px; }
.business { padding-block: clamp(44px, 6vw, 96px); background: var(--dark); color: var(--light); }
.business-inner { display: flex; justify-content: space-between; align-items: center; gap: 27px 48px; }
.business .eyebrow { color: #f0cea6; margin-bottom: 10px; }
.business h2 { font-size: clamp(3rem, 7vw, 6.15rem); }
.business p:last-child { max-width: 475px; margin-top: 18px; color: #eee1cb; }
.business-actions { display: grid; gap: 8px; flex: 0 0 auto; }

.site-footer { background: var(--paper-deep); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; padding-block: 45px; gap: 16px 30px; }
.footer-brand { width: 138px; }
.footer-main address, .footer-main a { font-size: .84rem; font-style: normal; }
.footer-contact { display: grid; gap: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 4px 20px; padding: 14px 0 18px; border-top: 1px solid #90846780; font-size: .75rem; color: #544936; }

.detail { padding-block: clamp(24px, 5.4vw, 78px) clamp(48px, 7vw, 96px); }
.back-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; margin-bottom: 19px; font-size: .85rem; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: clamp(29px, 7vw, 112px); align-items: center; }
.detail-image { background: var(--paper-deep); }
.detail-image img { width: 100%; max-height: 740px; object-fit: cover; }
.detail-copy h1, .info-page h1 { font-size: clamp(3.35rem, 7vw, 7.5rem); }
.detail-copy h1 { margin-top: 13px; }
.detail-copy .eyebrow, .detail-facts { color: #774a30; }
.detail-facts { margin-top: 16px; font-size: .9rem; font-weight: 700; }
.detail-summary { margin-top: 22px; color: var(--muted); font-size: 1.13rem; }
.detail-copy dl { margin-top: 25px; }
.detail-copy .text-link { margin-top: 15px; }
.next-cuvee { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 25px 0 0; margin-top: clamp(32px, 7vw, 96px); border-top: 1px solid var(--rule); text-decoration: none; font: 400 clamp(2rem, 4vw, 4.5rem)/1.05 var(--display); }
.next-cuvee small { display: block; margin-bottom: 8px; font: 700 .73rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .11em; }
.next-cuvee:hover .link-icon { transform: translate(3px, -3px); }
.info-page { max-width: 820px; padding-block: clamp(40px, 8vw, 125px); }
.info-page h1 { margin-bottom: 32px; }
.info-page h2 { margin-top: 28px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.info-page p { margin-block: 12px; color: var(--muted); }
.info-page .button { margin-top: 12px; }

@media (max-width: 1020px) {
  .estate-inner { gap: clamp(27px, 5vw, 55px); }
}

@media (max-width: 760px) {
  .masthead { min-height: 67px; flex-wrap: wrap; gap: 0 16px; }
  .masthead .brand { width: 113px; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 10px; border: 0; background: transparent; font-size: .86rem; font-weight: 700; }
  .menu-toggle i { position: relative; width: 21px; height: 15px; }
  .menu-toggle i::before, .menu-toggle i::after { position: absolute; content: ''; width: 20px; height: 1px; left: 0; background: currentColor; transition: transform .24s var(--ease); }
  .menu-toggle i::before { top: 4px; }
  .menu-toggle i::after { top: 11px; }
  .menu-toggle[aria-expanded='true'] i::before { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] i::after { transform: translateY(-3.5px) rotate(-45deg); }
  .masthead nav { flex-basis: 100%; flex-wrap: wrap; gap: 0 16px; padding-bottom: 9px; }
  .menu-toggle:not([hidden]) + nav { display: none; }
  .menu-toggle:not([hidden]) + nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; inset: 100% 0 auto; padding: 3px var(--gutter) 18px; background: var(--paper); border-top: 1px solid var(--rule); }
  .masthead nav.is-open a { min-height: 50px; padding: 0; justify-content: space-between; border: 0; border-bottom: 1px solid var(--rule); }
  .masthead nav.is-open a:last-child { border-bottom: 0; }
  .masthead nav .nav-visit { border: 0; padding: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'visual' 'notice'; grid-template-rows: auto; gap: 18px; padding-block: 23px 26px; }
  .hero-text { padding: 16px 0 9px; }
  .hero h1 { font-size: clamp(4.15rem, 13.8vw, 6.7rem); line-height: .87; }
  .hero h1 em { display: inline; }
  .hero-film { aspect-ratio: 1 / 1; }
  .hero-label { font-size: .68rem; margin-bottom: 14px; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 14px; }
  .hero-notice { font-size: .72rem; }
  .section-intro { grid-template-columns: 1fr; margin-bottom: 24px; }
  .section-intro > p { max-width: 400px; }
  .collection-index { grid-template-columns: minmax(0, 1fr); }
  .collection-preview { display: none; }
  .cuvee-link { min-height: 68px; }
  .estate-inner, .visit, .detail-grid { grid-template-columns: 1fr; }
  .estate-copy { grid-row: 1; }
  .estate-photo img { min-height: 0; aspect-ratio: 1.38; }
  .business-inner { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .footer-contact { grid-column: 2; }
  .detail-copy { grid-row: 1; }
  .detail-image { width: min(100%, 520px); }
}

@media (max-width: 535px) {
  .hero-film { aspect-ratio: 1 / 1.02; }
  .hero-inner { gap: 14px; }
  .hero-actions .text-link { font-size: .82rem; }
  .hero-caption { font-size: .69rem; }
  .filters button { font-size: .76rem; padding-inline: .25rem; }
  .result-count { font-size: .7rem; }
  .filter-bar { gap: 4px; }
  .footer-main { grid-template-columns: 1fr; padding-block: 30px; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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