/* Couleurs reprises des panneaux et de la carte de commande : noir, jaune de
   la feuille du logo, bordeaux. Le jaune ne sert que sur fond sombre ; sur le
   fond clair, le bordeaux prend le relais. */
:root {
  --night: #0b0a09;
  --night-alt: #1a1614;
  --ink: #2a221b;
  --muted: #6b5f53;
  --paper: #f8f5f0;
  --paper-alt: #f1ebe3;
  --line: #e6d3d3;
  --leaf: #fbc316;
  --wine: #ac0e31;
  --on-dark: #e9e1d4;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

a {
  color: var(--wine);
}

/* « XIXe » : l'exposant ne doit pas écarter les lignes. */
sup {
  line-height: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--night);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand img {
  display: block;
  width: auto;
  height: 2.1rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-header nav a {
  color: var(--on-dark);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--leaf);
}

/* Bandeau d'accueil : la photo a déjà un fond noir à gauche, le dégradé ne fait
   qu'assurer la lisibilité du texte sur le vin rouge en bas. */

.hero {
  padding: clamp(5rem, 16vw, 10rem) 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.85) 0%, rgba(11, 10, 9, 0.45) 55%, rgba(11, 10, 9, 0) 80%),
    url("../img/hero.jpg") right center / cover,
    var(--night);
  color: #fff;
}

.hero h1 {
  max-width: 16em;
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--leaf);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Renvoi discret vers la médaille, au-dessus du texte d'accueil. */
.award-link {
  margin: 0 0 1rem;
}

.award-link a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--leaf);
  color: var(--leaf);
  font-size: 0.9rem;
  text-decoration: none;
}

.award-link a:hover {
  background: var(--leaf);
  color: var(--night);
}

.lead {
  max-width: 30em;
  margin: 0 0 2rem;
  color: var(--on-dark);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--leaf);
  color: var(--leaf);
  text-decoration: none;
}

.button:hover {
  background: var(--leaf);
  color: var(--night);
}

.button--quiet {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.button--quiet:hover {
  border-color: #fff;
  background: #fff;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section--alt {
  background: var(--paper-alt);
}

.section--dark {
  background: var(--night);
  color: var(--on-dark);
}

.section--dark h2 {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split p {
  max-width: 34em;
}

.photo {
  min-height: 360px;
  margin: 0;
  background: var(--line) center / cover;
}

.photo--vigne {
  background-image: url("../img/vigne.jpg");
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--wine);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Événement : l'affiche est montrée telle quelle, sans recadrage. */

.event-poster {
  display: block;
  width: 100%;
  height: auto;
}

.event-dates {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.event-dates li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.event-dates time {
  font-weight: bold;
}

/* Distinction : la photo du diplôme est en portrait, on la borne en largeur
   pour qu'elle ne dépasse pas la hauteur de l'écran. */

.award-photo {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 26rem;
  height: auto;
}

.section--dark .kicker {
  color: var(--leaf);
}

.section--dark strong {
  color: #fff;
}

/* Badge posé sur le coin de la photo, comme un macaron d'étiquette. */

.photo-wrap {
  position: relative;
}

.badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  margin: 0;
  padding: 1.1rem 1.4rem;
  background: var(--night);
  color: var(--on-dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.badge strong {
  display: block;
  color: var(--leaf);
  font: 3rem/1 var(--serif);
}

/* Nos vins : listes à filets, comme sur la carte de commande. */

.intro {
  max-width: 40em;
  margin: 0 0 2.5rem;
}

/* Nouveauté mise en avant : encadré sombre, repris du panneau de la cave. */

.feature {
  max-width: 40em;
  margin: 0 0 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-left: 4px solid var(--leaf);
  background: var(--night);
  color: var(--on-dark);
}

.feature h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.feature p {
  margin: 0 0 0.75rem;
}

.feature p:last-child {
  margin-bottom: 0;
}

.feature-kicker {
  color: var(--leaf);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tag {
  margin-left: 0.4em;
  padding: 0.1em 0.5em;
  background: var(--wine);
  color: #fff;
  font-size: 0.75rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* Sur fond clair, le jaune ne passe que sur un fond noir. */
.tag--gold {
  background: var(--night);
  color: var(--leaf);
  text-decoration: none;
}

.tag--gold:hover {
  background: var(--wine);
  color: #fff;
}

.wines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 3rem;
}

.wine-list h3 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--wine);
  color: var(--wine);
  font-size: 1.5rem;
}

.wine-list ul {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.wine-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.wine-list li span {
  margin-left: 0.4em;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.note {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Visite : encadré repris du panneau d'entrée de la cave. */

.panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--leaf);
}

.panel p {
  margin: 0;
}

.panel-phone {
  display: block;
  margin: 0.25rem 0 1.25rem;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: bold;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.panel-phone:hover {
  color: var(--leaf);
}

.panel-closed {
  color: #fff;
  font-weight: bold;
}

/* Contact */
address {
  margin: 0 0 1rem;
  font-style: normal;
}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
}

.map a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Pied de page */

.site-footer {
  padding: 2rem 0;
  background: var(--night);
  color: #a99d8e;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }

  /* En étroit, le verre passe sous le texte : voile uniforme plus dense. */
  .hero {
    background:
      linear-gradient(rgba(11, 10, 9, 0.7), rgba(11, 10, 9, 0.7)),
      url("../img/hero.jpg") 70% center / cover,
      var(--night);
  }

  /* Le retour à la ligne du titre ne tombe juste qu'en grand. */
  .hero h1 br {
    display: none;
  }

  .photo {
    min-height: 240px;
  }

  /* Pas de débord à gauche : la marge latérale est trop étroite. */
  .badge {
    left: 0;
  }
}
