/*
 * hub-poissons.css — AquaLowtech v4
 * Structure calquée sur fiche-poisson.css (référence fonctionnelle)
 * Enqueue : wp_enqueue_style('hub-poissons', .../assets/css/hub-poissons.css)
 * v4 : fix bug filtre (section "débuter" visible malgré 0 résultat) + classes section vidéo
 */

#hub-poissons {
    --hub-green:        #2d7d46;
    --hub-green-light:  #e8f4ec;
    --hub-green-mid:    #a8d5b5;
    --hub-orange:       #e07b00;
    --hub-orange-light: #fff3cd;
    --hub-red:          #c0392b;
    --hub-red-light:    #f8d7da;
    --hub-blue:         #1a6b8a;
    --hub-blue-light:   #e3f2f9;
    --hub-text:         #1a1a1a;
    --hub-muted:        #6a7c70;
    --hub-border:       #d4e8d0;
    --hub-radius:       12px;
    --hub-shadow:       0 4px 20px rgba(45,125,70,0.12);
    overflow-x: clip;
}

/* ══ HERO ══ */
.hub-hero {
    background: linear-gradient(135deg, #1a3d28 0%, #2d7d46 60%, #3a9e58 100%);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hub-hero__inner { position: relative; max-width: 800px; margin: 0 auto; }
.hub-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hub-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: #fff;
    margin: 0 0 1rem;
    font-weight: 800;
    line-height: 1.2;
}
.hub-hero__lead {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto 1rem;
    line-height: 1.65;
}
.hub-hero__meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.hub-hero__meta span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}
.hub-cta-principal {
    display: inline-block;
    background: #fff;
    color: var(--hub-green);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}
.hub-cta-principal:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,0.2); }

/* ══ SOMMAIRE — calqué sur .aqua-jump-nav ══ */
.hub-sommaire {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 2px solid var(--hub-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.hub-sommaire__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.hub-sommaire__inner::-webkit-scrollbar { display: none; }
.hub-sommaire__titre {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hub-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.75rem 0;
}
.hub-sommaire__list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.hub-sommaire__list a {
    display: inline-block;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hub-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.hub-sommaire__list a:hover {
    color: var(--hub-green);
    border-bottom-color: var(--hub-green);
}

/* ══ SECTION VIDÉO — nouveau bloc v4, sortie du hero ══ */
.hub-video-section {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 0 1.25rem;
}
.hub-video-section__card {
    background: var(--hub-green-light);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--hub-shadow);
}
.hub-video-section .hub-section-title {
    justify-content: center;
}
.hub-video-section__intro {
    color: var(--hub-muted);
    max-width: 650px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}
.hub-video-section__player {
    max-width: 700px;
    margin: 0 auto;
    border-radius: calc(var(--hub-radius) - 4px);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(26,61,40,0.25);
    border: 1px solid rgba(0,0,0,0.05);
}
.hub-video-section__player-ratio {
    position: relative;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
}
.hub-video-section__player-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ══ LAYOUT 2 COLONNES — calqué sur .aqua-layout ══ */
.hub-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Bouton toggle mobile caché sur desktop */
.hub-filtre-toggle { display: none; }

/* ══ SIDEBAR GAUCHE — calqué sur .aqua-col-left ══ */
.hub-sidebar {
    position: sticky;
    top: 72px; /* hauteur barre admin WP (32px) + sommaire (40px) */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Empêche la sidebar de déborder sur les cards */
    min-width: 0;
    width: 100%;
}

/* ══ RECHERCHE LIBRE ══ */
.hub-search-wrap { width: 100%; }
.hub-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    border: 2px solid var(--hub-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--hub-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.hub-search-input:focus {
    border-color: var(--hub-green);
    box-shadow: 0 0 0 3px rgba(45,125,70,0.1);
}
.hub-search-input::placeholder { color: var(--hub-muted); }

/* ══ FILTRES ══ */
.hub-filtres {
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 1.25rem;
    box-shadow: var(--hub-shadow);
}
.hub-filtres__titre {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hub-green);
    margin: 0 0 1rem;
}
.hub-filtres__grid { display: flex; flex-direction: column; gap: 1.1rem; }
.hub-filtre-group__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hub-muted);
    margin-bottom: 0.4rem;
}
.hub-filtre-group__btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hub-filtre-btn {
    background: var(--hub-green-light);
    border: 1px solid var(--hub-border);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--hub-muted);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.hub-filtre-btn:hover { border-color: var(--hub-green); color: var(--hub-green); }
.hub-filtre-btn.active { background: var(--hub-green); border-color: var(--hub-green); color: #fff; }
.hub-filtre-btn--special.active { background: var(--hub-blue); border-color: var(--hub-blue); color: #fff; }
.hub-filtres__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--hub-border);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hub-compteur { font-size: 0.75rem; color: var(--hub-muted); font-weight: 600; }
.hub-reset-btn {
    background: none;
    border: 1px solid var(--hub-red);
    border-radius: 20px;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    color: var(--hub-red);
    cursor: pointer;
    transition: all 0.15s;
}
.hub-reset-btn:hover { background: var(--hub-red); color: #fff; }

/* CTA sidebar */
.hub-sidebar-cta {
    background: var(--hub-green-light);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 1rem;
    text-align: center;
}
.hub-sidebar-cta p { font-size: 0.78rem; color: var(--hub-muted); margin: 0 0 0.75rem; line-height: 1.5; }
.hub-btn-primary--sm { font-size: 0.8rem; padding: 0.6rem 1.1rem; }

/* ══ COLONNE DROITE — calqué sur .aqua-col-right ══ */
.hub-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-width: 0;
}

/* Le div zones-default doit aussi propager le gap */
#hub-zones-default {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* FIX v4 — bug confirmé sur capture d'écran : filtre à 0 résultat laissait
   la section "débuter" visible. #id + [hidden] > spécificité de #id seul,
   donc cette règle gagne enfin sur le display:flex ci-dessus. */
#hub-zones-default[hidden] {
    display: none;
}

/* ══ GRILLES CARDS ══ */
.hub-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.hub-no-result {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hub-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ══ CARDS POISSONS ══ */
.hub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 2px 8px rgba(45,125,70,0.06);
    min-width: 0;
    padding: 0 !important;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--hub-shadow); border-color: var(--hub-green-mid); }
.hub-card__robinet {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    font-size: 1rem;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    z-index: 1;
}
.hub-card__photo {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--hub-green-light);
}
.hub-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.hub-card:hover .hub-card__photo img { transform: scale(1.05); }
.hub-card__photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    background: var(--hub-green-light);
}
.hub-card__body {
    padding: 0.85rem 0.9rem;
    display: flex; flex-direction: column; gap: 0.35rem;
    flex: 1;
    min-width: 0;
}
.hub-badge {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    width: fit-content;
}
.hub-badge--vert   { background: #d4edda; color: #155724; }
.hub-badge--orange { background: #fff3cd; color: #856404; }
.hub-badge--rouge  { background: #f8d7da; color: #721c24; }
.hub-card__nom {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0;
    line-height: 1.25;
    /* Permet 2 lignes max, pas de troncature avec ... */
    overflow: hidden;
    display: -webkit-box;
     -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}
.hub-card__latin { font-size: 0.68rem; color: var(--hub-muted); font-style: italic; }
.hub-card__stats { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.hub-card__stats span { font-size: 0.68rem; color: var(--hub-muted); background: var(--hub-green-light); border-radius: 10px; padding: 0.1rem 0.45rem; }
.hub-card__verdict { font-size: 1rem; margin-top: auto; padding-top: 0.25rem; }

/* ══ SECTION TITLE ══ */
.hub-section-title { font-size: 1.3rem; color: var(--hub-green); font-weight: 700; margin: 0 0 1.5rem; }

/* ══ ZONES ══ */
.hub-zone-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1rem; /* ← espace entre la grille et la section suivante */
}
.hub-zone-header {
    background: var(--hub-green-light);
    border-radius: var(--hub-radius);
    padding: 1.5rem;
    box-sizing: border-box;
}
.hub-zone-header--debutants {
    background: linear-gradient(135deg, #f0f9f4, #e8f4ec);
    border-left: 4px solid var(--hub-green);
}
.hub-zone-header--special {
    background: linear-gradient(135deg, #f0f9f4, #e8f4ec);
    border-left: 4px solid var(--hub-green);
}
.hub-zone-title { font-size: 1.35rem; color: var(--hub-green); font-weight: 800; margin: 0 0 0.75rem; }
.hub-zone-desc {
    font-size: 0.88rem; color: var(--hub-muted); line-height: 1.7; margin: 0;
    overflow-wrap: break-word;
}

/* ══ LEAD MAGNET ══ */
.hub-lead-magnet {
    background: linear-gradient(135deg, #1a3d28, #2d7d46);
    border-radius: var(--hub-radius);
    padding: 1.75rem;
    color: #fff;
    box-sizing: border-box;
}
.hub-lead-magnet__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hub-lead-magnet__emoji { font-size: 2.5rem; flex-shrink: 0; }
.hub-lead-magnet__text {
    flex: 1;
    min-width: 0;
}
.hub-lead-magnet__text strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.hub-lead-magnet__text p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.5; overflow-wrap: break-word; }
.hub-lead-form { display: flex; flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; }
.hub-lead-input {
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--hub-text);
    width: 150px;
    min-width: 0;
    box-sizing: border-box;
}
.hub-lead-input:focus { outline: 2px solid rgba(255,255,255,0.5); }
.hub-lead-btn {
    background: #fff; color: var(--hub-green); border: none; border-radius: 8px;
    padding: 0.65rem 1.25rem; font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s, transform 0.15s; white-space: nowrap;
}
.hub-lead-btn:hover { background: #f0f9f4; transform: translateY(-1px); }
.hub-lead-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hub-lead-magnet__note { font-size: 0.78rem; margin: 0.5rem 0 0; width: 100%; text-align: center; }

/* ══ BANNIÈRES ══ */
.hub-bannieres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.hub-banniere {
    border-radius: var(--hub-radius);
    padding: 1.25rem;
    box-sizing: border-box;
    /* Layout colonne direct — élimine le besoin d'un div intermédiaire */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reset total contre les règles globales du thème */
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
}
.hub-banniere--orange { background: linear-gradient(135deg, #fff8e1, #fff3cd); border: 1px solid #f0c870; }
.hub-banniere--rouge  { background: linear-gradient(135deg, #fff5f5, #ffeaea); border: 1px solid #f5b7b7; }
.hub-banniere--bleu   { background: linear-gradient(135deg, #e8f4fd, #d6eaf8); border: 1px solid #9dc8e8; }
.hub-banniere__emoji  { font-size: 1.8rem; line-height: 1; }
.hub-banniere__title  {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hub-text);
    line-height: 1.4;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word;
}
.hub-banniere__desc {
    font-size: 0.78rem;
    color: var(--hub-muted);
    margin: 0;
    line-height: 1.5;
    flex: 1; /* pousse le bouton vers le bas */
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word;
}

/* Aligne les 3 bannières à la même hauteur */
.hub-bannieres-grid {
    align-items: stretch; /* toutes les bannières à la même hauteur */
}
.hub-banniere__btn {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
    align-self: flex-start;
    margin-top: 0.25rem;
    writing-mode: horizontal-tb !important;
}
.hub-banniere__btn--orange { background: var(--hub-orange); color: #fff; }
.hub-banniere__btn--orange:hover { background: #c06800; }
.hub-banniere__btn--rouge  { background: var(--hub-red); color: #fff; }
.hub-banniere__btn--rouge:hover { background: #9b2b21; }
.hub-banniere__btn--bleu   { background: var(--hub-blue); color: #fff; }
.hub-banniere__btn--bleu:hover { background: #155773; }

/* ══ CTA COMPARATEUR ══ */
.hub-cta-comparateur {
    background: var(--hub-green-light);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 2rem;
    text-align: center;
}
.hub-cta-comparateur__title { font-size: 1.3rem; color: var(--hub-green); font-weight: 700; margin: 0 0 0.75rem; }
.hub-cta-comparateur p { font-size: 0.88rem; color: var(--hub-muted); margin: 0 auto 1.25rem; max-width: 520px; line-height: 1.6; }
.hub-btn-primary {
    display: inline-block; background: var(--hub-green); color: #fff;
    font-size: 0.9rem; font-weight: 700; padding: 0.9rem 1.75rem; border-radius: 50px;
    text-decoration: none; box-shadow: 0 3px 12px rgba(45,125,70,0.25);
    transition: background 0.15s, transform 0.15s;
}
.hub-btn-primary:hover { background: #235f35; transform: translateY(-1px); }

/* ══ FAQ ══ */
.hub-faq {
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45,125,70,0.06);
}
.hub-faq .hub-section-title { padding: 1.75rem 1.75rem 0; }
.hub-faq__list { display: flex; flex-direction: column; }
.hub-faq-item { border-bottom: 1px solid var(--hub-border); }
.hub-faq-item:last-child { border-bottom: none; }
.hub-faq-btn {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    width: 100%; background: #fff; border: none; padding: 1rem 1.75rem;
    cursor: pointer; text-align: left; font-size: 0.88rem; font-weight: 600;
    color: var(--hub-text); transition: background 0.15s;
}
.hub-faq-btn:hover,
.hub-faq-btn[aria-expanded="true"] { background: var(--hub-green-light); }
.hub-faq-btn > span:first-child { flex: 1; overflow-wrap: break-word; }
.hub-faq-icon { font-size: 1.3rem; font-weight: 300; color: var(--hub-green); flex-shrink: 0; width: 1.5rem; text-align: center; }
.hub-faq-answer { padding: 1rem 1.75rem 1.25rem; background: #fafcfa; }
.hub-faq-answer p { font-size: 0.83rem; color: var(--hub-text); line-height: 1.7; margin: 0; overflow-wrap: break-word; }

/* ══ MAILLAGE ══ */
.hub-maillage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.hub-maillage-card {
    background: #fff; border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
    padding: 1.25rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.4rem;
    transition: transform 0.15s, box-shadow 0.15s;
    min-width: 0;
}
.hub-maillage-card:hover { transform: translateY(-3px); box-shadow: var(--hub-shadow); }
.hub-maillage-card span { font-size: 1.4rem; }
.hub-maillage-card h3 { font-size: 0.85rem; font-weight: 700; color: var(--hub-text); margin: 0; line-height: 1.3; overflow-wrap: break-word; }
.hub-maillage-card p  { font-size: 0.75rem; color: var(--hub-muted); margin: 0; overflow-wrap: break-word; }

/* ══ RESPONSIVE — calqué sur fiche-poisson.css (max-width: 800px) ══ */
@media (max-width: 800px) {

    /* Layout 1 colonne */
    .hub-layout {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 3rem;
        gap: 1.5rem;
    }

    /* Sidebar statique, cachée par défaut */
    .hub-sidebar {
        position: static;
        display: none;
        order: 2;
    }
    .hub-sidebar--open { display: flex; }

    /* Contenu en premier */
    .hub-content { order: 3; }

    /* Bouton toggle visible */
    .hub-filtre-toggle {
        display: flex;
        order: 1;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        background: var(--hub-green);
        color: #fff;
        border: none;
        border-radius: var(--hub-radius);
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s;
        box-sizing: border-box;
    }
    .hub-filtre-toggle:hover { background: #235f35; }
    .hub-filtre-toggle__count {
        background: rgba(255,255,255,0.3);
        border-radius: 20px;
        padding: 0.1rem 0.5rem;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .hub-sidebar-cta { display: none; }

    .hub-grille { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }

    /* Bannières en colonne */
    .hub-bannieres-grid { grid-template-columns: 1fr; }

    .hub-maillage__grid { grid-template-columns: 1fr 1fr; }
    .hub-zone-header { padding: 1.25rem; }
    .hub-hero { padding: 2.5rem 1.25rem 2rem; }
    .hub-hero__meta { gap: 0.5rem; }
    .hub-cta-comparateur { padding: 1.5rem 1.25rem; }

    /* Lead magnet en colonne */
    .hub-lead-magnet__inner { flex-direction: column; }
    .hub-lead-form { width: 100%; }
    .hub-lead-input { width: 100%; box-sizing: border-box; }

    /* Sommaire — pills sur mobile comme fiche-poisson */
    .hub-sommaire { position: relative; }
    .hub-sommaire::after {
        content: '';
        position: absolute;
        right: 0; top: 0; bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, #fff);
        pointer-events: none;
    }
    .hub-sommaire__list a {
        background: var(--hub-green-light);
        border-radius: 20px;
        margin: 0.4rem 0.25rem;
        border-bottom: none;
        color: var(--hub-green);
        font-weight: 700;
        padding: 0.7rem 0.85rem;
        font-size: 0.75rem;
    }
    .hub-sommaire__list a:hover {
        background: var(--hub-green);
        color: #fff;
        border-bottom: none;
    }

    .hub-video-section__card {
        padding: 1.5rem 1.25rem;
    }
    .hub-video-section__player,
    .hub-video-section__intro {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .hub-grille { grid-template-columns: 1fr 1fr; }
    .hub-maillage__grid { grid-template-columns: 1fr; }
}