/* ==========================================================================
   HUB SEO — Design sections & carousels par catégorie
   Cohérent avec .cc-latest-card (home.css) + variables globales
   ========================================================================== */

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.cc-hub-page {
    background: var(--color-paper);
    padding: 3rem 0 6rem;
}

/* ── Contenu éditorial IA ─────────────────────────────────────────────────
   Texte intro + corps SEO généré par l'IA — max 820px, lecture confortable */
.cc-hub-content {
    max-width: 820px;
    margin: 0 auto 4.5rem;
    font-size: 1.05rem;
    line-height: 1.78;
    color: var(--color-ink);
}

.cc-hub-content h2 {
    font-family: var(--font-titres);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    color: var(--color-ink);
    margin: 2.8rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--color-secondary);
}

.cc-hub-content h3 {
    font-family: var(--font-titres);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-primary);
    margin: 2rem 0 0.75rem;
}

.cc-hub-content p {
    margin-bottom: 1.2rem;
}

.cc-hub-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(56, 90, 112, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.cc-hub-content a:hover {
    color: var(--color-secondary);
    text-decoration-color: var(--color-secondary);
}

/* ── Section carousel ─────────────────────────────────────────────────────
   Chaque catégorie éditoriale (Bouger, Manger, Dormir…) est une section */
.cc-hub-section {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(25, 36, 33, 0.07);
}
.cc-hub-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Header de section (titre + "Tous les articles") */
.cc-hub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cc-hub-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cc-hub-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cc-hub-section-title {
    font-family: var(--font-titres);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    color: var(--color-ink);
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.cc-hub-section-desc {
    font-size: 0.87rem;
    color: var(--color-ink);
    opacity: 0.52;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Bouton "Tous les articles →" */
.cc-hub-see-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    padding: 0.55rem 1.15rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.cc-hub-see-all:hover {
    background: var(--color-primary);
    color: var(--color-paper);
}

/* ── Grille de 4 cards ────────────────────────────────────────────────────*/
.cc-hub-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Card individuelle ───────────────────────────────────────────────────*/
.cc-hub-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(25, 36, 33, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cc-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(25, 36, 33, 0.13);
}

.cc-hub-card-link {
    text-decoration: none;
    color: var(--color-ink);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.cc-hub-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(56, 90, 112, 0.07);
    flex-shrink: 0;
}

.cc-hub-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.cc-hub-card:hover .cc-hub-card-img {
    transform: scale(1.06);
}

.cc-hub-card-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 155px;
    background: linear-gradient(
        135deg,
        rgba(56, 90, 112, 0.09) 0%,
        rgba(200, 148, 69, 0.09) 100%
    );
}

/* Corps texte */
.cc-hub-card-body {
    padding: 1.1rem 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cc-hub-card-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 600;
    opacity: 0.42;
    color: var(--color-ink);
}

.cc-hub-card-title {
    font-family: var(--font-titres);
    font-size: 0.97rem;
    line-height: 1.42;
    color: var(--color-ink);
    margin: 0;
    transition: color 0.2s ease;
}
.cc-hub-card:hover .cc-hub-card-title {
    color: var(--color-primary);
}

.cc-hub-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.62;
    margin: 0.35rem 0 0;
    flex: 1;
}

/* ── Empty state ──────────────────────────────────────────────────────────*/
.cc-hub-empty {
    text-align: center;
    padding: 5rem 2rem;
    opacity: 0.65;
    font-size: 1rem;
}
.cc-hub-empty a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}
.cc-hub-empty a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────*/
@media (max-width: 1200px) {
    .cc-hub-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cc-hub-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .cc-hub-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .cc-hub-see-all {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .cc-hub-page {
        padding: 2rem 0 4rem;
    }
    .cc-hub-section {
        margin-bottom: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .cc-hub-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cc-hub-content {
        margin-bottom: 3rem;
    }
}
