/* Fichier : css/style_disponibilites.css */

/* Styles pour le titre et les icônes de la page (même design que la page agenda) */
.hero-agenda {
    padding: 3rem 0;
    text-align: center;
}

.hero-agenda h1 {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    color: #333;
}

.agenda-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-icon-agenda {
    font-size: 2.5em;
    color: #FFD700;
    margin: 0 15px;
    flex-shrink: 0;
}

.agenda-icon-wrapper .line {
    flex-grow: 1;
    height: 2px;
    background-color: #FFD700;
    max-width: 50%;
}

/* Styles pour la navigation du calendrier (mois précédent/suivant) */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.calendar-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.calendar-navigation .nav-arrow {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.calendar-navigation .nav-arrow:hover {
    text-decoration: underline;
}

.calendar-navigation h2 {
    font-size: 1.8em;
    color: #333;
    text-align: center;
}

/* Styles pour le calendrier combiné */
.combined-calendar-section {
    margin-bottom: 3rem;
}

.calendar-title {
    font-size: 2em;
    color: #444;
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-table-container {
    margin-bottom: 2rem;
}

.calendar-table-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 1rem;
    color: #555;
}

.calendar-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-table th, .calendar-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    white-space: nowrap; /* Prevent day names from wrapping */
}

.calendar-table th {
    background-color: #f8f8f8;
    color: #555;
    font-weight: bold;
}

.calendar-table .gite-column {
    width: 150px; /* Fixed width for gite names */
    text-align: left;
    background-color: #f8f8f8;
}

.calendar-table .day-header {
    width: calc(85% / 7); /* Distribute width evenly for 7 days */
}

/* Styles des cellules des gîtes */
.calendar-table td {
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calendar-table td.today {
    border: 2px solid #FFD700;
    font-weight: bold;
}

/* Gîte Blanc - Palette de couleurs et hachurage */
.calendar-table tr:nth-child(1) td.available { background-color: #e6f7ff; }
.calendar-table tr:nth-child(1) td.occupied,
.calendar-table tr:nth-child(1) td.changeover {
    background-color: #3498db;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0,0,0,0.2) 3px, rgba(0,0,0,0.2) 6px);
}
.calendar-table tr:nth-child(1) td.arrival { background: linear-gradient(135deg, #e6f7ff 50%, #3498db 50%); }
.calendar-table tr:nth-child(1) td.departure { background: linear-gradient(-45deg, #e6f7ff 50%, #3498db 50%); }


/* Gîte Rosé - Palette de couleurs et hachurage */
.calendar-table tr:nth-child(2) td.available { background-color: #faeef2; }
.calendar-table tr:nth-child(2) td.occupied,
.calendar-table tr:nth-child(2) td.changeover {
    background-color: #f18a99;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0,0,0,0.2) 3px, rgba(0,0,0,0.2) 6px);
}
.calendar-table tr:nth-child(2) td.arrival { background: linear-gradient(135deg, #faeef2 50%, #f18a99 50%); }
.calendar-table tr:nth-child(2) td.departure { background: linear-gradient(-45deg, #faeef2 50%, #f18a99 50%); }


/* Gîte Rouge - Palette de couleurs et hachurage */
.calendar-table tr:nth-child(3) td.available { background-color: #ffc2c2; }
.calendar-table tr:nth-child(3) td.occupied,
.calendar-table tr:nth-child(3) td.changeover {
    background-color: #dc3545;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0,0,0,0.2) 3px, rgba(0,0,0,0.2) 6px);
}
.calendar-table tr:nth-child(3) td.arrival { background: linear-gradient(135deg, #ffc2c2 50%, #dc3545 50%); }
.calendar-table tr:nth-child(3) td.departure { background: linear-gradient(-45deg, #ffc2c2 50%, #dc3545 50%); }


/* Styles pour les petits écrans */
@media (max-width: 768px) {
    .calendar-navigation {
        flex-direction: column;
        text-align: center;
    }
    .calendar-navigation .nav-arrow {
        margin-top: 10px;
    }
    .calendar-navigation h2 {
        margin: 10px 0;
        font-size: 1.5em;
    }
    .calendar-table th, .calendar-table td {
        padding: 5px;
        font-size: 0.8em;
    }
}

/* Styles pour le cadre d'information des horaires */
.calendar-info {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 400px;
    background-color: #f9f9f9;
    font-size: 1em;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calendar-info p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .calendar-info {
        max-width: 100%;
        padding: 10px;
        font-size: 0.9em;
    }
}

/* Nouveaux styles pour les boutons d'action */
.cta-buttons-section {
    margin: 3rem 0;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}