/* Simon Laugueux — dégustations de vins & spiritueux */

/* Polices hébergées sur le site (aucune requête vers un service tiers) */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
}

:root {
  --parchemin: #F6EFE3;
  --camel: #C19A6B;
  --ocre: #CC7722;
  --ocre-fonce: #8F4E0F;
  --chene: #2A1D14;
  --malbec: #5A1F2B;

  --police-titre: "Cormorant Garamond", Georgia, serif;
  --police-texte: "Lato", system-ui, sans-serif;
  --rayon: 10px;
  --ombre: 0 6px 20px rgba(42, 29, 20, 0.12);
  --filet: rgba(42, 29, 20, 0.2);
  --largeur: 1100px;
  --hauteur-barre: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--parchemin);
  color: var(--chene);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.75rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--malbec); }
a:hover { color: var(--chene); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--rayon);
  background: var(--chene);
  color: var(--parchemin);
}

.lien-evitement:focus { top: 1rem; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1rem;
}

/* En-tête et navigation */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchemin);
  border-bottom: 1px solid var(--filet);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 64px;
}

.logo {
  font-family: var(--police-titre);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--chene);
  text-decoration: none;
}

.nav-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-liste a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--chene);
  font-weight: 700;
  text-decoration: none;
}

.nav-liste a:hover {
  color: var(--malbec);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle { display: none; }

/* Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bouton-principal { background: var(--chene); color: var(--parchemin); }
.bouton-principal:hover { background: var(--malbec); color: var(--parchemin); }
.bouton-secondaire { background: var(--ocre-fonce); color: var(--parchemin); }
.bouton-secondaire:hover { background: var(--chene); color: var(--parchemin); }
.bouton-clair { background: var(--parchemin); color: var(--chene); }
.bouton-clair:hover { background: var(--chene); color: var(--parchemin); }

/* Annonce */

.annonce {
  padding: 1.75rem 0;
  background: var(--chene);
  color: var(--parchemin);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.5;
}

.annonce-barriere { margin-bottom: 1rem; }

.annonce p { margin: 0 0 0.75rem; max-width: 46rem; }
.annonce p:last-child { margin-bottom: 0; }

.annonce-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-weight: 700;
}

.annonce a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--camel);
  overflow-wrap: anywhere;
}

.annonce a:hover { color: var(--parchemin); }

.annonce :focus-visible { outline-color: var(--camel); }

/* Hero */

.hero {
  padding: clamp(4rem, 12vw, 8rem) 0;
  background:
    url("../img/bois.svg") center / cover no-repeat,
    linear-gradient(135deg, var(--camel) 0%, var(--ocre) 100%);
}

.hero-surtitre {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-sous-titre {
  font-family: var(--police-titre);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
}

.hero-accroche {
  max-width: 40rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

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

/* Sections */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-camel { background: var(--camel); }

.intro {
  max-width: 46rem;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
}

.separateur {
  width: 200px;
  height: 32px;
  margin-bottom: 1rem;
  background: url("../img/douelles.svg") left center / 200px 32px no-repeat;
}

/* L'univers */

.atouts,
.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.atouts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atout {
  padding-top: 1.5rem;
  border-top: 3px solid var(--ocre);
}

.atout img { margin-bottom: 1rem; }

/* Formules */

.formule {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--rayon);
  background: var(--parchemin);
  box-shadow: var(--ombre);
}

.formule-infos {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.formule-infos li::before {
  content: "— ";
  color: var(--ocre-fonce);
}

.prix {
  margin-top: auto;
  font-family: var(--police-titre);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--malbec);
}

.formule .bouton { align-self: flex-start; }

.encart-touristes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.75rem;
  border: 2px dashed var(--chene);
  border-radius: var(--rayon);
}

.encart-touristes > div { flex: 1 1 18rem; }

.encart-touristes .lien {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.75rem 0;
  color: var(--chene);
  font-weight: 700;
}

/* Contact */

.section-contact {
  background: var(--chene);
  color: var(--parchemin);
}

.section-contact :focus-visible { outline-color: var(--camel); }

.contact-actions {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-carte {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--rayon);
  background: var(--ocre-fonce);
  color: var(--parchemin);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.contact-carte:hover {
  background: var(--malbec);
  color: var(--parchemin);
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-valeur {
  font-family: var(--police-titre);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Pied de page */

.pied {
  padding: 2rem 0;
  border-top: 1px solid rgba(246, 239, 227, 0.15);
  background: var(--chene);
  color: var(--parchemin);
  font-size: 0.9375rem;
}

.evin { font-weight: 700; }

/* Barre de contact mobile */

.barre-contact {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--hauteur-barre);
  background: var(--chene);
  box-shadow: 0 -4px 16px rgba(42, 29, 20, 0.2);
}

.barre-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--parchemin);
  font-weight: 700;
  text-decoration: none;
}

.barre-contact a + a { background: var(--ocre-fonce); }

.barre-contact :focus-visible {
  outline-color: var(--camel);
  outline-offset: -4px;
}

/* Apparition au scroll (uniquement si le JS a posé la classe .js) */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 767px) {
  body { padding-bottom: var(--hauteur-barre); }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--chene);
    cursor: pointer;
  }

  .nav-toggle-barres,
  .nav-toggle-barres::before,
  .nav-toggle-barres::after {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle-barres::before,
  .nav-toggle-barres::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-barres::before { top: -7px; }
  .nav-toggle-barres::after { top: 7px; }

  .js .nav-liste {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .js .nav-liste.ouvert { display: flex; }
}

@media (min-width: 768px) {
  .barre-contact { display: none; }

  .contact-actions { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bouton,
  .contact-carte { transition: none; }
}

@media print {
  .barre-contact { display: none; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
