/* Styles de laboratoires.php (extraits de la page, même ordre) */

    .research-hero {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(0, 0, 136, 0.85)),
            url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920') center/cover;
        color: white;
        padding: 5rem 0 3rem;
        position: relative;
    }

    .breadcrumb-custom {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .breadcrumb-custom a {
        color: white;
        text-decoration: none;
        opacity: 0.8;
    }

    .breadcrumb-custom a:hover {
        opacity: 1;
    }

    .section-title {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-title h2 {
        color: var(--dark-color);
        font-weight: 700;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .section-title::after {
        content: '';
        width: 100px;
        height: 4px;
        background: var(--secondary-color);
        display: block;
        margin: 2rem auto 0;
    }

    .director-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-bottom: 3rem;
    }

    .director-image {
        width: 100%;
        height: 550px;
        object-fit: cover;
    }

    .director-info {
        padding: 3rem;
    }

    .service-card {
        background: white;
        border-radius: 15px;
        padding: 2rem;
        height: 100%;
        transition: all 0.3s;
        border: 2px solid #f0f0f0;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-color: var(--secondary-color);
    }

    .service-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, var(--secondary-color), #d9a259);
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: white;
        margin-bottom: 1.5rem;
    }

    .research-area-card {
        background: white;
        border-radius: 15px;
        padding: 2rem;
        margin-bottom: 2rem;
        border-left: 5px solid var(--secondary-color);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .thesis-form {
        background: white;
        border-radius: 20px;
        padding: 3rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .form-section:last-child {
        border-bottom: none;
    }

    .stats-section {
        background: linear-gradient(135deg, var(--secondary-color), #d9a259);
        padding: 3rem 0;
        color: white;
        margin: 4rem 0;
    }

    .stat-box {
        text-align: center;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
        font-weight: 700;
        display: block;
    }

    /* Hero stats: semi-transparent cards to blend with dark hero background
       Layout: two cards per row on md+ and below on small screens */
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-stats .hero-stat {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
        backdrop-filter: blur(4px);
        flex: 0 0 calc(50% - 0.5rem);
    }

    .hero-stats .hero-stat .hero-stat-num {
        color: #fff;
    }

    .hero-stats .hero-stat .hero-stat-label {
        color: rgba(255, 255, 255, 0.95);
        font-weight: 600;
        font-size: 0.95rem;
    }

    /* Small screens: single column */
    @media (max-width: 576px) {
        .hero-stats .hero-stat {
            flex: 0 0 100% !important;
        }
    }

    /* Extra large screens: keep two per row but limit width */
    @media (min-width: 1200px) {
        .hero-stats .hero-stat {
            flex: 0 0 calc(50% - 1rem);
        }
    }

    /* Hero action buttons: pill CTA styles */
    .hero-actions .btn {
        padding: 0.7rem 1.25rem;
        border-radius: 999px;
        font-weight: 700;
        letter-spacing: 0.2px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
        display: inline-flex;
        align-items: center;
    }

    .hero-actions .btn i {
        font-size: 1.05rem;
        margin-right: .5rem;
    }

    .hero-actions .btn-primary {
        background: linear-gradient(90deg, var(--secondary-color), #d9a259);
        color: var(--dark-color);
        border: 0;
    }

    .hero-actions .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
        opacity: 0.98;
    }

    .hero-actions .btn-outline-light {
        background: transparent;
        color: #fff;
        border: 2px solid rgba(255, 255, 255, 0.18);
    }

    .hero-actions .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.06);
        transform: translateY(-2px);
    }

    @media (max-width: 576px) {
        .hero-actions {
            display: flex;
            flex-direction: column;
            gap: .6rem;
        }

        .hero-actions .btn {
            width: 100%;
            justify-content: center;
        }
    }

    /* Publications list styles */
    .stat-strip {
        display: flex;
        gap: 1rem;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }

    .stat-strip-item {
        flex: 1 1 0;
        min-width: 140px;
        background: #fff;
        padding: 1rem 1.25rem;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    }

    .stat-strip-num {
        font-size: 1.6rem;
        font-weight: 800;
        color: var(--secondary-color);
        display: block;
    }

    .stat-strip-label {
        font-size: 0.95rem;
        color: #444;
    }

    .pub-item {
        background: #fff;
        padding: 1.25rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        border-left: 5px solid var(--secondary-color);
        box-shadow: 0 10px 40px rgba(2, 6, 23, 0.04);
    }

    .pub-meta {
        color: #666;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: flex;
        gap: 0.5rem;
        align-items: center;
        font-size: 0.95rem;
    }

    .pub-item h3 {
        color: var(--dark-color);
        margin-bottom: 0.45rem;
        font-weight: 700;
    }

    .pub-authors,
    .pub-journal {
        color: #555;
        font-size: 0.95rem;
    }

    .badge {
        padding: .2rem .6rem;
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.82rem;
    }

    .badge-green {
        background: rgba(34, 197, 94, 0.08);
        color: #15803d;
        border: 1px solid rgba(34, 197, 94, 0.12);
    }

    .badge-blue {
        background: rgba(59, 130, 246, 0.07);
        color: #1d4ed8;
        border: 1px solid rgba(59, 130, 246, 0.10);
    }

    .badge-gold {
        background: rgba(217, 162, 89, 0.06);
        color: #b45309;
        border: 1px solid rgba(217, 162, 89, 0.10);
    }

    @media (max-width: 768px) {
        .stat-strip {
            flex-direction: column;
        }

        .stat-strip-item {
            min-width: unset;
        }
    }

    /* Articles cards/grid styles */
    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .card {
        background: #fff;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 12px 36px rgba(2, 6, 23, 0.06);
        display: flex;
        flex-direction: column;
        min-height: 160px;
        transition: transform .15s ease, box-shadow .15s ease;
    }

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(2, 6, 23, 0.08);
    }

    .card-img {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        margin: 0 0 0.75rem 0;
        background: transparent;
        width: 100%;
        height: 180px;
        border-radius: 12px 12px 0 0;
        position: relative;
    }

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px 12px 0 0;
    }

    .card-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.8rem 1rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
        color: #fff;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        border-radius: 0 0 12px 12px;
    }

    .card-overlay .card-tag {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 700;
    }

    .card-overlay h3 {
        margin: 0;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .card-body {
        flex: 1 1 auto;
    }

    .card-tag {
        display: inline-block;
        font-size: 0.78rem;
        font-weight: 800;
        color: var(--secondary-color);
        margin-bottom: 0.5rem;
    }

    .card-body h3 {
        margin: 0 0 0.6rem 0;
        color: var(--dark-color);
        font-size: 1.05rem;
    }

    .card-body p {
        color: #555;
        margin: 0;
        line-height: 1.45;
    }

    .card-footer {
        margin-top: 0.9rem;
        color: #777;
        font-size: 0.9rem;
        text-align: right;
    }

    @media (max-width: 992px) {
        .grid-3 {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .grid-3 {
            grid-template-columns: 1fr;
        }

        .card-footer {
            text-align: left;
        }
    }

        /* Projects table styles — professional look + responsive card fallback */
        .table-wrap { overflow-x: auto; margin: 2.5rem 0; }
        .table-wrap table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 720px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(2,6,23,0.06);
            overflow: hidden;
            font-size: 0.95rem;
        }

        .table-wrap thead th {
            text-align: left;
            padding: 0.95rem 1rem;
            background: linear-gradient(180deg, #f8fafc, #f1f5f9);
            font-weight: 700;
            color: var(--dark-color);
            border-bottom: 1px solid rgba(15,23,42,0.06);
            letter-spacing: 0.2px;
        }

        .table-wrap tbody td {
            padding: 0.9rem 1rem;
            border-bottom: 1px solid #f3f4f6;
            vertical-align: middle;
            color: #334155;
        }

        .table-wrap tbody tr:nth-child(odd) td { background: #ffffff; }
        .table-wrap tbody tr:nth-child(even) td { background: #fbfbfc; }

        .table-wrap tbody tr:hover td { background: #f6f8fb; }

        .table-wrap tbody td strong { color: #0f172a; }

        /* Status badges look */
        .badge { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-weight:700; font-size:0.82rem; }
        .badge-green { background: rgba(16,185,129,0.12); color:#047857; border:1px solid rgba(16,185,129,0.16); }
        .badge-blue { background: rgba(59,130,246,0.08); color:#1e3a8a; border:1px solid rgba(59,130,246,0.12); }
        .badge-gold { background: rgba(245,158,11,0.08); color:#92400e; border:1px solid rgba(245,158,11,0.12); }

        /* Responsive: transform rows into cards on small screens */
        @media (max-width: 768px) {
            .table-wrap table { min-width: unset; border-radius: 0; box-shadow: none; }
            .table-wrap thead { display: none; }
            .table-wrap tbody tr { display: block; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(2,6,23,0.04); }
            .table-wrap tbody td { display: flex; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 0; background: #fff; }
            .table-wrap tbody td:before { content: attr(data-label); color: #64748b; font-weight: 700; margin-right: 0.5rem; }
            .table-wrap tbody td + td { border-top: 1px solid #f3f4f6; }
        }
