/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Paramètres généraux */
:root {
    --primary-color: hsl(200deg 100% 33%);
    --secondary-color: hsl(80deg 48% 48%);
    --text-color: #333;
    --background-color: hsl(192deg 15.15% 93.53%);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 30px 20px;
}

section h2 {
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
}

/* En-tête */
header {
    display: flex;
    align-items: center;
    gap: 1em;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

header img {
    height: 48px;
}

header h1 {
    color: white;
    font-size: 1.5rem;
}

/* Hero Section */
#hero {
    position: relative;
    height: 300px;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: changeBackground 15s infinite; /* Durée et répétition de l'animation */
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-content {
    z-index: 1;
    max-width: 600px;
}

#hero h2 {
    color: hsl(200deg 100% 66%);
    animation: fadeInUp 1s ease-out; /* Animation de texte à l'entrée */
}

.cta {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: hsl(80deg 48% 38%);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite ease-in-out;
}

/* Présentation */
#presentation {
    background-color: var(--background-color);
}

.presentation p {
    line-height: 1.6;
    text-align: center;
}

/* Account Sections */
#accounts {
    background-color: white;
}

.account-type {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.account-description {
    flex: 1;
}

.account-description ul li {
    margin-bottom: 10px;
}

.account-description i {
    color: var(--primary-color);
    margin-right: 10px;
}

.account-description h3 i {
    margin-left: 10px;
}

.account-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Offres */
.pricing {
    background-color: var(--secondary-color);
    color: white;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-card {
    background-color: white;
    color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.pricing-card .description {
    margin-bottom: 15px;
}

.pricing-card .features {
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-card .features li {
    margin-bottom: 10px;
}

.pricing-card .features i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Chiffres Section */
#stats {
    background-color: var(--background-color);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.stats i:hover {
    transform: scale(1.1);
}

.stat h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat:hover .count {
    transform: scale(1.2);
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.stat p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Témoignages */
#testimonials {
    background-color: white;
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial {
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.testimonial .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
}

.testimonial h4 {
    text-align: right;
    font-weight: bold;
}

/* Foire aux Questions */
#faq {
    background-color: var(--background-color);
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item h3:hover {
    color: var(--primary-color);
}

/* Pied de page */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Media queries pour les écrans plus larges */
@media (min-width: 768px) {
    /* Limiter la largeur du contenu */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    /* Hero */
    .hero {
        height: 500px;
    }

    .cta {
        padding: 10px 20px;
    }

    /* Offres */
    .pricing-grid {
        flex-direction: row;
        justify-content: center;
    }

    .pricing-card {
        width: 33%;
    }

    /* Réalisations */
    .stats-container {
        flex-direction: row;
        justify-content: center;
    }

    .stat {
        width: 33%;
    }

    /* Témoignages */
    .testimonials-container {
        flex-direction: row;
        justify-content: center;
    }

    .testimonial {
        width: 33%;
    }
}

@media (min-width: 1024px) {
    section h2 {
        font-size: 2em;
    }

    #hero {
        background-position: top center;
    }

    .account-type {
        flex-direction: row;
        justify-content: center;
    }

    .account-type:nth-child(odd) .account-description {
        order: 2;
    }

    .account-image {
        max-width: 66%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation du défilement des images */
@keyframes changeBackground {
    0% {
        background-image: url('images/page-admin.png');
    }
    25% {
        background-image: url('images/page-prof.png');
    }
    50% {
        background-image: url('images/page-apprenant.png');
    }
    100% {
        background-image: url('images/page-admin.png');
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}