/* ==========================================================================
   CAVAVIN Suisse – landing page
   ========================================================================== */

/* Lato auto-hébergée : utilisée seulement si Century Gothic est absente */
@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");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/lato-900-latin.woff2") format("woff2");
}

:root {
  --yellow: #fbbb21;
  --dark: #3d3d3d;
  --black: #000;
  --text: #111;
  --muted: #555;
  --light: #eee;
  --white: #fff;
  --font: "Century Gothic", CenturyGothic, "Lato", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: max(20px, calc((100vw - var(--container)) / 2));
  --fs-title: clamp(23px, 1.44rem + ((1vw - 3.2px) * 1.558), 38px);
  --fs-tile: clamp(19px, 1.185rem + ((1vw - 3.2px) * 1.15), 30px);
  --fs-small-title: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.625), 20px);
  --radius: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.up { text-transform: uppercase; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-title {
  color: var(--yellow);
  font-size: var(--fs-title);
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--dark);
}

.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { width: 190px; height: auto; }

.dropdown { position: relative; margin: 0; }

.dropdown summary {
  display: block;
  padding: 10px 30px;
  background: var(--yellow);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " ▾"; }
.dropdown[open] summary::after { content: " ▴"; }
.dropdown summary:hover { filter: brightness(.95); }

.dropdown ul {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 240px;
  margin: 6px 0 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.dropdown li a {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  font-size: 17px;
  text-decoration: none;
}
.dropdown li a:hover,
.dropdown li a:focus-visible { background: var(--light); }

/* ---------- Bannière (media + texte) ---------- */
.banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  align-items: center;
  min-height: 640px;
  background: var(--black);
  color: var(--white);
}

.banner__content {
  padding: 70px 48px 70px var(--gutter);
}

.banner h1 {
  color: var(--yellow);
  font-size: var(--fs-title);
  margin-bottom: 1.2rem;
}

.banner p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.banner p:last-child { margin-bottom: 0; }

.banner__media {
  position: relative;
  align-self: stretch;
  min-height: 250px;
  margin: 0;
}
.banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ---------- Introduction ---------- */
.intro {
  padding-top: 70px;
  padding-bottom: 50px;
}
.intro p {
  max-width: var(--container);
  margin: 1.2rem auto 0;
  text-align: center;
}
.intro__img {
  margin: 1.2rem 0 0;
}
.intro__img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* ---------- CAVAVIN, c'est… ---------- */
.concept {
  padding-top: 30px;
  padding-bottom: 40px;
}
.concept .section-title { margin-bottom: 1.2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  padding: 40px 28px;
  background: var(--yellow);
  color: var(--white);
  text-align: center;
}
.tile h3 {
  font-size: var(--fs-tile);
  margin-bottom: 1.2rem;
}
.tile p { font-size: 17px; }

.pic {
  margin: 0;
  background: var(--black);
}
.pic img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

/* ---------- Chiffres clés ---------- */
.stats {
  padding-top: 30px;
  padding-bottom: 80px;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container);
  list-style: none;
}
.stats__item {
  text-align: center;
  text-transform: uppercase;
  font-size: 17px;
}
.stats__item img {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.2rem;
}
.stats__item strong { font-weight: 900; }

/* ---------- Footer ---------- */
.site-footer__main {
  padding-top: 24px;
  padding-bottom: 30px;
  background: var(--dark);
  color: var(--white);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer__brand img {
  width: 200px;
  height: auto;
  margin-bottom: 1.2rem;
}
.site-footer__group {
  color: var(--yellow);
  font-size: var(--fs-small-title);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.site-footer__brand address {
  font-style: normal;
  font-weight: 700;
}

.btn {
  display: inline-block;
  color: var(--white);
  background: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  transition: filter .2s, background-color .2s;
}
.btn:hover { filter: brightness(.95); }

.btn--lg {
  padding: 20px 40px;
  font-size: clamp(17px, 1.052rem + ((1vw - 3.2px) * 0.955), 26px);
  line-height: 1.2;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
  white-space: nowrap;
}
.btn--dark { background: var(--dark); }
.btn--dark:hover { background: #555; filter: none; }

/* Nos caves en Suisse */
.locations {
  padding-top: 28px;
  padding-bottom: 16px;
}
.locations__title {
  font-size: var(--fs-small-title);
  text-align: center;
}
.cave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  min-height: 72px;
  margin: 12px auto 0;
  padding: 0 20px 0 0;
  background: var(--light);
}
.cave__info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cave__info img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}
.cave__info p {
  font-size: 16px;
  line-height: 1.4;
}
.cave__info address {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

.legal-links {
  margin-top: 24px;
  font-size: 15px;
  text-align: center;
}
.legal-links a {
  display: inline-block;
  margin: 0 24px;
  color: var(--text);
  text-decoration: none;
}
.legal-links a:hover { text-decoration: underline; }

.copyright {
  margin-top: 6px;
  font-size: 13px;
  color: #6b6b6b;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  html { scroll-padding-top: 100px; }

  .site-header { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-header__logo img { width: 110px; }
  .dropdown summary { padding: 8px 14px; font-size: 13px; letter-spacing: .02em; }

  .banner { min-height: 0; }
  .banner__content { padding: 40px 20px; }

  .intro__img img { height: 260px; }

  .grid { grid-template-columns: 1fr; }
  .tile { min-height: 260px; }
  .pic img { min-height: 260px; }

  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .stats__item { font-size: 15px; }
  .stats__item img { width: 96px; height: 96px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .cave { flex-wrap: wrap; padding: 12px; }
  .cave__info { flex-wrap: wrap; }

  .legal-links a { margin: 0 12px; }
}

@media (max-width: 600px) {
  .banner { grid-template-columns: 100%; }
  .banner__media { grid-row: 1; min-height: 250px; }
  .banner__content { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
