/* ======== FORMATION (page formateur) ======== */

.formateur {
    background-color: #0b0b16;
    background-image: 
        linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 50% 15%, #1e1338 0%, #090618 35%, #0d1f28 70%, #050c11 100%);
    background-size: 14px 14px, 14px 14px, 100% 100%;
    background-position: 0 0, 0 0, center top;
    background-repeat: repeat, repeat, no-repeat;
    background-attachment: fixed, fixed, fixed;
}

/* ======== FORMATEUR HERO (components/formateur-hero.php) ======== */

#formateur-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 700px;
}

.formateur-hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

.formateur-hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.173);
    border-radius: 1.8rem;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.067);
}

.formateur-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.5rem;
}

.formateur-hero-content h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--beige-light);
    line-height: 1.3;
}

.formateur-hero-content h2 {
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--purple-primary-light);
    line-height: 1.5;
}

.formateur-hero-description p {
    color: var(--beige-light);
    line-height: 1.6;
    margin-bottom: 0.9rem;
    font-weight: bold;
}

.formateur-hero-description ul {
    margin: 0 0 1rem 0;
    padding-left: 1.2rem;
}

.formateur-hero-description li {
    color: var(--beige-light);
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.formateur-hero-description strong {
    color: var(--purple-primary);
}

/* ======== MEDIA QUERIES ======== */

/* Grande tablette */

@media (min-width: 1025px) {
    /* FORMATION */
    #formateur-hero {
        flex-direction: row;
        height: 100dvh;
    }

    .formateur-hero-video {
        width: 54%;
        height: 100%;
        aspect-ratio: unset;
    }

    .formateur-hero-content {
        width: 46%;
        height: 100%;
        padding: 4rem 3.5rem;
        justify-content: center;
    }

    .formateur-hero-content h1 {
        font-size: 2.2rem;
    }

    .formateur-hero-content h2 {
        font-size: 1.2rem;
    }
}

/* Grand écran */

@media (min-width: 1440px) {
    #formateur-hero {
        padding: 4% 2%;
    }
}

/* Écran 2K et + */

@media (min-width: 2160px) {
    #formateur-hero {
        padding: 4% 16%;
    }
}

/* ======== FORMATEUR OFFERS (components/formateur-offers.php) ======== */

/* ---------- OFFRES (mobile-first : cards empilées) ---------- */
#formateur-offers {
    padding: 3rem 1.5rem;
}

#formateur-offers h2 {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--beige-light);
    margin-bottom: 2rem;
}

.formateur-offers-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.formateur-offer-card {
    display: flex;
    flex-direction: column;
    background: radial-gradient(rgba(255, 255, 255, 0.076), rgba(255, 255, 255, 0.085));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--icons-border-radius);
    padding: 1.75rem;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.056),
        inset 0 0 20px rgba(255, 255, 255, 0.056);
}

.formateur-offer-badge {
    align-self: flex-start;
    background-color: var(--purple-primary);
    color: var(--white-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.formateur-offer-card h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--beige-light);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.formateur-offer-tagline {
    font-style: italic;
    color: var(--purple-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.formateur-offer-apporte h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--beige-light);
    margin-bottom: 0.6rem;
}

.formateur-offer-apporte p {
    color: var(--text-default-dark1);
    line-height: 1.6;
    margin-bottom: 0.7rem;
}

.formateur-offer-apporte ul {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.formateur-offer-apporte li {
    color: var(--text-default-dark1);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.formateur-offer-competences {
    margin-top: 1.2rem;
    border-top: 1px solid var(--purple-primary-light);
    padding-top: 1rem;
}

.formateur-offer-competences summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--purple-primary);
    list-style: none;
}

.formateur-offer-competences summary::-webkit-details-marker {
    display: none;
}

.formateur-offer-competences summary::after {
    content: " +";
}

.formateur-offer-competences[open] summary::after {
    content: " −";
}

.formateur-offer-competences .competence-group {
    margin-top: 1rem;
}

.formateur-offer-competences .competence-group h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--beige-light);
    margin-bottom: 0.4rem;
}

.formateur-offer-competences .competence-group ul {
    padding-left: 1.2rem;
}

.formateur-offer-competences .competence-group li {
    color: var(--text-default-dark1);
    line-height: 1.5;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

/* ======== MEDIA QUERIES ======== */

/* Grande tablette */

@media (min-width: 1025px) {
    .formateur-offers-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: stretch;
        padding: 0 10dvw;
    }

    .formateur-offer-card {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
}

/* Écran 2K et + */

@media (min-width: 2160px) {
    .formateur-offers-grid {
        padding: 0 20dvw;
    }
}

/* ======== FORMATEUR THREAD (components/formateur-thread.php) ======== */

/* ---------- FIL ROUGE ---------- */
#formateur-thread {
    padding: 3rem 1.5rem;
}

.formateur-thread-content {
    max-width: 900px;
    margin: 0 auto;
}

.formateur-thread-content h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--white-primary);
    margin-bottom: 0.8rem;
    text-align: center;
}

.formateur-thread-lead {
    text-align: center;
    font-style: italic;
    color: var(--purple-primary-light);
    margin-bottom: 1.5rem;
}

.formateur-thread-content p {
    color: var(--text-default-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.formateur-thread-diagram {
    background: radial-gradient(rgba(125, 145, 244, 0.157), rgba(68, 196, 242, 0.181));
    border-radius: 1.2rem;
    padding: 1.2rem;
    margin: 1.5rem 0;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.338);
}

.formateur-thread-diagram .diagram {
    font-weight: 700;
    color: var(--text-default-light);
    letter-spacing: 0.02em;
}
