/* ==========================================================================
   Global Styles
   ========================================================================== */
body {
    font-family: Arial, sans-serif;
}


/* ==========================================================================
   Header
   ========================================================================== */

/* Header principal */
header {
    background: white;
    /* Fond blanc */
    color: black !important;
    padding: 1rem 0;
    position: fixed;
    /* Rendre le header fixe */
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Assurer que le header reste au-dessus des autres éléments */
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ajouter une ombre pour un effet visuel */
}

/* Conteneur interne du header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 6px 0 !important; */
    margin-top: -12px;
    margin-bottom: -20px;
}

/* Header fixe alternatif */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff !important;
    /* Fond blanc */
    color: #333333 !important;
    /* Couleur du texte */
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Ombre légère */
    z-index: 1000;
    /* Assurer que le header reste au-dessus du contenu */
}

/* Logo */
.logo {
    color: black !important;
    /* Couleur noire */
    text-decoration: none;
    /* Supprimer la décoration du texte */
    font-size: 1.5rem;
    font-weight: bold;
}


/* ==========================================================================
   Conteneurs et Titres
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

.title {
    padding-top: 10rem;
}

h1 {
    font-weight: bold;
    margin-top: -20px;
}

h3 {
    text-align: center;
}

h5 {
    color: #32aa27 !important;
}

.required {
    color: red !important;
}


/* ==========================================================================
   Appointment Calendar & Frame
   ========================================================================== */
.appointment-calendar__selected-date-wrapper {
    width: 100%;
    /* Prend toute la largeur disponible */
    background-color: #32aa27 !important;
    color: white !important;
    text-align: center;
    margin-left: -21.1px;
    padding-left: 42px;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-top: -21px;
    padding: 21px;
}

.frame {
    border: 2px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
    /* Assurez-vous que le cadre prend toute la largeur disponible */
    box-sizing: border-box;
    /* Inclure le padding et la bordure dans la largeur totale */
    display: flex;
    /* Utilisez flexbox pour aligner les éléments */
    flex-direction: column;
    /* Alignez les éléments en colonne */
    align-items: stretch;
    /* Étirer les éléments pour qu'ils prennent toute la largeur */
}


/* ==========================================================================
   Navigation
   ========================================================================== */
.navigation {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.nav-left button {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

.nav-left span {
    margin: 0 5px;
}

.current-date {
    background-color: green !important;
    color: black !important;
    border-radius: 50%;
    padding: 12px;
    width: 17px;
    height: 15px;
}

.current-date:hover {
    background-color: black !important;
    color: white !important;
}

.nav-menu {
    display: block;
    /* Affiché sur grand écran */
    margin-bottom: 12px;
    /* Espace pour qu'il apparaisse sous le bouton */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 19px;
    margin: 0px;
    padding: 0px;
}


/* ==========================================================================
   Time Slots
   ========================================================================== */
.time-slots {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.time-slots div {
    width: 45%;
}

.time-slots ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.time-slot {
    margin: 5px 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 0;
    cursor: pointer;
}

.time-slot:hover {
    background-color: black !important;
    color: white !important;
}

.time-slot.past {
    text-decoration: line-through;
    color: gray;
    pointer-events: none;
    /* Empêche les clics */
}


/* ==========================================================================
   Timezone
   ========================================================================== */
.timezone {
    margin-top: 20px;
    padding-bottom: 20px;
    margin-right: 500px;
}

#timezone {
    border: none;
    /* Supprime la bordure */
    background: none;
    /* Supprime le fond */
    font-size: 1em;
    /* Ajuste la taille de la police si nécessaire */
    padding: 5px;
    /* Ajuste le padding si nécessaire */
    -webkit-appearance: none;
    /* Supprime le style par défaut du navigateur pour WebKit */
    -moz-appearance: none;
    /* Supprime le style par défaut du navigateur pour Mozilla */
    appearance: none;
    /* Supprime le style par défaut du navigateur */
    position: relative;
    /* Position relative pour le pseudo-élément */
}

#timezone:hover {
    background-color: #bbb !important;
    /* Ajoute un fond gris au survol */
    color: black !important;
    /* Change la couleur du texte au survol */
}

#timezone::after {
    content: '\25BC';
    /* Flèche vers le bas */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Empêche les clics sur la flèche */
}

#timezone option {
    background-color: black !important;
    /* Ajoute un fond noir aux options */
    color: white !important;
    /* Change la couleur du texte des options */
}

#timezone option:hover,
#timezone option:focus {
    background-color: black !important;
    /* Fond noir au survol et au focus */
    color: white !important;
}

#timezone-search {
    display: none;
    /* Masque le champ de recherche par défaut */
    margin-top: 10px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================================================
   Formulaire de contact
   ========================================================================== */
.contact-form {
    margin-top: 20px;
}

.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: normal;
}

.contact-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 2px solid #ddd;
    font-size: medium;
    border-radius: 0;
}

.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 0px solid #ddd;
    font-size: large;
    border-radius: 0;
}

.contact-form .checkbox-group {
    margin-top: 10px;
    line-height: 0.6;
}

.contact-form .checkbox-group label {
    display: block;
    margin-top: 5px;
}

.contact-form .submit-button {
    background-color: #32aa27 !important;
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin-top: 20px;
}

.contact-form .submit-button:hover {
    background-color: #218838 !important;
}

.form__input-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.form__input--checkbox {
    margin-right: 10px;
}

.form__label {
    font-weight: normal;
}

.attached-file {
    color: #32aa27;
}

/* Conteneur de la case à cocher */
.checkbox-font {
    font-weight: bold;
    margin-top: -26px;
    margin-left: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container input {
    margin-left: 53%;
    margin-inline: -49%;
}

.checkbox-container .checkmark {
    margin-right: 10px;
}

.checkbox-container span {
    display: inline-block;
    margin-bottom: 5px;
}


/* ==========================================================================
   Footer & Troisième section
   ========================================================================== */
footer {
    background: #162415 !important;
    color: white !important;
    text-align: center;
    padding: 1px;
}

/* Troisième section avec un dégradé de vert et noir */
.third-section {
    background: #162415 !important;
    color: white !important;
    /* Texte en blanc */
    text-align: center;
    /* Centrer le texte */
    margin-bottom: -40px;
}

.third-section a {
    color: white !important;
    /* Couleur des liens en blanc */
    font-size: 1.2rem;
    /* Taille de police */
    transition: color 0.3s;
    /* Transition pour la couleur */
}

.third-section a:hover {
    color: #218838 !important;
    /* Couleur verte au survol */
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}


/* ==========================================================================
   Calendar Styles
   ========================================================================== */
#calendar-container {
    display: flex;
    border: 1px solid #ddd;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

#calendar {
    width: 100%;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #32aa27 !important;
    color: white !important;
    font-weight: bold;
}

.calendar-header button {
    background: none;
    border: none;
    color: white !important;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 10px;
    transition: background 0.3s;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background: #32aa27 !important;
    color: white !important;
}

#calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px;
}

#calendar-dates span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s;
}

#calendar-dates span:hover:not(.disabled):not(.past-date) {
    background: #ddd;
    border-radius: 5px;
}

#calendar-dates .past-date {
    color: #bbb !important;
    text-decoration: line-through;
    pointer-events: none;
}

#calendar-dates .selected {
    background: #32aa27 !important;
    color: white !important;
    border-radius: 5px;
}


/* ==========================================================================
   Time Slot Styles (Calendar)
   ========================================================================== */
#time-slots {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}

.morning,
.afternoon {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#morning-slots div,
#afternoon-slots div {
    margin: 5px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

#morning-slots div:hover,
#afternoon-slots div:hover {
    background: #e0e0e0;
}

#morning-slots div.disabled,
#afternoon-slots div.disabled {
    background: #bbb;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .header-container {
        padding: 18px 0;
    }

    .container {
        max-width: 800px;
        margin: 15px auto;
    }

    #calendar-container {
        width: 100%;
        /* Prend toute la largeur disponible */
    }

    /* Affichage du bouton hamburger */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    /* Masquer le menu par défaut */
    .nav-menu {
        display: none;
    }

    .title {
        padding-top: 11rem;
    }

    /* Lorsque le menu est actif, l'afficher en bloc */
    .nav-menu.active {
        display: block;
    }

    /* Afficher la liste des liens verticalement */
    .nav-links {
        display: block;
        text-align: center;
        padding-bottom: 1rem;
    }

    .nav-links li {
        margin: 5px 0;
        display: block;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-size: 0.7rem;
        font-weight: bold;
        transition: color 0.3s;
    }

    .appointment-calendar__selected-date-wrapper {
        padding: 10px;
        margin-left: 0;
    }

    .frame {
        padding: 10px;
    }

    .calendar {
        padding: 5px;
    }

    .navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-left {
        margin-bottom: 10px;
    }

    .appointment-calendar__weekdays-item {
        margin: 0 5px;
    }

    .time-slots div {
        width: 100%;
    }

    .timezone {
        margin-right: 0;
    }

    #calendar {
        width: 100%;
    }

    #time-slots {
        flex-direction: column;
        align-items: center;
    }

    .morning,
    .afternoon {
        width: 100%;
    }
}