/* OFQD V262 — Accueil : carte des sorties Premium.
   Portée strictement limitée à body.ofqd-home-page #ofqd-v11-pack2.
   Aucun changement du moteur photo, de Pexels, du cache, de l'anti-doublons
   ni du fonctionnement Leaflet / géolocalisation. */

body.ofqd-home-page #ofqd-v11-pack2{
  --map262-navy:#071b55;
  --map262-blue:#146bea;
  --map262-orange:#ff8a00;
  --map262-red:#ef334e;
  --map262-border:rgba(30,58,138,.12);
  --map262-shadow:0 16px 38px rgba(7,27,85,.11);
  max-width:1240px!important;
  margin:34px auto 40px!important;
  padding:0 22px!important;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif!important;
}

/* Bandeau : même identité que le reste de l'accueil, moins massif. */
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(260px,.9fr) minmax(360px,1.1fr)!important;
  align-items:center!important;
  gap:28px!important;
  min-height:96px!important;
  padding:20px 26px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 88% 20%,rgba(37,99,235,.42),transparent 34%),
    linear-gradient(135deg,#071b55 0%,#0a3475 64%,#0f58a8 100%)!important;
  box-shadow:0 18px 42px rgba(7,27,85,.17)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head::before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  right:-58px;
  top:-86px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 30px rgba(255,255,255,.035),0 0 0 62px rgba(255,255,255,.02);
  pointer-events:none;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head h2{
  position:relative!important;
  margin:0!important;
  color:#fff!important;
  font-size:clamp(25px,2.35vw,34px)!important;
  line-height:1.05!important;
  font-weight:800!important;
  letter-spacing:-.035em!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head h2::after{
  content:"";
  display:block;
  width:54px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background:linear-gradient(90deg,#ffb21d,var(--map262-orange));
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head p{
  position:relative!important;
  max-width:560px!important;
  margin:0!important;
  color:rgba(255,255,255,.86)!important;
  font-size:12px!important;
  line-height:1.55!important;
  font-weight:550!important;
}

/* Recherche commune : intégrée visuellement au module. */
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search{
  position:relative!important;
  z-index:3!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  margin:-14px 18px 16px!important;
  padding:10px!important;
  border:1px solid var(--map262-border)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 13px 28px rgba(7,27,85,.12)!important;
  backdrop-filter:blur(12px)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search input{
  width:100%!important;
  height:44px!important;
  padding:0 16px 0 42px!important;
  border:1px solid rgba(30,58,138,.14)!important;
  border-radius:12px!important;
  outline:none!important;
  background-color:#f9fbff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146bea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:14px center!important;
  background-size:17px 17px!important;
  color:var(--map262-navy)!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:600!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search input:focus{
  border-color:rgba(20,107,234,.55)!important;
  background-color:#fff!important;
  box-shadow:0 0 0 4px rgba(20,107,234,.10)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search button{
  position:relative!important;
  min-width:190px!important;
  height:44px!important;
  padding:0 44px 0 20px!important;
  border:0!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#1e63d5,#0877ff)!important;
  color:#fff!important;
  box-shadow:0 9px 18px rgba(20,107,234,.23)!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:800!important;
  cursor:pointer!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search button::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:15px;
  height:15px;
  transform:translateY(-50%);
  background:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search button:hover,
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search button:focus-visible{
  transform:translateY(-1px)!important;
  filter:saturate(1.08)!important;
  box-shadow:0 12px 24px rgba(20,107,234,.29)!important;
  outline:none!important;
}

/* Carte + panneau en direct : alignés et sans chevauchement. */
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 246px!important;
  gap:14px!important;
  align-items:stretch!important;
  margin-top:0!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map-card,
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard{
  min-width:0!important;
  border:1px solid var(--map262-border)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:var(--map262-shadow)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map-card{
  padding:13px!important;
  overflow:hidden!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-toolbar{
  margin:0 0 10px!important;
  padding:0!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  padding:0!important;
  overflow:visible!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:30px!important;
  padding:0 10px!important;
  border:1px solid rgba(30,58,138,.11)!important;
  border-radius:999px!important;
  background:#f5f8ff!important;
  color:#29416d!important;
  box-shadow:none!important;
  font-family:inherit!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:750!important;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#7b8cad;
  box-shadow:0 0 0 3px rgba(123,140,173,.10);
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="event"]::before{background:#e0ad00;box-shadow:0 0 0 3px rgba(224,173,0,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="association"]::before{background:#1266d6;box-shadow:0 0 0 3px rgba(18,102,214,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="sport"]::before{background:#159447;box-shadow:0 0 0 3px rgba(21,148,71,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="artisan"]::before{background:#f07b21;box-shadow:0 0 0 3px rgba(240,123,33,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="commerce"]::before{background:#df3347;box-shadow:0 0 0 3px rgba(223,51,71,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="commune"]::before{background:#7446c8;box-shadow:0 0 0 3px rgba(116,70,200,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="pmr"]::before{background:#0a9e9a;box-shadow:0 0 0 3px rgba(10,158,154,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button[data-v11-filter="parking"]::before{background:#53627d;box-shadow:0 0 0 3px rgba(83,98,125,.12)}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button:hover,
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button:focus-visible{
  transform:translateY(-1px)!important;
  border-color:rgba(20,107,234,.25)!important;
  background:#fff!important;
  box-shadow:0 5px 11px rgba(7,27,85,.07)!important;
  outline:none!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button.is-active{
  border-color:#ffd34d!important;
  background:linear-gradient(135deg,#ffd94f,#ffbf1f)!important;
  color:#071b55!important;
  box-shadow:0 6px 13px rgba(255,190,31,.20)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button.is-active::before{
  background:#071b55!important;
  box-shadow:0 0 0 3px rgba(7,27,85,.10)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map{
  min-height:390px!important;
  border:1px solid rgba(30,58,138,.10)!important;
  border-radius:16px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .leaflet-control-zoom{
  overflow:hidden!important;
  border:1px solid rgba(30,58,138,.12)!important;
  border-radius:11px!important;
  box-shadow:0 7px 16px rgba(7,27,85,.13)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .leaflet-control-zoom a{
  width:30px!important;
  height:30px!important;
  line-height:30px!important;
  border-color:rgba(30,58,138,.10)!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--map262-navy)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 :is(.ofqd-open-large-map-inside,.ofqd-locate-inside){
  border:1px solid rgba(30,58,138,.12)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--map262-navy)!important;
  box-shadow:0 6px 15px rgba(7,27,85,.14)!important;
  font-family:inherit!important;
  font-weight:750!important;
  backdrop-filter:blur(8px)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 :is(.ofqd-open-large-map-inside,.ofqd-locate-inside):hover,
body.ofqd-home-page #ofqd-v11-pack2 :is(.ofqd-open-large-map-inside,.ofqd-locate-inside):focus-visible{
  border-color:var(--map262-blue)!important;
  background:var(--map262-blue)!important;
  color:#fff!important;
  outline:none!important;
}

/* Panneau OFQD en direct : plus lisible et réellement intégré. */
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard{
  align-self:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  margin:0!important;
  padding:16px!important;
  background:
    linear-gradient(180deg,rgba(243,248,255,.98),rgba(255,255,255,.99))!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 0 13px!important;
  color:var(--map262-navy)!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3 .ofqd-q{
  color:var(--map262-accent)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3 .ofqd-live-title{
  display:inline!important;
  margin:0!important;
  padding:0!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3::before{
  content:"";
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V9m6 10V5m6 14v-7m4 7H2'/%3E%3C/svg%3E") center/14px 14px no-repeat,
    linear-gradient(135deg,#1e63d5,#0877ff);
  box-shadow:0 7px 14px rgba(20,107,234,.22);
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin:0 0 12px!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis span{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:54px!important;
  padding:8px 10px!important;
  border:1px solid rgba(30,58,138,.08)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 5px 12px rgba(7,27,85,.055)!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis b{
  min-width:0!important;
  color:var(--map262-red)!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:-.04em!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis small{
  min-width:0!important;
  color:#53627d!important;
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:650!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-top:auto!important;
  padding:9px 10px!important;
  border:1px solid rgba(30,58,138,.10)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:var(--map262-navy)!important;
  font-family:inherit!important;
  font-size:11px!important;
  font-weight:750!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control select{
  max-width:104px!important;
  padding:4px 26px 4px 7px!important;
  border:1px solid rgba(30,58,138,.10)!important;
  border-radius:8px!important;
  background-color:#f6f9ff!important;
  color:var(--map262-navy)!important;
  font-size:11px!important;
  font-weight:700!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-geo-status{
  min-height:16px!important;
  margin:8px 1px 0!important;
  color:#5f6f89!important;
  font-size:9px!important;
  line-height:1.35!important;
  font-weight:650!important;
}

/* Mode nuit : sans changer la carte Leaflet. */
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search,
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map-card,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map-card,
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard{
  border-color:rgba(125,184,255,.17)!important;
  background:#0a1835!important;
}
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis span,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis span,
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control{
  border-color:rgba(125,184,255,.14)!important;
  background:#0e2145!important;
}
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3,
html.ofqd-night body.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control,
body.night.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control{
  color:#f7faff!important;
}

@media(max-width:900px){
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-grid{
    grid-template-columns:1fr!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard{
    display:block!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis span{
    grid-template-columns:1fr!important;
    gap:3px!important;
    min-height:70px!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control{margin-top:0!important}
}

@media(max-width:700px){
  body.ofqd-home-page #ofqd-v11-pack2{
    margin:20px auto 26px!important;
    padding:0 10px!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head{
    min-height:0!important;
    padding:16px!important;
    border-radius:18px!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head h2{font-size:23px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head p{font-size:11px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search{display:none!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map-card{padding:8px!important;border-radius:17px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    padding:1px 1px 7px!important;
    scrollbar-width:none!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll::-webkit-scrollbar{display:none!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button{white-space:nowrap!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-map{
    min-height:310px!important;
    height:44vh!important;
    max-height:365px!important;
    border-radius:14px!important;
  }
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard{padding:13px!important;border-radius:17px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis{gap:6px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis span{padding:8px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis b{font-size:19px!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis small{font-size:9px!important}
}

@media(max-width:430px){
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis{grid-template-columns:1fr!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-kpis span{
    grid-template-columns:44px minmax(0,1fr)!important;
    min-height:48px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.ofqd-home-page #ofqd-v11-pack2 *{scroll-behavior:auto!important}
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-home-commune-search button,
  body.ofqd-home-page #ofqd-v11-pack2 .ofqd-map-filter-scroll button{transition:none!important}
}


/* OFQD V33 — France entière : aucun contrôle de rayon local. */
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-radius-control[hidden],
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-geo-status[hidden]{
  display:none!important;
}
