/* ==========================================================
   BLOG — 
   ========================================================== */

#blog.section-full {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Le blog occupe toute la largeur de l'écran, avec juste une marge
   de respiration à gauche/droite (au lieu du .wrap étroit du site) */
#blog .wrap-full {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding-left: clamp(20px, 4vw, 64px);
    padding-right: clamp(20px, 4vw, 64px);
    box-sizing: border-box;
}

.mag-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1f6fb2;
}

.mag-tag-light {
    color: #bfe0f7;
}

.mag-date {
    display: block;
    font-size: 0.78rem;
    color: #8a97a3;
    margin-top: 4px;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f6fb2;
    text-decoration: none;
    white-space: nowrap;
}

.view-all:hover {
    text-decoration: underline;
}

/* ==========================================================
   BOUTON LOVE
   ========================================================== */
.love-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(11, 61, 89, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    color: #5b6b78;
    padding: 0 10px;
    z-index: 3;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.love-btn:hover {
    transform: scale(1.06);
}

.love-btn.is-loved {
    color: #e0263f;
}

.love-btn.is-loved .love-icon {
    fill: #e0263f;
    stroke: #e0263f;
}

.love-count {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

/* Variante sur fond sombre (image vedette) */
.love-btn-light {
    background: rgba(11, 36, 56, 0.55);
    color: #fff;
    backdrop-filter: blur(2px);
}

.love-btn-light.is-loved {
    background: rgba(255, 255, 255, 0.92);
}

/* ==========================================================
   HERO
   ========================================================== */
.blog-hero {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(260px, 340px);
    gap: 32px;
    align-items: stretch;
}

/* ----- Mini posts (gauche) ----- */
.hero-side-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mini-post {
    display: flex;
    flex-direction: column;
}

.mini-post-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #eef2f6;
}

.mini-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 0;
}

.mini-post-title a {
    color: #16324a;
    text-decoration: none;
}

.mini-post-title a:hover {
    color: #1f6fb2;
}

/* ----- Article vedette (centre) — titre/description en overlay ----- */
.hero-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-feature-media {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #eef2f6;
}

.hero-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-feature-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 28px 28px;
    background: linear-gradient(to top, rgba(6, 25, 40, 0.92) 0%, rgba(6, 25, 40, 0.65) 45%, rgba(6, 25, 40, 0) 100%);
    text-align: center;
}

.hero-feature-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 8px 0 10px;
}

.hero-feature-title a {
    color: #fff;
    text-decoration: none;
}

.hero-feature-title a:hover {
    color: #bfe0f7;
}

.hero-feature-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #e4edf3;
    margin: 0 auto 10px;
    max-width: 480px;
}

.hero-feature-byline {
    font-size: 0.78rem;
    color: #bcd2e0;
    margin: 0;
}

.hero-feature-byline span {
    color: #fff;
    font-weight: 600;
}

/* ----- Derniers articles (droite) ----- */
.hero-side-right {
    display: flex;
    flex-direction: column;
}

.blog-side-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b3d59;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3edf5;
}

.latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-item {
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 16px;
}

.latest-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
}

.latest-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f6;
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.latest-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: #16324a;
}

.latest-link:hover .latest-title {
    color: #1f6fb2;
}

.hero-side-right .view-all {
    margin-top: 18px;
    align-self: flex-end;
}

/* ==========================================================
   SECTIONS PAR CATEGORIE
   ========================================================== */
.mag-section {
    margin-top: 56px;
}

.mag-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e3edf5;
}

.mag-section-head h3 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b3d59;
    margin: 0;
}

.mag-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.mag-card {
    display: flex;
    flex-direction: column;
}

.mag-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #eef2f6;
}

.mag-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mag-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 0;
}

.mag-card-title a {
    color: #16324a;
    text-decoration: none;
}

.mag-card-title a:hover {
    color: #1f6fb2;
}

.mag-card-excerpt {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #5b6b78;
    margin: 8px 0 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Grands écrans : le hero garde ses 3 colonnes mais peut respirer plus */
@media (min-width: 1500px) {
    .blog-hero {
        grid-template-columns: 320px minmax(0, 1fr) 360px;
        gap: 44px;
    }

    .mag-grid {
        gap: 28px;
    }
}

@media (max-width: 1200px) {
    .mag-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .blog-hero {
        grid-template-columns: 220px minmax(0, 1fr) 260px;
        gap: 24px;
    }
}

@media (max-width: 960px) {
    .blog-hero {
        grid-template-columns: 1fr;
    }

    .hero-side-left {
        flex-direction: row;
        gap: 20px;
    }

    .hero-side-left .mini-post {
        flex: 1;
    }

    .hero-feature {
        height: auto;
    }

    .hero-feature-media {
        flex: none;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 360px;
    }

    .mag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #blog .wrap-full {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-side-left {
        flex-direction: column;
    }

    .hero-feature-media {
        flex: none;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }

    .hero-feature-overlay {
        padding: 40px 18px 18px;
    }

    .hero-feature-title {
        font-size: 1.2rem;
    }

    .hero-feature-excerpt {
        font-size: 0.84rem;
    }

    .mag-grid {
        grid-template-columns: 1fr;
    }

    .mag-section-head h3 {
        font-size: 0.74rem;
    }
}