﻿/* ============================================================
   HOME PAGE
   ============================================================ */

.home-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}


/* ============================================================
   HERO / CARD PRINCIPALE
   ============================================================ */

.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 34px 38px;
    background: #ffffff;
    border: 1px solid #d6dee9;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

    .home-hero::after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        right: -90px;
        top: -100px;
        border-radius: 50%;
        background: #eff6ff;
        pointer-events: none;
    }

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 950px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
}

.home-hero h1 {
    max-width: 750px;
    margin: 0;
    color: #1f2937;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.home-hero-description {
    max-width: 750px;
    color: #6b7280;
    font-size: 14px;
    
}


/* ============================================================
   ÉTAPES
   ============================================================ */

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.home-step {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    background: #f1f4f8;
    border: 1px solid #d6dee9;
    border-radius: 10px;
}

.home-step-number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.home-step h3 {
    margin: 1px 0 4px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.home-step p {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   HERO ACTIONS
   ============================================================ */

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


/* ============================================================
   HEADER DE SECTION
   ============================================================ */

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

    .home-section-header h2 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 700;
    }

    .home-section-header p {
        margin: 5px 0 0;
        color: #6b7280;
        font-size: 12px;
        line-height: 1.5;
    }

.home-section-link {
    flex-shrink: 0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

    .home-section-link:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }


/* ============================================================
   ARTICLES
   ============================================================ */

.home-articles-section {
    margin-bottom: 25px;
}

.home-articles-card {
    height: 415px;
    padding: 8px;
    background: #e3e8ef;
    border: 1px solid #d6dee9;
    border-radius: 12px;
}

.home-articles-list {
    height: 100%;
    padding-right: 5px;
    overflow-y: auto;
}


    /* Scrollbar */

    .home-articles-list::-webkit-scrollbar {
        width: 7px;
    }

    .home-articles-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .home-articles-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

        .home-articles-list::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }


/* ============================================================
   ARTICLE
   ============================================================ */

.home-article {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    margin-bottom: 7px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d6dee9;
    border-radius: 9px;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .home-article:last-child {
        margin-bottom: 0;
    }

    .home-article:hover {
        border-color: #bfdbfe;
        box-shadow: 0 3px 10px rgba(37, 99, 235, 0.07);
        transform: translateY(-1px);
    }


/* ============================================================
   ICÔNE ARTICLE
   ============================================================ */

.home-article-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
}


/* ============================================================
   CONTENU ARTICLE
   ============================================================ */

.home-article-content {
    min-width: 0;
    flex: 1;
}

    .home-article-content h3 {
        margin: 0 0 3px;
        color: #374151;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
    }

    .home-article-content p {
        margin: 0;
        color: #6b7280;
        font-size: 11px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.home-article-date {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 10px;
    white-space: nowrap;
}


/* ============================================================
   FEATURE CARDS
   ============================================================ */

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.home-feature-card {
    display: flex;
    min-height: 220px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d6dee9;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .home-feature-card:hover {
        border-color: #bfdbfe;
        box-shadow: 0 5px 16px rgba(37, 99, 235, 0.08);
        transform: translateY(-2px);
    }


/* ============================================================
   IMAGE FEATURE
   ============================================================ */

.home-feature-image {
    width: 38%;
    flex: 0 0 38%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    overflow: hidden;
}

    .home-feature-image img {
        width: 70%;
        height: 70%;
        object-fit: contain;
        display: block;
    }


/* ============================================================
   CONTENU FEATURE
   ============================================================ */

.home-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.home-feature-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
}

.home-feature-content h2 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.35;
}

.home-feature-content p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

.home-feature-link {
    margin-top: auto;
    padding-top: 14px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
}

    .home-feature-link:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }


/* ============================================================
   PUBLICITÉ
   ============================================================ */

.home-ad-card {
    display: flex;
    min-height: 150px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d6dee9;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.home-ad-image {
    width: 27%;
    flex: 0 0 27%;
    background: #eff6ff;
    overflow: hidden;
}

    .home-ad-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.home-ad-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 25px;
}

.home-ad-label {
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-ad-content h2 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 17px;
}

.home-ad-content p {
    max-width: 650px;
    margin: 0 0 13px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 850px) {

    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-feature-card {
        flex-direction: column;
    }


        .home-feature-image {
            width: 100%;
            flex: none;
            height: 160px;
            min-height: 160px;
        }
    

    .home-feature-content {
        min-height: 180px;
    }

    .home-ad-card {
        flex-direction: column;
    }

    .home-ad-image {
        width: 100%;
        flex: none;
        height: 150px;
    }
}


@media (max-width: 700px) {

    .home-page {
        padding: 20px 16px 40px;
    }

    .home-hero {
        padding: 25px 20px;
        border-radius: 12px;
    }

        .home-hero h1 {
            font-size: 23px;
        }

    .home-hero-description {
        font-size: 13px;
    }

    .home-steps {
        gap: 8px;
        margin-bottom: 20px;
    }

    .home-step {
        padding: 12px;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .home-hero-actions .button {
            width: 100%;
        }

    .home-section-header {
        align-items: flex-start;
    }

        .home-section-header h2 {
            font-size: 18px;
        }

    .home-section-link {
        font-size: 11px;
    }

    .home-articles-card {
        height: 290px;
    }

    .home-article {
        align-items: flex-start;
    }

    .home-article-date {
        display: none;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-feature-image {
        height: 145px;
        min-height: 145px;
    }

    .home-feature-content {
        padding: 18px;
        min-height: 170px;
    }

    .home-ad-content {
        padding: 20px;
    }

        .home-ad-content .button {
            width: 100%;
        }
}
