
/* =========================================================
   FORMATIONS CATALOGUE — PREMIUM GRID UI
   Refonte esthétique inspirée de la maquette fournie
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root{
    --fcat-bg:#ececec;
    --fcat-black:#111111;
    --fcat-orange:#ff5b2e;
    --fcat-white:#ffffff;
}

/* =========================================================
   GLOBAL
========================================================= */

body{
    background:var(--fcat-bg);
}

.fcat-catalogue{
    position:relative;
    max-width:1280px;
    margin:auto;
    padding:90px 40px;
    font-family:'Montserrat',sans-serif;
}

/* =========================================================
   DECORATIONS
========================================================= */

.fcat-catalogue::before{
    content:'';
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    border:26px solid #cf7cff;
    border-right-color:transparent;
    border-bottom-color:transparent;
    top:20px;
    left:-40px;
    z-index:0;
}

.fcat-catalogue::after{
    content:'';
    position:absolute;
    width:170px;
    height:170px;
    border-radius:50%;
    background:var(--fcat-orange);
    top:40px;
    right:120px;
    clip-path:polygon(0 0,100% 0,100% 100%,55% 100%,55% 55%,0 55%);
    z-index:0;
}

/* =========================================================
   TITRE
========================================================= */

.fcat-catalogue__titre{
    position:relative;
    z-index:2;
    font-size:72px;
    line-height:.9;
    font-weight:900;
    color:var(--fcat-black);
    border:none;
    margin:0 0 60px;
    padding:0;
    max-width:420px;
}

.fcat-catalogue__titre::first-line{
    color:var(--fcat-orange);
}

/* =========================================================
   FILTRES
========================================================= */

.fcat-filters{
    position:relative;
    z-index:2;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.fcat-filter{
    border:1.5px solid #111;
    background:transparent;
    border-radius:999px;
    padding:12px 18px;
    font-size:13px;
    font-weight:700;
    transition:.25s ease;
}

.fcat-filter:hover,
.fcat-filter.active{
    background:#111;
    color:#fff;
}

/* =========================================================
   GRID
========================================================= */

.fcat-sections{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:34px;
}

/* =========================================================
   CARDS
========================================================= */

.fcat-section{
    background:#fff;
    border:none;
    overflow:hidden;
    transition:all .35s ease;
    box-shadow:0 12px 30px rgba(0,0,0,.05);
    border-bottom:6px solid #000;
}

.fcat-section:hover{
    transform:translateY(-8px);
}

.fcat-section__header{
    display:block;
    padding:0;
}

.fcat-section__icon{
    display:none;
}

/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.fcat-section::before{
    content:'';
    display:block;
    width:100%;
    height:220px;
    background:
        linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.15)),
        url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?q=80&w=1200&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
}

/* =========================================================
   CONTENT
========================================================= */

.fcat-section__titles{
    padding:24px 24px 0;
}

.fcat-section__nom{
    font-size:34px;
    line-height:1.02;
    font-weight:900;
    color:#111;
    margin:0 0 16px;
}

.fcat-section__desc{
    font-size:14px;
    line-height:1.5;
    color:#666;
    margin:0 0 24px;
}

/* =========================================================
   LIST
========================================================= */

.fcat-formation-list{
    margin:0;
    padding:0 24px 24px;
    list-style:none;
}

.fcat-formation-item{
    border-bottom:1px solid rgba(0,0,0,.12);
}

.fcat-formation-item:last-child{
    border-bottom:none;
}

/* =========================================================
   LINKS
========================================================= */

.fcat-formation-link,
.fcat-formation-text{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:16px 0;
    text-decoration:none;
    color:#111;
    font-size:15px;
    font-weight:700;
    line-height:1.45;
}

.fcat-formation-link:hover{
    color:var(--fcat-orange);
}

/* =========================================================
   META
========================================================= */

.fcat-formation-meta{
    background:#f3f3f3;
    border-radius:999px;
    padding:6px 12px;
    font-size:11px;
    color:#666;
}

/* =========================================================
   CTA STYLE
========================================================= */

.fcat-formation-link::after,
.fcat-formation-text::after{
    content:'Découvrir les formations';
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border:2px solid #111;
    border-radius:999px;
    padding:11px 20px;
    font-size:12px;
    font-weight:700;
    transition:.25s ease;
    margin-top:10px;
}

.fcat-formation-link:hover::after{
    background:#111;
    color:#fff;
}

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

@media(max-width:1100px){

    .fcat-sections{
        grid-template-columns:repeat(2,1fr);
    }

    .fcat-catalogue__titre{
        font-size:58px;
    }
}

@media(max-width:760px){

    .fcat-catalogue{
        padding:60px 24px;
    }

    .fcat-sections{
        grid-template-columns:1fr;
    }

    .fcat-catalogue__titre{
        font-size:44px;
        margin-bottom:40px;
    }

    .fcat-section__nom{
        font-size:28px;
    }

    .fcat-section::before{
        height:200px;
    }
}
