/* ----------- STYLES GÉNÉRAUX ----------- */

/* Polices générales */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #2f2c4d;
}

h1, h2, h3, h4, h5, h6, h7, h8 {
    font-family: 'Archivo Black', sans-serif;
    color: #2f2c4d;
}

/* ----------- HEADER ----------- */
header {
    background-color: #2f2c4d;
    color: #ffffff;
    padding: 50px;
    text-align: center;
}

/* ----------- PIED DE PAGE ----------- */
footer {
    background-color: #f8f9fa;
    padding: 20px;
    position: relative; /* Par défaut, laissez le footer positionné normalement */
    bottom: 0;
    width: 100%;
    text-align: center;
}

footer h8 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
	font-weight: normal;
    margin-bottom: 15px;
}

footer p {
    font-size: 0.7rem;
    line-height: 1.6;
    color: #2f2c4d;
}

footer a {
    text-decoration: none;
    font-size: 0.7rem;
    color: #2f2c4d;
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: #0056b3;
}

footer .copyright {
    background-color: #2f2c4d;
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.7rem;
}

html, body {
    height: 100%; /* Assurez-vous que le body et html occupent 100% de la hauteur */
    margin: 0;
}

.container {
    flex: 1; /* Permet au conteneur principal de remplir l'espace disponible */
}

main {
    min-height: calc(100vh - 200px); /* Ajustez la hauteur selon la taille de votre pied de page */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


/* ----------- NAVIGATION ----------- */
.navbar {
    background-color: #2f2c4d;
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
}

.navbar .nav-link {
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #f3ac3b;
}

.navbar-brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
}

.navbar-brand:hover {
    color: #f3ac3b;
}

.navbar-brand img {
    height: 100px;
    margin-right: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.navbar .navbar-nav dropdown-menu {
    background-color: #38a9ae;
    border: none;
}

navbar .navbar-nav dropdown-menu dropdown-item {
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #f3ac3b;
    color: #ffffff;
}


/* ----------- CONTENEUR PRINCIPAL ----------- */
main {
    margin: 20px auto;
    width: 100%;
}

/* ----------- FORMULAIRE DE RÉSERVATION ----------- */
form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    width: 100%;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: #24643d;
    box-shadow: 0 0 5px rgba(36, 100, 61, 0.5);
    outline: none;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
    display: block;
}

form button[type="submit"] {
    background-color: #23633c;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 0.9rem;
}

form button[type="submit"]:hover {
    background-color: #3abb59;
    transform: scale(1.1);
}

#reservation-form {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
	height: 80%; /* Pleine hauteur */
	overflow-y: auto; /* Barre de défilement verticale si le contenu dépasse */
    transform: translate(-50%, -50%);
    z-index: 1050;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

#reservation-form.show {
    display: block; /* Affiche le formulaire lorsqu'il est activé */
}

#modal-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

#modal-background.show {
    display: block;
}

#reservation-form #close-form {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}


/* Bouton de fermeture dans la modale */
.modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
}

.modal-header .btn-close:hover {
    color: #24643d;
}

/* ----------- MODALE DU FORMULAIRE ----------- */
.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    color: #34495e;
    font-weight: bold;
}

/* Corps de la modale */
.modal-body {
    padding: 20px;
}

/* ----------- CALENDRIER ----------- */
.calendar {
    margin: 20px auto;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* Evénements dans le calendrier */
.fc-event {
    background-color: #24643d !important;
    color: #ffffff !important;
    border: none !important;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fc-event:hover {
    background-color: #1e4f2b !important;
}

fc-toolbar .fc-button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
fc-toolbar .fc-button:hover {
    background-color: #0056b3;
}

.fc-event {
    pointer-events: auto; /* S'assure que les clics sont autorisés */
}

.fc-event {
    background-color: #24643d !important;
    color: #ffffff !important;
    border: none !important;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fc-event:hover {
    background-color: #1e4f2b !important;
}


/* ----------- RESPONSIVITÉ ----------- */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    form button[type="submit"] {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    footer .row div {
        margin-bottom: 20px;
    }

    footer .copyright {
        text-align: center;
    }
}


/* formulaire de recherche évaluation */

/* Conteneur du pop-up */
#search-popup {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

/* Affichage du pop-up */
#search-popup.show {
    display: block;
}

/* Bouton de fermeture */
#close-search-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Barre de recherche */
#searchInput {
    width: calc(100% - 80px); /* Taille ajustée pour le bouton à côté */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
}

/* Bouton dans la barre de recherche */
#searchButton {
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    vertical-align: top;
}

#searchButton:hover {
    background-color: #0056b3;
}

/* Résultats de la recherche */
#searchResultsContainer {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto; /* Scroll si trop de résultats */
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Résultat individuel */
#searchResultsContainer div {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#searchResultsContainer div:last-child {
    border-bottom: none; /* Pas de bordure pour le dernier élément */
}

#searchResultsContainer .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Bouton personnalisé supprimer (cabinets, praticiens, services) */
form button[type="danger"] {
    background-color: #ff4d4f; /* Rouge plus doux */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    padding: 5px 10px; /* Ajustez les marges internes */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur pointeur */
    transition: background-color 0.3s ease; /* Animation douce */
	 
}

form button[type="danger"]:hover {
    background-color: #FF0000;
	color: #ffffff;
    transform: scale(1.1);
}
.form-suppression  {
	box-shadow: none;
	background: none;
	border: none;
	padding: 0;
}

.btn-warning {
	background-color: #23633c; /* Rouge plus doux */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    padding: 5px 10px; /* Ajustez les marges internes */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur pointeur */
    transition: background-color 0.3s ease; /* Animation douce */
	 
}

.btn-warning:hover {
	background-color: #f3ac3b;
	color: #ffffff;
    transform: scale(1.1);
	
}

/*Évaluation MINI */
.evaluation-container {
    width: 80%;
    margin: 20px auto;
    font-family: Lato, sans-serif;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
}

.evaluation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.evaluation-table th, 
.evaluation-table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

.evaluation-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: center;
}

.evaluation-table td {
    vertical-align: middle;
}

.evaluation-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.evaluation-table tr:hover {
    background-color: #f1f1f1;
}

.evaluation-table input[type="radio"] {
    margin: 0 5px;
}

.evaluation-table .responses {
    display: flex; /* Affiche Oui et Non côte à côte */
    justify-content: center; /* Centre les options dans la cellule */
    gap: 15px; /* Ajoute un espace entre Oui et Non */
}

.evaluation-table .responses label {
    display: flex;
    align-items: center;
    gap: 5px; /* Espace entre l'option radio et son label */
}
