/* ============================================================
   MAISON IV — Art de Vivre Parisien
   Concept directeur : la carte de menu (réf. menus Concorde)
   Fonts: FreightDisp Pro Bold (titles) / corps : EB Garamond
   [À COMPLÉTER — vraies polices .otf : remplacer les équivalents ci-dessous]
   Équivalents actuels : Cormorant Garamond (titres) / EB Garamond (texte)
   ============================================================ */

:root {
  /* Encre chaude — impression sur papier, pas noir d'écran */
  --ink: #221d16;
  --ink-soft: #5c5343;
  /* Papier crème ivoire — carte de menu */
  --paper: #f7f2e7;
  --paper-warm: #eee7d6;
  --hairline: #d9d0bc;
  /* Or désaturé — dorure à chaud */
  --gold: #8a6d3f;
  --gold-hi: #c9ae73;
  --serif: 'Cormorant Garamond', 'FreightDisp Pro', Georgia, serif;
  --sans: 'EB Garamond', Georgia, 'Times New Roman', serif;
  /* Échelle d'espacement unique (corrige les écarts incohérents entre blocs) */
  --sp-kicker: 18px;
  --sp-title: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: 17.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Grain papier — se sent, ne se voit pas (SVG inline, zéro requête) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

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

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

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: rgba(247,242,231,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}

.header.scrolled { border-bottom-color: var(--hairline); }

.header__logo img {
  height: 15px; width: auto;
  /* Suggestion de gaufrage : filet de lumière sous l'encre */
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.55));
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.header__nav a { opacity: .85; transition: opacity .3s; }
.header__nav a:hover, .header__nav a.active { opacity: 1; }

.header__nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  transition: background .3s, color .3s;
}

.header__nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 640px) {
  .header__nav { gap: 18px; }
  .header__nav .nav-link-cellar { display: none; }
  .header__nav .nav-cta { padding: 8px 14px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,.62) 0%, rgba(10,8,6,.18) 45%, rgba(10,8,6,.12) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 0 26px 11svh;
  color: #fff;
  text-align: center;
}

.hero__kicker {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 7.5vw, 62px);
  line-height: 1.15;
  max-width: 17ch;
  margin: 0 auto 10px;
}

.hero__sub {
  font-size: clamp(15px, 2.6vw, 19px);
  font-weight: 300;
  opacity: .92;
  margin-bottom: 34px;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 36px;
  border: 1px solid currentColor;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

/* Signature Maison IV : le double filet gravé des cartes de menu */
.btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  opacity: .4;
  pointer-events: none;
  transition: opacity .35s ease;
}

.btn:hover::after { opacity: .85; }

.btn--light:hover { background: var(--paper); color: var(--ink); }

.btn--dark { border-color: var(--ink); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--paper); }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: #000; }

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

.section { padding: 88px 26px; }

/* Vieux papier — sections crème foncé : grain plus marqué + léger nuançage
   (CSS pur : SVG inline + dégradés radiaux fondus par blend-mode, zéro requête).
   Le moucheté vient d'une turbulence basse fréquence, très diluée. */
.section--warm {
  background-color: var(--paper-warm);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.07'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 130% 90% at 12% 8%, rgba(112,90,58,.045), transparent 58%),
    radial-gradient(ellipse 110% 80% at 88% 92%, rgba(112,90,58,.055), transparent 55%),
    radial-gradient(ellipse 95% 95% at 50% 45%, rgba(255,251,240,.32), transparent 72%);
  background-blend-mode: multiply, multiply, multiply, multiply, normal;
}

.wrap { max-width: 1060px; margin: 0 auto; }
.wrap--narrow { max-width: 680px; margin: 0 auto; }

.kicker {
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-kicker);
}

/* Effet dorure à chaud — reflet dans la feuille d'or */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .kicker {
    background: linear-gradient(105deg, #8a6d3f 0%, #c9ae73 38%, #9c7f4c 62%, #8a6d3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.18;
  margin-bottom: var(--sp-title);
}

.lead { font-size: clamp(16.5px, 2.4vw, 19.5px); color: var(--ink-soft); }

/* Justification double sur desktop (blocs centrés : dernière ligne centrée) */
@media (min-width: 860px) {
  .wrap--narrow .lead, .center .lead { text-align: justify; text-align-last: center; hyphens: auto; }
  .split .lead { text-align: justify; text-align-last: left; hyphens: auto; }
}

.center { text-align: center; }

/* ---------- Full-bleed image band ---------- */

.band { position: relative; height: 64svh; min-height: 380px; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Numbered list (transmission) ---------- */

.numlist { border-top: 1px solid var(--hairline); margin-top: 12px; }

.numlist__row {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--hairline);
}

.numlist__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  min-width: 34px;
}

.numlist__label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 3.4vw, 24px);
}

.numlist__note { font-size: 14px; color: var(--ink-soft); margin-left: auto; text-align: right; max-width: 46%; }

@media (max-width: 640px) {
  .numlist__note { display: none; }
}

/* ---------- Quote ---------- */

.quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 3.6vw, 29px);
  line-height: 1.45;
  max-width: 30ch;
  margin: 0 auto 26px;
}

.quote-attrib {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Split section (image + text) ---------- */

.split { display: grid; gap: 40px; align-items: center; }

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--flip .split__media { order: 2; }
}

.split__media img { width: 100%; height: auto; }

/* ---------- Edition cards ---------- */

.cards { display: grid; gap: 44px; margin-top: 56px; }

@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.card { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
}

/* Filet intérieur — la carte d'invitation (écho du double filet des boutons) */
.card__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(247,242,231,.55);
  pointer-events: none;
  z-index: 2;
}

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.19,1,.22,1);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__tag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 3;
  background: rgba(247,242,231,.94);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.card__tag--dark { background: rgba(34,29,22,.92); color: var(--paper); }

.card__body { padding-top: 20px; }

.card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 8px;
}

.card__desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }

.card__meta {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
}

.card__cta {
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* Affordance permanente (mobile : pas de hover) — la flèche annonce le lien */
.card__cta::after {
  content: "\2192";
  display: inline-block;
  margin-left: 9px;
  transition: transform .35s ease;
}

.card:hover .card__cta::after { transform: translateX(5px); }
.card:active .card__media img { transform: scale(1.01); }

/* ---------- Fact sheet (edition pages) ---------- */

/* Carton d'invitation — reprend la signature du double filet gravé des boutons */
.facts-card {
  position: relative;
  border: 1px solid var(--ink);
  padding: 30px 26px 14px;
  margin-top: 10px;
}

.facts-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--ink);
  opacity: .35;
  pointer-events: none;
}

.facts-card__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.05;
  text-align: center;
}

.facts-card__price span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

.facts-card .facts { margin-top: 24px; }

/* Conditions — en retrait typographique, lisibles sans être mises en avant */
.facts-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-left: 16px;
  border-left: 1px solid var(--hairline);
}

.facts {
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
}

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}

.facts__row dt { color: var(--ink-soft); }
.facts__row dd { text-align: right; font-weight: 400; }

/* ---------- Includes list ---------- */

.includes { list-style: none; margin-top: 10px; }

.includes li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
  color: var(--ink-soft);
}

.includes li::before {
  content: 'IV';
  position: absolute;
  left: 0; top: 14px;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold);
}

/* ---------- Pairing gallery ---------- */

.pairings { display: grid; gap: 44px; margin-top: 52px; }

@media (min-width: 720px) { .pairings { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1000px) { .pairings { grid-template-columns: repeat(3, 1fr); } }

.pairing img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

.pairing__wine {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 16px 0 4px;
}

.pairing__detail { font-size: 13.5px; color: var(--gold); letter-spacing: .04em; margin-bottom: 6px; }
.pairing__dish { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Sticky mobile book bar ---------- */

.bookbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(247,242,231,.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .45s ease;
}

.bookbar.visible { transform: translateY(0); }

.bookbar__price { font-size: 14px; }
.bookbar__price strong { font-weight: 500; }
.bookbar__price span { display: block; font-size: 11.5px; color: var(--ink-soft); }

/* Libellé "Check Availability" plus long : padding et espacement resserrés
   pour tenir dans la barre sticky à ~380px sans casser la mise en page */
.bookbar .btn { padding: 13px 16px; letter-spacing: .12em; white-space: nowrap; }

@media (min-width: 861px) { .bookbar { display: none; } }

/* ---------- Press strip ---------- */

.press {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-soft);
}

.press span { white-space: nowrap; }

/* ---------- Form ---------- */

.notify-form { display: grid; gap: 14px; max-width: 460px; margin: 30px auto 0; }

.notify-form input {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  padding: 15px 16px;
  border: 1px solid var(--hairline);
  background: #fdfbf5;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
}

.notify-form input:focus { border-color: var(--ink); }

.notify-form button { cursor: pointer; font-family: var(--sans); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 60px 26px 46px;
  text-align: center;
}

.footer__logo img { height: 14px; margin: 0 auto 26px; filter: drop-shadow(0 1px 0 rgba(255,255,255,.55)); }

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.footer__contact { font-size: 13.5px; color: var(--ink-soft); line-height: 2; }
.footer__contact a { border-bottom: 1px solid var(--hairline); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Press logos ---------- */

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px 44px;
  margin-top: 34px;
}

.press-logos img {
  height: 26px;
  width: auto;
  opacity: .8;
  mix-blend-mode: multiply; /* fonds blancs des logos fondus dans le papier */
  transition: opacity .3s;
}

/* WSJ : format très horizontal, paraît plus petit à hauteur égale — compensé */
.press-logos img.press-logo--wsj { height: 36px; }

.press-logos img:hover { opacity: 1; }

@media (min-width: 860px) {
  .press-logos { gap: 30px 56px; }
  .press-logos img { height: 32px; }
  .press-logos img.press-logo--wsj { height: 44px; }
}

/* ---------- Signature line (light luxury serif) ---------- */

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto 34px;
}

/* ---------- Founder portrait ---------- */

.founder {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  margin: 28px auto 0;
  filter: grayscale(1);
}

/* ---------- Featured edition card ---------- */

.card--featured { grid-column: 1 / -1; }

@media (min-width: 860px) {
  .card--featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
  .card--featured .card__media { aspect-ratio: 16 / 10; }
  .card--featured .card__body { padding-top: 0; }
  .card--featured .card__title { font-size: 34px; }
  .card--featured .card__desc { font-size: 16.5px; }
}

@media (min-width: 860px) {
  .cards--with-featured { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; }
}
