/* ==========================================================================
   PAGE D'ACCUEIL — SECTION DERNIERS ARTICLES
   ========================================================================== */

.cc-latest-posts {
    padding: 5rem 0 6rem;
    background: var(--color-paper);
}

/* Titre de section avec liseré Ocre centré */
.cc-latest-title {
    font-family: var(--font-titres);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-ink);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}
.cc-latest-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}

/* Grille 12 colonnes */
.cc-latest-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

/* ---- ARTICLE À LA UNE (1er) ---- */
.cc-latest-featured {
    grid-column: span 12;
}
.cc-latest-featured .cc-latest-card-link {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}
.cc-latest-featured .cc-latest-img-wrap {
    aspect-ratio: 16 / 9;
}
.cc-latest-featured .cc-latest-post-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.3;
}
.cc-latest-featured .cc-latest-content {
    padding: 1rem 0;
}

/* ---- ARTICLES STANDARD (les suivants) ---- */
.cc-latest-standard {
    grid-column: span 3; /* 4 articles sur une ligne de 12 */
}
.cc-latest-standard .cc-latest-card-link {
    display: flex;
    flex-direction: column;
}
.cc-latest-standard .cc-latest-img-wrap {
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
}
.cc-latest-standard .cc-latest-post-title {
    font-size: 1.05rem;
    line-height: 1.4;
}

/* ---- DESIGN COMMUN ---- */
.cc-latest-card-link {
    text-decoration: none;
    color: var(--color-ink);
}

.cc-latest-img-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(56, 90, 112, 0.08); /* placeholder si pas d'image */
}

.cc-latest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.cc-latest-card:hover .cc-latest-img {
    transform: scale(1.05);
}
.cc-latest-card:hover .cc-latest-post-title {
    color: var(--color-primary);
}

.cc-latest-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, rgba(56,90,112,0.1), rgba(200,148,69,0.1));
}

/* Badge Catégorie */
.cc-latest-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-secondary);
    color: var(--color-paper);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    z-index: 2;
}

/* Méta (Date + Temps de lecture) */
.cc-latest-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.55;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-latest-post-title {
    font-family: var(--font-titres);
    color: var(--color-ink);
    transition: color 0.2s ease;
    margin-bottom: 0;
    line-height: 1.35;
}

.cc-latest-excerpt {
    font-size: 1rem;
    opacity: 0.75;
    margin-top: 1rem;
    line-height: 1.65;
    text-align: left;
}

/* Bouton "Voir tous les articles" */
.cc-latest-cta {
    text-align: center;
    margin-top: 1rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .cc-latest-standard {
        grid-column: span 4; /* 3 par ligne */
    }
}

@media (max-width: 1024px) {
    .cc-latest-featured .cc-latest-card-link {
        grid-template-columns: 1fr; /* Empilé sur tablette */
        gap: 20px;
    }
    .cc-latest-standard {
        grid-column: span 6; /* 2 par ligne */
    }
}

@media (max-width: 600px) {
    .cc-latest-featured,
    .cc-latest-standard {
        grid-column: span 12; /* 1 par ligne sur mobile */
    }
    .cc-latest-posts {
        padding: 3rem 0 4rem;
    }
}

/* =====================================================
   NAVIGATION PAR INTENTION
   ===================================================== */

.cc-intention-grid {
    background: var(--color-paper);
    padding: 4rem 0 4.5rem;
}

.cc-intention-title {
    font-family: var(--font-titres);
    font-size: 1.6rem;
    color: var(--color-ink);
    text-align: center;
    margin: 0 0 2.5rem;
    position: relative;
}

.cc-intention-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin: 0.65rem auto 0;
}

.cc-intention-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.cc-intention-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 160px;
    padding: 1.75rem 1rem;
    background: #fff;
    border: 1.5px solid rgba(56,90,112,.12);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cc-intention-tile:hover,
.cc-intention-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56,90,112,.18);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cc-intention-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.cc-intention-label {
    font-family: var(--font-titres);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Responsive intention */
@media (max-width: 768px) {
    .cc-intention-tiles {
        gap: 1rem;
    }
    .cc-intention-tile {
        width: 140px;
        padding: 1.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .cc-intention-tile {
        width: calc(50% - 0.5rem);
    }
}

/* =====================================================
   ZONES GÉOGRAPHIQUES
   ===================================================== */

.cc-zones-grid {
    background: #fff;
    padding: 3.5rem 0 4rem;
    border-top: 1px solid rgba(56,90,112,.08);
}

.cc-zones-title {
    font-family: var(--font-titres);
    font-size: 1.6rem;
    color: var(--color-ink);
    text-align: center;
    margin: 0 0 2rem;
    position: relative;
}

.cc-zones-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 0.65rem auto 0;
}

.cc-zones-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cc-zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: var(--color-paper);
    border: 1.5px solid rgba(56,90,112,.15);
    border-radius: 999px;
    font-family: var(--font-textes);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-ink);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.cc-zone-pill:hover,
.cc-zone-pill:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.cc-zone-pill:hover .cc-zone-count,
.cc-zone-pill:focus-visible .cc-zone-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.cc-zone-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.3rem;
    background: rgba(56,90,112,.1);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: background .18s ease, color .18s ease;
}

@media (max-width: 600px) {
    .cc-zones-grid {
        padding: 2.5rem 0 3rem;
    }
    .cc-zone-pill {
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
    }
}

/* ==========================================================================
   DESIGN PREMIUM v2 — home.css
   ========================================================================== */

/* ── Featured card — zoom img + overlay hover ──────────────────────────── */
.cc-latest-featured .cc-latest-img-wrap {
    overflow: hidden;
    position: relative;
}

.cc-latest-featured .cc-latest-img {
    transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}

.cc-latest-featured:hover .cc-latest-img {
    transform: scale(1.04);
}

.cc-latest-featured .cc-latest-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(25,36,33,.55) 0%, transparent 55%);
    pointer-events: none;
    transition: opacity .35s ease;
    opacity: .4;
}

.cc-latest-featured:hover .cc-latest-img-wrap::after {
    opacity: .7;
}

.cc-latest-featured .cc-latest-post-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}

/* ── Standard cards — lift + ombre progressive ─────────────────────────── */
.cc-latest-standard {
    transition: transform .28s cubic-bezier(.25,.46,.45,.94), box-shadow .28s ease;
    border-radius: 10px;
    overflow: hidden;
}

.cc-latest-standard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(25,36,33,.13);
}

.cc-latest-standard .cc-latest-img-wrap {
    overflow: hidden;
}

.cc-latest-standard .cc-latest-img {
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}

.cc-latest-standard:hover .cc-latest-img {
    transform: scale(1.06);
}

/* ── Intention tiles — gradient + emoji bounce ─────────────────────────── */
@keyframes cc-bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-6px); }
    65%       { transform: translateY(-2px); }
}

.cc-intention-tile {
    background: linear-gradient(145deg, #fff 0%, #f3f0eb 100%);
    box-shadow: 0 2px 10px rgba(25,36,33,.07);
    transition: transform .28s cubic-bezier(.25,.46,.45,.94), box-shadow .28s ease, background .28s ease;
}

.cc-intention-tile:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 36px rgba(56,90,112,.15);
    background: linear-gradient(145deg, #fff 0%, #e8f0f5 100%);
}

.cc-intention-tile:hover .cc-intention-emoji {
    animation: cc-bounce .5s ease forwards;
}
