/* Aix market · feuille de styles
   Mise en page : bandeau vert de marque en ouverture, vague rouge reprise du logo,
   sections alternées blanc / vert très pâle, cartes magasins sur fond vert. */
:root {
  --green: #0B5C33;        /* vert du logo */
  --green-deep: #073F23;
  --green-soft: #E7F0E9;
  --leaf: #7BC043;
  --red: #AC2232;          /* rouge du logo */
  --red-deep: #8C1A28;
  --ink: #14231B;
  --muted: #4E6157;
  --paper: #FFFFFF;
  --mist: #F2F6F2;
  --line: #D9E4DB;

  --font-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 63, 35, .12);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; color: var(--green-deep); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow-light { color: #FFD7DC; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.todo { background: #FFF3C4; color: #6B4E00; padding: 0 .3em; border-radius: 4px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-deep); }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-white:hover { background: var(--green-soft); color: var(--green-deep); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding-block: 6px; }
.brand img { width: 118px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--green-soft); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ""; display: block; width: 22px; height: 2.5px; background: var(--green-deep); border-radius: 2px; position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* Accueil */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 10%, rgba(123,192,67,.22), transparent 45%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-block: 10px 18px; }
.hero .eyebrow { color: #FFD7DC; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-towns { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-towns li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.dot-open { background: var(--leaf); border-color: var(--leaf); }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.promo-badge {
  position: absolute; left: -18px; bottom: -22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 136px; height: 136px; border-radius: 50%;
  background: var(--red); color: #fff; border: 5px solid #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  transform: rotate(-8deg);
  padding: 12px; line-height: 1.15;
}
.promo-badge strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.promo-badge span { font-size: .7rem; font-weight: 600; }
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .promo-badge { left: auto; right: 10px; bottom: -26px; width: 116px; height: 116px; }
  .promo-badge strong { font-size: 1.8rem; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-text { display: grid; gap: 18px; min-width: 0; }
.split-media img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Rayons */
.aisles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aisle { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.aisle img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s; }
.aisle:hover img { transform: scale(1.04); }
.aisle-body { padding: 18px 20px 22px; display: grid; gap: 6px; border-top: 4px solid var(--red); position: relative; background: #fff; }
.aisle-body p { color: var(--muted); font-size: .98rem; }
@media (max-width: 980px) { .aisles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aisles { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.g-item { display: block; overflow: hidden; border-radius: 12px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-long { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-wide { grid-row: span 1; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(7, 30, 18, .88); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: -18px; right: -12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--green-deep); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* Magasins */
.section-green { background: linear-gradient(170deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; }
.section-green h2 { color: #fff; }
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 26px;
}
.store h3 { color: #fff; }
.store dl { margin: 0; display: grid; gap: 4px; flex: 1; }
.store dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); margin-top: 8px; font-weight: 700; }
.store dd { margin: 0; color: #fff; }
.store a:not(.btn) { color: #fff; }
.store .todo { background: rgba(255, 243, 196, .9); }
.status {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; background: var(--red); color: #fff;
}
.status-open { background: var(--leaf); color: var(--green-deep); }
@media (max-width: 960px) { .stores { grid-template-columns: 1fr; max-width: 560px; } }

/* Carte privilège */
.steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green); font: 800 1.15rem/1 var(--font-display);
}
.fine { font-size: .85rem; color: var(--muted); }

.card-visual { display: grid; place-items: center; padding: 20px 0; }
.pcard {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1.586;
  border-radius: 22px; overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(7,63,35,.28), 0 2px 0 rgba(0,0,0,.04);
  transform: rotate(-4deg);
  display: grid; grid-template-rows: 1fr auto;
  container-type: inline-size;
}
.pcard-top { display: flex; align-items: center; gap: 4cqi; padding: 5cqi 6cqi 2cqi; }
.pcard-top img { width: 38cqi; }
.pcard-title { display: grid; line-height: 1; }
.pcard-name { font: 800 8cqi/1 var(--font-display); color: var(--green-deep); }
.pcard-sub { font: 800 8cqi/1 var(--font-display); color: #B08A2E; }
.pcard-bottom {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 3cqi;
  padding: 4.5cqi 6cqi 7cqi;
  border-top: 1.2cqi solid var(--red);
}
.pcard-offer { display: flex; align-items: center; gap: 3cqi; }
.pcard-pct { font: 800 14cqi/1 var(--font-display); white-space: nowrap; }
.pcard-label { font-weight: 700; font-size: 3.6cqi; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; }
.pcard-free { background: #E9C46A; color: var(--green-deep); font-weight: 800; font-size: 3.6cqi; padding: 1.6cqi 3cqi; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.pcard-note { position: absolute; right: 6cqi; bottom: 1.6cqi; font-size: 2.6cqi; color: rgba(255,255,255,.75); }

/* Formulaire */
.signup {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--mist); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 4vw, 44px);
  display: grid; gap: 20px;
}
.signup-head { display: grid; gap: 6px; }
.signup-head p { color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field select:focus { border-color: var(--green); outline: 3px solid rgba(11,92,51,.18); outline-offset: 0; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex: none; }
.consent.invalid span { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding-top: 56px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFD7DC; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 150px; background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-block: 20px; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pages légales */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal .wrap { max-width: 820px; display: grid; gap: 14px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin-top: 22px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal .back { font-weight: 600; }

@media (max-width: 560px) { .pcard { transform: rotate(-2deg); width: 94%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Carte : appel à l'inscription */
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.signup-cta { align-items: center; }
.store-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.store-hours span { color: rgba(255,255,255,.75); }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; }
