/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* Navbar Styles */
header {
    background-color: #006400;
    padding: 10px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    font-size: 24px;
    color: white;
    font-weight: 700;
}

header ul {
    display: flex;
    list-style-type: none;
}

header ul li {
    margin: 0 15px;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background-color: #006400;
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #12a8c8;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
}

.features {
    padding: 60px 20px;
    text-align: center;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.feature-item.reverse {
    flex-direction: row-reverse; /* Inverse l'ordre des éléments : texte à gauche, image à droite */
}

.feature-img {
    width: 25%;  /* Image occupe 1/4 de la largeur */
    padding: 20px;
}

.feature-img img {
    width: 100%;  /* L'image prend toute la largeur de son conteneur */
    border-radius: 8px;
}

.feature-text {
    width: 70%;  /* Texte occupe 3/4 de la largeur */
    padding: 20px;
    text-align: left;
}

.feature-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-text p {
    font-size: 16px;
    margin-bottom: 15px;
}

.extra-content {
    max-height: 0;  /* Initialement, le texte est caché */
    overflow: hidden;  /* Empêche d'afficher le texte si la hauteur est à 0 */
    transition: max-height 0.5s ease-out;  /* Animation fluide */
    font-size: 14px;
    margin-top: 20px;
}

.btn-more {
    background-color: #12a8c8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-more:hover {
    background-color: #0d7b99;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact button {
    background-color: #006400;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #006400;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 80%;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* Style de la modale */
.modal {
    display: none;  /* Caché par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
    border-radius: 5px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Section */
#features {
    background-color: #f9f9f9;
    padding: 50px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #333;
}

/* Feature item */
.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

/* Image */
.feature-img {
    width: 30%;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Text */
.feature-text {
    width: 60%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.feature-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Button */
.btn-more {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: #45a049;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
    }

    .feature-img, .feature-text {
        width: 100%;
    }

    .feature-img {
        height: 250px;
    }
}

/* Extra content (hidden by default) */
.extra-content {
    max-height: 0;  /* Initialement, la hauteur est à 0 */
    opacity: 0;  /* L'élément est invisible */
    overflow: hidden;  /* Pour empêcher l'affichage du contenu caché */
    padding-top: 15px;
    font-size: 1rem;
    color: #777;
    transition: max-height 1s ease-out, opacity 1s ease-out; /* Transition fluide sur la hauteur et l'opacité */
}

/* Lors de l'ouverture de l'élément */
.feature-item.open .extra-content {
    max-height: 1000px; /* Définir une valeur assez grande pour permettre l'animation */
    opacity: 1;  /* L'élément devient visible */
}

/* Lors de la fermeture de l'élément */
.feature-item:not(.open) .extra-content {
    max-height: 0;  /* Réduit la hauteur à 0 lors de la fermeture */
    opacity: 0;  /* L'élément devient invisible */
}

/* Style général pour la section 'about' */
.about {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

/* Titre et texte de la section 'about' */
.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Style général pour la section 'about' */
.acces {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

/* Titre et texte de la section 'about' */
.acces h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.acces p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Style pour le conteneur des cartes */
.card-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;  /* Permet aux cartes de se repositionner sur les petites résolutions */
    margin-top: 40px;
}

/* Style pour chaque carte */
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 23%;  /* Chaque carte occupe 1/4 de la largeur */
    text-align: left;
    transition: transform 0.3s ease;
}

/* Style des titres des cartes */
.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Style du texte des cartes */
.card p {
    font-size: 16px;
    color: #555;
}

/* Effet au survol de la carte */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Adaptation pour les petits écrans */
@media (max-width: 768px) {
    .card {
        width: 48%;  /* Les cartes prennent 1/2 de la largeur sur les écrans plus petits */
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;  /* Les cartes prennent toute la largeur sur les très petits écrans */
    }
}

        main {
            padding: 40px 10%;
        }

        .features h1, h2, h3 {
            color: #333;
        }
        
        .policy-section h1, h2, h3 {
            color: #1e3a8a;
        }
        
        p {
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        ul {
            list-style-type: disc;
            margin-left: 20px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        th, td {
            padding: 10px;
            text-align: left;
            border: 1px solid #ddd;
        }
        
        th {
            background-color: #f1f5f9;
            font-weight: bold;
        }
        
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        .policy-section {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .policy-section h1 {
            font-size: 2rem;
            margin-bottom: 20px;
        }
        
        .policy-section h2 {
            font-size: 1.5rem;
            margin-top: 30px;
        }
        
        .policy-section h3 {
            font-size: 1.2rem;
            margin-top: 20px;
        }
        
        .policy-section p strong {
            font-weight: bold;
        }
        
        .policy-section table {
            margin-top: 30px;
        }
        
        .policy-section ul {
            margin-bottom: 20px;
        }