/* ==================== Styles Généraux ==================== */
body {
    background: black;
    color: white;
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, p, table {
    color: white;
}

h1 {
    padding: 5em 0 0 10px;
}

.red {
    color: red;
}

a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: inline-block;
    margin: 10px 10px 0 0;
}

/* ==================== Styles Menu ==================== */
.groupe_menu {
    background: #1f1f1f;
    text-align: right;
    padding: 10px 0;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 100px;
    padding: 5px 0 0 10px;
}

.nav_links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav_links li {
    margin-left: 20px;
}

.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    color: white;
}

/* ==================== Bloc Principal ==================== */
.block_1, .ecoindex, .about, .description, .reasons, .slogan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    text-align: center;
}

.image {
    width: 300px;
    background: #1f1f1f;
    margin: 10px;
    border-radius: 100px 0;
}

/* ==================== Section Partenaire ==================== */
.partner {
    background: red;
    margin: 10px 0;
    text-align: center;
}

img.ionos, img.uptime {
    width: 10%;
    margin: 10px;
    max-width: 100%;
}

/* ==================== Section A Propos ==================== */
.about, .ecoindex, .reason, .title, .slogan {
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 10px;
    margin: 20px 0;
}

.title {
    text-align: center;
}

.description, .ecoindex, .reason, .services {
    text-align: justify;
    padding: 0 100px;
    font-size: 20px;
}

/* ==================== Pied de page ==================== */
.footer {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    color: #ECF0F1;
    margin-top: 20px;
    border-top: 1px solid #2C3E50;
}

#ecoindex-badge {
    padding: 5px 100px;
}

/* ==================== Media Queries ==================== */
@media screen and (max-width: 800px) {
    .nav_links {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav_links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .image {
        width: 200px;
    }

    .description, .ecoindex, .reason, .services {
        padding: 0 20px;
    }

    h1 {
        padding: 0px 0 0 1px;
    }

    p.slogan {
        padding: 10px 0 0 19px;
    }
}

@media screen and (max-width: 600px) {
    .groupe_menu {
        padding: 10px;
    }

    .block_1, .ecoindex, .about, .description, .reasons, .slogan {
        flex-direction: column;
        text-align: center;
    }

    .image {
        width: 100%;
        margin: 10px 0;
    }

    .footer {
        padding: 15px;
    }

    .description, .ecoindex, .reason, .services {
        padding: 0 15px;
        font-size: 18px;
    }
}

@media screen and (max-width: 414px) {
    .footer {
        padding: 20px;
    }

    .slogan {
        font-size: 1em;
    }

    .reason {
        padding: 5px;
        margin: 5px 0;
    }

    p {
        font-size: 18px;
    }
}

/* ==================== Section Services ==================== */
.services {
    background-color: #1f1f1f;
    padding: 40px 0;
    text-align: center;
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
}

.service-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
}

.service {
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.service:hover {
    transform: translateY(-10px);
}

.service h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.service p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.payment-options {
    list-style: none;
    padding: 0;
    font-size: 1.2em;
    text-align: left;
}

.payment-options li {
    margin-bottom: 10px;
}

@media screen and (max-width: 800px) {
    .service-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* ==================== Bandeau RGPD ==================== */
.banner, #custom {
    background-color: #000; /* Fond noir */
    color: #fff; /* Texte blanc */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Largeur totale */
    padding: 10px 20px;
    opacity: 0.9; /* Transparence légère */
    font-size: 16px; /* Texte standard */
    text-align: center; /* Centré */
    z-index: 9999; /* Au-dessus de tout */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5); /* Ombre subtile */
    border-top: 2px solid #444; /* Bordure supérieure */
    border-radius: 5px 5px 0 0; /* Coins arrondis en haut */
}

/* Bouton d'action */
.banner button {
    margin: 10px 10px; /* Espacement autour des boutons */
    width: 15%; /* Largeur modérée */
    height: 40px; /* Hauteur réduite */
    color: #fff; /* Texte blanc */
    font-size: 16px; /* Texte plus petit */
    background-color: #0a0a0a; /* Fond noir foncé */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur pointeur */
    transition: background-color 0.3s ease; /* Transition fluide sur hover */
}

/* Effet au survol */
.banner button:hover {
    background-color: #222; /* Couleur légèrement plus claire au survol */
}

/* Lien RGPD */
.banner a {
    color: red; /* Rouge vif */
    text-decoration: underline; /* Lien souligné */
    font-size: 14px; /* Texte réduit */
}


#custom input[type="checkbox"] {
    display: none; /* On masque les cases à cocher pour styliser uniquement le label */
}

#custom label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #0a0a0a; /* Couleur bleue */
    border: 1px solid #F44336;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#custom label:hover {
    background-color: #F44336; /* Couleur plus sombre au survol */
}

#custom input[type="checkbox"]:checked + label {
    background-color: #28a745; /* Couleur verte quand sélectionné */
    border-color: #218838;
}


/* Réactivité : version mobile */
@media screen and (max-width: 768px) {
    .bannern, #custom {
        height: auto; /* Hauteur minimale */
        padding: 10px; /* Réduction de l'espace intérieur */
        font-size: 14px; /* Texte réduit */
        box-shadow: none; /* Suppression de l'ombre pour plus de discrétion */
        opacity: 0.85; /* Légèrement plus transparent */
    }

    .banner button {
        width: 30%; /* Boutons plus petits pour rester discrets */
        height: auto; /* Ajustement automatique de la hauteur */
        font-size: 14px; /* Taille réduite pour le texte */
    }

    .banner a {
        font-size: 12px; /* Taille plus petite pour les liens */
    }
}

