/* =========================================================
   PAGE FORMATIONS
   ========================================================= */

.formation {
    padding: 50px 20px 80px;
}

/* =========================
   EN-TÊTE
   ========================= */

.formation-header {
    margin-bottom: 60px;
}

.formation-header h1 {
    margin-bottom: 30px;
    font-family: "Merienda", cursive;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #2b2b2b;
}

.formation-header p {
    max-width: 800px;
    margin: 0 auto 15px;
    font-family: "Open Sans", sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

/* =========================
   CHOIX DES FORMATIONS
   ========================= */

.formation-choix {
    gap: 35px;
}

/* =========================
   CARTE
   ========================= */

.formation-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(61, 80, 57, 0.12);
    border: 1px solid rgba(172, 200, 146, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

.formation-card img {
    display: block;

    width: 100%;
    height: 260px;

    object-fit: cover;

    transition: transform 0.4s ease;
}

/* =========================
   CONTENU
   ========================= */

.formation-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px 30px 35px;
    text-align: center;
}

.formation-card h2 {
    margin-bottom: 20px;

    font-family: "Merienda", cursive;
    font-size: 1.8rem;
    font-weight: 700;

    color: #3d5039;
}

.formation-card p {
    margin-bottom: 25px;

    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.7;

    color: #333;
}

.formation-card:focus-visible {
    outline: 3px solid #5b754f;
    outline-offset: 5px;
}

/* =========================
   LIEN
   ========================= */

.formation-link {
    display: inline-block;

    padding: 10px 22px;

    margin-top: auto;

    border: 2px solid #8eae76;
    border-radius: 25px;

    font-family: "Open Sans", sans-serif;
    font-weight: 600;

    color: #3d5039;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* =========================
   EFFETS SOURIS
   ========================= */

.formation-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

.formation-card:hover img {
    transform: scale(1.04);
}

.formation-card:hover .formation-link {
    background-color: #acc892;
    color: white;
}

/* =========================================================
   OBJECTIFS DES FORMATIONS
   ========================================================= */

.formation-objectifs {
    margin-top: 85px;
    padding: 60px 30px;
    background: rgba(172, 200, 146, 0.12);
    border-radius: 30px;
}

.formation-objectifs h2 {
    margin-bottom: 35px;
    font-family: "Merienda", cursive;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #3d5039;
}

.formation-objectifs h3 {
    margin-top: 35px;
    margin-bottom: 25px;
    font-family: "Merienda", cursive;
    font-size: 1.35rem;
    color: #3d5039;
}

.formation-objectifs p {
    margin-bottom: 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

.formation-objectifs ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.formation-objectifs li {
    position: relative;
    padding: 12px 15px 12px 40px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.formation-objectifs li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 12px;
    font-weight: 700;
    color: #6d965c;
}

/* =========================================================
   CONTACT FORMATIONS
   ========================================================= */

.formation-contact {
    margin-top: 80px;
    padding: 55px 30px;
    background: linear-gradient(
        135deg,
        rgba(172, 200, 146, 0.22),
        rgba(172, 200, 146, 0.08)
    );
    border: 1px solid rgba(172, 200, 146, 0.4);
    border-radius: 30px;
}

.formation-contact h2 {
    margin-bottom: 30px;
    font-family: "Merienda", cursive;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
    color: #3d5039;
}

.formation-contact p {
    max-width: 750px;
    margin: 0 auto 18px;
    font-family: "Open Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* BOUTON CONTACT */

.btn-zen {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 30px;
    background-color: #5b754f;
    border: 2px solid #5b754f;
    border-radius: 30px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-zen:hover {
    background-color: #3d5039;
    border-color: #3d5039;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* =========================
   MOBILE
   ========================= */

@media screen and (max-width: 767px) {
    .formation {
        padding: 35px 15px 55px;
    }

    .formation-header {
        margin-bottom: 40px;
    }

    .formation-header h1 {
        margin-bottom: 25px;
    }

    .formation-header p {
        font-size: 1rem;
    }

    .formation-card img {
        height: 220px;
    }

    .formation-card-content {
        padding: 25px 20px 30px;
    }

    .formation-card h2 {
        font-size: 1.5rem;
    }

    /* =========================================================
   BOUTON RETOUR AUX FORMATIONS
   ========================================================= */

    .formation-retour {
        margin-top: 50px;
        margin-bottom: 20px;
    }

    .btn-retour-formations {
        display: inline-block;
        padding: 12px 28px;
        background-color: #5b4b8a;
        border: 2px solid #5b4b8a;
        border-radius: 25px;
        font-family: "Open Sans", sans-serif;
        font-size: 1rem;
        font-weight: 600;
        color: white;
        text-decoration: none;
        transition:
            background-color 0.3s ease,
            border-color 0.3s ease,
            transform 0.2s ease;
    }

    .btn-retour-formations:hover {
        background-color: #47386f;
        border-color: #47386f;
        color: white;
        transform: translateY(-2px);
    }
}
/* =========================================================
   RESPONSIVE OBJECTIFS ET CONTACT
   ========================================================= */

@media screen and (max-width: 767px) {
    .formation-objectifs {
        margin-top: 55px;
        padding: 35px 20px;
        border-radius: 22px;
    }

    .formation-objectifs h2 {
        margin-bottom: 25px;
    }

    .formation-objectifs h3 {
        margin-top: 25px;
        font-size: 1.2rem;
    }

    .formation-objectifs p {
        font-size: 0.95rem;
        text-align: left;
    }

    .formation-objectifs li {
        padding: 12px 12px 12px 35px;
        font-size: 0.95rem;
    }

    .formation-objectifs li::before {
        left: 12px;
    }

    .formation-contact {
        margin-top: 50px;
        padding: 35px 20px;
        border-radius: 22px;
    }

    .formation-contact p {
        font-size: 0.95rem;
    }

    .btn-zen {
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}
