:root {
    --black: #272D3B;
    --lightBlue: #6DC6D4;
    --purple: #764796;
    --gradient: linear-gradient(90deg, var(--lightBlue), var(--purple));
    --blue: #6DC6D4;
    /* Par défaut, basé sur votre lightBlue */
    --red: #E74C3C;
    /* Rouge d'alerte */
    --white: #FFFFFF;
    --grey: #7f8c8d;
    /* Texte secondaire */
}

/* Titre principal */
.title {
    font-size: 20px;
    color: var(--blue);
    margin-top: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    width: 80%;
    padding-bottom: 5px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Ligne d'information */
.infoline {
    background-color: #f4f4f4;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}

.infoline p {
    font-size: 18px;
    margin: 0;
    color: var(--black);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    /* Limite maximale de la largeur */
    max-height: 100px;
    /* Limite maximale de la hauteur */
    height: auto;
    /* Ajustement automatique en fonction de la largeur */
    object-fit: contain;
    /* Maintient les proportions sans recadrage */
}


/* Forme des textes */
.uppercase {
    text-transform: uppercase;
}

.capitalize-first {
    text-transform: lowercase;
}

.capitalize-first::first-letter {
    text-transform: uppercase;
}

/* Groupes de champs de formulaire */
.styled-form-group {
    margin-bottom: 15px;
    width: 80%;
    margin: 0 auto;
}

.styled-label {
    font-size: 16px;
    color: var(--black);
}

.styled-select,
.styled-input {
    width: 100%;
    margin-top: 5px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid var(--lightBlue);
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Boutons */
.btn {
    background-color: var(--gradient);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: var(--purple);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Alertes */
.vote-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.vote-alert-success {
    background-color: #d4edda;
    color: #155724;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* Lien WhatsApp */
.whatsapp-container {
    margin-top: 10px;
    text-align: center;
}

.whatsapp-container a {
    color: #25d366;
    font-size: 18px;
    text-decoration: none;
}

.whatsapp-container a:hover {
    text-decoration: underline;
    font-weight: bold;
}

/* Description et titres */
.form-description {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--grey);
}

.form-title {
    font-size: 28px;
    color: var(--black);
    margin-bottom: 10px;
    text-align: center;
}

@media (min-width: 768px) {
    .form-title {
        font-size: 32px;
    }

    .form-description {
        font-size: 18px;
    }
}

/* Section Téléchargement */
.download-section {
    text-align: center;
    margin-bottom: 20px;
}

.download-section .title {
    font-size: 22px;
    color: var(--blue);
    margin-bottom: 10px;
}

.download-section .form-description {
    font-size: 16px;
    color: var(--grey);
    margin-bottom: 20px;
}

.pdf-list {
    list-style-type: none;
    padding: 0;
}

.pdf-list li {
    margin-bottom: 10px;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 16px;
    color: var(--white);
    background-color: var(--lightBlue);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.btn-download:hover {
    background-color: var(--purple);
}

/* Notifications Deadline */
.deadline {
    color: var(--red);
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 5px solid var(--red);
    text-align: center;
    margin: 20px auto;
    width: 80%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deadline-alert {
    color: var(--black);
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    background-color: #f5c6cb;
    border-left: 5px solid var(--red);
    text-align: center;
    margin: 20px auto;
    width: 80%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    /* Couleur transparente pour l'arrière */
    border-top: 4px solid var(--lightBlue);
    /* Couleur principale */
    border-right: 4px solid var(--purple);
    /* Couleur secondaire */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #4CAF50;
    /* Success green */
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    animation: fadeInOut 3s ease;
}

.notification.error {
    background-color: #f44336;
    /* Error red */
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}
