/* =============================================================
   Thème « L'Épicerie des Dunes » — épicerie de proximité, Oléron.
   Vert profond / vert olive, accent orange, fond crème très clair.
   Tout est dessiné en CSS ou en SVG inline : aucune requête externe.
   ============================================================= */

:root {
  --m-accent: #C4511C;          /* orange terre cuite — boutons, liens, focus */
  --m-accent-clair: #F0C79B;    /* orange pâle — textes sur vert profond */
  --m-fonce: #1E3B2A;           /* vert profond — bandeaux, pied de page */
  --m-olive: #55663A;           /* vert olive — sous-titres, bandeaux clairs */
  --m-nav-fond: #FBF6EA;
  --m-fond: #FBF6EA;
  --m-surface: #F1E9D5;
  --m-carte: #FFFDF7;
  --m-ligne: #DFD3B9;
  --m-texte: #22301F;
  --m-doux: #4C5944;
  --m-pied: #1E3B2A;
  --m-rayon: 6px;
  --m-titre: 'Sora', system-ui, sans-serif;
  --m-quote: 'Manrope', system-ui, sans-serif;
}

/* — Marque : un panier, pas une pastille — */
.logo__marque { display: block; flex: none; }
.logo__texte b { font-size: .98rem; }
.logo__texte small { color: var(--m-olive); font-weight: 600; letter-spacing: .04em; }

/* — Hero : bandeau plein avec l'étal — */
.hero {
  background: var(--m-fonce);
  color: #fff;
  padding-block: clamp(30px, 5vw, 52px) 0;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .tag { background: rgba(255, 255, 255, .14); color: var(--m-accent-clair); }
.hero__tete { text-align: center; max-width: 720px; margin-inline: auto; }
.hero__accroche { color: rgba(255, 255, 255, .86); font-size: 1.05rem; max-width: 56ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.hero__etale { margin-top: clamp(16px, 3vw, 30px); }
.hero__etale svg { width: 100%; height: auto; display: block; }

/* Pastille d'information « ouvert aujourd'hui » */
.pastille {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 560px;
  margin: -26px auto clamp(30px, 5vw, 52px);
  padding: 14px 20px;
  background: var(--m-carte);
  border: 1px solid var(--m-ligne);
  border-left: 5px solid var(--m-accent);
  border-radius: var(--m-rayon);
  box-shadow: 0 14px 30px rgba(30, 59, 42, .22);
}
.pastille__point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2E7D4F;
  box-shadow: 0 0 0 4px rgba(46, 125, 79, .2);
  flex: none;
}
.pastille__texte { margin: 0; font-size: .93rem; color: var(--m-doux); flex: 1 1 240px; }
.pastille__texte b { font-family: var(--m-titre); color: var(--m-texte); display: block; font-size: .98rem; }
.pastille a { white-space: nowrap; }

/* — En-tête de page interne — */
.entete { background: var(--m-surface); border-bottom: 1px solid var(--m-ligne); padding-block: clamp(26px, 5vw, 46px); }
.entete h1 { margin-bottom: .35em; }
.entete__intro { max-width: 60ch; color: var(--m-doux); font-size: 1.02rem; margin-bottom: 0; }

.section__intro { color: var(--m-doux); max-width: 62ch; }

/* — cahier de marché : la présentation des produits — */
.cahier__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.cahier {
  background: var(--m-carte);
  border: 1px solid var(--m-ligne);
  border-radius: var(--m-rayon);
  overflow: hidden;
}
.cahier__jour {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  background: var(--m-olive);
  color: #fff;
}
.cahier__jour b { font-family: var(--m-titre); font-size: .95rem; }
.cahier__jour span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cahier__ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 13px 18px;
  border-bottom: 1px dashed var(--m-ligne);
}
.cahier__ligne:last-child { border-bottom: 0; }
.cahier__nom { font-family: var(--m-titre); font-weight: 600; font-size: .98rem; }
.cahier__meta { font-size: .85rem; color: var(--m-doux); }
.cahier__prix {
  font-family: var(--m-titre);
  font-weight: 800;
  color: var(--m-fonce);
  white-space: nowrap;
  align-self: center;
  text-align: right;
}
.cahier__unite { display: block; font-family: var(--m-quote); font-weight: 500; font-size: .76rem; color: var(--m-doux); }

/* — Producteurs — */
.producteurs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.producteurs li {
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--m-carte);
  border: 1px solid var(--m-ligne);
  border-radius: var(--m-rayon);
  padding: 16px 18px;
}
.producteurs__sigle {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 4px;
  background: var(--m-fonce);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--m-titre);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  border-bottom: 4px solid var(--m-accent);
}
.producteurs b { font-family: var(--m-titre); display: block; font-size: 1rem; }
.producteurs span { font-size: .85rem; color: var(--m-olive); font-weight: 600; }
.producteurs p { margin: .35em 0 0; font-size: .9rem; color: var(--m-doux); }

/* — Tableau d'horaires — */
.tableau-scroll { overflow-x: auto; border-radius: var(--m-rayon); }
.tableau-horaires { width: 100%; min-width: 360px; border-collapse: collapse; background: var(--m-carte); border: 1px solid var(--m-ligne); }
.tableau-horaires thead th { background: var(--m-fonce); color: #fff; }
.tableau-horaires th, .tableau-horaires td { padding: 11px 14px; border-bottom: 1px solid var(--m-ligne); text-align: left; font-size: .93rem; }
.tableau-horaires thead th { font-family: var(--m-titre); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.tableau-horaires tbody th { font-family: var(--m-titre); font-weight: 600; color: var(--m-texte); text-transform: none; letter-spacing: 0; font-size: .93rem; }
.tableau-horaires td:last-child, .tableau-horaires th:last-child { text-align: left; }
.tableau-horaires tbody tr:last-child th, .tableau-horaires tbody tr:last-child td { border-bottom: 0; }
.tableau-horaires .ferme { color: var(--m-doux); }
.tableau-horaires .oui { color: var(--m-fonce); font-weight: 700; }

.grille--horaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 26px; align-items: start; }
.carte-horaire { background: var(--m-carte); border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); padding: 20px; }
.carte-horaire h3 { margin: 0 0 .3em; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.carte-horaire h3 span { font-family: var(--m-quote); font-size: .8rem; font-weight: 600; color: var(--m-olive); }
.carte-horaire p { font-size: .9rem; color: var(--m-doux); margin: .2em 0 14px; }

/* — Listes de services — */
.liste-services { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.liste-services li { margin: 0; display: flex; gap: 14px; align-items: flex-start; background: var(--m-carte); border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); padding: 16px 18px; }
.liste-services__puce { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: var(--m-surface); border-radius: 4px; }
.liste-services b { font-family: var(--m-titre); display: block; }
.liste-services p { margin: .25em 0 0; font-size: .9rem; color: var(--m-doux); }

/* — Créneaux de retrait — */
.creneaux { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.creneaux li { margin: 0; }
.creneaux span {
  display: inline-block;
  font-family: var(--m-titre);
  font-weight: 600;
  font-size: .88rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--m-surface);
  color: var(--m-fonce);
  border: 1px solid var(--m-ligne);
}
.creneaux .complet span { background: var(--m-surface); color: var(--m-doux); text-decoration: line-through; }

/* — Bandeaux — */
.bandeau-livraison { background: var(--m-olive); color: #fff; }
.bandeau-livraison h2 { color: #fff; }
.bandeau-livraison p { color: rgba(255, 255, 255, .86); max-width: 58ch; }
.bandeau-livraison .info { background: rgba(255, 255, 255, .12); border-left-color: var(--m-accent-clair); color: #fff; }
.bandeau-livraison .info b { color: #fff; }
.fermeture { background: var(--m-fonce); }

/* — Carte / itinéraire — */
.carte-bloc { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.carte-visuel { background: var(--m-carte); border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); overflow: hidden; }
.carte-visuel svg { width: 100%; height: auto; display: block; }
.carte-visuel figcaption { padding: 12px 16px; font-size: .82rem; color: var(--m-doux); border-top: 1px solid var(--m-ligne); }

.adresse { background: var(--m-carte); border: 1px solid var(--m-ligne); border-radius: var(--m-rayon); padding: 22px; }
.adresse dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .93rem; }
.adresse dt { font-family: var(--m-titre); font-weight: 700; color: var(--m-fonce); }
.adresse dd { margin: 0; color: var(--m-doux); }
.adresse .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* — Pied de page (fond vert profond) — */
.pied { background: var(--m-pied); color: rgba(255, 255, 255, .78); }
.pied b { color: #fff; }
.pied a { color: var(--m-accent-clair); }
.pied a:hover { color: #fff; }
.pied__mention { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .62); }

/* — Réservé aux lecteurs d'écran — */
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* — Confirmation — */
.confirmation { border-color: var(--m-accent); }

/* — Adaptation petit écran (le maquette vit dans un iframe de 390 px) — */
@media (max-width: 760px) {
  .site__barre { flex-wrap: wrap; row-gap: 10px; }
  .nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    font-size: .86rem;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav a { white-space: nowrap; }
  .site__barre > .btn { margin-left: auto; padding: 9px 14px; font-size: .82rem; }
  .carte-bloc { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .pastille { margin-top: -18px; }
}
