/*
 * Agenda des pet-sitters (README-CLAUDE §67) : calendriers de l'agenda privé (templates/users/agenda.html) et de la
 * fiche publique (templates/sitter_detail.html), liste des réservations (templates/users/reservations.html).
 * Règle d'Animoo : conteneurs arrondis (16 px) avec une ombre douce.
 */
.ag-boite { background: #fff; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, .05); padding: 1.5rem; }
.ag-mois-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.ag-mois { background: #fff; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, .05); padding: 1rem; }
.ag-mois-titre { font-weight: 700; text-transform: capitalize; text-align: center; margin-bottom: .5rem; color: #2f2a28; }
.ag-semaine, .ag-entete { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ag-entete span { font-size: .72rem; text-align: center; color: #8a929c; font-weight: 600; text-transform: uppercase; }
.ag-jour {
    position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px;
    font-size: .85rem; background: #f3f8f3; color: #1a5c3a; font-weight: 600; margin: 0; user-select: none;
}
.ag-jour.hors-mois { visibility: hidden; }
.ag-jour.passe { background: transparent; color: #c3c7cc; font-weight: 400; }
.ag-jour.ferme { background: #f1f1f1; color: #9aa0a6; text-decoration: line-through; }
.ag-jour.reserve { background: var(--u-accent, #b9531f); color: #fff; }
.ag-jour.hors-semaine { background: #f7f7f7; color: #b4b9be; font-weight: 400; }   /* Hors semaine type */
.ag-semaine-type .form-check-input { width: 1.3rem; height: 1.3rem; cursor: pointer; }
.ag-jour.aujourdhui { box-shadow: inset 0 0 0 2px var(--u-fonce, #5c2410); }
/* Agenda privé : chaque jour à venir est une case à cocher (cochée = jour fermé) */
label.ag-jour { cursor: pointer; transition: transform .15s; }
label.ag-jour:hover { transform: scale(1.06); }
.ag-jour input { position: absolute; opacity: 0; pointer-events: none; }
label.ag-jour:has(input:checked) { background: #f1f1f1; color: #9aa0a6; text-decoration: line-through; }
label.ag-jour:has(input:focus-visible) { outline: 2px solid var(--u-accent, #b9531f); outline-offset: 2px; }
.ag-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .82rem; margin-top: .9rem; }
.ag-legende span::before { content: ""; display: inline-block; width: .9rem; height: .9rem; border-radius: 4px; margin-right: .35rem; vertical-align: -.1rem; }
.ag-legende .libre::before { background: #f3f8f3; border: 1px solid #cfe3d3; }
.ag-legende .ferme::before { background: #f1f1f1; }
.ag-legende .reserve::before { background: var(--u-accent, #b9531f); }

/* Réservations : une carte par réservation */
.resa { background: #fff; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, .05); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.resa-entete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; }
.resa-titre { font-weight: 700; color: #2f2a28; }
.resa-infos { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; margin: .5rem 0; }
.resa-infos i { color: var(--u-accent, #b9531f); margin-right: .3rem; }
.resa-message { background: #faf6f0; border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; white-space: pre-line; }
.resa-paiement { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: #f3f8f3; border-radius: 12px; padding: .55rem .8rem; }
