/* =====================================================
   PAGE FORMATIONS
===================================================== */

/* BOUTONS */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #22d0d6;
    color: white;
    box-shadow: 0 6px 20px rgba(34, 208, 214, 0.25);
}

.btn-secondary {
    background: white;
    color: #003b5c;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}


/* =========================
   INTRO
========================= */

.intro-section {
    width: 78%;
    margin: auto auto 80px auto;
}

.intro-card {
    background: white;
    border-radius: 20px;
    padding: 45px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.intro-text {
    flex: 2;
}

.intro-text h2 {
    margin-bottom: 25px;
    color: #003b5c;
}

.intro-text p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-image {
    flex: 1;
    text-align: center;
}

.intro-image img {
    max-width: 220px;
    width: 100%;
}

.qualiopi-text {
    margin-top: 15px;
    font-weight: bold;
    color: #003b5c;
}


/* =========================
   BADGES
========================= */

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.badge-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.badge-item:hover {
    transform: translateY(-3px);
}


/* =========================
   SECTIONS GENERALES
========================= */

.formations-section {
    width: 78%;
    margin: auto auto 90px auto;
}



/* =========================
   CARTE FORMATION
========================= */

.formation-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formation-content {
    padding: 45px;
}

.formation-content h3 {
    color: #003b5c;
    margin-bottom: 20px;
}

.formation-content p {
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 25px;
}


/* LISTES MODERNISÉES */

.formation-content ul {
    padding-left: 0;
    list-style: none;
}

.formation-content ul li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 17px;
    position: relative;
    padding-left: 20px;
}

.formation-content ul li::before {
    content: "▹";
    color: #22d0d6;
    position: absolute;
    left: 0;
}


/* =========================
   DOCUMENTS
========================= */

.docs-section {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-group {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    min-width: 220px;
}

.doc-group h4 {
    color: #22d0d6;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.formation-links a {
    background: #f4f4f4;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #003b5c;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.formation-links a:hover {
    background: #22d0d6;
    color: white;
}


/* =========================
   SIMPLE CARD
========================= */

.simple-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.simple-card p {
    font-size: 18px;
    line-height: 1.8;
}


/* =========================
   ETAPES
========================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.step-card {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #22d0d6;
}

.step-card h3 {
    color: #003b5c;
    margin-bottom: 15px;
}


/* =========================
   CLIENTS
========================= */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.client-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}

.client-item:hover {
    background: #22d0d6;
    color: white;
}


/* =========================
   STATS
========================= */

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stats-card img {
    max-width: 100%;
    border-radius: 10px;
}


/* =========================
   CORRECTION DEBORDEMENTS
========================= */

.formation-card,
.intro-card,
.formation-content,
.intro-text,
.intro-image,
.simple-card,
.doc-group {
    min-width:0;
}

.formation-card img,
.intro-image img,
.stats-card img {
    max-width:100%;
}

.formation-links a {
    overflow-wrap:anywhere;
}



/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){

    .formation-card,
    .intro-card{
        grid-template-columns:1fr;
    }


    .formation-card img{
        height:300px;
    }


    .steps-grid,
    .clients-grid,
    .badges-grid{
        grid-template-columns:1fr;
    }

}



@media(max-width:768px){

    .formation-content{
        padding:25px;
    }


    .intro-card{
        padding:30px;
    }


    .simple-card{
        padding:30px;
    }


    .docs-section{
        flex-direction:column;
    }


    .formation-links a{
        white-space:normal;
    }

}