:root {
  color-scheme: light;
  color: #302722;
  background: #f3eee6;
  font: 1rem/1.55 system-ui, sans-serif;
  --brun: #6d3d2d;
  --bord: #c8b9aa;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; }
header { border-bottom: 1px solid var(--bord); padding: .8rem 1rem; text-align: center; }
header a { color: #482e26; font: 1.7rem Georgia, serif; text-decoration: none; }
main { max-width: 43rem; margin-inline: auto; padding: clamp(1rem, 4vw, 2.2rem); }
h1, h2, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); line-height: 1.13; margin: .3rem 0 .8rem; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--brun); text-underline-offset: .14em; }
.reference { color: #5a4b42; margin-bottom: .4rem; }
.aide { border-top: 1px solid var(--bord); padding-top: 1rem; margin-top: 1.5rem; color: #55473e; }
button, input { font: inherit; min-height: 3rem; border-radius: .65rem; }
button { border: 1px solid var(--brun); color: #fff; background: var(--brun); padding: .55rem 1rem; font-weight: 650; cursor: pointer; }
button:disabled { background: #e6ddd3; color: #655448; border-color: #ccbeb1; cursor: default; }
.secondaire { color: var(--brun); background: transparent; }
:focus-visible { outline: 3px solid #874b36; outline-offset: 3px; }
.recherche { display: grid; grid-template-columns: minmax(5rem, 9rem) 1fr; gap: .6rem; margin: .35rem 0 1.25rem; }
.recherche input { color: inherit; background: #fffdfa; border: 1px solid #958174; padding: .5rem .75rem; min-width: 0; }
label, legend { font-weight: 650; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
legend { margin: 0 0 .65rem; }
#resultats { display: grid; gap: .55rem; }
.relais { border: 1px solid var(--bord); border-radius: .65rem; background: #fffaf4; overflow-wrap: anywhere; }
.relais label { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); align-items: start; gap: .7rem; padding: .75rem .8rem .35rem; min-height: 3rem; cursor: pointer; }
.relais:has(:checked) { border-color: var(--brun); background: #f3e5d9; box-shadow: inset 0 0 0 1px var(--brun); }
.relais input { min-height: auto; margin: .25rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--brun); }
.relais small { display: block; color: #594a40; font-size: .91rem; font-weight: 400; }
#vues { display: flex; gap: .5rem; margin: 0 0 .7rem; }
#vues button { flex: 1; color: var(--brun); background: #fffaf4; }
#vues button[aria-pressed="true"] { color: #fff; background: var(--brun); }
#carte-relais { height: clamp(18rem, 50vh, 24rem); border: 1px solid var(--bord); border-radius: .65rem; background: #e8e2d7; }
#aide-carte { margin-bottom: .6rem; }
.repere-relais { display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--brun); color: white; font: 700 1rem system-ui,sans-serif; box-shadow: 0 1px 5px #30272266; }
.groupe-relais { display: grid; place-items: center; border: 3px solid #f4e2d5; border-radius: 50%; background: #302722; color: white; font: 700 1rem system-ui,sans-serif; box-shadow: 0 1px 5px #30272266; }
.repere-relais[aria-pressed="true"] { background: #302722; border-color: #ffe7cd; outline: 2px solid #302722; z-index: 1200 !important; }
#relais-carte { margin-top: .65rem; padding: .75rem; background: #fffaf4; border: 1px solid var(--bord); border-radius: .65rem; }
#relais-carte > span { font-weight: 650; }
#relais-carte small { display: block; color: #594a40; font-size: .91rem; font-weight: 400; }
.horaires, .horaires-absents { margin: .1rem 0 .5rem; }
.relais .horaires, .relais .horaires-absents { margin-left: 2.7rem; margin-right: .8rem; }
.horaires summary { min-height: 2rem; color: var(--brun); cursor: pointer; font-size: .92rem; }
.horaires dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .6rem; margin: .25rem 0 .35rem; font-size: .9rem; }
.horaires dd { margin: 0; }
#horaires-confirme { margin-bottom: .8rem; }
.confirmer { width: 100%; margin-top: 1rem; }
#confirme { background: #fffaf4; border: 1px solid var(--bord); border-radius: .8rem; padding: 1rem; }
#adresse-relais { margin: .35rem 0 .8rem; }
