/* ========================================
   STYLES GÉNÉRAUX
======================================== */
body, h1, h2, p {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Empêche tout débordement horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* ========================================
   SECTION HERO - IMAGE DE COUVERTURE
======================================== */
.hero-image-section {
    position: relative;
    background-image: url("/static/images/cover_landing_page.55aee3cb3b6c.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    text-align: center;
    color: black;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Overlay semi-transparent sur l'image de fond */
.hero-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 124, 112, 0.25);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Contenu principal du hero */
.hero-image-section .hero-content {
    position: relative;
    z-index: 100;
    max-width: 800px;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: auto;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: 1.0rem;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 20px auto;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   SECTION FONCTIONNALITÉS
======================================== */
.features-section {
    background-color: white;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Introduction des fonctionnalités */
.features-intro {
    margin-bottom: 25px;
    margin-top: 35px;
    text-align: center;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.features-intro h2 {
    font-family: "Arial", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.features-intro p {
    font-size: 1.1rem;
    color: #757575;
    font-family: "Arial", sans-serif;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Conteneur des cartes de fonctionnalités */
.features-cards {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 5px 15px;
    background-color: white;
    gap: 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.feature-container {
    max-width: 400px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Carte avec image */
.feature {
    background-color: #f7f7f7;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    margin: 15px 5px;
    padding: 10px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.feature img {
    width: 90%;
    height: auto;
    max-width: 100%;
}

/* Texte descriptif des fonctionnalités */
.feature-card-text {
    padding: 10px 5px;
    margin: 10px 5px;
    width: 100%;
    box-sizing: border-box;
}

.feature-card-text h3 {
    margin-top: 0.2rem;
    text-align: left;
    font-size: 1.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-card-text p {
    color: #666;
    text-align: left;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   BOUTONS CTA - DESIGN MODERNE
======================================== */
.cta-section {
    text-align: center;
    padding: 40px 15px;
    width: 100%;
    box-sizing: border-box;
}

.cta-button {
    background-color: #007C70;
    height: 50px;
    padding: 0px 32px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease-out;
    box-shadow:
        0 5px 16px rgba(0, 124, 112, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap; /* Empêche le retour à la ligne sur desktop aussi */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-button:hover {
    background-color: #005f55;
    box-shadow:
        0 7px 20px rgba(0, 124, 112, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(0, 124, 112, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour les liens contenant les boutons */
.cta-button-link {
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========================================
   BLOC D'INFORMATION
======================================== */
.info-block {
    background-color: #f9f9f9;
    padding: 40px 15px;
    text-align: center;
    margin: 0 auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.info-block h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-block p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    max-width: 800px;
    margin: auto;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
    box-sizing: border-box;
}

.text-avertissement {
    font-style: italic;
    font-size: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
======================================== */
@media (max-width: 800px) {
    /* Assure qu'aucun élément ne dépasse sur mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hero section mobile */
    .hero-image-section {
        padding: 25px 10px 20px 10px; /* Réduit padding-bottom de 30px à 20px */
        height: 50vh;
    }

    .hero-content {
        padding: 0.5rem;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        max-width: 100%;
        padding: 0 10px;
        margin: 0 auto;
    }

    .hero-content p {
        font-size: 1.0rem;
        max-width: 100%;
        padding: 0 10px;
        margin: 15px auto;
    }

    /* Features section mobile */
    .features-section {
        padding: 15px 0 10px 0; /* Réduit padding-bottom pour moins d'espace vers le bas */
    }

    .features-intro {
        padding: 0 20px; /* Augmenté de 10px à 20px */
        margin-bottom: 15px; /* Réduit de 20px à 15px */
        margin-top: 25px;
    }

    .features-intro h2 {
        font-size: 1.4rem;
        max-width: 100%;
        padding: 0 15px; /* Augmenté de 10px à 15px */
        margin: 0 auto 0.8rem auto;
    }

    .features-intro p {
        font-size: 0.9rem;
        max-width: 100%;
        padding: 0 15px; /* Augmenté de 10px à 15px */
        margin: 0 auto;
    }

    .features-cards {
        flex-direction: column;
        align-items: center;
        margin: 0 15px; /* Augmenté de 10px à 15px */
        gap: 15px; /* Réduit de 25px à 15px pour moins d'espacement entre les cartes */
        padding: 0;
    }

    .feature-container {
        max-width: 100%;
        width: 100%;
    }

    .feature {
        margin: 10px 0; /* Augmenté de 5px à 10px */
        max-width: 100%;
        width: 100%;
    }

    .feature-card-text {
        margin: 15px 0 5px 0; /* Réduit margin-bottom de 15px à 5px */
        max-width: 100%;
        width: 100%;
        padding: 15px 20px 10px 20px; /* Réduit padding-bottom de 15px à 10px */
        text-align: center; /* Centré au lieu de text-align: left */
    }

    .feature-card-text h3 {
        font-size: 1.2rem;
        text-align: center; /* Centré au lieu de text-align: left */
        margin-bottom: 8px; /* Réduit de 10px à 8px */
    }

    .feature-card-text p {
        font-size: 0.95rem;
        text-align: center; /* Centré au lieu de text-align: left */
        padding: 0 10px; /* Ajouté padding pour éviter que le texte touche les bords */
        margin-bottom: 0; /* Supprime margin-bottom par défaut */
    }

    /* Info block mobile */
    .info-block {
        padding: 25px 20px 20px 20px; /* Réduit padding-bottom de 30px à 20px */
    }

    .info-block h2 {
        font-size: 1.3rem;
        max-width: 100%;
        padding: 0 15px; /* Augmenté de 10px à 15px */
        margin: 0 auto 13px auto;
    }

    .info-block p {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 15px; /* Augmenté de 10px à 15px */
    }

    .text-avertissement {
        font-size: 0.7rem;
        max-width: 100%;
        padding: 0 15px; /* Augmenté de 10px à 15px */
        margin: 0 auto;
    }

    /* CTA section mobile */
    .cta-section {
        padding: 25px 15px 20px 15px; /* Réduit padding-bottom de 30px à 20px */
    }

    /* Boutons mobile */
    .cta-button {
        font-size: 0.9rem;
        height: 48px;
        padding: 0px 24px;
        max-width: calc(100% - 20px);
        margin: 0 auto;
        white-space: nowrap; /* Empêche le retour à la ligne */
        min-width: fit-content; /* Assure une largeur suffisante */
    }
}