/* OPM Carte Zone — bloc « zone d'intervention » avec carte SVG (v2, contrastée) */

/* Le bloc vit aussi sur les pages hors design v2 (contact, notre histoire) :
   on y redéfinit les variables, le titre et le bouton pour garder le même look. */
.opm-zone-sec{
  --mv-acc:#C96A00;
  --mv-acc-2:#A85700;
  --mv-bleu:#1257AD;
  --mv-filet:#E7DDD0;
}
.opm-zone-sec .mv-eyebrow{
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
  color:#C96A00;
  margin:0 0 10px;
}
.opm-zone-sec .mv-tete h2{
  font-family:'Bricolage Grotesque',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-weight:800;
  font-size:clamp(28px,3.4vw,48px);
  line-height:1.05;
  letter-spacing:-.02em;
  margin:10px 0 18px;
  color:#0D1218;
}
.opm-zone-sec .mv-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:17px 32px;
  border-radius:999px;
  background:#C96A00;
  color:#FFFFFF !important;
  font-weight:800;
  font-size:16px;
  line-height:1.2;
  text-decoration:none;
}
.opm-zone-sec .mv-cta:hover,
.opm-zone-sec .mv-cta:focus{background:#A85700}

/* Les deux colonnes finissent à la même hauteur : le texte se cale sur
   la carte, titre en haut, bouton en bas. */
.opm-zone{
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:clamp(26px,3.4vw,48px);
  align-items:stretch;
}
/* La carte reste lisible sans écraser la section. */
.opm-zone-carte{max-width:500px}
.opm-zone-carte{display:flex;flex-direction:column;justify-content:center}
.opm-zone-col{display:flex;flex-direction:column;justify-content:center}
/* Quand il y a les communes, le texte se cale sur la carte : titre en haut,
   bouton en bas, mêmes bords que le panneau de gauche. */
.opm-zone-col:has(.opm-zone-villes){justify-content:space-between}

.opm-zone-col .opm-zone-villes{margin-top:16px}

/* Le cadre est un panneau de carte, légèrement teinté : il se remplit
   quand la colonne de texte est plus haute, sans laisser de blanc vide. */
.opm-zone-carte{
  background:linear-gradient(180deg,#FCFCFB 0%,#F4F4F2 100%);
  border:1px solid #E3E3DF;
  border-radius:24px;
  padding:clamp(8px,1.4vw,16px);
  box-shadow:0 26px 60px -34px rgba(11,46,90,.55), 0 2px 6px rgba(11,46,90,.06);
}

.opm-zone-svg{
  display:block;
  width:100%;
  height:auto;
  flex:1 1 auto;
  min-height:0;
  font-family:'Hanken Grotesk',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

/* Légende de la carte : elle occupe le bas du panneau et dit
   ce que valent les points et le cercle. */
.opm-zone-legende{
  display:flex;
  flex-wrap:wrap;
  gap:6px 22px;
  margin:14px 0 6px;
  padding:0 8px;
  list-style:none;
}
.opm-zone-legende li{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:.86rem;
  color:#5A6672;
}
.opm-zone-pt{width:11px;height:11px;border-radius:50%;background:#E07404;border:2px solid #FFFFFF;box-shadow:0 0 0 1px rgba(11,46,90,.25)}
.opm-zone-tr{width:22px;height:0;border-top:3px dashed #0E4585}
.opm-zone-dep{width:13px;height:13px;border-radius:50%;background:#FFFFFF;border:3px solid #0E4585}

.opm-zone-col>p:first-child{margin-top:0}
.opm-zone-col .mv-tete{margin-bottom:18px}
.opm-zone-col .mv-tete h2{margin-top:6px}


.opm-zone-groupe{
  margin:18px 0 9px;
  font-weight:700;
  color:#0D1218;
}
.opm-zone-col>.opm-zone-groupe:first-child{margin-top:0}

.opm-zone-villes{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.opm-zone-villes li{margin:0;padding:0}
.opm-zone-villes li>span,
.opm-zone-villes li>a{
  display:inline-block;
  padding:6px 13px;
  font-size:.9rem;
  border:1px solid #DCE5F0;
  border-radius:999px;
  background:#FFFFFF;
  color:#1B2229;
  font-size:.95rem;
  line-height:1.2;
  text-decoration:none;
}
/* Les communes qui ont leur page portent une flèche : on voit
   tout de suite lesquelles se cliquent. */
.opm-zone-villes li>a{
  color:#0E4585;
  font-weight:700;
  border-color:#B9D0EA;
}
.opm-zone-villes li>a::after{
  content:"\2192";
  display:inline-block;
  margin-left:8px;
  transition:transform .16s ease;
}
.opm-zone-villes li>a:hover,
.opm-zone-villes li>a:focus{
  background:#0E4585;
  border-color:#0E4585;
  color:#FFFFFF;
}
.opm-zone-villes li>a:hover::after,
.opm-zone-villes li>a:focus::after{transform:translateX(3px)}

.opm-zone-plus{
  margin:14px 0 0;
  padding-left:14px;
  border-left:3px solid #C25E06;
  font-size:.96rem;
  line-height:1.55;
}
.opm-zone-note{
  margin:16px 0 0;
  color:#5A6672;
  font-size:.96rem;
}
.opm-zone-note a{color:#0E4585;font-weight:700}

/* Le bouton garde sa largeur de bouton : dans une colonne en flex,
   il s'étirait sur toute la largeur. */
.opm-zone-col .mv-cta{
  margin-top:20px;
  align-self:flex-start;
  width:auto;
}

/* ---------- Trajet depuis notre adresse ---------- */
.opm-trajet{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(26px,3.4vw,48px);
  align-items:stretch;
}
.opm-trajet-carte{display:flex;flex-direction:column;justify-content:center}
.opm-trajet-col{justify-content:space-between}
.opm-trajet-carte{
  background:linear-gradient(180deg,#FCFCFB 0%,#F4F4F2 100%);
  border:1px solid #E3E3DF;
  border-radius:24px;
  padding:clamp(10px,1.4vw,18px);
  box-shadow:0 26px 60px -34px rgba(11,46,90,.5);
}
.opm-trajet-svg{display:block;width:100%;height:auto;font-family:'Hanken Grotesk',system-ui,sans-serif}
.opm-trajet-col{display:flex;flex-direction:column}
.opm-trajet-chiffres{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px 14px;
  margin:0 0 14px;
}
.opm-trajet-chiffres b{
  font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:clamp(34px,3.4vw,46px);
  line-height:1;
  color:var(--sec-lien,#0E4585);
}
.opm-trajet-chiffres span{font-size:1rem;color:var(--sec-faible,#5A6672)}
.opm-trajet-chiffres span strong{color:var(--sec-titre,#0D1218)}
.opm-trajet-liens{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 0;
  padding:0;
  list-style:none;
}
.opm-trajet-liens li{margin:0}
.opm-trajet-liens a{
  display:inline-block;
  padding:8px 15px;
  border:1px solid #B9D0EA;
  border-radius:999px;
  background:#FFFFFF;
  color:#0E4585;
  font-weight:700;
  font-size:.95rem;
  text-decoration:none;
}
.opm-trajet-liens a::after{content:" \2197";font-weight:800}
.opm-trajet-liens a:hover,
.opm-trajet-liens a:focus{background:#0E4585;border-color:#0E4585;color:#FFFFFF}
.opm-trajet-col .mv-cta{align-self:flex-start;width:auto;margin-top:22px}

@media (max-width:900px){
  .opm-zone{grid-template-columns:1fr;gap:28px}
  .opm-zone-carte{order:-1}
  .opm-trajet{grid-template-columns:1fr;gap:26px}
  .opm-trajet-carte{order:-1}
}

/* Sur petit écran la carte est deux fois plus petite : on grossit les noms
   de villes et on retire les libellés décoratifs des rivières. */
@media (max-width:640px){
  .opm-zone-svg .opm-carte-villes text{font-size:21px}
  .opm-zone-svg .opm-carte-eau{display:none}
  .opm-zone-svg .opm-carte-metro{font-size:17px}
  .opm-zone-svg .opm-carte-lyon{font-size:26px}
}
