/* Formation Page Styles */
/* Utilise les variables du projet */

/* Hero Formation */
.hero-formation {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-white) 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.hero-formation-content {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero-formation h1 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.hero-description {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-formation-image {
    width: 100%;
    max-width: 400px;
}

.hero-formation-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 109, 119, 0.15);
}

/* Container commun */
.container {
    max-width: 90%;
    margin: 0 auto;
    width: 100%;
}

/* Section Intro Text */
.section-intro {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Section Audience */
.section-audience {
    padding: 4rem 1rem;
    background-color: var(--color-white);
}

.section-audience h2 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.audience-card {
    background-color: #f9fafb;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 109, 119, 0.1);
}

.audience-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.audience-card h3 {
    color: var(--color-heading);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.audience-card p {
    color: var(--color-text-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Section Objectifs */
.section-objectifs {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-white) 100%);
}

.section-objectifs h2 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.objectifs-stepper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.stepper-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.stepper-content h3 {
    color: var(--color-heading);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stepper-content p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.stepper-line {
    width: 3px;
    height: 40px;
    background-color: var(--color-primary);
    opacity: 0.3;
}

/* Section Programme */
.section-programme {
    padding: 4rem 1rem;
    background-color: var(--color-white);
}

.section-programme h2 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.programme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.programme-card {
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 109, 119, 0.1);
}

.programme-card-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, #008891 100%);
}

.programme-card-highlight .programme-header h3,
.programme-card-highlight .programme-number,
.programme-card-highlight .programme-list li {
    color: white;
}

.programme-header {
    margin-bottom: 1rem;
}

.programme-number {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.programme-header h3 {
    color: var(--color-heading);
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.programme-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.programme-list li {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.programme-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.programme-card-highlight .programme-list li::before {
    color: white;
}

/* Section Format */
.section-format {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-white) 100%);
}

.section-format h2 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.format-item {
    background-color: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.format-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 109, 119, 0.1);
}

.format-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.format-item h3 {
    color: var(--color-heading);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.format-item p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Section Résultats */
.section-resultats {
    padding: 4rem 1rem;
    background-color: var(--color-white);
}

.section-resultats h2 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.resultats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.resultat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.resultat-item:hover {
    background-color: var(--color-blue-light);
}

.resultat-check {
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.resultat-item p {
    color: var(--color-heading);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Section CTA */
.section-cta {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #008891 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta h2 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    background-color: white;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero-formation {
        padding: 4rem 2rem;
    }

    .hero-formation h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .container {
        max-width: 720px;
    }

    .section-audience h2,
    .section-objectifs h2,
    .section-programme h2,
    .section-format h2,
    .section-resultats h2 {
        font-size: 2.5rem;
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Stepper horizontal sur tablette */
    .objectifs-stepper {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
    }

    .stepper-item {
        flex: 1;
        max-width: 150px;
    }

    .stepper-line {
        width: 60px;
        height: 3px;
        margin-top: 25px;
    }

    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .programme-card:nth-child(5) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .resultats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section-cta h2 {
        font-size: 2.5rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-formation {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 6rem 4rem;
        gap: 4rem;
    }

    .hero-formation-content {
        flex: 1;
        align-items: flex-start;
        max-width: 600px;
    }

    .hero-formation h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-formation-image {
        flex: 1;
        max-width: 500px;
    }

    .container {
        max-width: 1100px;
    }

    .section-audience,
    .section-objectifs,
    .section-programme,
    .section-format,
    .section-resultats {
        padding: 6rem 4rem;
    }

    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stepper-item {
        max-width: 180px;
    }

    .stepper-line {
        width: 80px;
    }

    .stepper-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stepper-content h3 {
        font-size: 1.3rem;
    }

    .programme-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .programme-card:nth-child(5) {
        grid-column: span 1;
        max-width: 100%;
    }

    .programme-card:nth-child(4),
    .programme-card:nth-child(5) {
        grid-column: auto;
    }

    /* Centrer les 2 dernières cartes */
    .programme-grid {
        justify-items: center;
    }

    .format-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resultats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-cta {
        padding: 6rem 4rem;
    }

    .section-cta h2 {
        font-size: 3rem;
    }

    .cta-content {
        max-width: 700px;
    }

    .btn-cta {
        padding: 1.2rem 3rem;
        font-size: 1.2rem;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    .hero-formation h1 {
        font-size: 3.5rem;
    }

    .stepper-line {
        width: 100px;
    }
}
