/* Le site de l'annuaire : mêmes couleurs et mêmes règles de lisibilité que l'application (texte 17 px, cibles de 48 px,
   contraste 7:1, rouge réservé aux alertes). Polices embarquées, aucune ressource extérieure. */
@font-face { font-family: 'Atkinson'; src: url('/polices/atkinson_hyperlegible_next.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'NotoArabe'; src: url('/polices/noto_sans_arabic.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root { --vif: #008758; --fonce: #005E3C; --pale: #E3FAED; --doux: #C1F0D5; --encre: #17202E; --encre-2: #3B4555; --trait: #E1E6EC; --trait-champ: #7D8B9B;
  --fond: #F4F9F6; --gris: #EEF1F5; --alerte: #B3261E; --attente: #8A5A00; --attente-pale: #FFF4D6; }
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: 'Atkinson', 'NotoArabe', system-ui, sans-serif; line-height: 1.45; }
html[lang=ar] body { font-family: 'NotoArabe', 'Atkinson', system-ui, sans-serif; }
a { color: var(--fonce); }
.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -0.22em; }
html[dir=rtl] .i.sens { transform: scaleX(-1); }
.page { max-width: 60rem; margin: 0 auto; padding: 0 1.1rem 4rem; }
.haut { background: #fff; border-bottom: 1px solid var(--trait); }
.haut .page { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; color: var(--encre); text-decoration: none; margin-inline-end: auto; }
.marque span { width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: var(--vif); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.lien-haut { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 .8rem; font-weight: 800; text-decoration: none; border-radius: .8rem; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 1.6rem 0 .4rem; }
h2 { font-size: 1.25rem; margin: 1.8rem 0 .7rem; }
.sous { color: var(--encre-2); margin: 0; }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: 1.2rem; padding: 1rem; }
.pile { display: grid; gap: .8rem; }
form.recherche { display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; margin-top: 1.1rem; }
@media (max-width: 40rem) { form.recherche { grid-template-columns: 1fr; } }
select, input[type=text], input[type=tel], input[type=email], textarea { width: 100%; min-height: 54px; padding: .7rem .9rem; border: 1.5px solid var(--trait-champ); border-radius: 1rem;
  background: #fff; color: var(--encre); font: inherit; }
textarea { min-height: 5rem; }
select:focus, input:focus, textarea:focus, .btn:focus-visible, .btn-p:focus-visible, a:focus-visible { outline: 3px solid var(--vif); outline-offset: 2px; }
label { font-weight: 800; display: grid; gap: .35rem; }
label small { font-weight: 400; color: var(--encre-2); }
.btn-p, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; padding: 0 1.3rem; border-radius: 1rem; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; }
.btn-p { border: 0; background: var(--vif); color: #fff; font-size: 1.1rem; }
.btn-p:hover { background: var(--fonce); }
.btn { border: 1.5px solid var(--trait-champ); background: #fff; color: var(--encre); }
.btn .i { color: var(--fonce); }
.btn.danger { color: var(--alerte); border-color: #E3B4B0; }
.btn[disabled], .btn-p[disabled] { opacity: .55; cursor: default; }
.large { width: 100%; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .8rem .5rem; padding: 0; margin: 0; list-style: none; }
.tuiles a { display: grid; justify-items: center; gap: .4rem; padding: .5rem .2rem; border-radius: 1rem; text-decoration: none; color: var(--encre); font-weight: 700; font-size: .9rem;
  text-align: center; min-height: 48px; }
.tuiles a:hover { background: #fff; }
.tuile { width: 3.4rem; height: 3.4rem; border-radius: 1.1rem; background: var(--c, var(--vif)); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.liste { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.cab { display: flex; gap: .8rem; align-items: flex-start; text-decoration: none; color: inherit; }
a.carte:hover { border-color: var(--vif); }
.av { width: 3.1rem; height: 3.1rem; border-radius: 1rem; background: var(--c, var(--vif)); color: #fff; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.av.gris { background: var(--gris); color: var(--encre-2); }
.av.grand { width: 4.2rem; height: 4.2rem; border-radius: 1.3rem; font-size: 2rem; }
.nom { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.det { color: var(--encre-2); font-size: .94rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: 99px; background: var(--pale); color: var(--fonce); font-size: .85rem; font-weight: 800;
  margin-top: .4rem; }
.badge.attente { background: var(--attente-pale); color: var(--attente); }
.badge.refus { background: #FDECEA; color: var(--alerte); }
.badge.gris { background: var(--gris); color: var(--encre-2); }
.note { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border-radius: 1rem; background: var(--pale); color: var(--fonce); font-weight: 700; font-size: .94rem; }
.note.neutre { background: var(--gris); color: var(--encre-2); }
.ligne { display: flex; gap: .7rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--trait); }
.ligne:first-child { border-top: 0; }
.ligne .i { color: var(--fonce); font-size: 1.2rem; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puces label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem; border: 1.5px solid var(--trait-champ); border-radius: 99px; background: #fff; font-weight: 700; cursor: pointer; }
.puces input { position: absolute; opacity: 0; }
.puces label:has(input:checked) { background: var(--pale); border-color: var(--vif); color: var(--fonce); }
.puces label:has(input:focus-visible) { outline: 3px solid var(--vif); outline-offset: 2px; }
details.carte summary { font-weight: 800; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: .5rem; }
[hidden] { display: none !important; }
.pied { color: var(--encre-2); font-size: .9rem; margin-top: 3rem; }
nav.pages { display: flex; gap: .6rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.grand-jour { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.carte-plan { height: 20rem; border-radius: 1.2rem; border: 1px solid var(--trait); margin-top: 1.2rem; z-index: 0; }
.leaflet-container { font: inherit; }
