/* Blog public Colabs DZ : complète lib/css/home.css (header / footer / typographie) */
.bl-main {
    max-width: 1420px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.bl-hero {
    text-align: center;
    padding: 30px 0 26px;
}

.bl-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: #0b7f76;
    margin: 0 0 8px;
}

.bl-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 0 12px;
    line-height: 1.15;
}

.bl-lead {
    color: #5b6b7b;
    max-width: 640px;
    margin: 0 auto 22px;
    font-size: 1.05rem;
}

.bl-bio {
    max-width: 640px;
    margin: 0 auto 12px;
    color: #33475b;
}

.bl-profile .avatar {
    margin-bottom: 12px;
}

.bl-search {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 18px;
}

.bl-search input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #d5dde5;
    border-radius: 10px;
    font: inherit;
}

.bl-search button, .bl-btn {
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: #0b7f76;
    color: #fff;
    font: 600 .92rem 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.bl-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.bl-filters a {
    padding: 7px 16px;
    border-radius: 99px;
    border: 1px solid #d5dde5;
    color: #33475b;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.bl-filters a.active {
    background: var(--c, #0b7f76);
    border-color: var(--c, #0b7f76);
    color: #fff;
}

.bl-filters a:not(.active):hover {
    border-color: var(--c, #0b7f76);
    color: var(--c, #0b7f76);
}

.bl-list h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    margin: 10px 0 18px;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bl-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .2s;
}

.bl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(15,29,43,.1);
}

.bl-cover {
    display: none;
    aspect-ratio: 16/9;
    background: color-mix(in srgb, var(--c) 14%, #fff);
    overflow: hidden;
}

.bl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bl-cover-ph {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    font: 700 3rem 'Sora', sans-serif;
    color: var(--c);
    opacity: .55;
}

.bl-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.bl-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.12rem;
    line-height: 1.35;
    margin: 0;
}

.bl-card h2 a {
    color: inherit;
    text-decoration: none;
}

.bl-card h2 a:hover {
    color: #0b7f76;
}

.bl-card p {
    margin: 0;
    color: #5b6b7b;
    font-size: .93rem;
    flex: 1;
}

.bl-tag {
    align-self: flex-start;
    font-size: .74rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 99px;
    text-decoration: none;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, #fff);
}

.bl-meta {
    font-size: .8rem;
    color: #7b8a99;
}

.bl-meta a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.bl-empty {
    text-align: center;
    color: #7b8a99;
    padding: 50px 0;
}

.bl-preview {
    background: #fff5dd;
    border: 1px solid #f2dda1;
    color: #6b4a0b;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: .9rem;
}

/* Article */
.bl-article {
    max-width: 760px;
    margin: 0 auto;
}

.bl-article-head h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 14px 0 20px;
}

.bl-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.bl-byline div {
    display: flex;
    flex-direction: column;
    font-size: .88rem;
    color: #7b8a99;
}

.bl-byline a {
    color: #14202b;
    text-decoration: none;
    font-size: .98rem;
}

.bl-article-cover {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 28px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.bl-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1f2d3a;
    overflow-wrap: anywhere;
}

.bl-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    margin: 2em 0 .6em;
}

.bl-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    margin: 1.6em 0 .5em;
}

.bl-content p {
    margin: 0 0 1.1em;
}

.bl-content a {
    color: #0b7f76;
    text-decoration: underline;
}

.bl-content blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid #0b7f76;
    color: #3b4d5f;
    font-style: italic;
}

.bl-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1em 0;
}

.bl-content pre {
    background: #0f1d2b;
    color: #e6edf3;
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.55;
}

.bl-content code {
    background: #eef2f6;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: .9em;
}

.bl-content pre code {
    background: none;
    padding: 0;
}

.bl-content ul, .bl-content ol {
    padding-left: 1.4em;
    margin: 0 0 1.1em;
}

.bl-author {
    display: flex;
    gap: 16px;
    margin: 44px 0 10px;
    padding: 22px;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    background: #f8fafb;
}

.bl-author p {
    margin: 0 0 6px;
}

.bl-author-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.bl-author-name a {
    color: inherit;
    text-decoration: none;
}

.bl-author-role {
    color: #0b7f76;
    font-weight: 600;
    font-size: .9rem;
}

.bl-related {
    margin-top: 60px;
}

.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    display: inline-block;
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e3f4f2;
    color: #086860;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.pager {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 30px 0 0;
    flex-wrap: wrap;
}

.pager .pg {
    padding: 7px 13px;
    border: 1px solid #d5dde5;
    border-radius: 9px;
    background: #fff;
    color: #14202b;
    text-decoration: none;
}

.pager .pg.active {
    background: #0b7f76;
    color: #fff;
    border-color: #0b7f76;
}

@media (max-width: 640px) {
    .bl-main {
        padding: 24px 16px 50px;
    }

    .bl-grid {
        grid-template-columns: 1fr;
    }

    .bl-author {
        flex-direction: column;
    }
}

/* ---- Pages de laboratoire : derniers articles + appel à postuler ---- */
.lab-articles .bl-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.lab-articles .bl-empty {
    max-width: 1120px;
    margin: 0 auto;
}

.lab-apply {
    max-width: 1072px;
    margin: 36px auto 0;
    padding: 28px 30px;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    background: #f8fafb;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.lab-apply-text {
    flex: 1 1 420px;
}

.lab-apply h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.lab-apply p {
    margin: 0 0 10px;
    color: #4a5b6c;
}

.lab-apply-note {
    color: #0b7f76 !important;
    font-weight: 600;
}

.lab-apply-steps {
    margin: 6px 0 0;
    padding-left: 1.2em;
    color: #4a5b6c;
    font-size: .93rem;
    line-height: 1.7;
}

.lab-apply-actions {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}
.lab-apply-actions a{
    width: stretch;
    text-align: center; 
}

@media (max-width: 640px) {
    .lab-apply {
        padding: 22px 18px;
    }

    .lab-articles .bl-grid {
        padding: 0 16px;
    }
}

/* ---- Formulaire de candidature (postuler.php) ---- */
.ap-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.ap-form, .ap-done {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    padding: 28px;
}

.ap-done {
    text-align: center;
}

.ap-done h2 {
    font-family: 'Sora', sans-serif;
    margin-top: 0;
}

.ap-field {
    margin-bottom: 16px;
}

.ap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ap-field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 5px;
}

.ap-field small {
    font-weight: 400;
    color: #7b8a99;
}

.ap-field input, .ap-field select, .ap-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d5dde5;
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus {
    outline: 2px solid #e3f4f2;
    border-color: #0b7f76;
}

.ap-error {
    background: #fdece4;
    border: 1px solid #f3cdbd;
    color: #7c2d12;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: .92rem;
}

.ap-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ap-note {
    margin: 14px 0 0;
    color: #7b8a99;
    font-size: .88rem;
}

.ap-note a {
    color: #0b7f76;
}

.bl-btn[disabled] {
    opacity: .6;
    cursor: default;
}

@media (max-width: 640px) {
    .ap-row {
        grid-template-columns: 1fr;
    }

    .ap-form, .ap-done {
        padding: 20px 16px;
    }
}
