/* =====================================================================
   Distillerie de Bagnes — feuille de style de reproduction
   Valeurs relevées sur distillerie-de-bagnes.ch (Astra 4.11 + Elementor 3.31)
   le 2 octobre 2026. Voir ../../ANALYSE.md pour le détail.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette (Astra "global colors") */
  --vert-primaire:   #74a84a;   /* boutons, liens au survol, menu mobile actif  (ast-global-color-0) */
  --vert-secondaire: #2c541d;   /* menu survol/actif, titres Newsletter/Contact (ast-global-color-1) */
  --vert-fonce:      #1b4122;   /* couleur du texte courant ET des titres, survol des boutons */
  --noir:            #000000;   /* liens du menu                                  (ast-global-color-2) */
  --gris:            #585858;   /* liens par défaut, copyright                    (ast-global-color-3) */
  --gris-clair:      #f6f8f5;   /* fond alternatif (non utilisé sur les pages)    (ast-global-color-4) */
  --blanc:           #ffffff;
  --overlay-vert-80: rgba(82,104,64,0.8);
  --overlay-vert-50: rgba(82,104,64,0.5);
  --overlay-vert-30: rgba(82,104,64,0.3);

  /* Typographie */
  --font-titres: "Cormorant Garamond", Georgia, serif;
  --font-texte:  "Palanquin", "Helvetica Neue", Arial, sans-serif;

  /* Mise en page */
  --largeur-contenu: 1140px;   /* conteneur Elementor */
  --largeur-cadre:   1240px;   /* conteneur Astra (header / footer) */
  --espace-widgets:  20px;     /* espacement vertical entre blocs Elementor */
  --rayon-bouton:    15px;
  --rayon-image:     2px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; /* 17px */ -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-texte);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--vert-fonce);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gris); transition: color .2s; }
a:hover, a:focus { color: var(--vert-primaire); }
p { margin: 0; }
p + p { margin-top: 1em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titres);
  font-weight: 500;
  color: var(--vert-fonce);
  margin: 0;
  text-transform: none;
}
h1 { font-size: 87px; font-weight: 400; line-height: 1.4; }
h2 { font-size: 41px; font-weight: 500; line-height: 1.3; }
h3 { font-size: 28px; font-weight: 600; line-height: 1.3; }
h4 { font-size: 24px; font-weight: 600; line-height: 1.2; }
h5 { font-size: 18px; line-height: 1.2; }
h6 { font-size: 15px; line-height: 1.25; }

@media (max-width: 921px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
}

.container { max-width: var(--largeur-contenu); margin: 0 auto; }
.cadre     { max-width: var(--largeur-cadre);   margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Bouton ---------- */
.btn {
  display: inline-block;
  background: var(--vert-primaire);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 3px;
  text-decoration: none;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--rayon-bouton);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn:hover, .btn:focus { background: var(--vert-fonce); color: var(--blanc); }
.btn--maj { text-transform: uppercase; }
@media (max-width: 767px) { .btn { font-size: 14px; } }

/* ---------- 4. En-tête (Astra) ---------- */
.site-header { background: var(--blanc); height: 130px; position: relative; z-index: 10; }
.site-header .cadre { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 96px; height: 96px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: block;
  padding: 0 17px;
  line-height: 80px;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--noir);
  text-decoration: none;
}
.nav a:hover, .nav a:focus, .nav .actif a { color: var(--vert-secondaire); }
.nav-toggle {
  display: none;
  background: var(--vert-primaire);
  color: var(--blanc);
  border: 0;
  border-radius: 3px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; }

@media (max-width: 921px) {
  .site-header { height: auto; }
  .site-header .cadre { height: auto; padding-top: 15px; padding-bottom: 15px; flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; border-top: 1px solid #eaeaea; margin-top: 15px; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { line-height: 1.7; padding: 5px 0; }
  .nav .actif a { color: var(--vert-primaire); }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}
.hero--accueil    { background-image: url("../img/Matthieu-Frecon-Degustation-Absinthe-scaled.jpg"); }
.hero--spiritueux { background-image: url("../img/Distillerie-de-Bagnes-33-scaled.jpg"); }
/* Lisibilité : voile sombre dégradé (plus marqué au niveau des titres) + ombre portée douce.
   Remplace le mix-blend-mode « overlay » du site original, qui rendait le sous-titre illisible. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.22) 100%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1, .hero h2 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero__inner { padding-top: 32vh; }           /* « spacer » Elementor de 32 vh */
.hero h1 {
  font-size: 80px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--blanc);
}
.hero h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 6.3px;
  text-transform: uppercase;
  color: var(--blanc);
}
.hero .btn { margin-top: 25px; }

@media (max-width: 1024px) {
  .hero { min-height: 600px; }
  .hero__inner { padding-top: 150px; }
  .hero h1 { font-size: 60px; letter-spacing: 7px; }
  .hero h2 { font-size: 35px; letter-spacing: 4px; }
}
@media (max-width: 767px) {
  .hero { min-height: 500px; padding: 0; }
  .hero__inner { padding-top: 120px; }
  .hero h1 { font-size: 50px; letter-spacing: 5px; }
  .hero h2 { font-size: 25px; letter-spacing: 2px; }
  .hero .btn { margin: 10px; transform: translateY(49px); } /* décalage présent dans l'original */
}

/* ---------- 6. Sections de contenu ---------- */
.section { padding: 10px; }
.section__titre { text-align: center; margin-bottom: var(--espace-widgets); }
.intro { text-align: left; }

/* Grille de cartes (3 colonnes) */
.cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 40px;
}
.carte { padding: 20px; display: flex; flex-direction: column; }
.carte img { width: 100%; border-radius: var(--rayon-image); }
.carte h4 { margin: 20px 0 10px; }
.carte .btn { align-self: flex-start; margin-top: var(--espace-widgets); }
.carte__achat { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: var(--espace-widgets); }
.carte__achat .btn { align-self: center; margin: 0; }

@media (max-width: 1024px) { .cartes { margin: 70px 0; } }
@media (max-width: 767px)  { .cartes { grid-template-columns: 1fr; margin: 0 0 40px; } }

/* Vidéo */
.video { padding: 10px; }
.video .section__titre { margin-bottom: var(--espace-widgets); }
.video__cadre { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video__cadre > * { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Portrait : texte + image */
.portrait { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; }
.portrait__texte { display: flex; flex-direction: column; justify-content: center; padding: 20px 80px 20px 20px; }
.portrait__texte h4 { font-size: 36px; font-weight: 500; line-height: 1.3; text-transform: uppercase; margin: 0 0 10px; }
.portrait__image { padding: 20px; }
.portrait__image img { width: 100%; border-radius: var(--rayon-image); }
@media (max-width: 1024px) {
  .portrait__texte { padding: 0 20px; }
  .portrait__texte h4 { font-size: 30px; }
}
@media (max-width: 767px) {
  .portrait { grid-template-columns: 1fr; margin: 50px 0; padding: 0 10px; }
  .portrait__texte { padding: 20px 10px 10px; }
  .portrait__image { padding: 10px; }
}

/* Bloc Newsletter + Contact sur fond illustré */
.cta {
  background: url("../img/Call-to-action.jpg") center center / cover no-repeat;
  padding: 100px 0 200px;
}
.cta__inner {
  max-width: 575px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: var(--espace-widgets);
  text-align: center;
}
.cta h4 {
  font-size: 35px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 4.92px;
  text-transform: uppercase;
  color: var(--vert-secondaire);
  margin: 0 0 10px;
}
.cta iframe { display: block; width: 100%; max-width: 480px; height: 320px; margin: 0 auto; border: 1px solid #eee; background: #fff; }
/* Lien de secours sous l'iframe Substack */
.newsletter__secours { font-size: 14px; color: var(--gris); margin: 6px 0 0; }
.newsletter__secours a { color: var(--vert-secondaire); text-decoration: underline; }
.cta .formulaire { width: 100%; min-height: 500px; }
@media (max-width: 1024px) { .cta { padding: 80px 0 160px; } }
@media (max-width: 767px)  { .cta { padding: 50px 20px 120px; } .cta h4 { letter-spacing: 3px; } }

/* ---------- 7. Pied de page (Astra) ---------- */
.site-footer { background: var(--blanc); padding: 35px 0; }
.site-footer .cadre { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; align-items: center; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.footer-menu a { font-size: 15px; color: var(--noir); text-decoration: none; padding-right: 15px; }
.footer-menu a:hover { color: var(--vert-primaire); }
.footer-titre { text-align: center; font-size: 24px; line-height: 1.3; }
.footer-copy { text-align: right; font-size: 15px; color: var(--gris); margin-right: 40px; }
@media (max-width: 921px) {
  .site-footer .cadre { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .footer-menu ul { justify-content: center; }
  .footer-copy { text-align: center; margin: 0; }
}
