/* ===================================================================
   Centre Nicolet — Feuille de style
   Design moderne, léger et 100% responsive (mobile-first)
   =================================================================== */

:root {
  /* Palette — vert forêt (Nicolet/campagne) + accents chaleureux */
  --c-vert:      #1f6b3b;   /* vert principal */
  --c-vert-fonce:#14512c;   /* vert foncé */
  --c-vert-clair:#e7f3ec;   /* fond vert très clair */
  --c-or:        #e0a526;   /* or accent */
  --c-charcoal:  #1d2b24;   /* texte sombre */
  --c-gris:      #5c6b63;   /* texte secondaire */
  --c-gris-clair:#eef1ef;   /* fonds doux */
  --c-blanc:     #ffffff;
  --c-rouge:     #c0392b;   /* fermé */
  --c-vert-badge:#1f9d55;   /* ouvert */

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(20,60,40,.10);
  --shadow-lg: 0 14px 40px rgba(20,60,40,.16);
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-charcoal);
  background: var(--c-blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-vert); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--c-vert-fonce); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--soft { background: var(--c-gris-clair); }
.section--tint { background: var(--c-vert-clair); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-or);
  margin-bottom: .4em;
}

.lead { font-size: 1.1rem; color: var(--c-gris); max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--c-vert); color: #fff; }
.btn--primary:hover { background: var(--c-vert-fonce); }
.btn--ghost { background: transparent; color: var(--c-blanc); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; color: var(--c-vert); border-color: var(--c-vert); }
.btn--outline:hover { background: var(--c-vert-clair); }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6eae8;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--c-charcoal);
  font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--c-vert-clair); text-decoration: none; }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-charcoal); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(120deg, rgba(20,81,44,.92), rgba(31,107,59,.62)),
              url("../img/hero.jpg") center/cover no-repeat;
  background-image: linear-gradient(120deg, rgba(20,81,44,.92), rgba(31,107,59,.62)),
              image-set(url("../img/hero.webp") type("image/webp"),
                        url("../img/hero.jpg") type("image/jpeg"));
}
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.92); margin-bottom: 1.6em; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; margin-bottom: 1em;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Widget horaire live ---------- */
.hours-widget {
  background: var(--c-blanc); color: var(--c-charcoal);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px 24px; max-width: 360px;
  margin-top: 28px;
}
.hours-widget__status { display: flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.15rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-gris); box-shadow: 0 0 0 4px rgba(0,0,0,.04); }
.dot--open { background: var(--c-vert-badge); }
.dot--closed { background: var(--c-rouge); }
.hours-widget__now { font-size: .9rem; color: var(--c-gris); margin: .2em 0 1em; }
.hours-widget__list { list-style: none; margin: 0; padding: 0; }
.hours-widget__list li {
  display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px dashed #e6eae8; font-size: .95rem;
}
.hours-widget__list li.today { font-weight: 800; color: var(--c-vert-fonce); }
.hours-widget__list li span:last-child { color: var(--c-gris); }

/* ---------- Grille de cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--c-blanc); border: 1px solid #ecefec;
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 1.8rem; margin-bottom: .4em; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--c-gris); margin: 0; }

/* ---------- Boutiques ---------- */
.store {
  background: var(--c-blanc); border: 1px solid #ecefec; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.store__logo-wrap {
  background: var(--c-gris-clair); padding: 26px; display: flex; align-items: center; justify-content: center; min-height: 140px;
}
.store__logo { max-height: 64px; width: auto; object-fit: contain; }
.store__body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.store__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-or); font-weight: 700; }
.store__name { font-size: 1.25rem; font-weight: 800; color: var(--c-vert-fonce); margin: 4px 0 8px; }
.store__meta { color: var(--c-gris); font-size: .95rem; margin: 0 0 6px; }
.store__meta a { color: var(--c-charcoal); }
.store__foot { margin-top: auto; padding-top: 12px; }

/* ---------- Onglets horaires ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid #d9e3dd;
  background: #fff; cursor: pointer; font-weight: 600; color: var(--c-gris);
}
.tab.is-active { background: var(--c-vert); color: #fff; border-color: var(--c-vert); }
.schedule { list-style: none; padding: 0; margin: 0; max-width: 460px; }
.schedule li { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #eef1ef; }
.schedule li span:last-child { font-weight: 700; color: var(--c-vert-fonce); }
.schedule .closed { color: var(--c-rouge); }

/* ---------- Bandeau infos ---------- */
.info-banner { background: var(--c-vert-fonce); color: #fff; }
.info-banner .container { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.info-banner a { color: #fff; font-weight: 700; }
.info-banner .pill { background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; }

/* ---------- Formulaire ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid #d3ddd7; border-radius: var(--radius-sm);
  font: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-vert); border-color: var(--c-vert); }
.form-note { font-size: .85rem; color: var(--c-gris); }

/* ---------- Carte / contact ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.map-frame { border: 0; width: 100%; min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid #eef1ef; }
.contact-list strong { color: var(--c-vert-fonce); }

/* ---------- Promotions ---------- */
.promo {
  border-left: 5px solid var(--c-or); background: var(--c-blanc);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.promo__tag { display: inline-block; background: var(--c-or); color: #3a2c05; font-weight: 800; font-size: .75rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--c-vert-fonce); color: rgba(255,255,255,.85); padding: 48px 0 24px; }
.footer h3 { color: #fff; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__logo { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid #e6eae8; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 520px; }
  .nav a { padding: 14px 20px; border-radius: 0; border-bottom: 1px solid #f1f4f2; }
  .nav__cta { margin: 10px 20px; }
  .nav-toggle { display: block; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
