/* =========================================================
   WSI - ECONOMIE
   ========================================================= */


/* =========================================================
   LIENS DES 3 RUBRIQUES
   ========================================================= */

#fundamentaux-list a,
#marches-list a,
#news-list a {
    color: #323331 !important;
    text-decoration-color: rgba(173, 149, 81, 0.45);
    text-underline-offset: 3px;
    font-weight: 500;

    transition:
        color 0.18s ease,
        text-decoration-color 0.18s ease;
}


#fundamentaux-list a:visited,
#marches-list a:visited,
#news-list a:visited {
    color: #323331 !important;
}


#fundamentaux-list a:hover,
#marches-list a:hover,
#news-list a:hover {
    color: #ad9551 !important;
    text-decoration-color: #ad9551;
}


#fundamentaux-list a:focus,
#marches-list a:focus,
#news-list a:focus {
    color: #ad9551 !important;
    outline: none;
}


/* =========================================================
   PAGINATION
   ========================================================= */

#pagination-fondamentaux .page-link,
#pagination-marches .page-link,
#pagination .page-link {
    color: #323331 !important;

    background-color: #ffffff;

    border-color: #dee2e6;

    box-shadow: none;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}


/* Survol */
#pagination-fondamentaux .page-link:hover,
#pagination-marches .page-link:hover,
#pagination .page-link:hover {
    color: #323331 !important;

    background-color: rgba(173, 149, 81, 0.12);

    border-color: #ad9551;
}


/* Page active : suppression du bleu Bootstrap */
#pagination-fondamentaux .page-item.active .page-link,
#pagination-marches .page-item.active .page-link,
#pagination .page-item.active .page-link {
    color: #ffffff !important;

    background-color: #323331 !important;

    border-color: #323331 !important;
}


/* Focus */
#pagination-fondamentaux .page-link:focus,
#pagination-marches .page-link:focus,
#pagination .page-link:focus {
    color: #323331 !important;

    border-color: #ad9551;

    box-shadow:
        0 0 0 0.15rem
        rgba(173, 149, 81, 0.15);
}


/* =========================================================
   RECHERCHE
   ========================================================= */

#searchInput:focus,
#searchInputEconomy:focus {
    border-color: #ad9551;

    box-shadow:
        0 0 0 0.15rem
        rgba(173, 149, 81, 0.15);
}


/* =========================================================
   CONTENU D'ARTICLE CHARGÉ
   ========================================================= */

#dynamic-content a:not(.btn) {
    color: #666964 !important;

    text-decoration-color:
        rgba(173, 149, 81, 0.5);

    text-underline-offset: 3px;
}


#dynamic-content a:not(.btn):visited {
    color: #666964 !important;
}


#dynamic-content a:not(.btn):hover,
#dynamic-content a:not(.btn):focus {
    color: #ad9551 !important;
}


/* Anciennes classes Bootstrap bleues */
#dynamic-content .text-primary,
#dynamic-content .link-primary,
#dynamic-content .btn-link,
#fundamentaux-list .text-primary,
#marches-list .text-primary,
#news-list .text-primary {
    color: #323331 !important;
}
/* ==================================================
   PAGE ÉCONOMIE WSI
   ================================================== */

.wsi-economy-page {
    padding-top: 82px;
    color: #323331;
    background: #fff;
}


/* ==================================================
   HERO
   ================================================== */

.wsi-economy-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(173,149,81,0.13),
            transparent 28rem
        ),
        linear-gradient(
            135deg,
            #f8f6f0 0%,
            #f0ece2 100%
        );
}

.wsi-economy-title {
    max-width: 680px;
    margin: 1rem 0 1.5rem;
    color: #292b28;
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.wsi-economy-title span {
    display: block;
    color: #ad9551;
}

.wsi-economy-lead {
    max-width: 660px;
    margin: 0;
    color: #646660;
    font-size: 1.08rem;
    line-height: 1.8;
}


/* Points hero */

.wsi-economy-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.wsi-economy-hero-points > div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.wsi-economy-hero-points i {
    color: #ad9551;
    font-size: 1.25rem;
}

.wsi-economy-hero-points span {
    color: #686a65;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}


/* Hero image */

.wsi-economy-hero-image {
    position: relative;
    max-width: 620px;
    margin-left: auto;
}

.wsi-economy-hero-image > img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    border-radius: 1.6rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.16);
}

.wsi-economy-image-accent {
    position: absolute;
    z-index: 1;
    right: -18px;
    bottom: -18px;
    width: 92%;
    height: 90%;
    border-radius: 1.6rem;
    background: rgba(173,149,81,0.18);
}

.wsi-economy-floating-card {
    position: absolute;
    z-index: 3;
    left: -35px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1rem;
    background: rgba(255,255,255,0.93);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wsi-economy-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(173,149,81,0.12);
    color: #ad9551;
}

.wsi-economy-floating-card small,
.wsi-economy-floating-card strong {
    display: block;
}

.wsi-economy-floating-card small {
    margin-bottom: 0.15rem;
    color: #9b9d96;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.wsi-economy-floating-card strong {
    color: #323331;
    font-size: 0.78rem;
}


/* ==================================================
   INTRO
   ================================================== */

.wsi-economy-intro {
    padding: 7rem 0;
    background: #fff;
}

.wsi-economy-intro h2 {
    margin: 0.9rem auto 1.7rem;
    color: #292b28;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.wsi-economy-intro p {
    max-width: 790px;
    margin: 0 auto 1rem;
    color: #70726c;
    font-size: 1rem;
    line-height: 1.85;
}


/* ==================================================
   CONTENU
   ================================================== */

.wsi-economy-content {
    padding: 7rem 0;
    background: #f7f5ef;
}


/* Recherche */

.wsi-economy-search {
    position: relative;
}

.wsi-economy-search i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 1.2rem;
    color: #ad9551;
    font-size: 1.05rem;
    transform: translateY(-50%);
}

.wsi-economy-search .form-control {
    height: 58px;
    padding: 0 1.2rem 0 3.2rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.9rem;
    background: #fff;
    color: #323331;
    box-shadow: 0 10px 35px rgba(0,0,0,0.045);
    font-size: 0.92rem;
}

.wsi-economy-search .form-control:focus {
    border-color: rgba(173,149,81,0.55);
    box-shadow:
        0 10px 35px rgba(0,0,0,0.045),
        0 0 0 0.2rem rgba(173,149,81,0.08);
}


/* ==================================================
   CARTES CATÉGORIES
   ================================================== */

.wsi-economy-category {
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.065);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.wsi-economy-category:hover {
    transform: translateY(-5px);
    border-color: rgba(173,149,81,0.28);
    box-shadow: 0 20px 50px rgba(0,0,0,0.085);
}

.wsi-economy-category-featured {
    border-color: rgba(173,149,81,0.35);
}

.wsi-category-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wsi-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f1ef;
    color: #323331;
    font-size: 1.2rem;
}

.wsi-category-icon-gold {
    background: rgba(173,149,81,0.13);
    color: #ad9551;
}

.wsi-category-number {
    color: #ad9551;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.wsi-economy-category h3 {
    margin-bottom: 0.8rem;
    color: #292b28;
    font-size: 1.35rem;
    font-weight: 700;
}

.wsi-economy-category > p {
    min-height: 95px;
    margin-bottom: 1.2rem;
    color: #767871;
    font-size: 0.87rem;
    line-height: 1.7;
}


/* Tags */

.wsi-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wsi-category-tags span {
    padding: 0.3rem 0.6rem;
    border-radius: 50rem;
    background: rgba(173,149,81,0.09);
    color: #85733f;
    font-size: 0.66rem;
    font-weight: 600;
}

.wsi-category-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: rgba(0,0,0,0.07);
}


/* Listes générées */

.wsi-economy-list {
    margin: 0;
}

.wsi-economy-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.055);
    font-size: 0.83rem;
    line-height: 1.55;
}

.wsi-economy-list li:last-child {
    border-bottom: 0;
}

.wsi-economy-list a {
    color: #4b4d48;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsi-economy-list a:hover {
    color: #ad9551;
}


/* Pagination */

.wsi-economy-category .page-link {
    border: 0;
    border-radius: 0.5rem;
    color: #555751;
    font-size: 0.76rem;
}

.wsi-economy-category .page-item.active .page-link {
    background: #ad9551;
    color: #fff;
}


/* ==================================================
   CONTENU DYNAMIQUE
   ================================================== */

.wsi-economy-dynamic {
    background: #fff;
}

.wsi-dynamic-content:not(:empty) {
    padding-top: 5rem;
    padding-bottom: 5rem;
}


/* ==================================================
   TRANSITION STRATÉGIE
   ================================================== */

.wsi-economy-next {
    padding: 5.5rem 0;
    background: #fff;
}

.wsi-economy-next-inner {
    padding: 3.2rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(173,149,81,0.23),
            transparent 22rem
        ),
        #292b28;
    box-shadow: 0 25px 70px rgba(0,0,0,0.13);
}

.wsi-economy-next-label {
    color: #c8ae68;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.wsi-economy-next h2 {
    max-width: 800px;
    margin: 0.7rem 0 0.9rem;
    color: #fff;
    font-size: clamp(1.8rem,3vw,2.55rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.wsi-economy-next p {
    max-width: 790px;
    margin: 0;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
}


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

@media (max-width: 991.98px) {

    .wsi-economy-hero {
        padding: 4.5rem 0 5rem;
    }

    .wsi-economy-hero-image {
        margin: 1.5rem auto 0;
    }

    .wsi-economy-floating-card {
        left: 15px;
        bottom: 15px;
    }

    .wsi-economy-intro,
    .wsi-economy-content {
        padding: 5rem 0;
    }

    .wsi-economy-category:hover {
        transform: none;
    }

    .wsi-economy-category > p {
        min-height: auto;
    }

}


@media (max-width: 575.98px) {

    .wsi-economy-hero {
        padding-top: 3.7rem;
    }

    .wsi-economy-hero-points {
        gap: 1.2rem;
    }

    .wsi-economy-floating-card {
        position: relative;
        left: auto;
        bottom: auto;
        margin: -25px 15px 0;
    }

    .wsi-economy-next-inner {
        padding: 2rem;
    }

}

/* =========================================================
   LISTES DE CONTENUS - PAGE ÉCONOMIE
   Peut être placé dans economy.css (recommandé)
========================================================= */

.wsi-economy-list {
    margin-bottom: 0;
}

.wsi-economy-list > .wsi-economy-list-item {
    position: relative;
    padding: 1rem .85rem;
    margin: 0 -.85rem;
    border-bottom: 1px solid rgba(50, 51, 49, 0.12);
    border-radius: .55rem;
    cursor: pointer;
    transition:
        background-color .18s ease,
        transform .18s ease,
        border-color .18s ease;
}

.wsi-economy-list > .wsi-economy-list-item:last-child {
    border-bottom-color: transparent;
}

.wsi-economy-list > .wsi-economy-list-item:hover {
    background: rgba(173, 149, 81, 0.08);
    border-bottom-color: rgba(173, 149, 81, 0.28);
    transform: translateX(3px);
}

.wsi-economy-list-title,
.wsi-economy-list .content-link,
.wsi-economy-list .news-link {
    display: block;
    margin: 0;
    color: #323331 !important;
    font-size: 1.02rem;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease;
}

.wsi-economy-list > .wsi-economy-list-item:hover .wsi-economy-list-title,
.wsi-economy-list > .wsi-economy-list-item:hover .content-link,
.wsi-economy-list > .wsi-economy-list-item:hover .news-link {
    color: #ad9551 !important;
}

.wsi-economy-list-description,
.wsi-economy-list .link-description {
    margin: .4rem 0 0;
    color: #777a75 !important;
    font-size: .9rem;
    line-height: 1.55;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .wsi-economy-list > .wsi-economy-list-item {
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
    }

    .wsi-economy-list-title,
    .wsi-economy-list .content-link,
    .wsi-economy-list .news-link {
        font-size: 1.05rem;
    }
}
