/* =========================================================
   WIZZY DRAWS — PAGE NOS ACTUALITÉS
   ========================================================= */

:root {
    --wz-blue: #086BE8;
    --wz-blue-dark: #071B62;
    --wz-text: #10245F;
    --wz-muted: #647394;
    --wz-bg: #F4F9FE;
    --wz-card: #FFFFFF;
    --wz-border: #E4EDF7;
    --wz-green: #20B77A;
    --wz-orange: #FF7A00;
    --wz-purple: #6846E8;
}


/* =========================================================
   PAGE
   ========================================================= */

.wz-news-page {
    background: var(--wz-bg);
    min-height: 100vh;
    padding-bottom: 70px;
}

.wz-news-container {
    width: min(1115px, calc(100% - 40px));
    margin: 0 auto;
}



/* =========================================================
   SEARCH
   ========================================================= */

.wz-news-search {
    margin-top: 7px;
    margin-bottom: 13px;
}

.wz-search-form {
    height: 57px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2EBF5;
    border-radius: 17px;
    box-shadow: 0 2px 10px rgba(25, 75, 130, .035);
    display: flex;
    align-items: center;
    padding: 5px 7px 5px 20px;
}

.wz-search-icon {
    width: 24px;
    height: 24px;
    margin-right: 17px;
    color: var(--wz-blue-dark);
    flex-shrink: 0;
}

.wz-search-form input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--wz-text);
    font-size: 14px;
    font-family: inherit;
}

.wz-search-form input::placeholder {
    color: #7785A1;
    opacity: 1;
}

.wz-search-button {
    height: 41px;
    min-width: 143px;
    padding: 0 24px;
    border: 0;
    border-radius: 22px;
    background: var(--wz-blue);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: .2s ease;
}

.wz-search-button:hover {
    background: #0058C9;
    transform: translateY(-1px);
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.wz-news-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 17px;
}

.wz-category-btn {
    height: 43px;
    padding: 0 19px;
    border-radius: 24px;
    border: 1px solid #E3ECF6;
    background: #EDF5FC;
    color: var(--wz-blue-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s ease;
}

.wz-category-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.wz-category-btn:hover {
    border-color: #C7DDF5;
    background: #E5F1FC;
    color: var(--wz-blue);
}

.wz-category-btn.active {
    background: var(--wz-blue);
    border-color: var(--wz-blue);
    color: white;
    box-shadow: 0 5px 14px rgba(8, 107, 232, .18);
}


/* =========================================================
   ARTICLE À LA UNE
   ========================================================= */

.wz-featured {
    background: #FFFFFF;
    border: 1px solid #E4EDF6;
    border-radius: 17px;
    padding: 9px;
    display: grid;
    grid-template-columns: 356px 1fr;
    gap: 25px;
    align-items: center;
    box-shadow: 0 3px 14px rgba(30, 80, 130, .035);
    margin-bottom: 17px;
    overflow: hidden;
}

.wz-featured-image {
    width: 100%;
    height: 166px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wz-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wz-featured-content {
    padding: 8px 21px 8px 0;
    min-width: 0;
}

.wz-featured-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFF1DF;
    color: #FF7A00;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
}

.wz-featured-title {
    color: var(--wz-blue-dark);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 7px;
    letter-spacing: -.3px;
}

.wz-featured-description {
    color: #5E6D8B;
    font-size: 13px;
    line-height: 1.48;
    margin: 0 0 9px;
    max-width: 580px;
}

.wz-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52617F;
    font-size: 12px;
}

.wz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wz-meta-item svg {
    width: 17px;
    height: 17px;
}

.wz-meta-separator {
    width: 1px;
    height: 17px;
    background: #DDE5EF;
}

.wz-featured-button {
    width: 145px;
    height: 41px;
    border-radius: 22px;
    background: #FF7800;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
    margin-left: auto;
}

.wz-featured-button:hover {
    background: #E96600;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.wz-featured-button svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.wz-latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 11px;
}

.wz-latest-title {
    margin: 0;
    color: var(--wz-blue-dark);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.5px;
}

.wz-all-articles {
    color: var(--wz-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.wz-all-articles:hover {
    color: #0058C9;
}

.wz-all-articles svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   CARDS GRID
   ========================================================= */

.wz-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wz-news-card {
    background: #FFFFFF;
    border: 1px solid #E4EDF6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(30, 80, 130, .035);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.wz-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(30, 80, 130, .09);
}

.wz-card-image {
    height: 125px;
    margin: 8px 8px 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wz-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wz-card-category {
    position: absolute;
    top: 9px;
    right: 9px;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    background: #FFFFFF;
}

.wz-cat-development {
    color: #16996B;
    background: #DDF8EC;
}

.wz-cat-activities {
    color: #FF7A00;
    background: #FFF0DF;
}

.wz-cat-guides {
    color: #6142DC;
    background: #EDE8FF;
}

.wz-cat-coloriage {
    color: #1475D5;
    background: #E5F2FF;
}

.wz-cat-parents {
    color: #C54C8A;
    background: #FFE7F2;
}

.wz-card-body {
    padding: 11px 13px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wz-card-title {
    margin: 0 0 7px;
    color: var(--wz-blue-dark);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.25px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 39px;
}

.wz-card-title:hover {
    color: var(--wz-blue);
}

.wz-card-excerpt {
    color: #657391;
    font-size: 12.5px;
    line-height: 1.42;
    margin: 0 0 9px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 53px;
}

.wz-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #596884;
    font-size: 11px;
    margin-bottom: 10px;
}

.wz-card-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wz-card-meta-separator {
    width: 1px;
    height: 16px;
    background: #DEE5EE;
}

.wz-card-link {
    margin-top: auto;
    color: var(--wz-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wz-card-link:hover {
    color: #0058C9;
}

.wz-card-link svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.wz-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
}

.wz-pagination-item {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #EAF3FC;
    color: var(--wz-blue-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    transition: .2s ease;
}

.wz-pagination-item:hover {
    background: #DCECFB;
    color: var(--wz-blue);
}

.wz-pagination-item.active {
    background: var(--wz-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(8, 107, 232, .18);
}

.wz-pagination-item svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.wz-news-empty {
    background: #FFFFFF;
    border: 1px solid var(--wz-border);
    border-radius: 17px;
    padding: 70px 20px;
    text-align: center;
}

.wz-news-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #EAF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wz-news-empty h3 {
    color: var(--wz-blue-dark);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}

.wz-news-empty p {
    color: #7A88A1;
    font-size: 14px;
    margin: 0;
}


/* =========================================================
   ACTIVE FILTERS
   ========================================================= */

.wz-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -5px 0 15px;
}

.wz-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #E9F3FF;
    color: var(--wz-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991px) {

    .wz-news-container {
        width: min(100% - 30px, 760px);
    }

    .wz-news-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wz-news-info {
        max-width: 100%;
    }

    .wz-news-title {
        font-size: 43px;
    }

    .wz-featured {
        grid-template-columns: 280px 1fr;
        gap: 18px;
    }

    .wz-featured-image {
        height: 155px;
    }

    .wz-featured-content {
        padding-right: 12px;
    }

    .wz-featured-button {
        min-width: 130px;
        width: auto;
        padding: 0 17px;
    }

    .wz-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .wz-news-page {
        padding-bottom: 45px;
    }

    .wz-news-container {
        width: calc(100% - 24px);
    }

    .wz-news-hero {
        padding-top: 25px;
    }

    .wz-news-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .wz-news-subtitle {
        font-size: 15px;
    }

    .wz-news-info {
        padding: 15px;
        gap: 14px;
    }

    .wz-news-info-icon {
        width: 58px;
        min-width: 58px;
        height: 58px;
    }

    .wz-news-info-icon svg {
        width: 32px;
        height: 32px;
    }

    .wz-news-info-content h3 {
        font-size: 14px;
    }

    .wz-news-info-content p {
        font-size: 12px;
    }

    .wz-search-form {
        height: 53px;
        padding-left: 15px;
    }

    .wz-search-button {
        min-width: 105px;
        padding: 0 14px;
        font-size: 12px;
    }

    .wz-news-categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .wz-news-categories::-webkit-scrollbar {
        display: none;
    }

    .wz-category-btn {
        height: 40px;
        padding: 0 15px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .wz-featured {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px;
    }

    .wz-featured-image {
        height: 190px;
    }

    .wz-featured-content {
        padding: 7px 9px 10px;
    }

    .wz-featured-title {
        font-size: 17px;
    }

    .wz-featured-description {
        font-size: 12.5px;
    }

    .wz-featured-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .wz-featured-button {
        height: 38px;
        font-size: 12px;
        padding: 0 15px;
    }

    .wz-latest-header {
        margin-top: 22px;
    }

    .wz-latest-title {
        font-size: 20px;
    }

    .wz-all-articles {
        font-size: 12px;
    }

    .wz-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wz-card-image {
        height: 190px;
    }

    .wz-card-title {
        font-size: 17px;
    }

    .wz-card-excerpt {
        font-size: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .wz-news-title {
        font-size: 32px;
    }

    .wz-search-button {
        min-width: 92px;
        padding: 0 10px;
    }

    .wz-featured-image {
        height: 170px;
    }

    .wz-featured-meta {
        font-size: 10.5px;
    }

    .wz-featured-bottom {
        align-items: flex-end;
    }

}


/* =========================================================
   OVERRIDE ANCIEN STYLE
   ========================================================= */

.wz-news-page .conseils-filter-bar,
.wz-news-page .active-filters {
    display: none !important;
}

.wz-news-page .row {
    margin-left: 0;
    margin-right: 0;
}

.wz-news-page [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}
