/* Gestion du gîte — sobre, lisible sur téléphone */
:root { --c-fond: #f3f8fa; --c-fond-2: #e8f4f8; --c-texte: #12303f; --c-sombre: #0a3d55; --c-accent: #0a5f86; --c-accent-2: #7c939c; --c-blanc: #fff; --rayon: 4px; --ombre: 0 2px 10px rgb(6 40 58 / .08); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: #f3f8fa; color: #12303f; }
a { color: #0a5f86; }
img { max-width: 100%; height: auto; display: block; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a-entete { background: var(--c-sombre); color: #fff; padding: .5rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.a-entete a { color: #fff; text-decoration: none; }
.a-marque { font-weight: 700; }
.a-entete ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.a-entete li a { display: block; padding: .45rem .7rem; border-radius: 6px; }
.a-entete li a:hover, .a-entete [aria-current="page"] { background: rgb(255 255 255 / .16); }
.a-main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.a-carte { background: #fff; border-radius: var(--rayon); padding: 1rem 1.25rem; box-shadow: var(--ombre); margin: 0 0 1rem; border: 0; }
fieldset.a-carte legend { font-weight: 700; font-size: 1.1rem; padding: 0 .3rem; background: #fff; border-radius: 6px; }
.a-grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem .6rem; border: 1px solid #bbb; border-radius: 8px; font: inherit; background: #fff; }
input[type="color"] { width: 5rem; height: 2.6rem; padding: .2rem; }
input[type="checkbox"], input[type="radio"] { display: inline; width: auto; margin: 0; }
.a-case { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; }
.a-case label { font-weight: 400; }
.a-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; }
.a-ligne select, .a-ligne input { display: inline-block; width: auto; }
.a-large { flex: 1 1 260px; } .a-large input { width: 100%; }
.a-court { width: 5.5rem !important; display: inline-block; }
.a-prix { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.a-plage { font-size: .95rem; margin: .4rem 0; }
.a-bouton { display: inline-block; padding: .6rem 1.1rem; border-radius: 2px; border: 2px solid var(--c-sombre); background: var(--c-sombre); color: #fff; font: 600 .95rem system-ui, sans-serif; cursor: pointer; text-decoration: none; margin: .15rem 0; }
.a-bouton:disabled { opacity: .45; cursor: not-allowed; }
.a-bouton--clair { background: #fff; color: var(--c-sombre); }
.a-bouton--danger { background: #fff; color: #a3271f; border-color: #a3271f; }
.a-collant { position: sticky; bottom: 0; background: #f3f8fa; padding: .75rem 0; margin: 0; }
.a-aide { font-size: .88rem; color: #555; display: block; margin-top: .25rem; }
.flash { padding: .75rem 1rem; border-radius: 8px; background: #e7f3e9; border-left: 4px solid #2e6b3a; margin: 0 0 1rem; }
.flash--erreur { background: #fbeeec; border-color: #a3271f; }
.a-defile { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.a-table th, .a-table td { padding: .55rem .6rem; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.a-table thead th { background: #faf7f2; font-size: .85rem; }
.a-table--mois td { text-align: center; }
.a-nonlu td { font-weight: 600; background: #fffbea; }
.a-badge { background: #b7791f; color: #fff; font-size: .72rem; padding: .1rem .4rem; border-radius: 4px; }
.a-statut { font-size: .82rem; padding: .15rem .5rem; border-radius: 20px; background: #eee; white-space: nowrap; }
.a-statut--nouvelle { background: #fde7c4; } .a-statut--acceptee { background: #dbe9fb; } .a-statut--payee { background: #d6efd8; }
.a-statut--refusee, .a-statut--annulee { background: #f3d9d6; }
.a-filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.a-filtres a { padding: .35rem .75rem; border-radius: 2px; background: #fff; text-decoration: none; box-shadow: var(--ombre); }
.a-filtres [aria-current="page"] { background: var(--c-sombre); color: #fff; }
.a-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.a-dl dt { font-weight: 600; color: #555; }
.a-dl dd { margin: 0; }
.a-alerte { color: #a3271f; }
.a-message { background: #faf7f2; padding: .5rem 1rem; border-radius: 8px; }
.a-liste { margin: 0; padding-left: 1.2rem; }
.a-photos { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.a-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }
.a-fiche img { width: 200px; border-radius: 8px; margin: .25rem 0; }
.a-connexion { max-width: 380px; margin: 3rem auto; }
.a-nav-mois { text-align: center; }
/* Calendrier (mêmes classes que le site public) */
.calendrier { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 1.5rem 0; }
.cal-mois { background: var(--c-blanc); border-radius: var(--rayon); padding: .75rem .75rem 1rem; box-shadow: var(--ombre); }
.cal-mois__titre { text-align: center; font-size: 1.05rem; margin: 0 0 .5rem; text-transform: capitalize; }
.cal-mois__table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal-mois__table th { font-size: .75rem; font-weight: 600; }
.cal-mois__table abbr { text-decoration: none; }
.cal-j { text-align: center; font-size: .9rem; height: 2.1rem; border-radius: 6px; background: var(--c-fond); }
.cal-j a { display: block; color: inherit; text-decoration: none; line-height: 2.1rem; }
.cal-j--passe { background: transparent; color: color-mix(in srgb, var(--c-texte) 70%, var(--c-fond)); text-decoration: line-through; text-decoration-color: rgb(0 0 0 / .25); }
.cal-j--auj { outline: 2px solid var(--c-sombre); }
.cal-j--occupe, .cal-j--rotation { background: var(--c-accent-2); color: #1d1a16; }
.cal-j--arrivee { background: linear-gradient(135deg, var(--c-fond) 50%, var(--c-accent-2) 50%); }
.cal-j--depart { background: linear-gradient(135deg, var(--c-accent-2) 50%, var(--c-fond) 50%); }
.cal-j--ferme { background: repeating-linear-gradient(45deg, #cfc8bd 0 4px, #e6e0d6 4px 8px); color: #3b3631; }
.cal-j--ferme-debut { background: linear-gradient(135deg, var(--c-fond) 50%, #cfc8bd 50%); }
.cal-j--ferme-fin { background: linear-gradient(135deg, #cfc8bd 50%, var(--c-fond) 50%); }
.cal-legende { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; padding: 0; margin: 1rem 0; font-size: .92rem; }
.cal-legende li { display: flex; align-items: center; gap: .4rem; }
.cal-pastille { display: inline-block; width: 1.4rem; height: 1.4rem; border-radius: 5px; background: var(--c-blanc); border: 1px solid rgb(0 0 0 / .15); }
.cal-pastille.cal-j--occupe { background: var(--c-accent-2); }
.cal-pastille.cal-j--arrivee { background: linear-gradient(135deg, var(--c-blanc) 50%, var(--c-accent-2) 50%); }
.cal-pastille.cal-j--depart { background: linear-gradient(135deg, var(--c-accent-2) 50%, var(--c-blanc) 50%); }
.cal-pastille.cal-j--ferme { background: repeating-linear-gradient(45deg, #cfc8bd 0 4px, #e6e0d6 4px 8px); }
.cal-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }


/* Textes des pages : deux rangées d'écrans + aperçu de la mise en forme */
.a-filtres { align-items: center; }
.a-filtres__titre { font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-right: .5rem; min-width: 9.5rem; }
.a-filtres a[aria-current="page"] { background: #0a3d55; color: #fff; border-color: #0a3d55; }
.a-apercu { margin: -.25rem 0 1.25rem; padding: .75rem 1rem; background: #f3f8fa; border-left: 3px solid #0a5f86; font-size: .95rem; }
.a-apercu:empty { display: none; }
.a-apercu p { margin: 0 0 .6rem; }
.a-apercu p:last-child { margin: 0; }
/* Photothèque et emplacements */
.a-carte--attenuee img { opacity: .55; }
.a-pastilles { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .5rem; }
.a-pastille { background: var(--c-sombre); color: #fff; font-size: .78rem; padding: .15rem .5rem; border-radius: 2px; }
.a-emplacement { margin-bottom: .75rem; }
.a-emplacement summary { display: flex; align-items: center; gap: 1rem; cursor: pointer; list-style-position: outside; }
.a-emplacement summary img, .a-emplacement__vide { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; margin: 0; }
.a-emplacement__vide { display: grid; place-items: center; background: #eef3f5; color: #557; font-size: .85rem; }
.a-choix { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.a-choix[disabled] { opacity: .5; }
.a-choix__item { position: relative; display: block; cursor: pointer; font-weight: 400; }
.a-choix__item input { position: absolute; top: .4rem; left: .4rem; width: 1.2rem; height: 1.2rem; margin: 0; }
.a-choix__item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; outline: 3px solid transparent; outline-offset: 2px; }
.a-choix__item input:checked + img { outline-color: var(--c-sombre); }
.a-choix__item input:focus-visible + img { outline-color: #e08a00; }
.a-choix__item--vide span { display: grid; place-items: center; text-align: center; aspect-ratio: 3 / 2; background: #eef3f5; border-radius: 4px; padding: .5rem; outline: 3px solid transparent; outline-offset: 2px; }
.a-choix__item--vide input:checked + span { outline-color: var(--c-sombre); }
/* Consultation seulement (admin) : boutons d'envoi masqués, champs désactivés par gestion.js ; le serveur refuse de toute façon */
.a-lecture-seule .a-main form button, .a-lecture-seule .a-main input[type="file"], .a-lecture-seule .a-collant { display: none; }
.a-lecture-seule .a-main form :is(input, select, textarea):disabled { background: #f4f7f8; color: inherit; opacity: 1; cursor: default; }
.a-menu-consultation::after { content: " 👁"; font-size: .8em; opacity: .7; }
.a-bandeau-lecture { background: #eef3f5; border-left-color: var(--c-accent-2); }
.a-bandeau-demo { background: #fff3c4; color: #4a3b00; border-left-color: #e0b100; }
.a-patron .a-entete { background: #3a1f4d; }   /* super-admin : couleur différente pour ne jamais confondre */
.a-danger-zone { border: 2px solid #a3271f; }
.a-sauvegardes { width: 100%; border-collapse: collapse; }
.a-sauvegardes td, .a-sauvegardes th { padding: .4rem .5rem; border-bottom: 1px solid #e3ebee; text-align: left; }
.a-remboursement { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e3ebee; }
.a-demo-zero { margin: .6rem 0 0; }
.a-demo-zero .a-bouton { padding: .35rem .9rem; font-size: .92rem; }
.a-lecture-seule .a-main .a-demo-zero button { display: inline-block; }

/* Tarifs et promotions : même découpage que la gestion des Cordelières */
.a-titre-section { margin: 2rem 0 .5rem; font-size: 1.35rem; }
.a-periode, .a-promo { padding: 1.3rem 1.5rem 1rem; margin-bottom: 1.2rem; }
.a-periode__titre { margin: 0 0 .8rem; padding-bottom: .7rem; border-bottom: 1px solid #e3ebee; font-size: 1.15rem; }
.a-periode__titre small { font-weight: 400; color: #557; font-size: .85rem; }
.a-periode--nouvelle { border: 2px dashed #b9cdd6; box-shadow: none; }
.a-rubrique { margin: 1.1rem 0 .4rem; padding-top: .9rem; border-top: 1px solid #eef3f5; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #557080; }
.a-rubrique small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.a-periode .a-rubrique:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.a-grille-2, .a-grille-3, .a-grille-4, .a-grille-6 { display: grid; gap: .3rem 1rem; }
.a-grille-2 { grid-template-columns: 2fr 1fr; }
.a-grille-3 { grid-template-columns: repeat(3, 1fr); }
.a-grille-4 { grid-template-columns: repeat(4, 1fr); }
.a-grille-6 { grid-template-columns: repeat(6, 1fr); }
.a-grille-2 p, .a-grille-3 p, .a-grille-4 p, .a-grille-6 p { margin: 0 0 .5rem; }
.a-grille-6 label, .a-grille-4 label { font-size: .88rem; }
@media (max-width: 900px) { .a-grille-6 { grid-template-columns: repeat(3, 1fr); } .a-grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .a-grille-2, .a-grille-3 { grid-template-columns: 1fr; } .a-grille-6 { grid-template-columns: repeat(2, 1fr); } }
.a-plages { display: grid; gap: .5rem; }
.a-plage { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0; padding: .5rem .7rem; background: #f6f9fa; border-radius: 4px; font-size: .95rem; }
.a-plage--nouvelle { background: none; border: 1px dashed #c9d8de; }
.a-plage select, .a-plage input { width: auto; margin: 0; }
.a-plage .a-jour { width: 4.8rem; }
.a-plage__lib { color: #455; }
.a-plage--nouvelle .a-plage__lib:first-child { font-style: italic; margin-right: .3rem; }
.a-plage__prio { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin-left: auto; }
