/* ====== ZONES UI (scopé pour éviter les conflits thème/builder) ====== */
:root{
  --ui-bg:#0F172A; --ui-card:#0B1223; --ui-border:#1E293B; --ui-text:#E6F0FF;
  --ui-muted:#99A7C0; --ui-accent:#18A957; --ui-accentH:#15924B; --ui-chip:#15203A;
  --ui-shadow:0 8px 24px rgba(0,0,0,.25); --tr:all .3s ease;
}

/* reset SCOPÉ (ne touche qu’à l’intérieur du composant) */
.zones-ui, .zones-ui * { box-sizing:border-box; }
.zones-ui :where(h1,h2,h3,h4,p,ul,li){ margin:0; padding:0; }
.zones-ui ul { list-style:none; }
.zones-ui svg { display:inline-block; max-width:none; height:auto; }

/* conteneur */
.zones-ui{
  background:var(--ui-bg);
  color:var(--ui-text);
  border-radius:18px;
  padding:24px;
  box-shadow:var(--ui-shadow);
  max-width:1200px;
  margin:0 auto;
}
.zones-ui a{ color:#fff; text-decoration:none; }

/* bandeau */
.zones-hero{
  display:grid; grid-template-columns:1fr; gap:24px; align-items:center; margin-bottom:24px;
}
@media (min-width:768px){ .zones-hero{ grid-template-columns:1fr 1fr; } }

.hero-left{ display:flex; gap:14px; align-items:flex-start; }
.hero-icon{
  background:var(--ui-chip); border:1px solid var(--ui-border); border-radius:14px;
  width:52px; height:52px; display:grid; place-items:center; flex-shrink:0;
}
.hero-icon svg{ width:26px; height:26px; fill:var(--ui-accent); }
.hero-text h2{ font-size:1.25rem; line-height:1.3; }
.hero-text p{ color:var(--ui-muted); margin-top:.2rem; }

.actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.btn-geo{
  background:var(--ui-chip); border:1px solid var(--ui-border); color:#fff;
  border-radius:10px; padding:8px 10px; cursor:pointer;
}
.btn-geo:hover, .btn-geo:focus{ border-color:var(--ui-accent); outline:none; }

.search-wrap{
  position:relative; display:flex; align-items:center;
  background:var(--ui-card); border:1px solid var(--ui-border); border-radius:12px;
  padding:8px 10px; transition:var(--tr); min-width:260px; flex:1;
}
.search-wrap:focus-within{ border-color:var(--ui-accent); box-shadow:0 0 0 2px rgba(24,169,87,.2); }
.search-ico{ width:18px; height:18px; fill:var(--ui-muted); margin-right:8px; flex:0 0 18px; }
.search-wrap input{
  flex:1; background:transparent; border:0; outline:none; color:#fff; font-size:1rem; padding:4px 0;
}

/* suggestions + notfound */
.suggest{
  background:var(--ui-card); border:1px solid var(--ui-border); border-radius:12px;
  margin-top:6px; display:none; overflow:hidden; position:absolute; width:100%; z-index:10;
  max-height:300px; overflow-y:auto;
}
.suggest button{
  display:block; width:100%; text-align:left; padding:9px 12px; background:transparent; border:0; color:#fff; cursor:pointer; transition:var(--tr);
}
.suggest button:hover, .suggest button:focus{ background:#0f1a33; outline:none; }
.notfound{ margin-top:6px; color:var(--ui-muted); padding:8px; }
.notfound .link-devis{ color:var(--ui-accent); text-decoration:underline; }

/* cartes régions */
.zones-accordeon{ display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:640px){ .zones-accordeon{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1024px){ .zones-accordeon{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

.region-card{
  background:var(--ui-card); border:1px solid var(--ui-border); border-radius:16px; overflow:hidden; transition:var(--tr);
}

/* entête région */
.region-toggle{
  width:100%; text-align:left; padding:14px 12px; background:transparent; border:0; color:#fff;
  display:flex; justify-content:space-between; align-items:center; cursor:pointer;
}
.region-toggle:hover, .region-toggle:focus{ background:rgba(255,255,255,.05); outline:none; }
.region-toggle .title{ display:flex; gap:10px; align-items:center; font-weight:800; line-height:1.2; }
.region-toggle .title svg{ width:18px; height:18px; }
.region-toggle .chev{ width:18px; height:18px; transform:rotate(0); transition:transform .3s ease; }
.region-toggle[aria-expanded="true"] .chev{ transform:rotate(180deg); }

/* panneau + liste villes */
.region-panel{
  max-height:0; overflow:hidden; transition:max-height .5s ease; border-top:1px solid transparent;
}
.region-panel[aria-hidden="false"]{ max-height:540px; border-top-color:var(--ui-border); }

.city-list{ display:grid; gap:6px; padding:8px 10px 14px; }
.city-list li a{
  display:block; padding:10px 12px; border-radius:10px; color:#E6F0FF; transition:var(--tr);
}
.city-list li a:hover, .city-list li a:focus{ background:#0f1a33; outline:none; }
.city-list li.is-hit a{ background:#13314e; box-shadow:inset 0 0 0 1px #204868; }

/* style CTA “ville” (optionnel) */
.ed-cta-city{ background:#18A957; color:#fff; font-weight:600; }
.ed-cta-city:hover{ background:#15924B; }

/* spinner */
.loading-spinner{
  display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.3);
  border-radius:50%; border-top-color:var(--ui-accent); animation:spin 1s linear infinite;
  margin-right:8px; vertical-align:middle;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ===== THEME CLAIR COHÉRENT + CTA VISIBLES ===== */

/* conteneur */
.zones-ui{
  background:#fff;
  color:#0f172a;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(15,23,42,.06);
}

/* bandeau léger avec teinte bleutée très discrète */
.zones-hero{
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom:1px solid #e5e7eb;
  padding:16px 16px 20px;
  border-top-left-radius:16px;
  border-top-right-radius:16px;
}

/* recherche */
.search-wrap{ background:#fff; border-color:#dbe2ea; }
.search-wrap:focus-within{ border-color:#1d4ed8; box-shadow:0 0 0 2px rgba(29,78,216,.15); }
.search-ico{ fill:#64748b; }
#zones-search::placeholder{ color:#64748b; }

/* bouton "Localiser ma ville" — bouton primaire qui se voit */
.btn-primary{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#2563eb; color:#fff; border:0;
  padding:10px 14px; border-radius:10px; font-weight:700; cursor:pointer;
  box-shadow:0 6px 16px rgba(37, 99, 235, .25);
  transition:transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover{ background:#1e4fd1; box-shadow:0 8px 18px rgba(37, 99, 235, .35); }
.btn-primary:active{ transform:translateY(1px); }
.btn-ico{ font-size:1.05em; line-height:1; }

/* tuiles régions */
.region-card{ background:#fff; border-color:#e5e7eb; }
.region-toggle:hover, .region-toggle:focus{ background:#f8fafc; }

/* liens de villes (CTA verts) */
.city-list li a.ed-cta-city{
  background:#18A957; color:#fff; font-weight:700;
  padding:10px 12px; border-radius:10px; display:block; text-decoration:none;
}
.city-list li a.ed-cta-city:hover{ background:#15924B; }

/* message "non trouvé" */
.notfound p{ margin:.35rem 0; color:#334155; }
.notfound a{ color:#2563eb; text-decoration:underline; }
.notfound a:hover{ text-decoration:none; }

/* “ville surlignée” suite à recherche/géoloc */
.city-list li.is-hit a{ background:#e8f5ee; color:#0f172a; box-shadow:inset 0 0 0 1px #c1e8d2; }

/* === PATCH UI/UX clair & cohérent charte === */

/* Titres régions lisibles sur fond clair */
.region-toggle,
.region-toggle .title,
.region-toggle .title *{
  color:#0f172a !important;
}
.region-card{ background:#fff; border-color:#e5e7eb; }
.region-toggle:hover, .region-toggle:focus{ background:#f8fafc; }

/* Titre/texte dans chaque ville */
.city-title{
  margin: 8px 0 6px;
  font-weight: 800;
  font-size: 1.05rem;
  color:#0f172a;
}
.ed-city-text{
  margin: 4px 0 10px;
  color:#334155;
  line-height:1.45;
  font-size:.98rem;
}

/* CTA VILLE — vert charte */
.ed-cta-city{
  display:inline-block;
  background:#18A957;       /* vert charte */
  color:#fff;
  font-weight:700;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
}
.ed-cta-city:hover{ background:#15924B; }

/* Quand une ville est "ouverte" (géoloc/recherche) => que ça RESSORTE, pas vert pâle */
.city-list li.is-hit a{
  background:#15924B;   /* plus foncé que les autres */
  color:#fff;
  box-shadow:0 0 0 2px rgba(21,146,75,.15);
}

/* Bouton "Localiser ma ville" = secondaire mais bien visible (vert charte + icône) */
.btn-primary{
  display:inline-flex; align-items:center; gap:.45rem;
  background:#18A957; color:#fff; border:0;
  padding:10px 16px; border-radius:10px; font-weight:700; cursor:pointer;
  box-shadow:0 6px 16px rgba(24,169,87,.28);
  transition:transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover{ background:#15924B; box-shadow:0 8px 18px rgba(24,169,87,.38); }
.btn-primary:active{ transform:translateY(1px); }
.btn-ico{ font-size:1.15em; line-height:1; }

/* Bandeau clair avec teinte bleutée TRÈS légère (cohérent, non agressif) */
.zones-hero{
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom:1px solid #e5e7eb;
  border-top-left-radius:16px; border-top-right-radius:16px;
}

/* Champ de recherche : placeholder plus incitatif + focus accessible */
.search-wrap{ background:#fff; border-color:#dbe2ea; }
.search-wrap:focus-within{ border-color:#1d4ed8; box-shadow:0 0 0 2px rgba(29,78,216,.15); }
#zones-search::placeholder{ color:#64748b; }

/* Message "ville non trouvée" rassurant */
.notfound p{ margin:.35rem 0; color:#334155; }
.notfound a{ color:#2563eb; text-decoration:underline; }
.notfound a:hover{ text-decoration:none; }

/* Suggestions sous la recherche (look clean + UX) */
.suggest{
  position:absolute;
  top:100%;
  left:0; right:0;
  background:#0f172a;           /* fond sombre élégant */
  color:#fff;
  border-radius:12px;
  box-shadow:0 14px 32px rgba(0,0,0,.25);
  margin-top:6px;
  overflow:hidden;
  z-index: 50;
  max-height: 340px;
  overflow-y: auto;
}
.suggest .sug-item{
  display:block;
  padding:12px 14px;
  text-decoration:none;
  color:#fff;
  font-weight:600;
}
.suggest .sug-item:hover,
.suggest .sug-item:focus{
  background:#12223d;
  outline:0;
}

/* s'assure que le dropdown s'aligne sous la recherche */
.hero-right.ed-relative { position: relative; }

.suggest{
  position:absolute; top:100%; left:0; right:0;
  background:#0f172a; color:#fff; border-radius:12px;
  box-shadow:0 14px 32px rgba(0,0,0,.25);
  margin-top:6px; overflow:hidden; z-index:50;
  max-height:340px; overflow-y:auto; display:none;
}
.suggest .sug-item{
  display:block; padding:12px 14px; text-decoration:none;
  color:#fff; font-weight:600;
}
.suggest .sug-item:hover,.suggest .sug-item:focus{ background:#12223d; outline:0; }