/* Agenda des salles communales – Éole-en-Beauce */
.eas-agenda { --eas-border: #dfe3e8; --eas-muted: #6b7280; --eas-accent: #1f6fb2; font-size: 15px; line-height: 1.4; margin: 1.5em 0; }
.eas-agenda * { box-sizing: border-box; }

.eas-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.eas-nav { display: flex; align-items: center; gap: 8px; }
.eas-month { margin: 0 6px !important; font-size: 1.35em; min-width: 9em; text-align: center; }
.eas-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--eas-border); border-radius: 6px; background: #fff; color: inherit; text-decoration: none !important; font-size: 1.2em; cursor: pointer; }
.eas-btn:hover { border-color: var(--eas-accent); color: var(--eas-accent); }
.eas-btn-text { font-size: .9em; }
.eas-filter { display: flex; align-items: center; gap: 8px; }
.eas-filter select { padding: 6px 8px; border: 1px solid var(--eas-border); border-radius: 6px; max-width: 320px; }

.eas-grid { border: 1px solid var(--eas-border); border-radius: 8px; overflow: hidden; background: #fff; }
.eas-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.eas-row + .eas-row { border-top: 1px solid var(--eas-border); }
.eas-cell { padding: 6px; min-width: 0; }
.eas-cell + .eas-cell { border-left: 1px solid var(--eas-border); }
.eas-head .eas-cell { background: #f6f7f9; font-weight: 600; font-size: .85em; text-align: center; text-transform: uppercase; letter-spacing: .03em; color: var(--eas-muted); }
.eas-short { display: none; }
.eas-day { min-height: 96px; }
.eas-daynum { font-size: .85em; font-weight: 600; margin-bottom: 4px; color: #374151; }
.eas-short-date { display: none; }
.eas-out { background: #fafafa; }
.eas-out .eas-daynum { color: #b0b5bc; }
.eas-past .eas-event { opacity: .55; }
.eas-today { background: #f0f6fc; }
.eas-today .eas-num { display: inline-block; background: var(--eas-accent); color: #fff; border-radius: 50%; width: 1.8em; height: 1.8em; line-height: 1.8em; text-align: center; }

.eas-event { --eas-c: #1f6fb2; display: block; margin: 0 0 4px; padding: 3px 6px; border-left: 3px solid var(--eas-c); border-radius: 4px; background: color-mix(in srgb, var(--eas-c) 12%, #fff); font-size: .78em; line-height: 1.3; overflow: hidden; }
.eas-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eas-time { font-weight: 700; }
.eas-event .eas-where { color: #374151; white-space: normal; }
.eas-label { color: var(--eas-muted); }
.eas-event .eas-contact { white-space: normal; margin-top: 2px; padding-top: 2px; border-top: 1px dotted #cbd5e1; color: #1f2937; }
.eas-event .eas-contact a { color: inherit; }
.eas-private .eas-where::before { content: "🔒 "; }
.eas-staff-banner { margin-bottom: 12px; padding: 10px 12px; border-radius: 6px; background: #fff8e1; border: 1px solid #f5d48a; font-size: .9em; }
.eas-pending { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #f3f4f6 4px, #f3f4f6 8px); border-left-style: dashed; }

.eas-nothing { color: var(--eas-muted); font-style: italic; margin: 8px 0 0; }
.eas-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: .85em; color: #374151; }
.eas-legend-item i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.eas-legend-pending { background: repeating-linear-gradient(45deg, #fff, #fff 2px, #9ca3af 2px, #9ca3af 4px); border: 1px dashed #9ca3af; }

/* Formulaire */
.eas-form-wrap { margin-top: 2.2em; padding: 20px; border: 1px solid var(--eas-border); border-radius: 8px; background: #fbfcfd; }
.eas-form-wrap h3 { margin-top: 0; }
.eas-intro { color: #374151; }
.eas-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.eas-field label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 4px; }
.eas-field input[type=text], .eas-field input[type=email], .eas-field input[type=tel], .eas-field input[type=number],
.eas-field input[type=date], .eas-field input[type=time], .eas-field select, .eas-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd5dc; border-radius: 6px; font: inherit; background: #fff; }
.eas-full { grid-column: 1 / -1; }
.eas-trio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; }
.eas-time-sel { display: flex; gap: 8px; }
.eas-agenda .eas-time-sel select { flex: 1; width: auto; }
.eas-help { display: block; margin-top: 3px; color: var(--eas-muted); font-size: .8em; }
.eas-check label { font-weight: 400; font-size: .85em; display: flex; gap: 8px; align-items: flex-start; }
.eas-check input { margin-top: 3px; }
.eas-submit { padding: 10px 22px; border: 0; border-radius: 6px; background: var(--eas-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.eas-submit:hover { filter: brightness(1.1); }
.eas-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.eas-notice { padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; }
.eas-notice ul { margin: 0; padding-left: 18px; }
.eas-ok { background: #e8f6ee; border: 1px solid #a9dcbf; color: #1d6b40; }
.eas-err { background: #fdecea; border: 1px solid #f5b7b1; color: #922b21; }

/* Mobile : le calendrier devient une liste des jours occupés */
@media (max-width: 720px) {
	.eas-long { display: none; }
	.eas-short { display: inline; }
	.eas-row.eas-head { display: none; }
	.eas-nav { flex-wrap: wrap; }
	.eas-month { min-width: 0; font-size: 1.2em; }
	.eas-grid { border: 0; background: transparent; }
	.eas-row { display: block; border: 0 !important; }
	.eas-cell + .eas-cell { border-left: 0; }
	.eas-day { min-height: 0; border: 1px solid var(--eas-border); border-radius: 6px; margin-bottom: 6px; background: #fff; }
	.eas-day.eas-empty, .eas-day.eas-out { display: none; }
	.eas-num { display: none !important; }
	.eas-short-date { display: inline; }
	.eas-event { font-size: .85em; }
	.eas-event span { white-space: normal; }
	.eas-form, .eas-trio { grid-template-columns: 1fr; }
	.eas-filter { width: 100%; }
	.eas-filter select { flex: 1; max-width: none; }
}

/* Page de gestion (agents et élus) */
.eas-gestion { --eas-border: #dfe3e8; --eas-muted: #6b7280; --eas-accent: #1f6fb2; margin: 1.5em 0; font-size: 15px; }
.eas-gestion * { box-sizing: border-box; }
.eas-gestion .eas-agenda { margin-top: .5em; }
.eas-g-title { font-size: 1.3em; margin: 1.4em 0 .6em !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eas-card { border: 1px solid #c9d7e8; border-left: 4px solid #1f6fb2; border-radius: 8px; background: #fff; padding: 4px 20px 14px; margin: 1em 0 1.5em; }
.eas-details { border-collapse: collapse; width: 100%; margin: 6px 0 14px; }
.eas-details th, .eas-details td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #eef1f4; }
.eas-details th { width: 140px; color: #6b7280; font-weight: 600; }
.eas-table-wrap { overflow-x: auto; }
.eas-table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; }
.eas-table th, .eas-table td { padding: 8px 10px; border-bottom: 1px solid #eef1f4; text-align: left; vertical-align: top; font-size: .92em; }
.eas-table th { background: #f6f7f9; color: #6b7280; font-size: .8em; text-transform: uppercase; letter-spacing: .03em; }
.eas-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.eas-s-en_attente { background: #fcf3cf; color: #7d6608; }
.eas-s-confirmee { background: #d5f5e3; color: #1d6b40; }
.eas-s-refusee, .eas-s-annulee { background: #f2f3f4; color: #626567; }
.eas-hors { background: #fdebd0; color: #935116; font-size: 11px; }
.eas-warn { background: #fff8e1; border: 1px solid #f5d48a; color: #7d6608; }
.eas-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eas-btn-ok { background: #1e8449; }
.eas-btn-no { background: #b03a2e; }
.eas-submit[disabled] { opacity: .45; cursor: not-allowed; }
.eas-small { font-size: .85em; color: #6b7280; }
.eas-check label + label { margin-top: 6px; }
.eas-login { max-width: 420px; }
.eas-login input[type=text], .eas-login input[type=password] { width: 100%; padding: 8px 10px; border: 1px solid #cfd5dc; border-radius: 6px; }
.eas-login input[type=submit] { padding: 9px 20px; border: 0; border-radius: 6px; background: #1f6fb2; color: #fff; font-weight: 600; cursor: pointer; }

.eas-event .eas-open { display: inline-block; margin-top: 3px; font-weight: 600; color: var(--eas-c); text-decoration: none; }
.eas-event .eas-open:hover { text-decoration: underline; }

.eas-motif { border: 1px solid #dfe3e8; border-radius: 6px; padding: 10px 14px; margin: 0; background: #fff; }
.eas-motif legend { font-weight: 600; font-size: .9em; padding: 0 4px; }
.eas-motif label { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; font-size: .92em; }
.eas-motif small { color: #6b7280; }

.eas-repet .eas-repet-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px 18px; }
.eas-repet .eas-repet-grid label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 4px; }
.eas-rep-jours { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: .9em; }
.eas-rep-jours label { display: inline-flex !important; gap: 4px; margin: 0 !important; }
@media (max-width: 720px) { .eas-repet .eas-repet-grid { grid-template-columns: 1fr; } }

.eas-reglement { margin: 14px 0 0; font-size: .95em; }

.eas-tarif:not(:empty){background:#eef5ff;border:1px solid #c9dcf3;border-radius:6px;padding:10px 12px;font-size:.95em}
.eas-lib{display:block;font-weight:600;font-size:.9em;margin-bottom:4px}
.eas-check label + label{margin-top:4px}
