/* openGuichet — styles des vues maison, indépendants du thème.
   Les couleurs viennent des variables --og-* définies par le thème actif (public/themes/<thème>/). */

.og-mb-2w { margin-bottom: 1rem; } .og-mb-3w { margin-bottom: 1.5rem; }
.oguichet-logo { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.2; letter-spacing: .02em; max-width: 14rem; }
.narrow { max-width: 36rem; margin: 2rem auto; }
.center { text-align: center; }
.muted, .help { color: var(--og-text-muted); }
.help { display: block; font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -5000px; }
.inline { display: inline; }
.warn-text { color: var(--og-warning); }
.req { color: var(--og-error); }
.num { text-align: right; white-space: nowrap; }
h1 { font-size: 2rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }

/* Blocs */
.card { border: 1px solid var(--og-border); background: var(--og-surface); padding: 1.5rem; margin: 1rem 0 1.5rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.page-head h1 { margin-bottom: 1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.actions form { margin: 0; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-bottom: 1.5rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.grid-2 { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-3 { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.tile { display: block; background-image: none; border: 1px solid var(--og-border); border-bottom: 3px solid var(--og-primary); padding: 1.25rem; color: var(--og-text); text-decoration: none; background-color: var(--og-surface); }
.tile:hover { background-color: var(--og-surface-hover); }
.tile strong { color: var(--og-primary); display: block; margin-bottom: .25rem; }
.tile small { color: var(--og-text-muted); }
.tile .n { display: inline-block; margin-left: .5rem; background: var(--og-warning); color: #fff; border-radius: 1rem; padding: 0 .6rem; font-weight: 700; font-size: .875rem; }
.tile.warn { border-bottom-color: var(--og-warning); } .tile.ko { border-bottom-color: var(--og-error); } .tile.ok { border-bottom-color: var(--og-success); }
dl.props { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .5rem 1.5rem; margin: 0; }
dl.props dt { color: var(--og-text-muted); } dl.props dd { margin: 0; }
.subbox { border-left: 4px solid var(--og-primary); padding-left: 1rem; margin: .75rem 0 1.25rem; }
.checks { list-style: none; padding: 0; } .checks .ok { color: var(--og-success); } .checks .ko { color: var(--og-error); }
pre.debug { text-align: left; background: var(--og-text); color: var(--og-surface); padding: 1rem; overflow: auto; font-size: .8rem; }

/* Formulaires (champs écrits à la main dans certaines vues : même rendu que og-input) */
.form .field, form .field { margin: 0 0 1.25rem; }
.field > label:not(.og-label) { display: block; font-weight: 400; margin-bottom: .5rem; }
.field-check label, label.check { font-weight: 400; }
main input[type=text], main input[type=email], main input[type=tel], main input[type=password], main input[type=date], main input[type=time],
main input[type=number], main input[type=url], main input[type=search], main select, main textarea {
    display: block; width: 100%; font: inherit; color: var(--og-text); background-color: var(--og-field-bg);
    border: 0; border-radius: .25rem .25rem 0 0; box-shadow: inset 0 -2px 0 0 var(--og-border-strong); padding: .5rem 1rem; min-height: 2.5rem;
}
main input[type=color] { width: 5rem; height: 2.5rem; padding: 0; border: 1px solid var(--og-border); }
main input:focus, main select:focus, main textarea:focus { outline: 2px solid var(--og-focus); outline-offset: 2px; }
main input[type=checkbox], main input[type=radio] { margin-right: .5rem; }
.radios { border: 0; padding: 0; } .radios label { display: block; margin: .5rem 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; } fieldset > legend { font-weight: 700; font-size: 1.125rem; margin-bottom: .75rem; padding: 0; }
.filters { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin: 0 0 1.5rem; } .filters > * { margin-bottom: 0; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-fields { display: flex; gap: 1rem; flex-wrap: wrap; } .inline-fields > * { flex: 1 1 9rem; }

/* Tableaux (aspect tableau) */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table.data { width: 100%; border-collapse: collapse; background-color: var(--og-surface); box-shadow: inset 0 1px 0 0 var(--og-border), inset 0 -1px 0 0 var(--og-border); }
table.data th, table.data td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--og-border); }
table.data thead th { background-color: var(--og-field-bg); font-weight: 700; box-shadow: inset 0 -2px 0 0 var(--og-border-strong); border-bottom: 0; }
table.data tbody tr:hover { background-color: var(--og-surface-hover); }
table.data tfoot th, table.data tfoot td { font-weight: 700; background-color: var(--og-bg-alt); }
table.data.compact td, table.data.compact th { padding: .35rem .75rem; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data input, table.data select { min-height: 2rem; padding: .25rem .5rem; }
table.data input[type=number] { text-align: right; min-width: 6rem; }
table.data td > form { margin: 0; }

/* Recherche open data */
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 5; left: 0; right: 0; background: var(--og-surface); border: 1px solid var(--og-border); box-shadow: 0 6px 18px rgba(0,0,18,.16); list-style: none; margin: 2px 0 0; padding: 0; max-height: 20rem; overflow: auto; }
.suggest-list li { padding: .75rem 1rem; cursor: pointer; border-bottom: 1px solid var(--og-border); }
.suggest-list li:hover, .suggest-list li:focus { background: var(--og-surface-hover); }
.suggest-list small { display: block; color: var(--og-text-muted); }

[hidden] { display: none !important; }

@media (max-width: 36em) {
    h1 { font-size: 1.5rem; }
    dl.props { grid-template-columns: 1fr; gap: .25rem; }
}
@media print {
    header, footer, nav, .actions, button, .skiplinks { display: none !important; }
}

/* Sélecteur « Vous agissez pour » (plusieurs associations gérées) */
.og-assoc-switch { background: var(--og-grey-975, #f6f6f6); border-top: 1px solid var(--og-grey-900, #e5e5e5); padding: .35rem 0; font-size: .95rem; }
.og-assoc-switch label { margin-right: .5rem; font-weight: 600; }
.og-assoc-switch select { max-width: 100%; padding: .2rem .4rem; }
.og-assoc-switch__label { margin-right: .5rem; font-weight: 600; }
.pub-toggle { display: inline-flex; gap: .3rem; align-items: center; font-size: .85rem; color: var(--og-text-mention, #666); margin-top: -.5rem; margin-bottom: .75rem; }
.directory-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.directory-entry { display: block; color: inherit; text-decoration: none; }
.directory-entry h2 { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.chips .og-btn { margin: 0 .25rem .25rem 0; }

/* ---- Pages publiques : accueil, en-tête ---- */
.og-header__public { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.og-header__public a[aria-current] { background: var(--og-primary-soft); }
.og-hero { padding: 1.5rem 0 .5rem; }
.og-hero h1 { margin-bottom: .75rem; }
.og-hero p { max-width: 46rem; font-size: 1.1rem; }
.tile--big { padding: 1.75rem 1.5rem; }
.tile--big strong { font-size: 1.25rem; }

/* ---- Logos ---- */
.og-logo { width: 6rem; height: 6rem; object-fit: contain; background: #fff; border: 1px solid var(--og-border); border-radius: var(--og-radius, 8px); padding: .35rem; flex: none; }
.og-logo--sm { width: 3.5rem; height: 3.5rem; float: right; margin-left: .75rem; }
.og-logo--empty { display: inline-flex; align-items: center; justify-content: center; color: var(--og-text-muted); font-size: 2rem; background: var(--og-bg-alt); }
.og-logo-box { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.og-logo-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.og-logo-form label { flex-basis: 100%; font-weight: 600; }
.og-thumb { width: 4.5rem; height: 3rem; object-fit: cover; border-radius: 4px; }
.og-preview { max-width: 18rem; max-height: 12rem; border-radius: 6px; }

/* ---- Annuaire ---- */
.directory-entry { display: flex; gap: 1rem; align-items: flex-start; margin: 0; }
.directory-entry__logo { flex: none; width: 4rem; height: 4rem; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--og-border); display: flex; align-items: center; justify-content: center; }
.directory-entry__logo img { width: 100%; height: 100%; object-fit: contain; }
.directory-entry__logo[data-empty] { background: var(--og-primary-soft); color: var(--og-primary); font-weight: 700; font-size: 1.5rem; border-color: transparent; }
.directory-entry__body { min-width: 0; }
.directory-entry__body p { margin: 0; color: var(--og-text-muted); }
.directory-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.directory-head h1 { margin: 0; }
.chips--sub .og-btn[aria-current] { background: var(--og-primary-soft); color: var(--og-primary-dark); }
.inline-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 18rem; margin-bottom: 0; }

/* ---- Agenda ---- */
.ag-switch { display: flex; gap: .25rem; }
.ag-filters { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.ag-filters .field { flex: 1 1 14rem; margin-bottom: 0; }
.ag-month { margin-top: 1.75rem; font-size: 1.25rem; text-transform: capitalize; }
.ag-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.ag-card { display: flex; flex-direction: column; background: var(--og-surface); border: 1px solid var(--og-border); border-radius: var(--og-radius, 8px); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ag-card:hover { box-shadow: 0 6px 20px rgba(16, 24, 40, .12); transform: translateY(-1px); }
.ag-card__img { position: relative; aspect-ratio: 3 / 2; background: var(--og-primary-soft); }
.ag-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-card__img[data-empty] { aspect-ratio: 5 / 1; }
.ag-date { position: absolute; left: .75rem; top: .75rem; background: var(--og-surface); border-radius: 8px; padding: .3rem .55rem; text-align: center; line-height: 1.05; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.ag-date span { display: block; font-size: 1.4rem; font-weight: 700; color: var(--og-primary); }
.ag-date small { font-size: .75rem; text-transform: uppercase; color: var(--og-text-muted); }
.ag-card__body { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem 1.2rem; }
.ag-card__body strong { font-size: 1.1rem; color: var(--og-text); }
.ag-type { color: var(--og-primary); font-weight: 600; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.ag-monthnav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ag-monthnav h2 { margin: 0; min-width: 11rem; text-align: center; }
.ag-cal { border: 1px solid var(--og-border); border-radius: var(--og-radius, 8px); overflow: hidden; background: var(--og-surface); }
.ag-cal__head, .ag-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-cal__head span { padding: .5rem; font-weight: 600; text-align: center; background: var(--og-bg-alt); font-size: .85rem; }
.ag-day { min-height: 6.5rem; border-top: 1px solid var(--og-border); border-left: 1px solid var(--og-border); padding: .3rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ag-day:nth-child(7n + 1) { border-left: 0; }
.ag-day.is-out { background: var(--og-bg); color: var(--og-text-muted); }
.ag-day.is-today .ag-day__n { background: var(--og-primary); color: var(--og-on-primary); border-radius: 1rem; padding: 0 .45rem; }
.ag-day__n { align-self: flex-end; font-size: .85rem; font-weight: 600; }
.ag-day__wd { display: none; }
/* Jours fériés et vacances scolaires : teinte discrète, l'occupation reste lisible */
.ag-day.is-vac { background: rgba(47, 128, 237, .07); box-shadow: inset 0 3px 0 rgba(47, 128, 237, .35); }
.ag-day.is-ferie { background: color-mix(in srgb, #f2c94c 22%, transparent); }
.ag-day.is-ferie.is-vac { background: color-mix(in srgb, #f2c94c 22%, transparent); box-shadow: inset 0 3px 0 rgba(47, 128, 237, .35); }
.ag-day.is-out.is-vac, .ag-day.is-out.is-ferie { opacity: .75; }
.ag-day__mark { font-size: .68rem; color: var(--og-text-muted); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-day.is-vac:not(.is-ferie) .ag-day__mark { display: none; }
.ag-legend span { display: inline-block; padding: .05rem .5rem; border-radius: 4px; font-size: .8rem; margin-right: .4rem; }
.ag-legend__ferie { background: color-mix(in srgb, #f2c94c 30%, transparent); }
.ag-legend__vac { background: rgba(47, 128, 237, .1); box-shadow: inset 0 3px 0 rgba(47, 128, 237, .35); }
.ag-chip[title] { cursor: help; }
.ag-chip { display: block; font-size: .78rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 4px; background: var(--og-primary-soft); color: var(--og-primary-dark); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-chip:hover { background: var(--og-primary); color: var(--og-on-primary); }
@media (max-width: 48em) {
    /* Sur mobile : le calendrier devient une liste des jours qui ont des manifestations */
    .ag-cal__head { display: none; }
    .ag-cal__grid { display: block; }
    .ag-day { min-height: 0; border-left: 0; padding: .6rem .75rem; gap: .3rem; }
    .ag-day.is-empty, .ag-day.is-out { display: none; }
    .ag-day__n { align-self: flex-start; }
    .ag-day__wd { display: inline; }
    .ag-chip { white-space: normal; font-size: .9rem; padding: .35rem .5rem; }
}
.ag-event { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.ag-event__img { width: 100%; border-radius: var(--og-radius, 8px); object-fit: cover; aspect-ratio: 3 / 2; }
.ag-event__body h1 { margin: .25rem 0 1rem; }
.ag-event__desc { margin: 1rem 0; }
.ag-add { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 48em) { .ag-event { grid-template-columns: 1fr; } }
.ag-subscribe { margin-top: 2rem; }
.ag-subscribe summary { cursor: pointer; font-weight: 600; }
.ag-feed { word-break: break-all; }

/* Téléphones d'un compte */
.og-phones { border: 0; padding: 0; margin: 0 0 1.5rem; }
.og-phones legend { font-weight: 600; margin-bottom: .25rem; }
.og-phones__table { border-collapse: collapse; margin: .25rem 0 .5rem; width: 100%; max-width: 36rem; }
.og-phones__table td { padding: .2rem .4rem .2rem 0; vertical-align: middle; }
.og-phones__table td:first-child { width: 14rem; }
.og-phones__table td:last-child { width: 1%; padding-right: 0; }
.og-phones__table select, .og-phones__table input { width: 100%; min-width: 0; }
@media (max-width: 36rem) { .og-phones__table td:first-child { width: 42%; } }

/* Réserve citoyenne, foyer */
label.block { display: block; font-weight: 400; margin-bottom: .4rem; }
.h-small { font-size: 1rem; margin: .75rem 0 .25rem; }
.lead { font-size: 1.125rem; }
.slot-full { color: var(--og-text-muted); }
.person-block { border-left: 4px solid var(--og-primary, #1f5f8b); padding-left: 1rem; margin-bottom: 1.5rem; }
.alert-call { border-left: 6px solid #c0392b; }

/* Webapp : bandeau d'installation */
.og-install { background: #eef4fb; border-bottom: 1px solid #c9d9ec; }
.og-install__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.og-install__row p { margin: 0; flex: 1 1 14rem; font-size: .9rem; }
.og-install__row img { border-radius: 8px; }

ul.plain { list-style: none; margin: 0; padding: 0; }

/* Pictogrammes (menu, tuiles) */
.og-ico { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .4em; flex: none; }
.og-nav a, .og-nav summary { padding-left: .8rem; padding-right: .8rem; }
.og-nav a .og-ico, .og-nav summary .og-ico { opacity: .75; }
.og-nav a[aria-current] .og-ico, .og-nav a:hover .og-ico { opacity: 1; }
.tile--ico { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .9rem; align-items: start; }
.tile--ico > br { display: none; }
.tile--ico > strong, .tile--ico > small { grid-column: 2; }
.tile--ico > .tile__ico { grid-row: 1 / span 3; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--og-primary-soft); color: var(--og-primary); display: grid; place-items: center; }
.tile--ico > .tile__ico .og-ico { margin: 0; width: 1.3rem; height: 1.3rem; }
.tile--big.tile--ico { grid-template-columns: 3rem 1fr; }
.tile--big.tile--ico > .tile__ico { width: 3rem; height: 3rem; }

/* Listes de cases à cocher (équipements, associations…) */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem 1.25rem; margin: .5rem 0 1rem; }
.check-grid label.check { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.35; }
.check-grid label.check input { margin-top: .2rem; flex: none; }

/* Choix d'associations (co-organisation) : recherche, compteur, liste en colonnes */
.picker { border: 1px solid var(--og-border); border-radius: var(--og-radius, 6px); margin: .5rem 0 1rem; background: var(--og-surface); }
.picker__bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .6rem .75rem; border-bottom: 1px solid var(--og-border); }
.picker__bar input[type="search"] { flex: 1 1 16rem; max-width: 28rem; margin: 0; }
.picker__count { color: var(--og-text-muted); font-size: .9rem; }
.picker__count strong { color: var(--og-primary); }
.picker__list { list-style: none; margin: 0; padding: .5rem .75rem; max-height: 19rem; overflow-y: auto; columns: 17rem; column-gap: 1.5rem; }
.picker__list li { break-inside: avoid; padding: .2rem 0; }
.picker__list label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; line-height: 1.35; cursor: pointer; }
.picker__list input { margin-top: .2rem; flex: none; }
.picker__list input:checked + span { font-weight: 600; color: var(--og-primary); }
.picker__sel { padding: .5rem .75rem 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.picker__sel:empty { display: none; }
.picker__chip { background: var(--og-primary-soft); color: var(--og-primary-dark); border-radius: 1rem; padding: .1rem .65rem; font-size: .875rem; }
.picker__none { padding: 0 .75rem .6rem; margin: 0; }
.data td label.check { display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; margin: 0; }

/* Demande de subvention : encadrés compte de résultat / budget, équilibre */
.grant-box { border: 2px solid var(--og-border, #d0d4dc); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.25rem 0; background: var(--og-surface-alt, rgba(0, 0, 0, .02)); }
.grant-box > legend { font-weight: 700; font-size: 1.1rem; padding: 0 .5rem; }
.unbalanced, .balance-msg { color: var(--og-error); font-weight: 700; }
.aid-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--og-border, #e3e6eb); }
.aid-line > label.check { min-width: 16rem; font-weight: 600; }
.aid-line input[type=text] { max-width: 12rem; }
.act-for summary { cursor: pointer; font-weight: 600; }
form.act-for { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ag-chip.is-busy { background: var(--og-surface-alt, #eef0f3); color: var(--og-text-muted, #5b6270); }
span.ag-chip:hover { background: var(--og-primary-soft); color: var(--og-primary-dark); }
span.ag-chip.is-busy:hover { background: var(--og-surface-alt, #eef0f3); color: var(--og-text-muted, #5b6270); }

/* ---- Relation citoyen (GRC) ---- */
.grc-cols { display: grid; gap: 0 1.5rem; grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
@media (max-width: 62rem) { .grc-cols { grid-template-columns: minmax(0, 1fr); } }
.grc-side .card { padding: 1rem 1.25rem; margin-top: 0; }
.grc-side h2 { font-size: 1.05rem; }
.grc-msg { padding: 1rem 1.25rem; margin: 0 0 .75rem; }
.grc-msg__head { margin-bottom: .5rem; }
.grc-msg__body { white-space: normal; overflow-wrap: anywhere; }
.grc-msg--mail_out, .grc-msg--call_out { border-left: 4px solid var(--og-primary); }
.grc-msg--mail_in, .grc-msg--call_in { border-left: 4px solid var(--og-border); }
.grc-msg--note { background: var(--og-bg-alt); }
.grc-msg--call_missed { border-left: 4px solid #c58a00; }
.grc-hist { padding-left: 1rem; margin: .5rem 0 0; } .grc-hist li { margin-bottom: .4rem; }

/* ---- Photocopies : aperçu noir et blanc ---- */
.copies-doc { border: 1px solid var(--og-border); padding: .75rem 1rem; margin: 0 0 1rem; }
.copies-doc legend { font-weight: 600; padding: 0 .35rem; }
.pdf-gray__pages { display: flex; gap: .75rem; flex-wrap: wrap; }
.pdf-gray figure { margin: 0; text-align: center; }
/* Papier de couleur choisi : la page en niveaux de gris est « imprimée » sur ce papier */
.pdf-gray[style*="--paper"] canvas { background: var(--paper); mix-blend-mode: multiply; }
.pdf-gray[style*="--paper"] .pdf-gray__pages { isolation: isolate; }
.pdf-gray[style*="--paper"] figure { background: var(--paper); line-height: 0; }
.pdf-gray[style*="--paper"] figcaption { line-height: 1.4; background: var(--og-surface, #fff); }
.paper-swatch { display: inline-block; width: .9em; height: .9em; border-radius: 2px; background: var(--paper); vertical-align: -1px; border: 1px solid rgba(0,0,0,.2); }
.pdf-gray canvas { width: 220px; max-width: 100%; height: auto; border: 1px solid var(--og-border); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pdf-gray figcaption { font-size: .8rem; color: var(--og-text-muted); }
@media print { .no-print, .og-header, .og-nav, .og-footer, nav, footer { display: none !important; } .card { border: 0; padding: 0; } }

/* ---- Chargement en cours ---- */
.og-loading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; overflow: hidden; background: transparent; pointer-events: none; }
.og-loading::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--og-primary, #1f5f8b); animation: og-loading 1.1s ease-in-out infinite; }
@keyframes og-loading { from { left: -40%; } to { left: 100%; } }
html.is-loading, html.is-loading * { cursor: progress !important; }
.og-btn.is-busy { position: relative; opacity: .75; pointer-events: none; }
.og-btn.is-busy::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .5em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: og-spin .7s linear infinite; }
@keyframes og-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .og-loading::before { animation-duration: 3s; } .og-btn.is-busy::after { animation: none; } }
/* Ligne ciblée par un retour à la liste (« Inscrire d'office » à la chaîne) */
tr:target > td, tr.is-target > td { background: var(--og-primary-soft, #e6f0f7); transition: background 2s; }

/* ---- Nos salles (présentation publique) ---- */
.room-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.room-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; margin: 0; }
.room-card:hover { border-color: var(--og-primary); }
.room-card__img { width: 100%; height: 10rem; object-fit: cover; display: block; background: var(--og-bg-alt); }
.room-card__img--empty { display: flex; align-items: center; justify-content: center; color: var(--og-text-muted); }
.room-card__img--empty svg { width: 3rem; height: 3rem; }
.room-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.25rem; }
.room-card__name { font-size: 1.15rem; }
.room-photos { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin: 0 0 1rem; }
.room-photos img { width: 100%; height: 9rem; object-fit: cover; border-radius: 6px; display: block; }
.room-photos--admin { display: flex; flex-wrap: wrap; gap: 1rem; }
.room-plan { max-width: 100%; height: auto; border: 1px solid var(--og-border); }

/* Réserve citoyenne : « donner du temps autrement » (bénévolat libre, missions des associations) */
.grid--other { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card--accent { border-top: 4px solid var(--og-primary); }
.mission-mini { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.mission-mini li { padding: .4rem 0; border-bottom: 1px solid var(--og-border); }
.mission-mini li:last-child { border-bottom: 0; }
.mission-tile strong { margin: .25rem 0; }
.mission-tile small { display: block; }
.grid--reserves:not(.grid--other) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.og-error-text { color: var(--og-error); font-weight: 600; margin: .35rem 0 0; }

/* Administration → Système : analyse de la configuration */
.audit-section { margin: .75rem 0; border-top: 1px solid var(--og-border); padding-top: .5rem; }
.audit-section > summary { cursor: pointer; padding: .25rem 0; }
.audit-table td:nth-child(2), .audit-table td:nth-child(3) { white-space: nowrap; }
.audit-table td:first-child { min-width: 16rem; }
.audit-snippet { white-space: pre; overflow-x: auto; font-size: .85rem; }
/* Planning d'astreinte des salles (week-ends) */
table.astreinte td { vertical-align: top; min-width: 10rem; }
.astreinte__entry { display: inline-block; padding: .3rem .5rem; margin: 0 0 .25rem; border-radius: 4px; font-size: .9rem; line-height: 1.3; }
td .astreinte__entry { display: block; }
.astreinte__legend .astreinte__entry { font-size: .8rem; margin-right: .3rem; }
.cat-assoc { background: #cfe4fa; } .cat-resident { background: #d6eecc; } .cat-agent { background: #ffecb3; } .cat-external { background: #ffd6ba; } .cat-collectivite { background: #f4d6f0; }
/* Points à faire d'une manifestation publique */
.checklist { list-style: none; padding: 0; margin: .5rem 0; }
.checklist li { margin: .35rem 0; }
.checklist li.is-done { color: var(--og-success, #18753c); }
.checklist form.inline button { margin-left: .25rem; }
/* Calendrier des salles (options, réunion annuelle) */
.cal-month { margin: 1.5rem 0; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 56rem; }
.cal-grid th { font-size: .8rem; padding: .3rem; background: var(--og-bg-alt, #f3f4f6); }
.cal-grid td { vertical-align: top; border: 1px solid #d9dde3; padding: .25rem; height: 5.5rem; font-size: .78rem; }
.cal-grid td.cal-out { background: #fafafa; }
.cal-grid .cal-we { background: #f7f9fc; }
.cal-grid td.cal-ferie { background: #fff6e0; }
.cal-grid td.cal-drop { outline: 2px dashed #1d4e89; outline-offset: -3px; }
.cal-day { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem; font-weight: 600; color: #555; }
.cal-day small { color: #a05a00; font-weight: 400; }
.cal-day a { font-weight: 400; text-decoration: none; }
.cal-item { display: block; border-radius: 4px; padding: .2rem .3rem; margin: .2rem 0; border-left: 4px solid; line-height: 1.25; background: #fff; }
.cal-legend .cal-item { display: inline-block; margin-right: .4rem; }
.cal-option { background: #fff8db; border-color: #d7a400; }
.cal-confirmed { background: #e3f3e6; border-color: #2e8b47; }
.cal-communal { background: #e4edfb; border-color: #1d4e89; }
.cal-rental { background: #ececec; border-color: #6b6b6b; }
.cal-rental-request { background: #f5f5f5; border-color: #aaa; border-left-style: dashed; }
.cal-mine { box-shadow: 0 0 0 2px #7a3fb0 inset; }
.cal-blocked { background: #fde2e1; border-color: #c62828; }
.cal-clash .cal-tag { color: #a05a00; font-weight: 600; }
.cal-blocked .cal-tag { color: #c62828; font-weight: 600; }
.cal-room { color: #555; }
.cal-item[draggable="true"] { cursor: grab; }
.cal-tools { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.cal-tools form { display: inline; }
.cal-tools button, .cal-tools summary { font-size: .72rem; padding: .05rem .35rem; }
.cal-tools details[open] { background: #fff; border: 1px solid #ccc; padding: .3rem; position: relative; z-index: 2; }
.cal-tools details input, .cal-tools details select { font-size: .75rem; max-width: 100%; }
@media print { .cal-tools, .no-print { display: none !important; } .cal-grid { min-width: 0; } }
.card--highlight { border: 2px solid var(--og-primary, #1d4e89); }
/* Tableaux de saisie (lignes de budget, tarifs, documents…) : sur téléphone, une carte par ligne, champs pleine largeur */
@media (max-width: 40em) {
    table.data.is-form-table { min-width: 0 !important; }
    table.data.is-form-table thead { display: none; }
    table.data.is-form-table, table.data.is-form-table tbody, table.data.is-form-table tfoot { display: block; width: 100%; }
    table.data.is-form-table tr { display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: flex-end; padding: .65rem 0; border-bottom: 1px solid #d9dde3; }
    table.data.is-form-table td, table.data.is-form-table tfoot th { display: block; border: 0; padding: 0; flex: 1 1 8rem; min-width: 0; background: none; }
    table.data.is-form-table tbody td:first-child { flex-basis: 100%; }
    table.data.is-form-table td.is-action { flex: 0 0 auto; }
    table.data.is-form-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: #4b5563; margin-bottom: .15rem; }
    table.data.is-form-table input:not([type=checkbox]):not([type=radio]), table.data.is-form-table select, table.data.is-form-table textarea { width: 100%; max-width: none !important; font-size: 1rem; }
    table.data.is-form-table tfoot tr { border-bottom: 0; font-weight: 700; }
}
@media (max-width: 40em) {
    table.data.is-form-table tfoot th { flex: 1 1 0; }
    table.data.is-form-table tfoot th:empty { display: none; }
}
td.is-unavailable { color: var(--og-error, #c62828); font-weight: 600; }
@media (max-width: 40em) {
    .form fieldset { padding-left: .5rem; padding-right: .5rem; margin-left: 0; margin-right: 0; min-width: 0; }
    .card { padding-left: .9rem; padding-right: .9rem; }
}

/* Signalements : catégories en pictogrammes */
.report-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; margin: .5rem 0; }
.report-cat { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: .75rem .5rem; border: 1px solid var(--og-border, #ccc); border-radius: 8px; cursor: pointer; font-size: .92rem; }
.report-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.report-cat:has(input:checked) { border-color: var(--og-primary, #1f4e79); box-shadow: 0 0 0 2px var(--og-primary, #1f4e79) inset; font-weight: 600; }
.report-cat:has(input:focus-visible) { outline: 2px solid var(--og-primary, #1f4e79); outline-offset: 2px; }
.report-cat__ico .og-ico { width: 2rem; height: 2rem; }
.report-subs { margin: .5rem 0 .75rem; padding: .5rem .75rem; border-left: 3px solid var(--og-primary, #1f4e79); }
.report-ico .og-ico { width: 1.2em; height: 1.2em; vertical-align: -.2em; }
.report-photos img { width: 7rem; height: 5rem; }
.directory-fullname { display: block; font-size: .8em; font-weight: normal; }
/* Barre permanente des pages « Réservations de salles » (mairie) */
.og-subnav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--og-border); }
.ag-chip.is-todo { box-shadow: inset 3px 0 0 var(--og-warning, #b26b00); }
/* Photos jointes à un échange de la GRC (signalements) : affichées directement */
.grc-photos { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0; }
.grc-photos figure { margin: 0; max-width: 22rem; }
.grc-photos img { display: block; max-width: 100%; max-height: 18rem; border-radius: 6px; border: 1px solid var(--og-border); }
.grc-photos figcaption { font-size: .8rem; margin-top: .25rem; }
/* Bouton « Afficher » du mot de passe */
.og-pw-wrap { position: relative; display: block; }
.og-pw-wrap input { width: 100%; padding-right: 5.5rem; }
.og-pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--og-primary); font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .5rem; cursor: pointer; border-radius: 4px; }
.og-pw-toggle:hover, .og-pw-toggle:focus-visible { background: var(--og-primary-soft); }
/* Photos d'un signalement : sans script, deux champs par photo ; avec script, deux boutons et la liste des photos choisies */
.report-photos { display: grid; gap: .75rem; }
.report-photo-btn { display: block; margin: .25rem 0; }
.report-photo-btn input { display: block; margin-top: .2rem; }
.report-photos.is-enhanced .report-photo-slot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.report-photo-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.report-photo-list { margin: 0; padding-left: 1.2rem; }
.report-photo-list li { margin: .2rem 0; }
.report-kept { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: .75rem; }
.report-kept .og-label { flex-basis: 100%; margin: 0; }
.report-kept__item { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.report-kept__item img { max-width: 7rem; max-height: 7rem; border-radius: 6px; border: 1px solid var(--og-border); }
/* Accueil : séries de blocs (vos démarches, vos espaces, dans la commune) ; sur téléphone, des carrés comme de grosses icônes */
.og-hero__actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.og-home-group { margin-top: 1.75rem; }
.og-home-group h2 { margin-bottom: .75rem; }
.og-home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.og-home-tile small { display: block; grid-column: 2; }
@media (max-width: 40em) {
    .og-home-group { margin-top: 1.25rem; }
    .og-home-group h2 { font-size: 1.1rem; margin-bottom: .5rem; }
    .og-home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .og-home-tile.tile--ico { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; aspect-ratio: 1 / 1; padding: .5rem .35rem; }
    .og-home-tile > .tile__ico { width: 2.75rem; height: 2.75rem; margin-bottom: .4rem; }
    .og-home-tile strong { font-size: .82rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
    .og-home-tile small, .og-home-tile br { display: none; }
}
/* Panneau lumineux : éditeur et aperçu */
.board-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.board-canvas { width: 100%; max-width: 432px; height: auto; aspect-ratio: 108 / 64; border-radius: 6px; border: 6px solid #2b2f36; background: #111; display: block; }
@media (max-width: 48em) { .board-editor { grid-template-columns: 1fr; } }

/* Réservations de salles : demandes à valider en tête de liste */
.data tr.row-todo td { background: #fff8e6; }
@media (prefers-color-scheme: dark) { .data tr.row-todo td { background: rgba(255, 196, 0, .08); } }
/* Connexion en deux étapes (adresse, puis mot de passe ou Microsoft 365) */
.login-who { margin-top: 0; overflow-wrap: anywhere; }
.login-sso { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; margin: .5rem 0 1rem; text-align: center; }
.og-btn--sso { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; }
.og-btn--sso svg { flex: none; }
.login-or { display: flex; align-items: center; gap: .75rem; color: var(--og-text-muted); font-size: .9rem; margin: 1rem 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .35; }
.login-fallback { margin-top: 1rem; }
.login-fallback summary { cursor: pointer; color: var(--og-text-muted); font-size: .9rem; }
/* Diagnostic GTC (lecture seule) */
.diag-table td { vertical-align: top; }
.diag-table code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.diag-raw { max-height: 28rem; overflow: auto; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Organisation : organigramme */
.org-tree { list-style: none; margin: 0; padding-left: 1.1rem; border-left: 2px solid var(--og-border, #d0d5dd); }
.org-tree--root { padding-left: 0; border-left: 0; }
.org-node { margin: .5rem 0; }
.org-card { border: 1px solid var(--og-border, #d0d5dd); border-radius: 8px; padding: .5rem .75rem; background: var(--og-surface, #fff); }
.org-node--off > .org-card { opacity: .6; }
.org-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.org-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--og-text-muted); }
.org-edit { font-size: .82rem; }
.org-head, .org-people { margin: .25rem 0 0; font-size: .9rem; }
.org-group { margin: 1rem 0 .3rem; font-size: 1rem; }
.org-elus { margin: 0; padding-left: 1rem; }
.org-elus li { margin: .2rem 0; }
.fiche-cards .card h3 { margin-top: 0; font-size: 1rem; }
/* Courrier : boîte, affectation, traçabilité, tableau de bord */
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .5rem 0; }
.pill-row--sm { font-size: .9rem; }
.pill { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--og-border, #d0d5dd); border-radius: 999px; text-decoration: none; color: inherit; background: var(--og-surface, #fff); }
.pill:hover { border-color: currentColor; }
.pill--on { background: var(--og-primary, #1f4e79); border-color: var(--og-primary, #1f4e79); color: #fff; }
.tag-chip { display: inline-block; font-size: .75rem; padding: .05rem .45rem; border-radius: 4px; background: var(--og-surface-alt, #eef1f5); color: var(--og-text-muted); }
.courrier-list .courrier-subject { font-weight: 600; }
.courrier-list tr.row-late td { background: rgba(200, 40, 40, .05); }
.late { color: #b42318; font-weight: 600; }
.trace { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--og-border, #d0d5dd); }
.trace li { position: relative; margin: 0 0 .7rem; }
.trace li::before { content: ""; position: absolute; left: -1.38rem; top: .3rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--og-primary, #1f4e79); }
.draft-preview { white-space: normal; border-left: 3px solid var(--og-border, #d0d5dd); padding: .5rem .8rem; margin: .5rem 0; }
.visa-list { list-style: none; padding: 0; }
.visa-list li { margin: .3rem 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1rem 0; }
.kpi { border: 1px solid var(--og-border, #d0d5dd); border-radius: 8px; padding: .8rem 1rem; background: var(--og-surface, #fff); display: flex; flex-direction: column; }
.kpi__n { font-size: 1.8rem; font-weight: 700; }
.kpi__l { color: var(--og-text-muted); font-size: .85rem; }
.kpi--ko .kpi__n { color: #b42318; }
.kpi--warn .kpi__n { color: #b54708; }
.src-row { border: 1px solid var(--og-border, #d0d5dd); border-radius: 8px; padding: .75rem; margin: .75rem 0; }

/* ----- GED et parapheur ----- */
.ged-layout { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .ged-layout { grid-template-columns: 1fr; } }
.ged-tree ul { margin: 0; }
.ged-tree li { padding: .15rem 0; }
.ged-tree a[aria-current] { font-weight: 700; }
.folder-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.folder-grid .card { display: block; padding: .75rem 1rem; text-decoration: none; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: .5rem; }
.sig-preview { max-width: 280px; max-height: 140px; background: repeating-conic-gradient(#f2f2f2 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--og-border, #ddd); padding: .25rem; }
.sig-report--ok { border-left: 4px solid #18753c; }
.sig-report--ko { border-left: 4px solid #ce0500; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.steps select { min-width: 8rem; }

/* ----- Interventions ----- */
.og-map { position: relative; overflow: hidden; background: #e8eef3; border: 1px solid var(--og-border, #ddd); border-radius: 6px; touch-action: none; cursor: grab; margin: .5rem 0; }
.og-map__layer { position: absolute; inset: 0; }
.og-map__tile { position: absolute; width: 256px; height: 256px; user-select: none; }
.og-map__pin { position: absolute; width: 16px; height: 16px; margin: -16px 0 0 -8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); background: #1d4e89; }
.og-map__pin--ko { background: #ce0500; } .og-map__pin--warn { background: #e1a000; } .og-map__pin--ok { background: #18753c; }
.og-map__zoom { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 2px; }
.og-map__zoom button { width: 30px; height: 30px; font-size: 18px; line-height: 1; border: 1px solid #999; background: #fff; border-radius: 4px; cursor: pointer; }
.og-map__att { position: absolute; right: 0; bottom: 0; font-size: 11px; background: rgba(255,255,255,.8); padding: 1px 5px; }
.map-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #1d4e89; vertical-align: middle; }
.map-dot--ko { background: #ce0500; } .map-dot--warn { background: #e1a000; } .map-dot--ok { background: #18753c; }
.planning td, .planning th { vertical-align: top; min-width: 8.5rem; }
.planning .today { background: #f3f7fc; }
.plan-item { display: block; font-size: .82rem; padding: .2rem .35rem; margin: 0 0 .25rem; border-left: 4px solid #1d4e89; background: #fff; border-radius: 3px; text-decoration: none; box-shadow: 0 0 0 1px #e3e3e3; }
.plan-item--urgent { border-left-color: #ce0500; } .plan-item--high { border-left-color: #e1a000; } .plan-item--low { border-left-color: #999; }
.plan-item--done { opacity: .55; text-decoration: line-through; }
.plan-item--exit { border-left-color: #6a4c93; background: #f7f3fb; }
.plan-pdf { font-size: .8rem; text-decoration: none; opacity: .5; }
.plan-pdf:hover { opacity: 1; }
.inline-form { display: flex; gap: .4rem; align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.kpi--ko strong { color: #ce0500; }

/* ----- CCAS ----- */
.call-card h2 small { font-weight: 400; }
.call-phones .og-btn { font-size: 1.15rem; margin: 0 .5rem .5rem 0; }
.check { display: block; margin: .2rem 0; }
.answer-form { flex-wrap: wrap; }
.answer-form .og-select { max-width: 14rem; }
.big-choices .check.big { font-size: 1.15rem; padding: .4rem 0; }
.narrow { max-width: 40rem; margin: 0 auto; }

/* CCAS — liste d'appel en direct */
.call-board .call-row--taken { background: color-mix(in srgb, var(--warn, #b45309) 8%, transparent); }
.call-board .call-row--done, .call-board .call-row--wait { opacity: .65; }
.call-board .call-row--mine { background: color-mix(in srgb, var(--primary, #1d4ed8) 10%, transparent); font-weight: 600; }
.call-board td { vertical-align: middle; }
.call-board td.call-act { text-align: right; white-space: nowrap; }
.call-filter { max-width: 24rem; margin: .75rem 0 .5rem; }

/* Bouton « Retour » : grande zone tactile, collé en haut de l'écran sur smartphone */
.og-back-wrap { margin: 0 0 .75rem; }
.og-back { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .9rem 0 .6rem; border: 1px solid var(--og-border, #c9ccd2); border-radius: 999px; background: var(--og-surface, #fff); color: inherit; font-weight: 600; text-decoration: none; }
.og-back:hover, .og-back:focus-visible { background: var(--og-surface-hover, #f1f2f4); }
.og-back .og-ico { width: 1.2em; height: 1.2em; }
@media (max-width: 48em) { .og-back-wrap { position: sticky; top: 0; z-index: 20; padding: .4rem 0; margin: -.4rem 0 .5rem; background: var(--og-bg, #f6f7f9); } }
@media print { .og-back-wrap { display: none; } }

/* Annuaire : l'activité a la même police que le nom, en italique */
.directory-activity { display: block; margin: 0 0 .4rem; font-family: inherit; font-size: .95rem; font-weight: normal; font-style: italic; color: var(--og-text-muted); }
.directory-head .directory-activity { font-size: 1.05rem; margin: .1rem 0 0; }
.directory-entry__body h2 { margin-bottom: .1rem; }

/* Panneaux repliables (filtres, saisies facultatives) : triangle à gauche, contenu masqué par défaut */
.filter-panel > summary, details.card > summary, details.optional > summary { cursor: pointer; padding: .2rem 0; }
.filter-panel { margin-bottom: 1rem; }
details.optional { margin: .5rem 0 1rem; }
details.optional > summary { color: var(--og-text-muted); }
details.card[open] > summary, .filter-panel[open] > summary { margin-bottom: .75rem; }
.og-link { margin-left: .75rem; }
