/**
 * LD Solutions - Page Ressources
 * Styles pour la page articles et FAQ
 *
 * @package ldsolutions
 * @version 1.0.0
 */

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

.page-ressources .page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 2rem 120px;
    overflow: hidden;
}

.page-ressources .page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-ressources .page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-ressources .page-hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 27, 80, 0.7);
}

.page-ressources .page-hero__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-ressources .page-hero__title {
    margin: 0 0 1.5rem;
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--lds-white, #ffffff);
}

.page-ressources .page-hero__title span {
    font-style: italic;
}

.page-ressources .page-hero__desc {
    margin: 0 auto;
    max-width: 640px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   SECTION ARTICLES
   ============================================================ */

.rs-articles {
    position: relative;
    background: var(--lds-white, #ffffff);
    padding: 100px 2rem;
    overflow: hidden;
}

.rs-articles__container {
    max-width: 1200px;
    margin: 0 auto;
}

.rs-articles__header {
    text-align: center;
    margin-bottom: 4rem;
}

.rs-articles__title {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--lds-navy, #021B50);
}

.rs-articles__title span {
    font-style: italic;
}

.rs-articles__subtitle {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(21, 30, 40, 0.65);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rs-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 4rem;
}

/* Article Card - Style Light comme les cartes Services */
.rs-article {
    position: relative;
    background: linear-gradient(145deg, var(--lds-white, #ffffff) 0%, #F8FAFF 50%, var(--lds-white, #ffffff) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 4px 20px rgba(2, 27, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Bordure dégradée */
.rs-article::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(2, 27, 80, 0.15), rgba(18, 90, 248, 0.3), rgba(2, 27, 80, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Accent coloré - trait vertical bleu */
.rs-article::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, var(--lds-blue, #125AF8) 0%, var(--lds-navy, #021B50) 100%);
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.rs-article.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rs-article:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 90, 248, 0.4);
    box-shadow:
        0 8px 32px rgba(2, 27, 80, 0.12),
        0 0 0 1px rgba(18, 90, 248, 0.1);
}

.rs-article.is-visible:hover {
    transform: translateY(-4px);
}

.rs-article__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.rs-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rs-article:hover .rs-article__image img {
    transform: scale(1.05);
}

.rs-article__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lds-navy, #021B50) 0%, var(--lds-navy-light, #0A2A6E) 100%);
}

.rs-article__image--placeholder i,
.rs-article__image--placeholder svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255, 255, 255, 0.5);
}

.rs-article__content {
    padding: 20px 24px 24px;
}

.rs-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rs-article__meta time {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(21, 30, 40, 0.5);
}

.rs-article__category {
    display: inline-block;
    padding: 6px 14px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--lds-navy, #021B50);
    background: linear-gradient(135deg, rgba(2, 27, 80, 0.06) 0%, rgba(18, 90, 248, 0.08) 100%);
    border: 1px solid rgba(18, 90, 248, 0.2);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.rs-article__category:hover {
    background: linear-gradient(135deg, rgba(18, 90, 248, 0.12) 0%, rgba(18, 90, 248, 0.18) 100%);
    border-color: rgba(18, 90, 248, 0.4);
    transform: translateY(-2px);
}

.rs-article__title {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    color: var(--lds-navy, #021B50);
}

.rs-article__title a {
    color: inherit;
    text-decoration: none;
    color: var(--lds-navy, #021B50);
    transition: all 0.2s ease;
}

.rs-article__title a:hover {
    color: var(--lds-blue, #125AF8);
}

.rs-article__excerpt {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(21, 30, 40, 0.65);
    margin: 0 0 1.25rem;
}

.rs-article__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lds-blue, #125AF8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.rs-article__link svg {
    transition: transform 0.3s ease;
}

.rs-article__link:hover {
    gap: 10px;
}

.rs-article__link:hover svg {
    transform: translateX(3px);
}

/* Empty state */
.rs-articles__empty {
    text-align: center;
    padding: 60px 20px;
}

.rs-articles__empty i,
.rs-articles__empty svg {
    width: 64px;
    height: 64px;
    stroke: rgba(18, 90, 248, 0.3);
    margin-bottom: 1.5rem;
}

.rs-articles__empty p {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    color: rgba(21, 30, 40, 0.5);
    margin: 0 0 0.5rem;
}

/* Pagination */
.rs-articles__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rs-articles__pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lds-black, #151E28);
    background: var(--lds-white, #ffffff);
    border: 1px solid rgba(21, 30, 40, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rs-articles__pagination .page-numbers:hover {
    background: rgba(18, 90, 248, 0.08);
    border-color: var(--lds-blue, #125AF8);
    color: var(--lds-blue, #125AF8);
}

.rs-articles__pagination .page-numbers.current {
    background: var(--lds-blue, #125AF8);
    border-color: var(--lds-blue, #125AF8);
    color: var(--lds-white, #ffffff);
}

.rs-articles__pagination .page-numbers svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   SECTION FAQ
   ============================================================ */

.rs-faq {
    position: relative;
    background: linear-gradient(160deg, var(--lds-platinium, #EBEBEB) 0%, #e2e4e8 100%);
    padding: 100px 2rem 220px;
    overflow: hidden;
}

.rs-faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.rs-faq__header {
    text-align: center;
    margin-bottom: 3rem;
}

.rs-faq__title {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--lds-navy, #021B50);
}

.rs-faq__title span {
    font-style: italic;
}

.rs-faq__subtitle {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(21, 30, 40, 0.65);
    margin: 0;
}

.rs-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 3rem;
}

.rs-faq__item {
    background: var(--lds-white, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(2, 27, 80, 0.06);
}

.rs-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}

.rs-faq__question::-webkit-details-marker {
    display: none;
}

.rs-faq__question:hover {
    background: rgba(18, 90, 248, 0.02);
}

.rs-faq__question span {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lds-black, #151E28);
}

.rs-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--lds-blue, #125AF8);
    transition: transform 0.3s ease;
}

.rs-faq__item[open] .rs-faq__icon {
    transform: rotate(180deg);
}

.rs-faq__answer {
    padding: 0 24px 24px;
}

.rs-faq__answer p {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(21, 30, 40, 0.7);
    margin: 0;
}

.rs-faq__more {
    text-align: center;
    margin-top: 60px;
}

.rs-faq__more p {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(21, 30, 40, 0.65);
    margin: 0 0 1rem;
}

.rs-faq__more .lds-btn svg {
    margin-left: 8px;
}

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

@media (max-width: 1024px) {
    .page-ressources .page-hero {
        padding: 160px 1.5rem 100px;
    }

    .rs-articles,
    .rs-faq {
        padding: 80px 1.5rem;
    }

    .rs-articles__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-ressources .page-hero {
        min-height: 50vh;
        padding: 140px 1rem 80px;
    }

    .page-ressources .page-hero__desc {
        font-size: 1rem;
    }

    .rs-articles,
    .rs-faq {
        padding: 60px 1rem;
    }

    .rs-articles__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rs-faq__question {
        padding: 16px 20px;
    }

    .rs-faq__question span {
        font-size: 0.9375rem;
    }

    .rs-faq__answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-ressources .page-hero {
        min-height: 45vh;
        padding: 120px 1rem 60px;
    }

    .page-ressources .page-hero__title {
        font-size: 1.5rem;
    }

    .page-ressources .page-hero__desc {
        font-size: 0.9375rem;
    }

    .rs-articles,
    .rs-faq {
        padding: 50px 1rem;
    }

    .rs-article__content {
        padding: 20px;
    }

    .rs-faq__question {
        padding: 14px 16px;
    }

    .rs-faq__answer {
        padding: 0 16px 16px;
    }
}

