/* Polices auto-hebergees : aucune requete vers un service tiers (RGPD) */

/* Deux polices, deux roles stricts :
   - Gilda Display : titres, navigation, boutons et texte courant.
   - Sacramento : uniquement les accroches manuscrites (.script), jamais un paragraphe. */
@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/gilda-display-latin.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: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/gilda-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Sacramento';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sacramento-latin.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: 'Sacramento';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sacramento-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

:root {
  --bg: #fff;
  --beige: #efe6df;
  --taupe: #a38b78;
  --taupe-dark: #6f5a4a;
  --text: #4a3d33;
  --logo: #b5b0a4;
  --radius: 28px;
  --font-title: 'Gilda Display', sans-serif;
  --font-script: 'Sacramento', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-title);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--taupe-dark); }
strong { font-weight: 700; color: var(--taupe-dark); }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
:target { scroll-margin-top: 110px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--taupe-dark);
  color: #fff;
  border-radius: 0 0 .5rem .5rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

h1, h2, h3 {
  font-weight: 600;
  color: var(--taupe-dark);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.script {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  color: var(--taupe-dark);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1.2;
}
.script::before {
  content: "";
  width: 90px;
  height: 1px;
  background: var(--taupe-dark);
  flex: none;
}

.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  background: var(--taupe);
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: var(--taupe-dark); transform: translateY(-2px); }
.btn--small { padding: .65rem 1.4rem; font-size: 1rem; }
a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--taupe-dark);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
}
.logo { order: 1; flex: none; }
.logo img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }

.main-nav { order: 2; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current] { border-color: var(--taupe); }

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--taupe-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; }
.header-menus {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  color: var(--taupe-dark);
  font-size: .9rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.header-menus:hover, .header-menus:focus-visible { background: var(--taupe); color: #fff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; order: 4; cursor: pointer; padding: .8rem; }
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: .25s;
}
.burger span::before { position: absolute; top: -8px; }
.burger span::after { position: absolute; top: 8px; }

/* Hero */
.hero { background: var(--beige); padding: 4rem 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-buttons { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.page-hero { padding: 3.5rem 0; }
.page-hero .script { margin-bottom: 0; }
.page-hero p:not(.script) { max-width: 65ch; }

/* Bienvenue */
.welcome {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-a { grid-row: 1 / 3; align-self: center; }
.photo-b { grid-column: 2; grid-row: 1; align-self: start; }
.photo-c { grid-column: 2; grid-row: 2; align-self: start; }

.welcome-text h2 { margin-bottom: 2rem; }
.block { margin-bottom: 2.5rem; }
.block:last-child { margin-bottom: 0; }
.block .script { margin-bottom: .75rem; }
.link-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--taupe);
}
.link-more:hover { border-color: var(--taupe-dark); }

/* Sections */
.section { padding: 5rem 0; }
.section--beige { background: var(--beige); }
.section-header { max-width: 65ch; margin-bottom: 2rem; }
.section-header p:last-child { margin-bottom: 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split > img {
  width: 80%;
  /* aspect-ratio: 1 / 1;
  object-fit: cover; */
  border-radius: var(--radius);
}
.split p:last-child { margin-bottom: 0; }
.section-header--center { max-width: none; text-align: center; }
.section-header--center .script { justify-content: center; }

/* Appel a l'action centre, sans image. */
.cta-panel { max-width: 68ch; margin-inline: auto; text-align: center; }
.cta-panel .script { justify-content: center; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}
.cta-actions .link-more { margin-top: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 2rem;
}
/* Quatre cartes : une ligne sur grand ecran, deux par deux sur tablette. */
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--four .menu-card { padding: 1.5rem; }
.menu-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(111, 90, 74, .08);
}
.menu-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  margin-bottom: 1.25rem;
}
.menu-card h3 { margin-bottom: .75rem; }
.menu-card dl { margin: 1rem 0 1.5rem; }
.menu-card dt {
  color: var(--taupe-dark);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .06em;
  margin-top: 1rem;
}
.menu-card dt:first-child { margin-top: 0; }
.menu-card dd { margin: .2rem 0 0; }
.menu-card dd span { display: block; }
.menu-card p:last-child { margin-bottom: 0; }
.price { margin: 0; font-weight: 700; color: var(--taupe-dark); }

/* Cartes illustrees : le titre se pose en haut de l'image. */
.card-grid .menu-card { display: flex; flex-direction: column; }
.card-media {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: calc(var(--radius) - 8px);
}
.card-media img { margin-bottom: 0; border-radius: 0; }
.card-media h3 {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  padding: 1rem 1.25rem 2.6rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(74, 61, 51, .82), rgba(74, 61, 51, 0));
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.menu-card--center { text-align: center; }
.menu-card .card-action { margin-top: auto; align-self: center; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Menus */
.menus-band { background: var(--beige); padding: 5rem 0; }
.menus { text-align: center; }
.menus .script { justify-content: center; }
.menus > p:not(.script) { max-width: 62ch; margin-inline: auto; }
.menus-empty:empty { display: none; }
.menu-grid { text-align: left; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.menu-links .btn { width: 100%; }

/* Vins */
.wine-list {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wine-list li {
  position: relative;
  break-inside: avoid;
  padding: .4rem 0 .4rem 1.4rem;
}
.wine-list li::before {
  content: "✤";
  position: absolute;
  left: 0;
  color: var(--taupe-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.contact-block { margin-bottom: 2.5rem; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.map {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige);
}
.map iframe {
  display: block;
  width: 100%;
  min-height: 440px;
  border: 0;
}
.map-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1rem; font-size: .95rem; }

/* Newsletter */
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.newsletter-form {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 2rem;
}
.newsletter-form label { display: block; font-weight: 700; margin-bottom: .5rem; }
.newsletter-form input[type="email"] {
  width: 100%;
  padding: .9rem 1rem;
  border: 2px solid var(--taupe);
  border-radius: .75rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.newsletter-form .btn { margin-top: 1.25rem; cursor: pointer; }
.newsletter-form .form-note { font-size: .9rem; margin: .75rem 0 0; }
.newsletter-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.newsletter-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.newsletter-list li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.newsletter-list li::before {
  content: "✤";
  position: absolute;
  left: 0;
  color: var(--taupe-dark);
}
.newsletter-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: 2rem;
  border-radius: var(--radius);
}

/* Footer */
.site-footer { background: var(--taupe-dark); color: #f4ece6; padding: 3rem 0 1rem; }
.site-footer h2 { color: #fff; font-size: 1.4rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
address { font-style: normal; }
.copyright {
  text-align: center;
  opacity: .9;
  margin: 2rem 0 0;
  font-size: .85rem;
}
.copyright a { text-decoration: underline; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem; }
.hours li span:first-child { opacity: .85; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: .4rem; }
.contact-list li span { display: inline-block; width: 1.4rem; opacity: .85; }
.social-link { display: inline-flex; align-items: center; gap: .45rem; }
.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile */
@media (max-width: 860px) {
  .burger { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 1.5rem; }
  .main-nav a { display: block; padding: .8rem 0; }
  .nav-toggle:checked ~ .main-nav { max-height: 480px; }
  .nav-toggle:checked ~ .burger span { background: transparent; }
  .nav-toggle:checked ~ .burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .burger span::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle:focus-visible ~ .burger { outline: 3px solid var(--taupe-dark); }
  .header-actions { margin-left: auto; }
  .header-inner { min-height: 80px; }

  .hero-inner, .welcome, .split, .contact-grid, .newsletter-grid { grid-template-columns: 1fr; gap: 2rem; }
  .welcome { padding: 3rem 0; }
  .hours li { grid-template-columns: 1fr; margin-bottom: .5rem; }
  .menus-band { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0; }
  .page-hero { padding: 2.5rem 0; }
  .menu-links { grid-template-columns: 1fr; }
  .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-buttons .btn, .menu-links .btn { width: 100%; }
}

@media (max-width: 620px) {
  .header-phone .phone-text { display: none; }
  .header-menus { font-size: .8rem; padding: .4rem .75rem; }
  .logo img { width: 76px; height: 76px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .wine-list { columns: 1; }
  .card-grid--four { grid-template-columns: minmax(0, 1fr); }
  .newsletter-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .main-nav, .main-nav ul, .burger span,
  .burger span::before, .burger span::after { transition: none; }
}
