/* ============================================================
   BLOG — liste, rubriques et article
   Reprend la charte du site : navy #0d2d4a, teal #1a9c8c / #22c5b1,
   texte secondaire #6b8f8a, bordures #e8f4f2, fond #f4f9f8.
   ============================================================ */

/* Le blog reprend le gabarit des pages Outils RH : .outil-page,
   .outil-hero, .outil-badge, .o-chips et .outil-body viennent de
   Content/OutilsRH.css. Seuls les elements propres au blog sont
   definis ici. */

/* Reseau de neurones dans le bandeau : canvas anime pilote par
   neurosoft-fx.js, estompe sur les bords. */
.outil-hero .ns-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .7;
    mask-image: radial-gradient(ellipse at 50% 45%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 30%, transparent 80%);
}

/* Pastille de la rubrique courante */
.o-chip.actif {
    background: rgba(34,197,177,.2);
    border-color: rgba(34,197,177,.6);
    color: #fff;
}

.bl-ariane { font-size: .82rem; margin-bottom: 1rem; }
.bl-ariane a { color: #22c5b1; text-decoration: none; }
.bl-ariane a:hover { text-decoration: underline; }
.bl-ariane span { color: rgba(255,255,255,.45); margin: 0 7px; }
.bl-ariane .courant { color: rgba(255,255,255,.75); margin: 0; }

.bl-body { padding: 2.5rem 0 4rem; }

/* ── Article à la une ── */
.bl-une {
    display: block;
    background: #fff;
    border: 1px solid #e8f4f2;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(26,156,140,.08);
    transition: transform .25s, box-shadow .25s;
}

    .bl-une:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26,156,140,.15); }

/* Sur grand ecran, la une passe en deux colonnes : elle se distingue
   alors nettement de la grille qui la suit. */
@media (min-width: 768px) {
    .bl-une { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; }
}

.bl-une-visuel {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .bl-une-visuel i {
        font-size: 3.6rem;
        color: rgba(255,255,255,.92);
        position: relative;
        z-index: 1;
        transition: transform .35s ease;
    }

.bl-une:hover .bl-une-visuel i { transform: scale(1.08) rotate(-4deg); }

/* Trame fine sur les visuels, rappel du bandeau. */
.bl-une-grille {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.bl-une-tag {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    background: rgba(255,255,255,.94);
    color: #0d2d4a;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .bl-une-tag i { color: #f39c12; font-size: .7rem; }

.bl-une-texte { padding: 1.5rem 1.7rem 1.6rem; display: flex; flex-direction: column; }
.bl-une-texte h2 {
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    color: #0d2d4a;
    font-size: 1.45rem;
    margin: .55rem 0 .6rem;
    line-height: 1.25;
    text-wrap: balance;
}
.bl-une:hover .bl-une-texte h2 { color: #1a9c8c; }
.bl-une-texte p { color: #6b8f8a; font-size: .95rem; line-height: 1.65; margin-bottom: .8rem; flex: 1; }

.bl-lire {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1a9c8c;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    font-size: .92rem;
    margin-top: .9rem;
}

    .bl-lire i { transition: transform .25s; font-size: .78rem; }

.bl-une:hover .bl-lire i { transform: translateX(4px); }

/* ── Cartes ── */
.bl-carte {
    --c: #1a9c8c;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8f4f2;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(26,156,140,.06);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}

    /* Filet de couleur de la rubrique, revele au survol. */
    .bl-carte::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: var(--c);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s ease;
    }

    .bl-carte:hover::after { transform: scaleX(1); }

    .bl-carte:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 34px rgba(26,156,140,.16);
        border-color: rgba(26,156,140,.3);
    }

.bl-carte-visuel {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .bl-carte-visuel i {
        font-size: 2.3rem;
        color: rgba(255,255,255,.92);
        position: relative;
        z-index: 1;
        transition: transform .35s ease;
    }

.bl-carte:hover .bl-carte-visuel i { transform: scale(1.12); }

/* Duree de lecture, en incrustation sur le visuel. */
.bl-lecture {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    background: rgba(13,45,74,.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
}

.bl-fleche {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f4f9f8;
    color: var(--c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    transition: background .25s, color .25s, transform .25s;
}

.bl-carte:hover .bl-fleche { background: var(--c); color: #fff; transform: translateX(3px); }

.bl-carte-texte { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.bl-carte-texte h3 {
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    color: #0d2d4a;
    font-size: 1.05rem;
    line-height: 1.3;
    margin: .5rem 0 .5rem;
    transition: color .22s;
}
.bl-carte:hover .bl-carte-texte h3 { color: var(--c); }
.bl-carte-texte p { color: #6b8f8a; font-size: .85rem; line-height: 1.55; flex: 1; margin-bottom: .7rem; }

.bl-cat {
    display: inline-block;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: 50px;
    padding: 2px 10px;
}

.bl-meta { font-size: .76rem; color: #9bb5b1; display: flex; gap: .45rem; align-items: center; }

/* ── Pagination ── */
.bl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

    .bl-pagination a {
        background: #fff;
        border: 1.5px solid #cfe3df;
        border-radius: 50px;
        color: #0d2d4a;
        font-family: 'Rajdhani',sans-serif;
        font-weight: 700;
        font-size: .88rem;
        padding: .5rem 1.3rem;
        text-decoration: none;
        transition: border-color .22s, color .22s;
    }

    .bl-pagination a:hover { border-color: #1a9c8c; color: #1a9c8c; }

.bl-page-num { color: #6b8f8a; font-size: .85rem; }

.bl-vide { background: #fff; border: 1px dashed #cfe3df; border-radius: 16px; padding: 3rem 2rem; text-align: center; }
.bl-vide i { font-size: 2.6rem; color: #cce4e0; display: block; margin-bottom: .8rem; }
.bl-vide p { color: #6b8f8a; margin-bottom: 1rem; }
.bl-lien-retour { color: #1a9c8c; font-weight: 700; text-decoration: none; }

/* ── Colonne latérale ── */
/* Decale sous la barre de rubriques, elle-meme collante. */
.bl-aside { position: sticky; top: 148px; }

.bl-bloc {
    background: #fff;
    border: 1px solid #e8f4f2;
    border-radius: 15px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 12px rgba(26,156,140,.06);
}

    .bl-bloc h4 {
        font-family: 'Rajdhani',sans-serif;
        font-weight: 700;
        color: #0d2d4a;
        font-size: 1rem;
        margin-bottom: .9rem;
        padding-bottom: .5rem;
        border-bottom: 2px solid #1a9c8c;
    }

.bl-cats { list-style: none; padding: 0; margin: 0; }
.bl-cats li { margin-bottom: .2rem; }
.bl-cats a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #3d5166;
    font-size: .87rem;
    text-decoration: none;
    padding: .45rem .6rem;
    border-radius: 9px;
    transition: background .2s, color .2s;
}
.bl-cats a:hover, .bl-cats a.actif { background: #f4f9f8; color: #1a9c8c; }
.bl-cats a span { margin-left: auto; font-size: .75rem; color: #9bb5b1; }
.bl-cats a i { width: 16px; text-align: center; }

.bl-outils p { color: #6b8f8a; font-size: .82rem; margin-bottom: .8rem; }
.bl-outils a {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #0d2d4a;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    padding: .45rem 0;
    border-bottom: 1px solid #f0f7f5;
}
.bl-outils a:last-child { border-bottom: none; }
.bl-outils a:hover { color: #1a9c8c; }
.bl-outils a i { color: #1a9c8c; width: 16px; text-align: center; font-size: .82rem; }

.bl-promo { background: linear-gradient(135deg,#0d2d4a,#1c6057); border: none; }
.bl-promo h4 { color: #fff; border-bottom-color: rgba(34,197,177,.5); }
.bl-promo p { color: rgba(255,255,255,.75); font-size: .85rem; line-height: 1.6; margin-bottom: 1rem; }
.bl-promo-cta {
    display: inline-block;
    background: linear-gradient(135deg,#1a9c8c,#22c5b1);
    color: #fff;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    font-size: .87rem;
    padding: .55rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
}
.bl-promo-cta:hover { color: #fff; opacity: .92; }

.bl-mini { display: flex; gap: .7rem; align-items: flex-start; text-decoration: none; padding: .6rem 0; border-bottom: 1px solid #f0f7f5; }
.bl-mini:last-child { border-bottom: none; }
.bl-mini-ico { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; }
.bl-mini strong { display: block; color: #0d2d4a; font-size: .84rem; font-weight: 600; line-height: 1.35; margin-bottom: .2rem; }
.bl-mini:hover strong { color: #1a9c8c; }
.bl-mini time { color: #9bb5b1; font-size: .73rem; }

/* ── Page article ── */
/* Le bandeau d'article reprend .outil-hero et n'en change que le fond,
   propre a chaque article. Le texte est cale a gauche : sur un titre
   long, le centrage nuit a la lecture. */
.bl-art-hero { text-align: left !important; }

    /* Voile sombre : garantit le contraste du texte quel que soit le
       degrade de l'article. */
    .bl-art-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(13,45,74,.42) 0%, rgba(13,45,74,.24) 100%);
        pointer-events: none;
        z-index: 0;
    }

    .bl-art-hero .container { position: relative; z-index: 2; }
.bl-art-hero h1 {
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem,3.2vw,2.4rem);
    line-height: 1.22;
    margin-bottom: .7rem;
    max-width: 900px;
    text-wrap: balance;
}
.bl-art-chapo { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.65; max-width: 760px; margin-bottom: 1.1rem; }
.bl-art-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .8rem; color: rgba(255,255,255,.7); }
.bl-art-meta i { margin-right: .35rem; opacity: .8; }

/* ── Corps de l'article ── */
.bl-corps {
    background: #fff;
    border: 1px solid #e8f4f2;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-shadow: 0 4px 18px rgba(26,156,140,.07);
    color: #2f4b47;
    font-size: 1rem;
    line-height: 1.78;
}

.bl-corps h2 {
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    color: #0d2d4a;
    font-size: 1.35rem;
    margin: 2rem 0 .8rem;
    padding-bottom: .45rem;
    border-bottom: 2px solid #1a9c8c;
    scroll-margin-top: 100px;
}

.bl-corps h2:first-child { margin-top: 0; }

.bl-corps h3 {
    font-family: 'Rajdhani',sans-serif;
    font-weight: 700;
    color: #0d2d4a;
    font-size: 1.1rem;
    margin: 1.5rem 0 .6rem;
}

.bl-corps p { margin-bottom: 1rem; }
.bl-corps ul, .bl-corps ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.bl-corps li { margin-bottom: .45rem; }
.bl-corps a { color: #1a9c8c; font-weight: 600; }
.bl-corps strong { color: #0d2d4a; }

.bl-corps table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1.2rem; }
.bl-corps th, .bl-corps td { border: 1px solid #dbe9e6; padding: .55rem .75rem; text-align: right; }
.bl-corps th { background: #f4f9f8; color: #0d2d4a; font-weight: 700; text-align: center; }
.bl-corps td:first-child, .bl-corps th:first-child { text-align: left; }
.bl-tableau { overflow-x: auto; }

.bl-encadre {
    background: #f4f9f8;
    border-left: 4px solid #1a9c8c;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: .93rem;
}
.bl-encadre p:last-child { margin-bottom: 0; }
.bl-encadre strong { color: #0d2d4a; }

.bl-alerte {
    background: #fff8ec;
    border-left: 4px solid #f39c12;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: .93rem;
}

/* ── Mots-clés et navigation ── */
.bl-mots { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.bl-mot {
    background: #fff;
    border: 1px solid #e8f4f2;
    border-radius: 50px;
    color: #6b8f8a;
    font-size: .76rem;
    padding: .25rem .8rem;
}

.bl-nav-art { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.5rem; }
@media (max-width: 575px) { .bl-nav-art { grid-template-columns: 1fr; } }

.bl-nav-art a {
    background: #fff;
    border: 1px solid #e8f4f2;
    border-radius: 13px;
    padding: .9rem 1.1rem;
    text-decoration: none;
    transition: border-color .22s, transform .22s;
}
.bl-nav-art a:hover { border-color: #1a9c8c; transform: translateY(-2px); }
.bl-nav-art span { display: block; color: #1a9c8c; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .3rem; }
.bl-nav-art strong { color: #0d2d4a; font-size: .88rem; font-weight: 600; line-height: 1.4; }
.bl-nav-suiv { text-align: right; }

@media print {
    .bl-aside, .bl-nav-art, .bl-mots, .bl-pagination { display: none !important; }
    .bl-art-hero { background: none !important; color: #000; padding-top: 0; }
    .bl-art-hero h1, .bl-art-chapo, .bl-art-meta { color: #000 !important; }
    .bl-corps { border: none; box-shadow: none; padding: 0; }
}
