/* =====================================================================
   Page Fonctionnalités, présentation v2 (template-parts/hub/grid-v2.php).
   Grille dense en deux groupes, vignette d'illustration par carte.
   Sous 700 px la page devient une liste : elle sert surtout de menu.
   ===================================================================== */
.hubv2-hero { padding: 7.5rem 0 2.5rem; text-align: center; background: linear-gradient(180deg, #EAF4FC 0%, #FBF8F3 100%); }
.hubv2-hero .hubv2-title { margin: .9rem 0 1rem; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: #1A2233; }
.hubv2-hero .hubv2-sub { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.6; color: #4A5568; }
.hubv2-jump { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hubv2-jump a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 9999px; background: #fff; border: 1px solid rgba(26,34,51,.1); font-size: .9375rem; font-weight: 700; color: #1A2233; text-decoration: none; }
.hubv2-jump a span { min-width: 1.5rem; padding: 0 .4rem; border-radius: 9999px; background: #F1F5F9; font-size: .8125rem; line-height: 1.5rem; text-align: center; color: #4A5568; }
.hubv2-jump a:hover { border-color: #2B9FE8; }

.hubv2-group { padding: 3rem 0; background: #FBF8F3; scroll-margin-top: 90px; }
.hubv2-group--pro { background: #F2F6FA; padding-bottom: 4.5rem; }
.hubv2-group--metiers { background: #F2F6FA; padding-bottom: 4.5rem; }
.hubv2-group--parcours .hubv2-thumb { height: 170px; }
.hubv2-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.5rem; }
.hubv2-group .hubv2-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.875rem); letter-spacing: -.02em; font-weight: 800; color: #1A2233; }
.hubv2-price { padding: .3rem .8rem; border-radius: 9999px; background: #fff; border: 1px solid rgba(26,34,51,.1); font-size: .8125rem; font-weight: 700; color: #1A2233; }
.hubv2-group--pro .hubv2-price { background: #1A2233; border-color: #1A2233; color: #fff; }
.hubv2-group .hubv2-head p { flex: 1 1 100%; margin: 0; font-size: 1rem; color: #4A5568; }

.hubv2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hubv2-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 16px; background: #fff; border: 1px solid rgba(26,34,51,.08); overflow: hidden;
    color: inherit; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
a.hubv2-card:hover { transform: translateY(-3px); border-color: #2B9FE8; box-shadow: 0 18px 36px -24px rgba(26,34,51,.4); }
.hubv2-thumb { position: relative; height: 132px; overflow: hidden; background: #F8FAFC; }
.hubv2-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 36px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.hubv2-thumb-in { width: 200%; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.hubv2-thumb .il { border-radius: 0; border: 0; box-shadow: none; }
.hubv2-thumb .il-toast { display: none; }
.hubv2-thumb .il *, .hubv2-thumb .il *::before { animation: none !important; }
.hubv2-body { padding: .9rem 2.4rem 1rem 1rem; }
.hubv2-card .hubv2-body h3 { margin: 0 0 .3rem; font-size: 1.0625rem; line-height: 1.3; font-weight: 800; color: #1A2233; }
.hubv2-card .hubv2-body p { margin: 0; font-size: .875rem; line-height: 1.45; color: #4A5568; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hubv2-arrow { position: absolute; right: 1rem; bottom: .95rem; font-size: 1.1rem; font-weight: 700; color: #2B9FE8; }

@media (max-width: 1100px) { .hubv2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .hubv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    /* Liste de navigation : pas de vignette, une ligne par page */
    /* En-tête réduit au titre et aux deux raccourcis : la liste doit arriver tout de suite */
    .hubv2-hero { padding: 5.75rem 0 1.25rem; }
    .hubv2-hero .section-label, .hubv2-hero .hubv2-sub { display: none; }
    .hubv2-hero .hubv2-title { margin: 0; font-size: 1.5rem; }
    .hubv2-jump { margin-top: 1rem; }
    .hubv2-group { padding: 1.75rem 0; }
    .hubv2-group--pro, .hubv2-group--metiers { padding-bottom: 3rem; }
    .hubv2-head { margin-bottom: 1rem; }
    .hubv2-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .hubv2-thumb { display: none; }
    .hubv2-card { border-radius: 14px; }
    .hubv2-body { padding: .8rem 2.4rem .8rem 1rem; }
    .hubv2-card .hubv2-body h3 { font-size: 1rem; margin-bottom: .15rem; }
    .hubv2-card .hubv2-body p { -webkit-line-clamp: 1; font-size: .8125rem; }
    .hubv2-arrow { bottom: auto; top: 50%; transform: translateY(-50%); }
}
