* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1000px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.calendar-view {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.reservation-form {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: bold;
    color: #333;
}

input[type="text"] {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.selected-dates {
    padding: 1rem;
    background-color: #e8f5e9;
    border-radius: 5px;
    text-align: center;
}

.selected-dates p {
    color: #2e7d32;
    margin: 0.5rem 0;
}

#reserver {
    padding: 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

#reserver:hover {
    background-color: #45a049;
}

#message {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    border-radius: 5px;
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.error {
    background-color: #f2dede;
    color: #a94442;
}

/* Styles pour le calendrier */
.flatpickr-calendar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.flatpickr-day {
    border-radius: 50%;
    height: 35px;
    line-height: 35px;
    margin: 2px;
}

.flatpickr-day.available {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.flatpickr-day.available:hover {
    background-color: #c8e6c9;
    border-color: #2e7d32;
}

.flatpickr-day.weekend-available {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.flatpickr-day.reserved {
    background-color: #ffebee;
    color: #c62828;
    border-color: #c62828;
    cursor: not-allowed;
    position: relative;
    font-weight: bold;
}

.flatpickr-day.weekend-reserved {
    background-color: #ffebee;
    color: #c62828;
    border-color: #c62828;
}

.flatpickr-day.reserved:hover {
    background-color: #ffcdd2;
    border-color: #c62828;
}

.flatpickr-day.reserved::after {
    content: attr(title);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.flatpickr-day.reserved:hover::after {
    opacity: 1;
}

.flatpickr-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.flatpickr-day.today {
    border-color: #4CAF50;
}

.flatpickr-day.selected {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.flatpickr-day.inRange {
    background-color: #c8e6c9;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Styles spécifiques pour le calendrier de visualisation */
#calendar-display {
    max-width: 800px;
    margin: 0 auto;
}

#calendar-display .flatpickr-calendar {
    width: 100%;
    max-width: none;
}

#calendar-display .flatpickr-days {
    width: 100%;
}

#calendar-display .dayContainer {
    min-width: 100%;
    width: 100%;
}

/* Légende */
.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-color.available {
    background-color: #e8f5e9;
    border: 1px solid #2e7d32;
}

.legend-color.weekend-available {
    background-color: #e8f5e9;
    border: 1px solid #2e7d32;
}

.legend-color.reserved {
    background-color: #ffebee;
    border: 1px solid #c62828;
}

.legend-color.weekend-reserved {
    background-color: #ffebee;
    border: 1px solid #c62828;
}

.legend-text {
    font-size: 0.9rem;
    color: #333;
} 