/*
 * On Fait Quoi Demain — V241.214
 * Typographie de l'accueil : hiérarchie lisible, compacte et cohérente.
 * Portée strictement limitée à body.ofqd-home-page.
 * Aucune modification de structure, de Carte, d'images ou de logique métier.
 */

body.ofqd-home-page{
  --ofqd-home-font-text:"Inter","Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",Arial,sans-serif;
  --ofqd-home-font-title:"Poppins","Inter","Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",Arial,sans-serif;
}

/* Texte courant : Inter reste plus lisible dans les petites tailles. */
body.ofqd-home-page .ofqd-hero-v24-subtitle,
body.ofqd-home-page .ofqd-hero-v24-search input,
body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-text,
body.ofqd-home-page .ofqd-discovery-card small,
body.ofqd-home-page .ofqd-discovery-card__meta,
body.ofqd-home-page #events-dynamiques .ofqd-event-date-line,
body.ofqd-home-page #events-dynamiques .ofqd-event-place-text,
body.ofqd-home-page #events-dynamiques .ofqd-home-pro-business,
body.ofqd-home-page #events-dynamiques .ofqd-home-pro-meta{
  font-family:var(--ofqd-home-font-text)!important;
}

/* Titres, navigation et commandes : Poppins avec des graisses réellement chargées. */
body.ofqd-home-page .ofqd-main-nav .ofqd-nav-item span,
body.ofqd-home-page .ofqd-top-actions :where(a,button,summary) span,
body.ofqd-home-page .ofqd-top-actions .ofqd-login-link,
body.ofqd-home-page .ofqd-hero-v24-title,
body.ofqd-home-page .ofqd-cat-v24 strong,
body.ofqd-home-page .ofqd-discovery-card strong,
body.ofqd-home-page .ofqd-dynamic-title-text h2,
body.ofqd-home-page .ofqd-event-pills-v24 a,
body.ofqd-home-page #events-dynamiques .ofqd-event-card-body h3,
body.ofqd-home-page #events-dynamiques .ofqd-home-pro-body > h4,
body.ofqd-home-page .ofqd-v11p2-head h2,
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3{
  font-family:var(--ofqd-home-font-title)!important;
}

/* Header : lisible sans augmenter sa hauteur. */
body.ofqd-home-page .ofqd-main-nav .ofqd-nav-item span{
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:600!important;
  letter-spacing:-.012em!important;
}
body.ofqd-home-page .ofqd-top-actions :where(a,button,summary) span,
body.ofqd-home-page .ofqd-top-actions .ofqd-login-link{
  font-size:12.5px!important;
  line-height:1.15!important;
  font-weight:600!important;
  letter-spacing:-.01em!important;
}

/* Hero et recherche. */
body.ofqd-home-page .ofqd-hero-v24-title{
  font-weight:800!important;
  letter-spacing:-.045em!important;
}
body.ofqd-home-page .ofqd-hero-v24-subtitle{
  font-size:15px!important;
  line-height:1.28!important;
  font-weight:600!important;
  letter-spacing:-.008em!important;
}
body.ofqd-home-page .ofqd-hero-v24-search input{
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:500!important;
}

/* Univers : titre net + description lisible. */
body.ofqd-home-page .ofqd-cat-v24 strong{
  font-size:13.5px!important;
  line-height:1.08!important;
  font-weight:700!important;
  letter-spacing:-.018em!important;
}
body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-text{
  font-size:11.5px!important;
  line-height:1.22!important;
  font-weight:500!important;
  letter-spacing:-.006em!important;
}

/* Cartes de découverte sous les univers. */
body.ofqd-home-page .ofqd-discovery-card strong{
  font-size:12.5px!important;
  line-height:1.12!important;
  font-weight:700!important;
  letter-spacing:-.014em!important;
}
body.ofqd-home-page .ofqd-discovery-card small{
  font-size:11.25px!important;
  line-height:1.18!important;
  font-weight:500!important;
}
body.ofqd-home-page .ofqd-discovery-card__meta{
  font-size:10.5px!important;
  line-height:1.15!important;
  font-weight:600!important;
}

/* Section Événements. */
body.ofqd-home-page .ofqd-dynamic-title-text h2{
  font-size:clamp(23px,1.55vw,30px)!important;
  line-height:1.04!important;
  font-weight:700!important;
  letter-spacing:-.032em!important;
}
body.ofqd-home-page .ofqd-event-pills-v24 a{
  font-size:11.5px!important;
  line-height:1!important;
  font-weight:600!important;
}

/* Vignettes : titres à 2 lignes, règle historique validée, sans réduire la police. */
body.ofqd-home-page #events-dynamiques .ofqd-event-card-body h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  max-height:2.34em!important;
  margin:0 0 4px!important;
  font-size:clamp(12.5px,.82vw,13.5px)!important;
  line-height:1.17!important;
  font-weight:700!important;
  letter-spacing:-.015em!important;
}
body.ofqd-home-page #events-dynamiques .ofqd-event-date-line,
body.ofqd-home-page #events-dynamiques .ofqd-event-place-text{
  font-size:11.25px!important;
  line-height:1.18!important;
  font-weight:500!important;
  letter-spacing:-.004em!important;
}
body.ofqd-home-page #events-dynamiques .ofqd-event-card-media > span{
  font-size:9px!important;
  line-height:1!important;
  font-weight:700!important;
}
body.ofqd-home-page #events-dynamiques .ofqd-photo-disclaimer,
body.ofqd-home-page #events-dynamiques .photo-disclaimer{
  font-size:8.5px!important;
  line-height:1.1!important;
  font-weight:600!important;
}

/* Colonne Artisans & Commerçants : fin des textes microscopiques. */
@media(min-width:1051px){
  body.ofqd-home-page #events-dynamiques .ofqd-home-pro-business{
    font-size:10.5px!important;
    line-height:1.08!important;
    font-weight:700!important;
  }
  body.ofqd-home-page #events-dynamiques .ofqd-home-pro-body > h4{
    max-height:2.34em!important;
    font-size:11.5px!important;
    line-height:1.17!important;
    font-weight:700!important;
    letter-spacing:-.012em!important;
  }
  body.ofqd-home-page #events-dynamiques .ofqd-home-pro-meta{
    font-size:10px!important;
    line-height:1.1!important;
    font-weight:500!important;
  }
}

/* Mini-carte : KPI lisibles mais compacts. */
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11p2-head h2{
  font-weight:700!important;
  letter-spacing:-.028em!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard h3{
  font-size:13px!important;
  line-height:1.12!important;
  font-weight:700!important;
  letter-spacing:-.012em!important;
}
body.ofqd-home-page #ofqd-v11-pack2 .ofqd-v11-dashboard :where(span,small){
  font-family:var(--ofqd-home-font-text)!important;
  font-weight:500!important;
}

@media(max-width:760px){
  body.ofqd-home-page .ofqd-main-nav .ofqd-nav-item span{font-size:11.5px!important}
  body.ofqd-home-page .ofqd-hero-v24-subtitle{font-size:14px!important}
  body.ofqd-home-page .ofqd-cat-v24 strong{font-size:13px!important}
  body.ofqd-home-page .ofqd-cat-v24 .ofqd-cat-text{font-size:11px!important}
  body.ofqd-home-page .ofqd-discovery-card strong{font-size:12px!important}
  body.ofqd-home-page .ofqd-discovery-card small{font-size:11px!important}
  body.ofqd-home-page .ofqd-event-pills-v24 a{font-size:11px!important}
  body.ofqd-home-page #events-dynamiques .ofqd-event-card-body h3{
    font-size:13px!important;
    line-height:1.16!important;
    max-height:2.32em!important;
  }
  body.ofqd-home-page #events-dynamiques .ofqd-event-date-line,
  body.ofqd-home-page #events-dynamiques .ofqd-event-place-text{font-size:11px!important}
  body.ofqd-home-page #events-dynamiques .ofqd-event-card-media > span{font-size:8.5px!important}
  body.ofqd-home-page #events-dynamiques .ofqd-photo-disclaimer,
  body.ofqd-home-page #events-dynamiques .photo-disclaimer{font-size:8px!important}
}
