/*
 * OFQD V256 — Accueil Premium : icônes officielles et Q orange
 * Couche visuelle limitée à body.ofqd-home-page.
 * Aucun changement du moteur d'images, de Pexels, du cache ou de l'anti-doublons.
 */
body.ofqd-home-page{
  --home-ink:#0d1b2a;
  --home-navy:#071b55;
  --home-blue:#1e3a8a;
  --home-blue-live:#2563eb;
  --home-orange:#ff8a00;
  --home-red:#ff3d3d;
  --home-line:rgba(30,58,138,.12);
  --home-shadow-soft:0 8px 22px rgba(7,27,85,.085);
  --home-shadow-raised:0 15px 34px rgba(7,27,85,.14);
}

/* Q orange officiel : même teinte dans le bandeau et dans le hero. */
body.ofqd-home-page .ofqd-v22-name em,
body.ofqd-home-page .ofqd-hero-v24-title .ofqd-q-orange{
  color:var(--home-orange)!important;
  text-shadow:0 2px 12px rgba(255,138,0,.20)!important;
}
body.ofqd-home-page .ofqd-v22-name em{
  position:relative;
  display:inline-block;
  transform:translateY(-.01em);
}
body.ofqd-home-page .ofqd-brand-question,
body.ofqd-home-page .ofqd-hero-v24-title .question{
  color:var(--home-red)!important;
  text-shadow:none!important;
}

/* Hero : conserver la composition validée, avec une finition plus nette. */
body.ofqd-home-page .ofqd-hero-clean-v24{
  border-bottom:1px solid rgba(30,58,138,.09)!important;
  box-shadow:0 10px 30px rgba(7,27,85,.045)!important;
}
body.ofqd-home-page .ofqd-hero-v24-panorama-soft{
  background:linear-gradient(90deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.70) 42%,rgba(255,255,255,.34) 70%,rgba(255,255,255,.13) 100%)!important;
}
body.ofqd-home-page .ofqd-hero-v24-title h1{
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif!important;
  color:var(--home-navy)!important;
  font-weight:800!important;
  letter-spacing:-.052em!important;
}
body.ofqd-home-page .ofqd-hero-v24-title p{
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif!important;
  color:#172d61!important;
  font-weight:700!important;
  letter-spacing:-.018em!important;
}
body.ofqd-home-page .ofqd-hero-v24-dash{
  height:4px!important;
  background:linear-gradient(90deg,#ffc857,var(--home-orange))!important;
  box-shadow:0 3px 10px rgba(255,138,0,.18)!important;
}

/* Barre de recherche : uniquement des SVG fins, aucun emoji ni icône dessinée en CSS. */
body.ofqd-home-page .ofqd-hero-v24-search{
  grid-template-columns:24px minmax(150px,1fr) auto 46px!important;
  gap:12px!important;
  min-height:60px!important;
  padding:7px 8px 7px 19px!important;
  border-radius:20px!important;
  border:1px solid rgba(30,58,138,.14)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 16px 36px rgba(7,27,85,.13)!important;
}
body.ofqd-home-page .ofqd-hero-v24-search-icon{
  width:24px;height:24px;
  display:grid;place-items:center;
  color:var(--home-navy);
  opacity:.9;
}
body.ofqd-home-page .ofqd-hero-v24-search-icon svg,
body.ofqd-home-page .ofqd-hero-v24-around svg,
body.ofqd-home-page .ofqd-hero-v24-submit svg{
  display:block;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke;
}
body.ofqd-home-page .ofqd-hero-v24-search-icon svg{width:22px;height:22px}
body.ofqd-home-page .ofqd-hero-v24-search .search-ico{display:none!important}
body.ofqd-home-page .ofqd-hero-v24-search input{
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:15px!important;
  font-weight:600!important;
  color:var(--home-ink)!important;
}
body.ofqd-home-page .ofqd-hero-v24-search input::placeholder{
  color:#6c7890!important;
  font-weight:500!important;
}
body.ofqd-home-page .ofqd-hero-v24-around{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:42px!important;
  padding:0 12px!important;
  color:var(--home-navy)!important;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  border-radius:12px!important;
  transition:background .18s ease,color .18s ease,transform .18s ease!important;
}
body.ofqd-home-page .ofqd-hero-v24-around::before{content:none!important;display:none!important}
body.ofqd-home-page .ofqd-hero-v24-around svg{width:19px;height:19px;color:var(--home-blue-live)}
body.ofqd-home-page .ofqd-hero-v24-around:hover,
body.ofqd-home-page .ofqd-hero-v24-around:focus-visible{
  background:rgba(37,99,235,.08)!important;
  color:var(--home-blue)!important;
  transform:translateY(-1px)!important;
}
body.ofqd-home-page .ofqd-hero-v24-submit{
  width:46px!important;height:46px!important;min-width:46px!important;
  display:grid!important;place-items:center!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,var(--home-blue-live),#0877ff)!important;
  box-shadow:0 9px 20px rgba(37,99,235,.28)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
}
body.ofqd-home-page .ofqd-hero-v24-submit::before,
body.ofqd-home-page .ofqd-hero-v24-submit::after{content:none!important;display:none!important}
body.ofqd-home-page .ofqd-hero-v24-submit svg{width:22px;height:22px;color:#fff}
body.ofqd-home-page .ofqd-hero-v24-submit:hover,
body.ofqd-home-page .ofqd-hero-v24-submit:focus-visible{
  transform:translateY(-1px) scale(1.02)!important;
  box-shadow:0 13px 26px rgba(37,99,235,.36)!important;
  filter:saturate(1.06)!important;
}

/* Univers : géométrie unique des pictogrammes et cartes plus propres. */
body.ofqd-home-page .ofqd-home-cats-v24{
  gap:12px!important;
  padding-top:14px!important;
  padding-bottom:16px!important;
}
body.ofqd-home-page .ofqd-cat-v24{
  min-height:78px!important;
  gap:12px!important;
  padding:12px 13px!important;
  border-radius:16px!important;
  border:1px solid var(--home-line)!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:var(--home-shadow-soft)!important;
  overflow:hidden!important;
}
body.ofqd-home-page .ofqd-cat-v24::after{
  content:"";
  position:absolute;
  inset:auto 15px 0 15px;
  height:2px;
  border-radius:999px 999px 0 0;
  background:linear-gradient(90deg,transparent,rgba(255,138,0,.62),transparent);
  opacity:0;
  transform:scaleX(.45);
  transition:opacity .18s ease,transform .18s ease;
}
body.ofqd-home-page .ofqd-cat-v24{position:relative}
body.ofqd-home-page .ofqd-cat-v24:hover,
body.ofqd-home-page .ofqd-cat-v24:focus-visible{
  transform:translateY(-2px)!important;
  border-color:rgba(37,99,235,.22)!important;
  box-shadow:var(--home-shadow-raised)!important;
}
body.ofqd-home-page .ofqd-cat-v24:hover::after,
body.ofqd-home-page .ofqd-cat-v24:focus-visible::after{opacity:1;transform:scaleX(1)}
body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-icon{
  width:42px!important;height:42px!important;min-width:42px!important;
  border-radius:13px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.40),0 7px 16px rgba(7,27,85,.12)!important;
}
body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-icon svg{
  width:23px!important;height:23px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke;
}
body.ofqd-home-page .ofqd-cat-v24 strong{
  margin-bottom:2px!important;
  color:var(--home-navy)!important;
  font-size:14px!important;
  font-weight:800!important;
  letter-spacing:-.018em!important;
}
body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-text{
  color:#52617a!important;
  font-size:11.5px!important;
  line-height:1.28!important;
  font-weight:600!important;
}

/* Autres pictogrammes de l'accueil : une seule épaisseur de trait. */
body.ofqd-home-page :where(
  .ofqd-discovery-card__icon,
  .ofqd-envie-card__icon,
  .ofqd-smart-discovery-icon,
  .ofqd-home-pro-controls,
  .ofqd-v11p2
) svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
body.ofqd-home-page .ofqd-discovery-card__icon,
body.ofqd-home-page .ofqd-envie-card__icon,
body.ofqd-home-page .ofqd-smart-discovery-icon{
  border-radius:13px!important;
}
body.ofqd-home-page .ofqd-envie-card__arrow{
  font-family:"Poppins",system-ui,sans-serif!important;
  font-size:22px!important;
  font-weight:500!important;
}

/* Liens d'action : flèche discrète et cohérente. */
body.ofqd-home-page :where(.ofqd-envies__all,.ofqd-all-events-link,.ofqd-v11-link,.ofqd-home-pro-all,.ofqd-smart-discovery-more){
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-weight:700!important;
}

/* Mode sombre limité à l'accueil. */
html.ofqd-night body.ofqd-home-page .ofqd-hero-v24-search,
body.night.ofqd-home-page .ofqd-hero-v24-search{
  background:rgba(7,18,42,.94)!important;
  border-color:rgba(125,184,255,.24)!important;
}
html.ofqd-night body.ofqd-home-page .ofqd-hero-v24-search input,
body.night.ofqd-home-page .ofqd-hero-v24-search input,
html.ofqd-night body.ofqd-home-page .ofqd-hero-v24-search-icon,
body.night.ofqd-home-page .ofqd-hero-v24-search-icon{color:#f8fbff!important}
html.ofqd-night body.ofqd-home-page .ofqd-cat-v24,
body.night.ofqd-home-page .ofqd-cat-v24{
  background:rgba(7,18,42,.94)!important;
  border-color:rgba(125,184,255,.18)!important;
}

@media(max-width:1180px){
  body.ofqd-home-page .ofqd-hero-v24-search{
    grid-template-columns:24px minmax(0,1fr) 46px!important;
  }
  body.ofqd-home-page .ofqd-hero-v24-around{display:none!important}
}
@media(max-width:640px){
  body.ofqd-home-page .ofqd-hero-v24-search{
    min-height:56px!important;
    padding:6px 7px 6px 15px!important;
    border-radius:17px!important;
  }
  body.ofqd-home-page .ofqd-hero-v24-submit{
    width:44px!important;height:44px!important;min-width:44px!important;
    border-radius:13px!important;
  }
  body.ofqd-home-page .ofqd-cat-v24{
    min-height:66px!important;
    padding:10px 12px!important;
  }
  body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-icon{
    width:38px!important;height:38px!important;min-width:38px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.ofqd-home-page .ofqd-cat-v24::after{transition:none!important}
}
