/********** TEMPLATE CSS OPTIMISÉ & STRUCTURÉ **********/

/* =====================================================
   VARIABLES
===================================================== */

:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

/* =====================================================
   BASE
===================================================== */

body {
    background: #f5f7fa;
    font-family: 'Jost', sans-serif;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
    font-weight: 700;
    transition: all .3s ease;
}

.btn:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,.15);
}

.btn-primary {
    color: #fff;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    text-align: center;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    background: #fff;
    transition: all .3s ease;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 30px;
    padding: 15px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    transition: .3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        content: "";
        position: absolute;
        width: 0;
        height: 3px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .3s ease;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

/* =====================================================
   HEADER MODERNE
===================================================== */

.page-header-modern {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.header-badge {
    display: inline-block;
    background: rgba(19,197,221,0.1);
    color: var(--primary);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 15px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 16px;
}

/* =====================================================
   ARTICLES (MAIN CARDS)
===================================================== */

.article-card-premium {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}

.article-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.08);
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
}

.article-image-wrapper img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform .4s ease;
}

.article-card-premium:hover img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
}

.article-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.article-date {
    font-size: 13px;
    color: #888;
}

.article-excerpt {
    font-size: 14px;
    color: #555;
}

/* =====================================================
   OFFRES (MAIN CARDS)
===================================================== */

.offer-card-premium {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s ease;
}

.offer-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.offer-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.offer-company {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.offer-deadline {
    font-size: 13px;
    color: #888;
}

/* =====================================================
   SIDEBARS (ARTICLES & OFFRES)
===================================================== */

.sidebar-articles,
.sidebar-offers {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-weight: 700;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 20px;
}

/* Mini cards */

.article-modern-card,
.offer-mini-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    transition: all .3s ease;
}

.article-modern-card:hover,
.offer-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.08);
}

.article-modern-card {
    display: flex;
    gap: 15px;
}

.article-modern-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.offer-company-mini {
    font-size: 13px;
    color: #555;
}

.offer-deadline-mini {
    font-size: 12px;
    color: #888;
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
    font-size: 0.85rem;
    background-color: #f8f9fa;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

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

@media (max-width: 991px) {

    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
        text-align: center;
    }

    .sidebar-articles,
    .sidebar-offers {
        position: relative;
        top: auto;
        margin-top: 40px;
    }

    .offer-card-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .offer-card-premium .btn {
        width: 100%;
    }

}

@media (max-width: 768px) {

    .page-title {
        font-size: 26px;
    }

}