/* Variables */
:root {
    --color-text-gray: #6b7280;
    --color-heading: #1f2937;
    --color-primary: #006d77;
    --color-blue-light: rgb(232, 240, 254);
    --color-white: rgb(255, 255, 255);
}

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

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

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

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

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 109, 119, 0.15);
}

.hero-image {
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

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

.formation-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formation-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.formation-text h2 {
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
}

.formation-text .intro {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.details {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    width: 100%;
}

.details li {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: #f9fafb;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-align: center;
    min-height: 160px;
}

.details li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.details li::before {
    content: attr(data-emoji);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-white) 100%);
    border-radius: 12px;
    margin: 1rem 0;
}

.formation-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

#acheterFormation {
    margin-top: 1rem;
    align-self: center;
}

/* Section Formateur */
.section-formateur {
    padding: 4rem 1rem;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-formateur h2 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 3rem;
}

/* Grille des formateurs */
.formateurs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
}

/* Carte formateur */
.formateur-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

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

.image-formateur {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--color-primary);
}

.image-formateur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texte-formateur {
    text-align: center;
}

.nom-formateur {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.description-formateur {
    color: var(--color-text-gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

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

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

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

    .formation-container {
        max-width: 720px;
    }

    .formation-text h2 {
        font-size: 2.5rem;
    }

    .formation-text .intro {
        font-size: 1.2rem;
    }

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

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

    /* Grille responsive pour 2 formateurs côte à côte sur tablette */
    .formateurs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 900px;
    }

    .formateur-card {
        padding: 2.5rem 1.5rem;
    }

    .image-formateur {
        width: 220px;
        height: 220px;
    }

    .nom-formateur {
        font-size: 1.6rem;
    }

    .description-formateur {
        font-size: 1.1rem;
    }
}

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

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

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

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

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

    .formation-container {
        max-width: 1000px;
    }

    .formation-text {
        text-align: center;
        align-items: center;
    }

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

    #acheterFormation {
        margin-top: 2rem;
    }

    /* Section formateurs desktop */
    .section-formateur {
        padding: 6rem 4rem;
    }

    .formateurs-grid {
        max-width: 1100px;
        gap: 3rem;
    }

    .formateur-card {
        padding: 3rem 2rem;
    }

    .image-formateur {
        width: 250px;
        height: 250px;
    }

    .nom-formateur {
        font-size: 1.8rem;
    }

    .description-formateur {
        font-size: 1.2rem;
        max-width: 450px;
    }
}
