/* =========================================================
   MARCHÉS DU GOLFE DE SAINT-TROPEZ — feuille de style
   (à coller dans Apparence ▸ Personnaliser ▸ CSS additionnel)
   Tu n'as normalement JAMAIS besoin de toucher ce fichier.
   Pour changer les couleurs : modifie seulement les variables
   ci-dessous (le bloc « :root » de .gstm-wrap).
   ========================================================= */
.gstm-wrap{
  /* --- Palette « bleu Méditerranée » du Golfe --- */
  --bleu-fonce:#0e3a53;
  --bleu-mid:#1c6690;
  --bleu-clair:#bfe0ef;
  --bleu-bg:#eef7fb;
  --papier:#f9fbfc;
  --bord:#e2e8ec;
  --texte:#20303a;
  --gris:#5f6f78;
  --ambre:#e08a1e;
  --ambre-soft:#fdeccf;
  --ambre-badge:#f6ead1;
  --ambre-badge-bord:#e7d2a3;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

  font-family:Georgia,'Times New Roman',serif;
  max-width:900px;
  margin:0 auto;
  padding:1.2rem 0 0.5rem;
  color:var(--texte);
}

.gstm-hero{
  border-radius:14px;
  overflow:hidden;
  background-color:var(--bleu-fonce);
  margin:0 0 1.4rem;
}
.gstm-hero img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
  opacity:.55;
}
.gstm-hero-inner{
  padding:1.4rem 1.6rem 1.5rem;
  position:relative;
}
.gstm-eyebrow{
  font-family:var(--sans);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--bleu-clair);
  margin:0 0 6px;
}
.gstm-hero h2{
  font-size:1.55rem;
  font-weight:400;
  color:#f4f8fb;
  line-height:1.25;
  margin:0 0 8px;
}
.gstm-hero-text{
  font-family:var(--sans);
  font-size:12.5px;
  line-height:1.6;
  color:#dce8f0;
  margin:0;
  max-width:60ch;
}

.gstm-today-banner{
  font-family:var(--sans);
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13.5px;
  line-height:1.4;
  border-radius:10px;
  padding:12px 16px;
  margin:0 0 1.5rem;
}
.gstm-today-banner .gstm-today-ico{
  flex-shrink:0;
  font-size:18px;
  line-height:1;
}
.gstm-today-banner strong{ font-weight:700; }
.gstm-today-banner.is-market{
  background:var(--ambre-soft);
  border:1px solid var(--ambre-badge-bord);
  color:#6b3d0d;
}
.gstm-today-banner.is-market strong{ color:var(--ambre); }
.gstm-today-banner.is-empty{
  background:var(--papier);
  border:1px solid var(--bord);
  color:var(--gris);
}
.gstm-today-banner.is-empty strong{ color:var(--bleu-fonce); }

.gstm-section-title{
  font-weight:400;
  font-size:1.15rem;
  color:var(--bleu-fonce);
  margin:1.8rem 0 10px;
}
.gstm-section-title:first-of-type{ margin-top:0; }

.gstm-legende{
  font-family:var(--sans);
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  font-size:12px;
  color:var(--gris);
  margin:0 0 12px;
}
.gstm-legende span{ display:inline-flex; align-items:center; gap:5px; }

.gstm-week{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 1.6rem;
}
.gstm-day{
  flex:0 1 calc(25% - 8px);
  min-width:0;
  background:var(--papier);
  border:1px solid var(--bord);
  border-radius:10px;
  padding:10px 8px 12px;
  min-height:104px;
  position:relative;
  transition:transform .15s ease, box-shadow .15s ease;
}
.gstm-day-label{
  font-family:var(--sans);
  font-size:12px;
  font-weight:700;
  text-align:center;
  color:#fff;
  background:var(--bleu-mid);
  border-radius:6px;
  padding:5px 0;
  margin:0 0 8px;
}
.gstm-chip{
  display:block;
  font-family:var(--sans);
  font-size:11.5px;
  line-height:1.4;
  text-align:center;
  background:#fff;
  border:1px solid var(--bord);
  border-radius:7px;
  padding:6px 4px;
  margin:0 0 6px;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.gstm-chip:hover,
.gstm-chip:focus-visible{
  border-color:var(--bleu-mid);
  box-shadow:0 3px 9px rgba(14,58,83,.14);
  transform:translateY(-1px);
  outline:none;
}
.gstm-chip:last-child{ margin-bottom:0; }
.gstm-chip strong{ display:block; color:var(--bleu-fonce); font-size:11.5px; }
.gstm-chip span{ display:block; color:var(--gris); margin-top:2px; }
.gstm-day-empty{
  font-family:var(--sans);
  font-size:11px;
  color:#b3bcc2;
  text-align:center;
  padding-top:16px;
}

.gstm-day.is-today{
  border-color:var(--ambre);
  box-shadow:0 0 0 2px var(--ambre), 0 6px 16px rgba(224,138,30,.18);
  transform:translateY(-2px);
}
.gstm-day.is-today .gstm-day-label{ background:var(--ambre); }
.gstm-day.is-today::after{
  content:"Aujourd'hui";
  position:absolute;
  top:-9px;
  left:50%;
  transform:translateX(-50%);
  font-family:var(--sans);
  font-size:9px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#fff;
  background:var(--ambre);
  border-radius:20px;
  padding:2px 8px;
  white-space:nowrap;
  box-shadow:0 2px 5px rgba(224,138,30,.3);
}

.gstm-markets{
  background:#f5f8fa;
  border:1px solid var(--bord);
  border-radius:14px;
  padding:20px 22px 14px;
  margin:0 0 1.2rem;
}
.gstm-markets-title{ margin-top:0; }
.gstm-markets-season{
  background:#faf6ee;
  border-color:#efe3cf;
}
.gstm-season-intro{
  font-family:var(--sans);
  font-size:12.5px;
  line-height:1.55;
  color:var(--gris);
  margin:0 0 14px;
}
.gstm-badge-season{
  background:#ffe7c2;
  border-color:#f0c987;
  color:#8a5410;
}
.gstm-market-season{
  border-left:4px solid #e0a63c;
}
.gstm-day-season{
  background:#faf6ee;
  border-color:#efe3cf;
}
.gstm-day-season .gstm-day-label{ background:#d98d29; }
.gstm-day-season .gstm-chip{ border-color:#f0c987; }
.gstm-day-season .gstm-chip:hover{ border-color:#c77f17; }

.gstm-day-quotidien{
  background:#eef5f9;
  border-color:#cfe0ec;
}
.gstm-day-quotidien .gstm-day-label{ background:#2f6f95; font-size:10.5px; }
.gstm-day-quotidien .gstm-chip{ border-color:#bcd7e8; }
.gstm-day-quotidien .gstm-chip:hover{ border-color:#2f6f95; }

.gstm-market{
  scroll-margin-top:90px;
  border:1px solid var(--bord);
  border-radius:10px;
  padding:14px 16px;
  margin-bottom:10px;
  background:#fff;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gstm-market-home{
  border:1.5px solid var(--bleu-mid);
  background:#e7f2f8;
}
.gstm-market[data-href]{ cursor:pointer; }
.gstm-market[data-href]:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(14,58,83,.12);
}
.gstm-market-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:4px;
}
.gstm-market h4{
  font-weight:400;
  font-size:1.08rem;
  margin:0;
  color:var(--bleu-fonce);
}
.gstm-badge{
  font-family:var(--sans);
  font-size:11px;
  font-weight:600;
  color:var(--bleu-fonce);
  background:var(--ambre-badge);
  border:1px solid var(--ambre-badge-bord);
  border-radius:12px;
  padding:3px 10px;
  white-space:nowrap;
}
.gstm-badge-home{
  font-family:var(--sans);
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#fff;
  background:var(--bleu-mid);
  border-radius:20px;
  padding:3px 10px;
  white-space:nowrap;
}
.gstm-meta{
  font-family:var(--sans);
  font-size:12px;
  color:var(--gris);
  margin:2px 0 8px;
}
.gstm-desc{
  font-family:var(--sans);
  font-size:12.5px;
  line-height:1.55;
  color:var(--texte);
  margin:0;
}
.gstm-note{
  font-family:var(--sans);
  font-size:11.5px;
  font-style:italic;
  color:var(--gris);
  margin:6px 0 0;
}
.gstm-link{
  display:inline-block;
  margin-top:8px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  color:var(--bleu-fonce);
  text-decoration:none;
  border-bottom:1px solid var(--bleu-mid);
}
.gstm-desc + .gstm-actions{ margin-top:10px; }

.gstm-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.gstm-actions .gstm-link{ margin-top:0; }
.gstm-map{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  color:var(--bleu-fonce);
  text-decoration:none;
  background:#fff;
  border:1px solid var(--bord);
  border-radius:20px;
  padding:5px 12px 5px 9px;
  transition:border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.gstm-map:hover,
.gstm-map:focus-visible{
  border-color:var(--bleu-mid);
  background:var(--bleu-bg);
  box-shadow:0 2px 8px rgba(14,58,83,.10);
  outline:none;
}
.gstm-map svg{
  width:14px;
  height:14px;
  color:#d4442f;
  flex-shrink:0;
}

/* --- Marché ouvert aujourd'hui : bandeau « OUVERT » en diagonale --- */
.gstm-market.is-open{
  position:relative;
  overflow:hidden;
  border-left:5px solid #2e9c4e;
  box-shadow:0 5px 16px rgba(46,156,78,.18);
}
.gstm-market.is-open:not(.gstm-market-home):not(.gstm-market-season){
  background:#f3faf0;
}
.gstm-market.is-open::after{
  content:"OUVERT";
  position:absolute;
  top:14px;
  right:-34px;
  width:130px;
  transform:rotate(45deg);
  background:#2e9c4e;
  color:#fff;
  font-family:var(--sans);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-align:center;
  padding:5px 0;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  z-index:2;
}
.gstm-market.is-open .gstm-market-head{ padding-right:26px; }

/* --- Étiquette de récurrence (mensuel / saisonnier) --- */
.gstm-market[data-freq="monthly"] .gstm-market-head::after,
.gstm-market[data-freq="season"] .gstm-market-head::after{
  align-self:center;
  font-family:var(--sans);
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  border-radius:20px;
  padding:3px 9px;
  white-space:nowrap;
}
.gstm-market[data-freq="monthly"] .gstm-market-head::after{
  content:"1×/mois";
  color:#8a4a10;
  background:#ffe1c2;
  border:1px solid #f0c088;
}
.gstm-market[data-freq="season"] .gstm-market-head::after{
  content:"Saison";
  color:#7a5410;
  background:#ffeecb;
  border:1px solid #eecf8f;
}

/* --- Marché saisonnier périmé : fiche grisée, pastille masquée --- */
.gstm-chip.is-expired{ display:none; }
.gstm-market.is-expired{
  opacity:.6;
  filter:grayscale(.45);
  border-left-color:#cfcfc8;
  box-shadow:none;
}
.gstm-market.is-expired:hover{ transform:none; box-shadow:none; }
.gstm-market.is-expired[data-freq="season"] .gstm-market-head::after{
  content:"Édition terminée";
  color:#7a7a72;
  background:#ececea;
  border:1px solid #dcdcd6;
}
.gstm-market.is-expired .gstm-badge{
  background:#ececea;
  border-color:#dcdcd6;
  color:#8a8a82;
}
/* Option config "saisonPerimes":"masquer" : cacher complètement les fiches périmées */
.gstm-masquer-perimes .gstm-market.is-expired{ display:none; }

.gstm-flash{ animation:gstm-flash 1.2s ease; }
@keyframes gstm-flash{
  0%   { box-shadow:0 0 0 3px #2e9c4e; }
  100% { box-shadow:0 0 0 0 rgba(46,156,78,0); }
}

.gstm-footnote{
  font-family:var(--sans);
  font-size:11px;
  color:#9aa4ab;
  margin:1.2rem 0 .4rem;
}

/* --- Pastille « OUVERT » dans le calendrier --- */
.gstm-chip.is-open{
  position:relative;
  border:2px solid #2e9c4e !important;
  background:#eaf6e4;
  box-shadow:0 2px 8px rgba(46,156,78,.18) !important;
}
.gstm-chip.is-open strong{ color:#1f6f34; }
.gstm-open-tag{
  display:block;
  margin-top:4px;
  font-family:var(--sans);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.08em;
  color:#fff !important;
  background:#2e9c4e;
  border-radius:20px;
  padding:1px 0;
  text-align:center;
}

@media (max-width:760px){
  .gstm-day{ flex-basis:calc(33.333% - 7px); }
}

@media (max-width:560px){
  .gstm-markets{ padding:16px 14px 10px; }
  .gstm-market{ padding:13px 14px; }
  .gstm-week{ flex-direction:column; gap:10px; }
  .gstm-day{ flex:1 1 100%; width:100%; min-height:0; padding:12px 12px 14px; }
  .gstm-day-label{ font-size:13px; padding:6px 0; margin:0 0 10px; }
  .gstm-chip{ display:block; margin:0 0 8px; padding:9px 10px; }
  .gstm-chip:last-child{ margin-bottom:0; }
  .gstm-chip strong{ display:block; font-size:13px; }
  .gstm-chip span{ display:block; margin-top:2px; font-size:11.5px; color:var(--gris); }
  .gstm-day-empty{ padding:6px 0; }
  .gstm-today-banner{ font-size:13px; padding:11px 14px; }
}

@media (prefers-reduced-motion:reduce){
  .gstm-day, .gstm-market, .gstm-chip{ transition:none; }
  .gstm-day.is-today{ transform:none; }
  .gstm-flash{ animation:none; }
}
