/* =========================================================
   LABOCOMPTA
   PAGE : COMPÉTENCES EN COMPTABILITÉ
   3 CARDS PAR LIGNE
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

.compta-skills {

    --compta-blue: #2878e8;
    --compta-blue-dark: #175bb8;

    --compta-navy: #102b52;

    --compta-text: #334967;
    --compta-muted: #718198;

    --compta-bg: #f7faff;
    --compta-white: #ffffff;

    --compta-border: rgba(16, 43, 82, 0.08);
}


/* =========================================================
   SECTION PRINCIPALE
   ========================================================= */

.compta-skills {

    min-height: 100vh;

    padding: 80px 24px 100px;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(40, 120, 232, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 95% 45%,
            rgba(40, 120, 232, 0.045),
            transparent 28%
        ),
        var(--compta-bg);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.compta-skills-container {

    width: 100%;

    max-width: 1160px;

    margin: 0 auto;
}


/* =========================================================
   INTRODUCTION — VERSION MODERNE
   ========================================================= */

.compta-skills-header {

    max-width: 800px;

    margin: 0 auto 65px;

    text-align: center;
}


.compta-eyebrow {

    display: inline-block;

    margin-bottom: 16px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.18em;

    color: var(--compta-blue);
}


.compta-skills-header h1 {

    margin: 0 0 22px;

    font-size: clamp(42px, 6vw, 68px);

    line-height: 1.02;

    letter-spacing: -0.05em;

    font-weight: 750;

    color: var(--compta-navy);
}


.compta-skills-header h1 span {

    display: block;

    color: var(--compta-blue);
}


.compta-skills-intro {

    max-width: 680px;

    margin: 0 auto 24px;

    font-size: 17px;

    line-height: 1.75;

    color: var(--compta-muted);
}


.compta-skills-meta {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px 24px;

    margin-top: 26px;
}


.compta-skills-meta span {

    font-size: 12px;

    font-weight: 600;

    color: var(--compta-text);
}


/* =========================================================
   GRID — 3 CARDS PAR LIGNE
   ========================================================= */

.compta-courses {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 310px));

    justify-content: center;

    gap: 26px;

    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.compta-course {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--compta-white);

    border: 1px solid var(--compta-border);

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(16, 43, 82, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.compta-course:hover {

    transform: translateY(-5px);

    border-color:
        rgba(40, 120, 232, 0.18);

    box-shadow:
        0 22px 50px rgba(16, 43, 82, 0.09);
}


/* =========================================================
   IMAGE
   ========================================================= */

.compta-course-image {

    position: relative;

    width: 100%;

    height: 225px;

    overflow: hidden;

    background: #eaf1fa;
}


.compta-course-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}


.compta-course:hover
.compta-course-image img {

    transform: scale(1.045);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.compta-course-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(16, 43, 82, 0.01),
            rgba(16, 43, 82, 0.10)
        );

    pointer-events: none;
}


/* =========================================================
   NUMÉRO
   ========================================================= */

.compta-course-number {

    position: absolute;

    top: 16px;

    left: 16px;

    z-index: 2;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.94);

    color: var(--compta-navy);

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 5px 18px rgba(16, 43, 82, 0.10);
}


/* =========================================================
   CONTENU CARD
   ========================================================= */

.compta-course-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 25px 25px 27px;
}


.compta-course-label {

    display: block;

    margin-bottom: 9px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.15em;

    color: var(--compta-blue);
}


.compta-course-content h2 {

    margin: 0 0 12px;

    font-size: 24px;

    line-height: 1.15;

    letter-spacing: -0.025em;

    font-weight: 700;

    color: var(--compta-navy);
}


.compta-course-content p {

    margin: 0 0 24px;

    font-size: 14px;

    line-height: 1.7;

    color: var(--compta-muted);
}


/* =========================================================
   BOUTON COURS
   ========================================================= */

.compta-course-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    align-self: center;

    gap: 10px;

    margin-top: auto;

    padding: 11px 16px;

    border-radius: 8px;

    background: var(--compta-navy);

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 650;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.compta-course-button span {

    font-size: 17px;

    line-height: 1;

    transition:
        transform 0.25s ease;
}


.compta-course-button:hover {

    background: var(--compta-blue);

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(40, 120, 232, 0.18);
}


.compta-course-button:hover span {

    transform: translateX(4px);
}


/* =========================================================
   CTA — UNE COMPÉTENCE EN PARTICULIER ?
   ========================================================= */

.compta-contact-cta {

    margin-top: 70px;

    padding: 55px 30px;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.72);

    border: 1px solid
        rgba(16, 43, 82, 0.07);

    border-radius: 20px;
}


.compta-contact-cta-content {

    max-width: 650px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.compta-contact-cta .compta-eyebrow {

    margin-bottom: 14px;
}


.compta-contact-cta h2 {

    margin: 0 0 14px;

    font-size:
        clamp(28px, 4vw, 38px);

    line-height: 1.15;

    letter-spacing: -0.03em;

    color: var(--compta-navy);
}


.compta-contact-cta p {

    max-width: 560px;

    margin: 0 auto 25px;

    font-size: 14px;

    line-height: 1.7;

    color: var(--compta-muted);
}


/* =========================================================
   BOUTON CTA
   ========================================================= */

.compta-contact-cta-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 18px;

    border-radius: 8px;

    background: var(--compta-navy);

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 650;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.compta-contact-cta-button span {

    font-size: 17px;

    line-height: 1;

    transition:
        transform 0.25s ease;
}


.compta-contact-cta-button:hover {

    background: var(--compta-blue);

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(40, 120, 232, 0.18);
}


.compta-contact-cta-button:hover span {

    transform: translateX(4px);
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 950px) {

    .compta-courses {

        grid-template-columns:
            repeat(2, minmax(0, 310px));

        gap: 22px;
    }


    .compta-course-image {

        height: 220px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .compta-skills {

        padding:
            55px 18px 75px;
    }


    .compta-skills-header {

        margin-bottom: 42px;
    }


    .compta-skills-header h1 {

        font-size: 42px;
    }


    .compta-skills-intro {

        font-size: 15px;

        line-height: 1.7;
    }


    .compta-skills-meta {

        gap: 9px 16px;

        margin-top: 22px;
    }


    .compta-skills-meta span {

        font-size: 11px;
    }


    .compta-courses {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .compta-course-image {

        height: 235px;
    }


    .compta-course-content {

        padding:
            25px 23px 27px;
    }


    .compta-course-content h2 {

        font-size: 25px;
    }


    .compta-course-content p {

        font-size: 14px;

        line-height: 1.75;
    }


    .compta-contact-cta {

        margin-top: 50px;

        padding:
            42px 22px;
    }


    .compta-contact-cta h2 {

        font-size: 28px;
    }


    .compta-contact-cta p {

        font-size: 14px;
    }

}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .compta-skills-header h1 {

        font-size: 37px;
    }


    .compta-skills-meta {

        flex-direction: column;

        gap: 8px;
    }


    .compta-course-image {

        height: 215px;
    }


    .compta-course-content h2 {

        font-size: 23px;
    }


    .compta-course-button {

        padding:
            10px 14px;

        font-size: 12px;
    }


    .compta-contact-cta {

        padding:
            38px 18px;
    }


    .compta-contact-cta h2 {

        font-size: 26px;
    }

}