/* Hub /classements — surcouche de consultant-seo-paris.css.
 *
 * DEPEND DE : consultant-seo-paris.css charge AVANT (tokens --cp-*, .hero-section,
 * liens et breakpoints 960 / 720 px).
 *
 * INVARIANTS (identiques a outils-semantique.css) :
 *   1. Tout selecteur contient .classements-hub-page. Sans exception.
 *   2. Toute SURCHARGE d'une regle de base utilise le compose SANS espace
 *      .consultant-paris-page.classements-hub-page.
 *   3. Jamais de .consultant-paris-page X nu dans ce fichier.
 *   4. Toute surcharge de grille ou d'alignement est repetee dans les media
 *      queries.
 *
 * MISE EN PAGE : un index editorial, sans cartes. Une ligne par page cible,
 * colonnes alignees (type, titre et description, leader ou repere, fleche),
 * separees par des filets. Chaque ligne porte un seul <a>, sur son titre
 * (l'ancre visee) ; son ::after couvre la ligne pour la rendre cliquable en
 * entier et porte l'anneau de focus clavier.
 */

/* ------------------------------------------------------------------
   SURTITRE
   ------------------------------------------------------------------ */

html.consultant-paris-theme .classements-hub-page .page-breadcrumb {
    color: var(--cp-muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    margin: 0;
    padding-top: clamp(26px, 4vw, 40px);
    text-transform: uppercase;
}

/* ------------------------------------------------------------------
   HERO — sans illustration ni filet bas, titre a l'echelle d'une page
   de navigation.
   ------------------------------------------------------------------ */

html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section {
    border-bottom: none;
    margin-bottom: clamp(8px, 2vw, 16px);
    padding-bottom: clamp(20px, 3vw, 32px);
    padding-top: clamp(24px, 3.5vw, 40px);
}

html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section::before,
html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section h1,
html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section .subtitle {
    grid-column: 1 / -1;
}

html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.3rem);
    letter-spacing: -0.035em;
    line-height: 1.04;
    max-width: 22ch;
}

html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section .subtitle {
    font-size: clamp(1.08rem, 1.7vw, 1.25rem);
    font-weight: 500;
    max-width: 52ch;
}

/* ------------------------------------------------------------------
   INDEX — un bloc par marche : titre souligne d'un filet fort, puis
   une ligne par page.
   ------------------------------------------------------------------ */

html.consultant-paris-theme .classements-hub-page .hub-topic {
    margin-top: clamp(30px, 4.5vw, 48px);
}

html.consultant-paris-theme .classements-hub-page .hub-topic__title {
    border-bottom: 1px solid var(--cp-heading);
    font-size: clamp(1.35rem, 2.1vw, 1.65rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0;
    max-width: none;
    padding-bottom: 12px;
}

html.consultant-paris-theme .classements-hub-page .hub-topic__rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

html.consultant-paris-theme .classements-hub-page .hub-row {
    align-items: baseline;
    border-bottom: 1px solid var(--cp-border);
    column-gap: clamp(20px, 3vw, 36px);
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr) 200px 20px;
    padding: 20px 14px 22px;
    position: relative;
    transition: background-color 160ms ease;
}

html.consultant-paris-theme .classements-hub-page .hub-row:hover {
    background: color-mix(in oklch, var(--cp-clay) 6%, var(--cp-bg));
}

html.consultant-paris-theme .classements-hub-page .hub-row__kind {
    color: var(--cp-muted);
    font-family: var(--font-sans-stack);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}

html.consultant-paris-theme .classements-hub-page .hub-row--barometer .hub-row__kind {
    color: var(--cp-clay-dark);
}

html.consultant-paris-theme .classements-hub-page .hub-row__main {
    min-width: 0;
}

html.consultant-paris-theme .classements-hub-page .hub-row__title {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 6px;
}

html.consultant-paris-theme .classements-hub-page .hub-row__link {
    color: var(--cp-heading);
    text-decoration: none;
}

html.consultant-paris-theme .classements-hub-page .hub-row__link::after {
    content: "";
    inset: 0;
    position: absolute;
}

html.consultant-paris-theme .classements-hub-page .hub-row:hover .hub-row__link {
    color: var(--cp-heading);
    text-decoration: underline;
    text-decoration-color: var(--cp-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

html.consultant-paris-theme .classements-hub-page .hub-row__link:focus-visible {
    outline: none;
}

html.consultant-paris-theme .classements-hub-page .hub-row__link:focus-visible::after {
    outline: 3px solid color-mix(in oklch, var(--cp-accent) 55%, transparent);
    outline-offset: -3px;
}

html.consultant-paris-theme .classements-hub-page .hub-row__desc {
    color: var(--cp-muted);
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
    max-width: 64ch;
}

html.consultant-paris-theme .classements-hub-page .hub-row__aside {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html.consultant-paris-theme .classements-hub-page .hub-row__aside-label {
    color: var(--cp-clay-dark);
    font-family: var(--font-sans-stack);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

html.consultant-paris-theme .classements-hub-page .hub-row__leader-name {
    color: var(--cp-heading);
    font-family: var(--font-serif-stack);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

html.consultant-paris-theme .classements-hub-page .hub-row__leader-stat,
html.consultant-paris-theme .classements-hub-page .hub-row__meta {
    color: var(--cp-muted);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

html.consultant-paris-theme .classements-hub-page .hub-row__arrow {
    color: var(--cp-accent);
    font-family: var(--font-sans-stack);
    font-size: 1.05rem;
    font-weight: 700;
    justify-self: end;
}

/* ------------------------------------------------------------------
   BREAKPOINTS (alignes sur consultant-seo-paris.css)
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
    html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section::before,
    html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section h1,
    html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section .subtitle {
        grid-column: 1 / -1;
    }

    html.consultant-paris-theme .classements-hub-page .hub-row {
        grid-template-columns: 120px minmax(0, 1fr) 170px 16px;
    }
}

@media (max-width: 720px) {
    html.consultant-paris-theme .consultant-paris-page.classements-hub-page .hero-section h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
        max-width: 16ch;
    }

    /* Une seule colonne : type, titre, description, puis leader ou repere. */
    html.consultant-paris-theme .classements-hub-page .hub-row {
        grid-template-columns: minmax(0, 1fr) 16px;
        padding: 18px 4px 20px;
        row-gap: 8px;
    }

    html.consultant-paris-theme .classements-hub-page .hub-row__kind {
        grid-column: 1 / -1;
    }

    html.consultant-paris-theme .classements-hub-page .hub-row__main {
        grid-column: 1;
    }

    html.consultant-paris-theme .classements-hub-page .hub-row__aside {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px 10px;
        grid-column: 1;
    }

    html.consultant-paris-theme .classements-hub-page .hub-row__aside-label {
        width: 100%;
    }

    html.consultant-paris-theme .classements-hub-page .hub-row__arrow {
        align-self: center;
        grid-column: 2;
        grid-row: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.consultant-paris-theme .classements-hub-page .hub-row {
        transition: none;
    }
}
