/* ===== Variables ===== */
:root {
  --color-green:      #2d5a27;
  --color-green-dark: #1e3d1a;
  --color-red:        #e3001a;
  --color-red-dark:   #b50015;
  --color-bg:         #faf8f4;
  --color-bg-alt:     #f2ede4;
  --color-text:       #2c2c2c;
  --color-text-light: #666;
  --color-white:      #ffffff;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --section-padding: 5rem 0;
  --nav-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

[id] { scroll-margin-top: var(--nav-height); }

/* ===== Navigation ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-green);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  line-height: 1.2;
}
.nav__ecusson {
  width: 32px;
  height: auto;
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
  font-weight: normal;
}
.nav__sub {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  letter-spacing: .03em;
  transition: color .2s;
}
.nav__links a:hover { color: var(--color-white); }

/* White focus ring inside green nav */
.nav :focus-visible {
  outline-color: var(--color-white);
  outline-offset: 4px;
}

.hero :focus-visible {
  outline-color: var(--color-white);
}

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-green-dark);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    display: block;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  background: url('assets/hero-ollon.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,61,26,.82) 0%, rgba(30,61,26,.55) 100%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--color-white);
}
.hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  margin-bottom: 1.25rem;
}
.hero__eyebrow {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .75rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__tagline {
  font-size: 1.15rem;
  max-width: 520px;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-wrap: balance;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 3px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-red-dark);
}
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover {
    transform: translateY(-1px);
  }
  .btn--primary:active {
    transform: translateY(0);
  }
}
.btn--primary:active {
  background: var(--color-red-dark);
}

/* ===== Shared section styles ===== */
.section { padding: var(--section-padding); }
.section--alt { background: var(--color-bg-alt); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: normal;
  color: var(--color-green);
  margin-bottom: .5rem;
}
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-red);
  margin-top: .5rem;
}
.section__subtitle {
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ===== Products — pills on gradient ===== */
.section--produits {
  background: linear-gradient(135deg, var(--color-green) 48%, #fff 48%, #fff 52%, var(--color-red) 52%);
}
.section__title--light {
  color: #fff;
}
.section__title--light::after {
  background: rgba(255,255,255,.5);
}
.section__subtitle--light {
  color: rgba(255,255,255,.72);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.pill {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--color-green-dark);
  background: #fff;
  transition: box-shadow .2s;
  cursor: default;
}
.pill:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
@media (prefers-reduced-motion: no-preference) {
  .pill:hover { transform: scale(1.04); }
}
.pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.pill__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-green-dark);
  stroke-width: 1.8;
  fill: none;
}
.pill__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-green-dark);
  display: block;
  line-height: 1.2;
}
.pill__desc {
  font-size: .78rem;
  color: var(--color-text-light);
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about__text p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}
.about__text p:last-child { margin-bottom: 0; }
.about__photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.about__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { order: -1; }
  .about__img { height: 200px; }
}

/* ===== Horaires & Localisation ===== */
.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.hours-table th {
  text-align: left;
  padding: .5rem .75rem;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-green);
}
.hours-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.hours-table td:first-child { font-weight: 500; }
.hours-table .closed { color: var(--color-text-light); font-style: italic; }
.hours-table__closed td { opacity: .6; }
.hours-table__half td:first-child { color: var(--color-text-light); }

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.address {
  font-style: normal;
  margin: 1rem 0 .5rem;
  line-height: 1.7;
}
.parking-note {
  font-size: .9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
.map-embed {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
}

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

/* ===== Contact ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 6px;
  border-bottom: 3px solid var(--color-red);
  font-style: normal;
}
a.contact-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}
@media (prefers-reduced-motion: no-preference) {
  .contact-card {
    transition: box-shadow .2s, transform .2s;
  }
  a.contact-card:hover { transform: translateY(-3px); }
}
.contact-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.contact-card__label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: .35rem;
}
.contact-card__value {
  font-size: 1rem;
  color: var(--color-green);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-green-dark);
  color: rgba(255,255,255,.7);
  padding: 2rem 0;
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.footer__brand {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.05rem;
}
.footer__copy { font-size: .85rem; }
.footer__credits {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .15rem;
}
.footer__credits a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
}
.footer__credits a:hover { color: var(--color-white); }

/* ===== Responsive fine-tuning ===== */
@media (max-width: 480px) {
  :root { --section-padding: 3rem 0; }
  .hero__title { font-size: 2.25rem; }
  .hero { min-height: 70vh; }
  .contact-cards { grid-template-columns: 1fr; }
  .pills { flex-direction: column; align-items: stretch; gap: .75rem; }
  .pill { border-radius: 12px; justify-content: flex-start; }
}
