/* Styles de base */
body {
    background-color: rgb(0, 0, 0);
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Conteneur englobant (header + haut-page avec dégradé) */
.top-section {
    background: linear-gradient(120deg, rgba(255, 94, 0, 0.8), rgba(255, 165, 0, 0.7), rgba(0, 0, 0, 0.9));
    background-size: 200% 200%;
    animation: gradientAnimation 5s ease infinite;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    width: 100%;
    overflow: hidden;
}

/* Header */
header {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header nav img {
    height: 80px;
    width: auto;
    display: block;
}

/* Positionnement des boutons */
.top-section header nav .login-button-container,
.top-section header nav .logout-button-container {
    position: absolute;
    top: 20px;
}

.top-section header nav .login-button-container {
    right: 20px;
}

.top-section header nav .logout-button-container {
    right: 200px;
}

.panel-button-container {
    position: absolute;
    right: 410px;
    top: 20px;
}

/* Style pour le bouton Panel */
.panel-button-container button {
    color: white;
    text-decoration: none;
    text-transform: none;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 20px;
    background-image: linear-gradient(to right, rgb(0, 102, 255), rgb(0, 153, 255));
    border-radius: 10px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
}

.panel-button-container button:hover {
    background-image: linear-gradient(to right, rgb(0, 82, 204), rgb(0, 123, 204));
}

.top-section header nav .login-button-container button,
.top-section header nav .logout-button-container button {
    color: white;
    text-decoration: none;
    text-transform: none;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 20px;
    background-image: linear-gradient(to right, rgb(0, 153, 0), rgb(0, 204, 0));
    border-radius: 10px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
}

.top-section header nav .login-button-container button:hover,
.top-section header nav .logout-button-container button:hover {
    background-image: linear-gradient(to right, rgb(0, 102, 0), rgb(0, 153, 0));
}

.top-section header nav .logout-button-container button {
    background-image: linear-gradient(to right, rgb(255, 0, 0), rgb(255, 159, 152));
}

.top-section header nav .logout-button-container button:hover {
    background-image: linear-gradient(to right, rgb(151, 0, 0), rgb(128, 78, 75));
}

/* Header */
header {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

header nav img {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.haut-page li {
    list-style: none;
}

.haut-page li form button {
    color: white;
    text-decoration: none;
    text-transform: none;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 20px;
    background-image: linear-gradient(to right, rgb(255, 0, 0), rgb(255, 159, 152));
    border-radius: 10px;
    padding: 8px;
    border: none;
}

.haut-page li form button:hover {
    background-image: linear-gradient(to right, rgb(151, 0, 0), rgb(128, 78, 75));
    cursor: pointer;
}

/* Haut-page */
.haut-page {
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.haut-page h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.haut-page h1 {
    font-size: 3rem;
    margin-top: 10px;
}

/* Animation fluide */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Section des forfaits */
.forfaits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-top: 50px;
}

.forfaits .service {
    flex: 1 1 calc(33.333% - 20px);
    max-width: 300px;
    background-color: rgba(73, 73, 73, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.forfaits .service:hover {
    transform: scale(1.05);
}

.forfaits .service img {
    width: 100%;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.forfaits .content {
    text-align: center;
    padding: 15px;
}

.forfaits .content h2 {
    font-size: 1.5rem;
    color: white;
}

.forfaits .content p {
    font-size: 1rem;
    color: white;
}

.forfaits .content button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    color: white;
    background-color: orangered;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.forfaits .content button:hover {
    background-color: darkorange;
    transform: scale(1.1);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    text-align: center;
    position: relative;
    z-index: 1001;
    overflow-y: auto;
    max-height: 90%;
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-content input, .popup-content textarea, .popup-content button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.popup-content button {
    background-color: orangered;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: darkorange;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.close-popup:hover {
    background-color: orangered;
    color: white;
}

/* Calendrier */
#calendar-container {
    margin-top: 20px;
    text-align: center;
}

#calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

#calendar-navigation button {
    padding: 5px 10px;
    border: none;
    background-color: orangered;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#calendar-navigation button:hover {
    background-color: darkorange;
}

#reservation-calendar {
    width: 100%;
    border-collapse: collapse;
}

#reservation-calendar th, #reservation-calendar td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.available {
    background-color: #90ee90;
    color: black;
    cursor: pointer;
}

.reserved {
    background-color: #ffcccb;
    color: black;
    cursor: not-allowed;
}

.disabled {
    background-color: #eaeaea;
    color: #999;
    cursor: not-allowed;
}

#month-year {
    font-size: 1.2rem;
    font-weight: bold;
}

.selected {
    background-color: #ffeb3b;
}

.footer {
    background: linear-gradient(145deg, #1a1a1a, #000);
    color: #fff;
    padding: 60px 20px 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    border-top: 2px solid orangered;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

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

.footer-logo img {
    height: 70px;
    margin-bottom: 10px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: orangered;
    margin: 0;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #ff944d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin: 8px 0;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: orangered;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: orangered;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    width: 100%;
}

/* Responsivité */
@media (max-width: 768px) {
    .forfaits .service {
        flex: 1 1 100%;
    }
}

button.available {
    background-color: green;
    color: white;
    margin: 5px;
    padding: 10px;
    border: none;
    cursor: pointer;
}

button.reserved {
    background-color: red;
    color: white;
    margin: 5px;
    padding: 10px;
    border: none;
    cursor: not-allowed;
}

button:hover.available {
    background-color: darkgreen;
}

/* Styles du calendrier */
#reservation-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#reservation-calendar th, #reservation-calendar td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

#reservation-calendar th {
    background-color: #f2f2f2;
}

td.available {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

td.available:hover {
    background-color: #45a049;
}

td.reserved {
    background-color: #f44336;
    color: white;
    cursor: not-allowed;
}

td.selected {
    background-color: #FFEB3B;
    color: black;
    font-weight: bold;
}

td.disabled {
    background-color: #f9f9f9;
    color: #ccc;
}

/* Menu déroulant des créneaux */
#time-slot {
    padding: 8px;
    width: 100%;
    margin-top: 5px;
}

#time-slot option {
    padding: 8px;
}


/* Section Avis */
.reviews-section {
    padding: 50px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 50px;
}

.title-services h1 {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

.title-services h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, orangered, darkorange);
    margin: 10px auto;
}

/* Section Avis */
.reviews-section {
    padding: 50px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 50px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.review-header h3 {
    margin: 0 0 5px 0;
    color: orangered;
}

.stars {
    color: gold;
    margin: 5px 0;
}

.stars .far {
    color: #444;
}

.service-type {
    font-style: italic;
    color: darkorange;
    margin-bottom: 10px;
}

.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    color: white;
    font-size: 1.2rem;
}