/* 🎨 RESET GÉNÉRAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 🔹 Personnalisation de la scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #01a09b3a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #01a09b;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007470;
}

/* 🌍 BODY - Fond et mise en page */
body {
    position: relative;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* 🔥 Arrière-plan semi-transparent */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/void-gts/images/numwhbckgrnd.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

/* 📌 HEADER */
header {
    text-align: center;
    margin-bottom: 20px;
}

header img {
    max-width: 150px;
    height: auto;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    color: #007470;
    margin-top: 10px;
    padding-bottom: 15px;
}

h2 {
    font-size: 24px;
    color: #007470;
    margin-top: 10px;
    padding-bottom: 15px;
}

/* 📦 CONTAINER PRINCIPAL : Deux colonnes en Flexbox */
.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch; /* Ajustement automatique en hauteur */
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 3px 3px 6px 6px #00c0ba46;
    max-width: 900px;
    width: 100%;
    min-height: 500px;
}

/* ✅ COLONNE GAUCHE : FORMULAIRE */
#form-container {
    flex: 1;
    padding-right: 20px;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

input, .checkbox-container {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* Case à cocher */
.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
}

/* 🎨 Bouton de demande de validation */
#generateBtn {
    display: block;
    margin: 20px auto 0 auto; /* Centre horizontalement et ajoute un espace au-dessus */
    background-color: #01a09b; /* Couleur de fond assortie au design */
    color: white; /* Texte blanc */
    padding: 12px 20px; /* Espace autour du texte */
    font-size: 16px; /* Taille du texte */
    border: none; /* Pas de bordure */
    border-radius: 8px; /* Coins arrondis pour un look plus moderne */
    cursor: pointer; /* Curseur pointer pour signaler que c’est cliquable */
    width: 50%; /* Prend toute la largeur du formulaire */
    transition: background-color 0.3s, transform 0.2s ease-in-out; /* Transition pour un effet fluide */
    opacity: 0.5; /* Opacité à 50% quand désactivé */
    pointer-events: none; /* Empêche les clics lorsque désactivé */
}

/* 🎨 Effet de survol */
#generateBtn:hover {
    background-color: #00b3ad; /* Changement de couleur au survol */
    transform: scale(1.05); /* Légère animation de zoom */
}

/* 🎨 Apparence lorsque le bouton est activé */
#generateBtn:enabled {
    opacity: 1; /* Opacité à 100% quand activé */
    pointer-events: auto; /* Autorise les clics lorsque le bouton est activé */
}

/* ✅ COLONNE DROITE : Bouton, Réseaux, Témoignages */
#info-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

/* Activation de la colonne droite */
#info-container.active {
    opacity: 1;
    pointer-events: auto;
}

/* 🟢 Bouton d'accès */
.test-button {
    background-color: #01a09b;
    color: white;
    padding: 15px;
    font-size: 24px;
    border: none;
    border-radius: 10px 10px 2px 10px;
    cursor: pointer;
    margin-bottom: 20px;
    display: none;
}

.test-button:hover {
    background-color: #00b3ad;
}

/* 🎨 Icônes Réseaux Sociaux */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    text-decoration: none;
    font-size: 40px; /* Taille des icônes */
    color: #555;
    transition: color 0.3s, transform 0.2s ease-in-out;
}

.social-icons a:hover {
    color: #01a09b; /* Changement de couleur au survol */
    text-shadow: #3f3f3f;
    transform: scale(1.2); /* Effet zoom */
}

/* 💬 Témoignages */
.testimonial {
    font-size: 14px;
    font-style: italic;
    color: #666;
    background: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #01a09b;
    border-radius: 5px;
}

/* ✅ STYLE DE LA PAGE CLUF */
#cluf-container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    text-align: justify;
}

#cluf-container h2, #cluf-container h3 {
    color: #007470;
    margin-top: 20px;
}

#cluf-container ul {
    padding-left: 20px;
}

#cluf-container p {
    margin: 10px 0;
}

/* ✅ STYLE DE LA PAGE RGPD */
#rgpd-container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    text-align: justify;
}

#rgpd-container h2, #rgpd-container h3 {
    color: #007470;
    margin-top: 20px;
}

#rgpd-container ul {
    padding-left: 20px;
}

#rgpd-container p {
    margin: 10px 0;
}

/* ✅ MODALE CLUF */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu de la modale */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Bouton de fermeture */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Iframe pour afficher le CLUF */
.modal-content iframe {
    width: 100%;
    height: 70vh;
    border-radius: 5px;
}

/* 📱 RESPONSIVE : Passage en colonne pour les petits écrans */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    #form-container, #info-container {
        max-width: 100%;
        padding: 0;
    }

    #form-container {
        margin-bottom: 20px;
    }
}

/* 📌 FOOTER FIXE & PLEINE LARGEUR */
footer {
    width: 100vw; /* Assure que le footer prend toute la largeur de l'écran */
    background-color: #007470; /* Couleur assortie au design */
    font-size: 14px;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed; /* Fixe le footer en bas */
    bottom: 0;
    left: 0;
    z-index: 1000; /* Assure qu'il reste bien au-dessus du contenu */
}

/* 📌 Ajout de marge en bas pour éviter le chevauchement */
body {
    padding-bottom: 40px; /* Ajuste selon la hauteur du footer */
}

footer p {
    margin: 5px 0;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #53ebe6; /* Effet au survol */
}

