/* ==========================================================================
   GLOBAL / BASE STYLES
   ========================================================================== */

body {
    font-family: Arial, sans-serif;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/* Header principal */
header {
    background: white;
    /* Fond blanc */
    color: black;
    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 du header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -12px;
    margin-bottom: -20px;
}

/* Fixed Header (alternative) */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    /* Fond blanc */
    color: #333333;
    /* 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 */
}

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

/* ==========================================================================
   CONTAINER & TYPOGRAPHIE
   ========================================================================== */

.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;
}

.required {
    color: red;
}

/* ==========================================================================
   CALENDRIER - APPOINTMENT CALENDAR
   ========================================================================== */

/* Sélection de la date */
.appointment-calendar__selected-date-wrapper {
    width: 100%;
    /* Prend toute la largeur disponible */
    background-color: #32aa27;
    color: white;
    text-align: center;
    margin-left: -21.1px;
    padding-left: 42px;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-top: -21px;
    padding: 21px;
}

.appointment-calendar__selected-date {
    display: block;
}

.appointment-calendar__selected-date-error {
    display: none;
    /* Masqué par défaut */
    color: red;
}

/* Cadre pour le calendrier et ses éléments */
.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;
    /* Étirez les éléments pour qu'ils prennent toute la largeur */
}

.calendar {
    background-color: #32aa27;
    color: white;
    padding: 10px;
    text-align: center;
    width: 100%;
    /* Assurez-vous que la largeur prend toute la largeur disponible */
    box-sizing: border-box;
    /* Inclure le padding et la bordure dans la largeur totale */
    margin: 0;
    /* Supprimez les marges */
}

.svg-position {
    position: relative;
    top: 3px;
}

/* Navigation du calendrier */
.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;
}

.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;
}

/* Jours de la semaine dans le calendrier */
.appointment-calendar__weekdays {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.appointment-calendar__weekdays-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* Chaque élément prend une part égale */
    margin: 0 15px;
    /* Espacement entre les éléments */
}

.appointment-calendar__weekdays-item-weekday {
    font-weight: bold;
    margin-bottom: 5px;
    /* Espace entre le jour et la date */
}

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

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

.appointment-calendar__weekdays-item-btn {
    border: 2px solid #ddd;
    border-radius: 50%;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    box-sizing: border-box;
    /* La bordure est incluse dans la taille totale */
}

.appointment-calendar__weekdays-item-btn:hover {
    background-color: black;
    color: white;
}

.appointment-calendar__weekdays-item--prev .appointment-calendar__weekdays-item-btn,
.appointment-calendar__weekdays-item--next .appointment-calendar__weekdays-item-btn {
    border: none;
    /* Supprimer la bordure pour les chevrons */
    background: none;
    /* Supprimer le fond pour les chevrons */
}

.disabled .appointment-calendar__weekdays-item-btn {
    color: gray;
    text-decoration: line-through;
    pointer-events: none;
}

.active .appointment-calendar__weekdays-item-btn {
    background-color: lightgreen;
}

/* ==========================================================================
   CRÉNEAUX HORAIRES
   ========================================================================== */

.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;
    color: white;
}

/* ==========================================================================
   FORMULAIRE DE CONTACT & OPTIONS
   ========================================================================== */

/* Styles généraux du formulaire */
.contact-form {
    margin-top: 20px;
}

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

/* Options supplémentaires (checkbox, etc.) */
.checkbox-other {
    display: none;
}

/* Style pour le 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;
}

/* Autres styles */
strong {
    font-size: large;
}

.padding {
    padding-bottom: 13px;
}

label.space {
    margin-bottom: -20px;
}

#tech-stack-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    line-height: 0;
    padding: 1.5rem;
    margin: -1rem;
}

/* Champs du formulaire */
.contact-form input,
.contact-form select {
    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: 2px solid #ddd;
    font-size: large;
    border-radius: 0;
}

/* Sélection des services et Tech Stack */
.selected-services {
    background-color: #ccc;
}

#selected-tech-stack {
    margin-top: 15px;
    background-color: #ccc;
}

#selected-tech-stack input {
    padding: 5px;
    font-size: 1rem;
    margin-right: 10px;
}

#selected-tech-stack button {
    padding: 5px 10px;
    font-size: 1rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#selected-tech-stack button:hover {
    background-color: #0056b3;
}

/* Liste déroulante customisée */
.custom-select option {
    color: #bbb;
}

/* Checkbox group dans le formulaire */
.contact-form .checkbox-group {
    margin-top: 10px;
    line-height: 0.6;
}

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

/* Bouton de soumission du formulaire */
.contact-form .submit-button {
    background-color: #32aa27;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin-top: 20px;
}

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

/* Wrapper pour checkbox input */
.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;
}

/* ==========================================================================
   FOOTER & TROISIÈME SECTION
   ========================================================================== */

footer {
    background: #162415;
    color: white;
    text-align: center;
    padding: 1px;
}

.third-section {
    background: #162415;
    color: white;
    /* Texte en blanc */
    text-align: center;
    /* Centrer le texte */
    margin-bottom: -40px;
}

.third-section a {
    color: white;
    /* Liens en blanc */
    font-size: 1.2rem;
    /* Taille de police */
    transition: color 0.3s;
}

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

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

/* ==========================================================================
   CALENDAR STYLES
   ========================================================================== */

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

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

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

.calendar-header button {
    background: none;
    border: none;
    color: white;
    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;
    color: white;
}

#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;
    text-decoration: line-through;
    pointer-events: none;
}

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

/* ==========================================================================
   TIME SLOT STYLES
   ========================================================================== */

#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;
}

/* ==========================================================================
   TIMEZONE & CUSTOM SELECT STYLES
   ========================================================================== */

.timezone {
    margin-top: 20px;
    padding-bottom: 20px;
    margin-right: 500px;
}

#timezone {
    border: none;
    /* Supprime la bordure */
    background: none;
    /* Supprime le fond */
    font-size: 1em;
    /* Taille de la police */
    padding: 5px;
    /* Padding */
    -webkit-appearance: none;
    /* Supprime le style par défaut (WebKit) */
    -moz-appearance: none;
    /* Supprime le style par défaut (Mozilla) */
    appearance: none;
    /* Supprime le style par défaut */
    position: relative;
    /* Position relative pour le pseudo-élément */
}

#timezone:hover {
    background-color: #bbb;
    /* Fond au survol */
    color: black;
    /* 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;
}

#timezone option {
    background-color: black;
    /* Fond noir aux options */
    color: white;
    /* Texte blanc aux options */
}

#timezone option:hover,
#timezone option:focus {
    background-color: black;
    color: white;
}

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

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {

    .header-container {
        padding: 18px 0;
    }

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

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

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

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

    .title {
        padding-top: 11rem;
    }

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

    .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;
    }
}