/*
 * La Meutothèque — feuille de style.
 * Couleurs de la Meute (vert sapin, vert, sauge, orange, crème), titres en Newsreader, texte en Karla.
 * Les noms de classes sont ceux utilisés par les gabarits PHP et par assets/js/site.js : ne pas les renommer.
 */
@font-face { font-family: "Newsreader"; src: url(../fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../fonts/karla.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
	/* Palette officielle */
	--sapin: #2d423f;
	--vert: #2d6642;
	--sauge: #d7dac7;
	--orange: #e38126;
	--creme: #f9f1e3;
	/* Dérivées */
	--papier: #fcfbf7;        /* fond des pages */
	--blanc: #ffffff;         /* cartes, champs */
	--voile: #f2f3ec;         /* bandes légèrement sauge */
	--chaud: #fbf6ec;         /* surfaces crème pâle */
	--ligne: #e3e2d8;
	--ligne-forte: #cfcec2;
	--encre: #2a3532;
	--gris: #636f6a;
	--orange-texte: #a9560f;  /* orange lisible sur fond clair */
	--rouge: #b3412f;
	--titre: "Newsreader", Georgia, serif;
	--texte: "Karla", system-ui, -apple-system, sans-serif;
	--r: 8px;                 /* arrondi des cartes */
	--r-petit: 6px;           /* champs, boutons */
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.6 var(--texte); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sapin); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- En-tête ---------- */
.top {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
	display: flex; align-items: center; gap: 14px;
	padding: 12px max(20px, (100vw - 1140px) / 2);
	background: color-mix(in oklab, var(--papier) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ligne);
}
.top__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sapin); }
.top__logo img { height: 46px; width: auto; }
.top__name { font: 600 1.3rem/1 var(--titre); letter-spacing: -.01em; white-space: nowrap; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { padding: 6px 0; color: var(--gris); text-decoration: none; font-size: 1rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.top__nav a:hover { color: var(--sapin); }
.top__nav a.is-on { color: var(--sapin); font-weight: 600; border-bottom-color: var(--orange); }
@media (max-width: 760px) {
	.top { flex-wrap: wrap; gap: 4px 12px; padding: 10px 16px 0; }
	.top__logo img { height: 38px; }
	.top__name { font-size: 1.15rem; }
	.top__nav { order: 3; width: 100%; margin: 0; gap: 0; justify-content: space-between; }
	.top__nav a { padding: 10px 2px 9px; font-size: .95rem; }
	html { scroll-padding-top: 150px; }
}

/* ---------- Annonce du bureau (bande sous l'en-tête) ---------- */
.annonce { display: flex; align-items: center; gap: 12px; padding: 10px max(20px, (100vw - 1140px) / 2); border-bottom: 1px solid var(--ligne); font-size: .97rem; }
.annonce__ico { display: none; }
.annonce p { margin: 0; flex: 1; line-height: 1.45; }
.annonce--info { background: var(--voile); color: var(--sapin); }
.annonce--alerte { background: #fbf0e3; color: #7a3d08; border-bottom-color: #f0dcc4; }
.annonce button { flex: none; width: 30px; height: 30px; border: 0; border-radius: var(--r-petit); background: transparent; color: inherit; cursor: pointer; opacity: .7; }
.annonce button:hover { opacity: 1; background: rgba(0, 0, 0, .05); }

/* ---------- Page et titres ---------- */
.pg { max-width: 1140px; margin-inline: auto; padding: clamp(30px, 5vw, 56px) 20px clamp(36px, 5vw, 64px); }
.ptitle { text-align: center; margin-bottom: 10px; }
.ptitle h1 { margin: 0; font: 600 clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem)/1.08 var(--titre); color: var(--sapin); letter-spacing: -.015em; text-wrap: balance; }
.ptitle p { margin: 6px 0 0; color: var(--gris); }
.lead { text-align: center; max-width: 56ch; margin: 0 auto 28px; color: var(--gris); font-size: 1.05rem; text-wrap: pretty; }
.empty { text-align: center; color: var(--gris); padding: 24px 0; }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { font: 600 1.5rem/1.25 var(--titre); color: var(--sapin); margin: 1.8em 0 .5em; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: var(--r-petit); border: 1px solid var(--ligne-forte);
	background: var(--blanc); color: var(--sapin); font-weight: 500; text-decoration: none;
	transition: border-color .2s, background .2s;
}
.btn:hover { border-color: var(--sapin); color: var(--sapin); }
.btn--orange { background: var(--sapin); border-color: var(--sapin); color: var(--creme); }
.btn--orange:hover { background: #22332f; color: #fff; }

/* ---------- Accueil ---------- */
.home__block { margin-top: clamp(30px, 5vw, 52px); }
.home__h { margin: 0 0 14px; font: 600 1.6rem/1.2 var(--titre); color: var(--sapin); letter-spacing: -.01em; }
.home__more { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.home-pg .ptitle, .home-pg > .lead { text-align: left; margin-left: 0; }
.home-pg .home__dogs .lead { text-align: left; margin: 0 0 4px; }
.upcoming { border-top: 1px solid var(--ligne); }
.upcoming__item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.next__date { display: grid; justify-items: start; line-height: 1.1; color: var(--orange-texte); }
.next__date span { font-size: .85rem; }
.next__date b { font: 600 2rem/1 var(--titre); margin: 2px 0; }
.next__date.is-event { color: var(--vert); }
.next__txt { display: grid; gap: 1px; min-width: 0; }
.next__txt small { font-size: .85rem; color: var(--gris); }
.next__txt strong { font: 600 1.2rem/1.3 var(--titre); color: var(--sapin); }
.next__txt span { color: var(--gris); font-size: .95rem; }
.next__txt a { font-weight: 600; font-size: .95rem; width: fit-content; }
.home__dogs .dogs { margin-top: 16px; }

/* ---------- Truffinoscope : recherche et lettres ---------- */
.tools { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 8px; }
.search { width: min(560px, 100%); padding: 12px 14px; border-radius: var(--r-petit); border: 1px solid var(--ligne-forte); background: var(--blanc); font-size: 16px; color: var(--encre); }
.search::placeholder { color: #8b948f; }
.search:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 3px rgba(45, 66, 63, .08); }
.chips { display: flex; gap: 0; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); overflow: hidden; background: var(--blanc); }
.chip { border: 0; padding: 8px 16px; background: transparent; color: var(--gris); font-size: .95rem; cursor: pointer; transition: background .2s, color .2s; }
.chip + .chip { border-left: 1px solid var(--ligne-forte); }
.chip:hover { color: var(--sapin); }
.chip.is-on { background: var(--sapin); color: var(--creme); }
.chip b { font-weight: 600; margin-left: 4px; }
.letters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 71px); z-index: 20; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin-bottom: 20px; background: color-mix(in oklab, var(--papier) 94%, transparent); border-bottom: 1px solid var(--ligne); }
.letters::-webkit-scrollbar { display: none; }
.letters a, .letters span { flex: 1 0 26px; height: 32px; display: grid; place-items: center; font: 500 1.05rem var(--titre); text-decoration: none; color: var(--sapin); border-bottom: 2px solid transparent; }
.letters span { color: #b9beb6; }
.letters a:hover, .letters a.is-on { border-bottom-color: var(--orange); }
@media (max-width: 760px) { .letters { top: calc(env(safe-area-inset-top, 0px) + 98px); } }

/* ---------- Truffinoscope : les chiens ---------- */
.dico { display: grid; gap: clamp(28px, 4vw, 44px); }
.dico__group { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.dico__letter { margin: 0; font: 500 2.4rem/1 var(--titre); color: var(--vert); position: sticky; top: 130px; }
@media (max-width: 640px) { .dico__group { grid-template-columns: minmax(0, 1fr); gap: 10px; } .dico__letter { position: static; font-size: 1.9rem; border-bottom: 1px solid var(--ligne); padding-bottom: 6px; } }
.dogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (max-width: 430px) { .dogs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.dog { display: block; position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.dog:hover { border-color: var(--ligne-forte); box-shadow: 0 6px 18px -12px rgba(45, 66, 63, .35); }
.dog__link { display: grid; justify-items: center; gap: 2px; padding: 18px 10px 16px; text-align: center; text-decoration: none; color: inherit; border-radius: inherit; }
.dog__link:hover { color: inherit; }
.dog__photo { position: relative; width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: hsl(var(--h, 120) 22% 86%); }
.dog__photo img { width: 100%; height: 100%; object-fit: cover; }
.dog__photo b { font: 500 2.4rem/1 var(--titre); color: var(--sapin); }
.dog__alert { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 18% 8px; background: rgba(45, 66, 63, .88); color: var(--creme); font-style: normal; font-size: .64rem; font-weight: 600; line-height: 1.2; text-align: center; }
.dog__new { position: absolute; top: 6px; left: 50%; translate: -50% 0; padding: 1px 8px; border-radius: 4px; background: var(--vert); color: #fff; font-style: normal; font-size: .68rem; font-weight: 600; }
.dog strong { font: 600 1.2rem/1.2 var(--titre); color: var(--sapin); margin-top: 10px; }
.dog small { font-size: .88rem; color: var(--gris); line-height: 1.35; }
.dogs--new { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .dogs--new { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Humain du chien (prénom + initiale) */
.dog__hum { font-size: .82rem; color: var(--gris); }

/* Chiens qui ont besoin qu'on les approche doucement (réactivité, peurs) */
.dog--care { border-color: #ead3b4; }
.dog--care::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; border-radius: var(--r) var(--r) 0 0; background: #d9a36a; }
.dog__care { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.dog__care li { font-size: .74rem; font-weight: 600; line-height: 1.3; padding: 2px 9px; border-radius: 999px; cursor: default; }
.dog__care .care--oui { background: #b3412f; color: #fff; }
.dog__care .care--parfois { background: #efe3cc; color: #6b4e1d; }
.dog__care .care--note { background: #efe3cc; color: #6b4e1d; }
.dog__care .care--info { background: #e3e6d6; color: #3f4c3b; }
.dog__care .care--more { background: transparent; color: var(--gris); padding-inline: 4px; }
.fiche__head .dog__care { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }

/* Pastilles Chiens / Humains : un point de couleur et le mot */
.psts { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin-top: 6px; }
.pst { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--gris); }
.pst i { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: .6rem; font-weight: 700; color: #fff; }
.pst--vert i { background: #4f8f3a; }
.pst--orange i { background: var(--orange); }
.pst--rouge i { background: var(--rouge); }

/* Cœur « favori » */
.fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: var(--r-petit); display: grid; place-items: center; cursor: pointer; background: transparent; color: #9aa39e; transition: color .2s, transform .2s var(--ease); }
.fav svg { width: 19px; height: 19px; }
.fav svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { color: var(--orange); }
.fav.is-on { color: var(--orange); }
.fav.is-on svg path { fill: currentColor; }
.fav.pop { animation: favpop .4s var(--ease); }
@keyframes favpop { 40% { transform: scale(1.25); } }
.fav--big { position: static; width: 44px; height: 44px; margin-top: 10px; border: 1px solid var(--ligne-forte); }
.fav--big svg { width: 22px; height: 22px; }
.fav--bar { position: static; width: 36px; height: 36px; color: var(--gris); }

/* ---------- Fenêtre d'une fiche ---------- */
.fiche { border: 0; padding: 0; width: min(780px, calc(100% - 20px)); max-height: calc(100dvh - 20px); border-radius: var(--r); background: var(--papier); color: var(--encre); box-shadow: 0 30px 70px -30px rgba(20, 30, 28, .55); overflow: hidden; }
.fiche[open] { display: flex; flex-direction: column; animation: ficheIn .25s var(--ease) both; }
@keyframes ficheIn { from { opacity: 0; transform: translateY(10px); } }
.fiche::backdrop { background: rgba(30, 40, 38, .5); }
.fiche__bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.fiche__bar strong { flex: 1; text-align: center; font: 600 1.3rem/1.2 var(--titre); color: var(--sapin); }
.fiche__bar button { width: 38px; height: 38px; border: 0; border-radius: var(--r-petit); background: transparent; color: var(--gris); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.fiche__bar button:hover { background: var(--voile); color: var(--sapin); }
.fiche__bar .fiche__close { font-size: 1.05rem; }
.fiche__body { overflow: auto; overscroll-behavior: contain; padding: 14px; }
.fiche__body img { margin-inline: auto; border-radius: 4px; }
.fiche__body iframe { width: 100%; height: 75dvh; border: 0; border-radius: 4px; background: #fff; }
.fiche__body .empty { padding: 40px 10px; }
.fiche__body .btn { margin: 12px auto 0; display: flex; width: max-content; }
.fiche__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: center; margin: 0 0 12px; }
.fiche__head .psts { margin: 0; }
.fiche__alert { color: #7a3d08; font-weight: 600; font-size: .85rem; }
.fiche__alert::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }
.fiche__note { flex-basis: 100%; margin: 0; background: var(--chaud); border-left: 3px solid var(--orange); border-radius: 0 var(--r-petit) var(--r-petit) 0; padding: 10px 14px; font-size: .95rem; text-align: left; }

/* ---------- Page d'un chien (ancienne adresse) ---------- */
.dogpage__head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: center; max-width: 820px; margin: 0 auto clamp(20px, 4vw, 34px); }
@media (max-width: 600px) { .dogpage__head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.dogpage__photo { max-width: 180px; }
.dogpage__photo b { font-size: 4rem; }
.ptitle--left { text-align: left; margin-bottom: 10px; }
@media (max-width: 600px) { .ptitle--left { text-align: center; } }
.dogpage__facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 600px) { .dogpage__facts { justify-content: center; } }
.dogpage__facts li { font: 500 1.05rem var(--titre); color: var(--sapin); }
.dogpage__facts small { display: block; font: 400 .8rem var(--texte); color: var(--gris); }
.single-fiche { display: grid; gap: 16px; justify-items: center; }
.single-fiche img { max-width: 820px; width: 100%; border-radius: 4px; }
.single-fiche iframe { width: 100%; height: 80vh; border: 0; border-radius: 4px; background: #fff; }
.dogpage__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dogpage__nav { display: flex; justify-content: space-between; width: 100%; max-width: 820px; }
.dogpage__nav a { text-decoration: none; padding: 8px 4px; }

/* ---------- Carte ---------- */
.map { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .map { grid-template-columns: minmax(0, 1fr); } }
.map__stage { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; aspect-ratio: 1000 / 778; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.map__stage.is-dragging { cursor: grabbing; }
@media (max-width: 820px) { .map__stage { aspect-ratio: auto; height: min(68vh, 560px); } }
.map__svg { width: 100%; height: 100%; display: block; }
.map__dep { fill: #e8eadf; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transition: fill .2s; }
.map__dep:hover { fill: #dfe2d4; }
.map__zoom { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; background: var(--blanc); border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); overflow: hidden; }
.map__zoom button { border: 0; background: none; color: var(--gris); padding: 6px 12px; font-size: .9rem; cursor: pointer; }
.map__zoom button + button { border-left: 1px solid var(--ligne-forte); }
.map__zoom button.is-on { background: var(--sapin); color: var(--creme); }
.map__plus { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; overflow: hidden; border-radius: var(--r-petit); background: var(--blanc); border: 1px solid var(--ligne-forte); }
@media (max-width: 820px) { .map__plus { top: 56px; bottom: auto; } }
.map__plus button { width: 40px; height: 38px; border: 0; background: none; font-size: 1.35rem; line-height: 1; color: var(--sapin); cursor: pointer; }
.map__plus button + button { border-top: 1px solid var(--ligne); }
.map__plus button:hover { background: var(--voile); }
.map__hint { position: absolute; left: 10px; bottom: 10px; z-index: 2; margin: 0; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); font-size: .78rem; color: var(--gris); pointer-events: none; }
@media (max-width: 520px) { .map__hint { display: none; } }
.map__labels { pointer-events: none; }
.town { fill: #7b8580; font-family: var(--texte); font-weight: 500; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: .35em; stroke-linejoin: round; }
.town--big { fill: var(--sapin); font-weight: 600; }
.town-dot { fill: #9aa39e; }
.pin { cursor: pointer; outline: none; }
.pin circle.halo { fill: var(--orange); opacity: .14; }
.pin circle.dot { fill: var(--orange); stroke: #fff; stroke-width: 2.5; transition: fill .2s; }
.pin text { fill: #fff; font-family: var(--texte); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin .lab { fill: var(--sapin); font-family: var(--texte); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; opacity: 0; transition: opacity .2s; }
.pin:hover .lab, .pin:focus-visible .lab, .pin.is-on .lab, .map.is-zoomed .pin .lab { opacity: 1; }
.pin.is-on circle.dot { fill: var(--sapin); }
.pin:focus-visible circle.dot { stroke: var(--sapin); }
.map__panel { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; max-height: min(640px, 80vh); grid-template-rows: auto minmax(0, 1fr); }
.map__panel h2 { margin: 0; font: 600 1.4rem/1.2 var(--titre); color: var(--sapin); }
.map__list { overflow: auto; display: grid; gap: 0; align-content: start; overscroll-behavior: contain; }
.map__list .empty { text-align: left; padding: 6px 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; border-bottom: 1px solid var(--ligne); }
.row:last-child { border-bottom: 0; }
.row__link { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: inherit; min-width: 0; }
.row__link:hover strong { color: var(--vert); }
.row .dog__photo { max-width: 46px; }
.row .dog__photo b { font-size: 1.2rem; }
.row strong { display: block; font: 600 1.08rem/1.25 var(--titre); color: var(--sapin); }
.row small { color: var(--gris); font-size: .85rem; }
.row .fav { position: static; }
/* Petite fenêtre au clic sur une commune */
.map__pop { position: absolute; z-index: 5; width: 230px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 12px 12px 10px; box-shadow: 0 12px 30px -14px rgba(20, 30, 28, .45); cursor: auto; touch-action: auto; }
.map__pop::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; background: var(--blanc); border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); transform: translateX(-50%) rotate(45deg); }
.map__pop.is-below::after { bottom: auto; top: -7px; transform: translateX(-50%) rotate(-135deg); }
.map__pop.is-in { animation: popIn .2s var(--ease); }
.map__pop.is-off { visibility: hidden; }
@keyframes popIn { from { opacity: 0; transform: translateY(4px); } }
.map__pop strong { display: block; font: 600 1.1rem/1.2 var(--titre); color: var(--sapin); padding-right: 24px; }
.map__pop small { color: var(--gris); font-size: .85rem; }
.map__pop ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.map__pop li button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: var(--r-petit); font-size: .95rem; color: var(--encre); cursor: pointer; text-align: left; }
.map__pop li button:hover { background: var(--voile); }
.map__pop .dog__photo { width: 28px; height: 28px; flex: none; }
.map__pop .dog__photo b { font-size: .85rem; }
.map__popx { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: var(--r-petit); background: transparent; color: var(--gris); cursor: pointer; font-size: .8rem; }
.map__popx:hover { background: var(--voile); }
.map__popall { margin-top: 6px; width: 100%; border: 1px solid var(--ligne-forte); background: var(--blanc); color: var(--sapin); border-radius: var(--r-petit); padding: 6px; font-size: .88rem; cursor: pointer; }

/* ---------- Calendrier ---------- */
.cal__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cal__tabs { display: inline-flex; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); overflow: hidden; background: var(--blanc); }
.cal__tabs a { padding: 8px 18px; text-decoration: none; color: var(--gris); }
.cal__tabs a + a { border-left: 1px solid var(--ligne-forte); }
.cal__tabs a.is-on { background: var(--sapin); color: var(--creme); }
.cal__month { display: flex; align-items: center; gap: 10px; }
.cal__month h2 { margin: 0; font: 600 clamp(1.3rem, 1.1rem + .7vw, 1.7rem) var(--titre); color: var(--sapin); min-width: 9ch; text-align: center; }
.cal__month a { width: 36px; height: 36px; border-radius: var(--r-petit); border: 1px solid var(--ligne-forte); display: grid; place-items: center; background: var(--blanc); color: var(--sapin); text-decoration: none; font-size: 1.3rem; line-height: 1; }
.cal__month a:hover { border-color: var(--sapin); }
.cal__grid { border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; background: var(--ligne); }
.cal__head, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__head { background: var(--sapin); color: var(--creme); }
.cal__head div { padding: 10px 4px; text-align: center; font-size: .9rem; }
.cal__days { gap: 1px; }
.cal__cell { background: var(--blanc); min-height: 118px; padding: 8px 6px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal__cell.is-out { background: #f7f7f2; }
.cal__num { font-size: .85rem; color: var(--gris); padding-left: 2px; }
.cal__dname { display: none; }
.cal__cell.is-today .cal__num { color: var(--orange-texte); font-weight: 700; }
.cal__cell.is-today { box-shadow: inset 0 3px 0 var(--orange); }
.cal__ev { background: var(--chaud); border-left: 3px solid var(--orange); border-radius: 0 4px 4px 0; padding: 6px 7px; display: grid; gap: 1px; }
.cal__ev strong { font: 600 .92rem/1.2 var(--titre); color: var(--sapin); }
.cal__ev span { font-size: .78rem; color: var(--gris); line-height: 1.3; }
.cal__ev a { font-size: .78rem; font-weight: 600; width: fit-content; }
.cal__cell.is-past .cal__ev { opacity: .55; }
.cal__admin { text-align: center; margin-top: 18px; }
.cal__admin a { font-weight: 600; }
@media (max-width: 720px) {
	.cal__bar { justify-content: center; }
	.cal__grid { border: 0; background: none; overflow: visible; }
	.cal__head { display: none; }
	.cal__days { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--ligne); }
	.cal__cell { display: none; }
	.cal__cell.has-ev { display: flex; position: relative; min-height: 76px; gap: 12px; padding: 14px 0 14px 86px; background: none; border-bottom: 1px solid var(--ligne); box-shadow: none; }
	.cal__num { position: absolute; left: 0; top: 14px; display: grid; font: 600 1.9rem/1 var(--titre); color: var(--orange-texte); padding: 0; }
	.cal__dname { display: block; font: 400 .85rem/1.4 var(--texte); color: var(--gris); }
	.cal__cell.is-today .cal__num { color: var(--orange-texte); }
	.cal__ev { background: none; border: 0; padding: 0; }
	.cal__ev strong { font-size: 1.15rem; }
	.cal__ev span, .cal__ev a { font-size: .95rem; }
}

/* État d'une sortie */
.ev-st { font-style: normal; font-size: .78rem; font-weight: 600; width: fit-content; }
.ev-st--fini { color: #9aa39e; font-weight: 400; }
.ev-st--complet { color: var(--orange-texte); }
.ev-st--annule { color: var(--rouge); }
.next__txt .ev-st, .cal__ev .ev-st { margin-top: 2px; }

/* ---------- Drive ---------- */
.drive { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.drive__bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--ligne); font: 600 1.05rem var(--titre); color: var(--sapin); }
.drive__views { display: flex; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); overflow: hidden; }
.drive__views .chip { padding: 5px 12px; font-family: var(--texte); font-size: .88rem; font-weight: 400; }
.drive__frame { display: block; width: 100%; height: min(70vh, 720px); border: 0; background: #fff; }
.drive__hint { text-align: center; color: var(--gris); font-size: .88rem; max-width: 560px; margin: 0 auto; }
.drivepg .home__more { justify-content: center; }

/* ---------- Pied de page ---------- */
.foot { display: block; padding: 0; margin-top: 30px; color: #dfe4dc; font-size: .95rem; }
.foot__illu { width: 140px; margin: 0 auto -4px; position: relative; z-index: 1; }
.foot__band { background: var(--sapin); padding: clamp(36px, 6vw, 56px) max(20px, (100vw - 1100px) / 2) 26px; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px 32px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__brand img { width: 160px; margin-bottom: 12px; }
.foot__brand p { margin: 0; max-width: 38ch; line-height: 1.6; color: #c9d1c8; }
.foot h2 { margin: 0 0 10px; font: 600 1.05rem var(--titre); color: #fff; }
.foot nav, .foot__grid > div:last-child { display: grid; gap: 8px; align-content: start; }
.foot a { color: #dfe4dc; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__icons { display: flex; gap: 6px; margin-top: 6px; }
.foot__icons a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-petit); border: 1px solid rgba(255, 255, 255, .2); }
.foot__icons a:hover { border-color: rgba(255, 255, 255, .5); text-decoration: none; }
.foot__icons svg { width: 16px; height: 16px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #b9c3bb; }
.foot__bottom span:last-child { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__me { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- Boutons fixes : don, espace admin ---------- */
.don {
	position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-petit);
	background: var(--blanc); color: var(--sapin); border: 1px solid var(--ligne-forte); font-weight: 600; font-size: .95rem; text-decoration: none;
	box-shadow: 0 8px 22px -14px rgba(20, 30, 28, .5); transition: border-color .2s;
}
.don:hover { border-color: var(--sapin); color: var(--sapin); }
.don svg { width: 16px; height: 16px; color: var(--orange); }
.staffbtn { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-petit); background: var(--sapin); color: var(--creme); text-decoration: none; box-shadow: 0 8px 22px -14px rgba(20, 30, 28, .6); }
.staffbtn:hover { background: #22332f; color: #fff; }
.staffbtn__ico { display: none; }
.staffbtn__txt { display: flex; flex-direction: column; line-height: 1.2; }
.staffbtn__txt b { font-weight: 600; font-size: .95rem; }
.staffbtn__txt small { font-size: .75rem; opacity: .75; }
@media print { .staffbtn, .don { display: none; } }

/* ---------- Bandeau cookies ---------- */
.cookies {
	position: fixed; z-index: 50; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: min(500px, calc(100% - 32px));
	display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--blanc); border: 1px solid var(--ligne);
	box-shadow: 0 14px 34px -18px rgba(20, 30, 28, .5); font-size: .92rem; line-height: 1.5;
}
.cookies p { margin: 0; flex: 1; }
.cookies button { flex: none; border: 0; border-radius: var(--r-petit); padding: 8px 16px; background: var(--sapin); color: var(--creme); font-weight: 600; cursor: pointer; }
body:has(.staffbtn) .cookies { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
	.cookies { left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); max-width: none; flex-direction: column; align-items: stretch; }
	body:has(.staffbtn) .cookies { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
	.don { right: 12px; padding: 9px 13px; font-size: .9rem; }
	.staffbtn { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 7px 12px; }
}

/* ---------- Petits messages ---------- */
.saved { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 99; background: var(--sapin); color: var(--creme); padding: 9px 16px; border-radius: var(--r-petit); font-weight: 600; animation: ficheIn .25s var(--ease); }
.bnotice { position: fixed; inset: 0; z-index: 200; background: rgba(30, 40, 38, .45); display: grid; place-items: center; padding: 16px; }
.bnotice__box { background: var(--blanc); border-radius: var(--r); padding: 24px 24px 22px; max-width: 440px; width: 100%; box-shadow: 0 30px 60px -24px rgba(20, 30, 28, .5); animation: ficheIn .25s var(--ease); }
.bnotice__k { margin: 0 0 4px; font-size: .9rem; color: var(--gris); }
.bnotice__box h2 { margin: 0 0 10px; font: 600 1.5rem/1.2 var(--titre); color: var(--sapin); }
.bnotice__box p { margin: 0 0 18px; }

/* ---------- Connexion des adhérents (numéro + code) ---------- */
.gate-body { min-height: 100dvh; }
.gate { max-width: 440px; margin-inline: auto; padding: 28px 18px 40px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.gate__logo { width: 130px; }
.gate .ptitle { margin: 0; }
.gate .ptitle h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.7rem); }
.gate .ptitle p { font-size: 1.05rem; }
.gate__box { width: 100%; display: grid; gap: 10px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px 20px; text-align: left; }
.gate__box label { color: var(--sapin); font-weight: 600; }
.gate__box input { width: 100%; padding: 12px 14px; border-radius: var(--r-petit); border: 1px solid var(--ligne-forte); background: #fff; font-size: 16px; }
.gate__box input:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 3px rgba(45, 66, 63, .08); }
.gate__box button { padding: 12px; border: 0; border-radius: var(--r-petit); background: var(--sapin); color: var(--creme); font-weight: 600; cursor: pointer; }
.gate__err { margin: 0; color: var(--rouge); font-weight: 600; text-align: center; }
.gate__ok { margin: 0; color: var(--vert); font-weight: 600; text-align: center; }
.gate__hint { margin: 0; font-size: .9rem; color: var(--gris); text-align: center; }
.gate__join { color: var(--gris); }
.gate__join p { margin: 0 0 12px; }
.gate__join strong { color: var(--sapin); }
.gate__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gate__illu { width: 130px; opacity: .95; }
.gate__cookie { font-size: .82rem; color: var(--gris); margin: 0; }
/* Pavé */
.kp { justify-items: stretch; gap: 12px; max-width: 400px; margin-inline: auto; }
.kp__idl, .kp__label { color: var(--sapin); font-weight: 600; margin: 0; }
.kp__idl small { font-weight: 400; font-size: .85rem; color: var(--gris); }
.kp__label { text-align: center; margin-top: 6px; }
.gate__box .kp__id { text-align: center; font-size: 1.4rem; letter-spacing: .2em; padding: 10px; }
.kp__hello { margin: 0; text-align: center; font: 600 1.35rem/1.25 var(--titre); color: var(--sapin); }
.kp__hello small { display: block; margin-top: 6px; font: 400 .92rem/1.45 var(--texte); color: var(--gris); }
.kp__len { display: flex; justify-content: center; margin: -2px auto 2px; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); overflow: hidden; width: fit-content; }
.gate__box .kp__len button { border: 0; border-radius: 0; background: #fff; color: var(--gris); padding: 6px 14px; font-weight: 400; }
.gate__box .kp__len button + button { border-left: 1px solid var(--ligne-forte); }
.gate__box .kp__len button.is-on { background: var(--sapin); color: var(--creme); }
.kp__boxes { --n: 4; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; width: 100%; max-width: calc(var(--n) * 58px); justify-self: center; }
.kp__boxes span { aspect-ratio: 5 / 6; border-radius: var(--r-petit); background: #fff; border: 1px solid var(--ligne-forte); display: grid; place-items: center; transition: border-color .15s; }
.kp__boxes span.cur { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(227, 129, 38, .18); }
.kp__boxes span.on { border-color: var(--sapin); }
.kp__boxes span.on::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--sapin); }
.kp.next .kp__boxes, .kp.next .kp__label { animation: kpIn .25s var(--ease); }
@keyframes kpIn { from { transform: translateX(14px); opacity: 0; } }
.kp__pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.gate__box .kp__pad button { aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: var(--r-petit); background: var(--voile); color: var(--sapin); font: 500 1.5rem/1 var(--texte); cursor: pointer; touch-action: manipulation; transition: background .12s; }
.gate__box .kp__pad button:hover { background: #e8eae0; }
.gate__box .kp__pad button:active { background: var(--sauge); }
.gate__box .kp__pad .kp__del { background: transparent; color: var(--gris); display: grid; place-items: center; }
.kp__del svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gate__box .kp__link { background: none; border: 0; padding: 4px; color: var(--vert); text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; font-weight: 400; cursor: pointer; justify-self: center; display: inline; }
.kp.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 480px) { .chips { width: 100%; } .chip { flex: 1; padding: 8px 6px; font-size: .88rem; } }

/* ---------- Un peu plus de relief là où il faut ---------- */
:root { --ligne: #dedcd0; --ombre: 0 1px 2px rgba(45, 66, 63, .06), 0 6px 16px -12px rgba(45, 66, 63, .3); }
.dog, .map__stage, .map__panel, .drive, .gate__box, .cal__grid { box-shadow: var(--ombre); }
.dog:hover { box-shadow: 0 2px 4px rgba(45, 66, 63, .08), 0 12px 24px -14px rgba(45, 66, 63, .45); }
.annonce--alerte { background: #f9e6cd; border-bottom-color: #ecd0aa; }
.top { border-bottom-color: #d9d7ca; }
.ptitle h1 { color: var(--sapin); }
.dico__letter, .home__h { color: var(--vert); }

/* Note de la Meute sur la carte du chien */
.dog__note { margin: 6px 4px 0; font-size: .8rem; line-height: 1.35; color: #6e4a1c; font-style: italic; }

/* ---------- Fenêtre du chien : « c'est ton chien » + notes de l'équipe ---------- */
.fiche__mine { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-petit); background: var(--voile); font-size: .95rem; text-align: center; }
.fiche__mine a { font-weight: 600; }
.tnotes { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px dashed var(--ligne-forte); }
.tnotes h3 { margin: 0 0 8px; font: 600 1.1rem var(--titre); color: var(--sapin); }
.tnotes h3 small { font: 400 .8rem var(--texte); color: var(--gris); margin-left: 6px; }
.tnotes__n { margin: 0 0 8px; font-size: .92rem; line-height: 1.45; }
.tnotes__n b { display: block; font-size: .8rem; color: var(--gris); font-weight: 600; }
.tnotes__empty { margin: 0 0 8px; color: var(--gris); font-size: .9rem; }
.tnotes form { display: grid; gap: 8px; margin-top: 6px; }
.tnotes textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); font-size: .95rem; }
.fiche__body .tnotes .btn { justify-self: start; display: inline-flex; margin: 0; padding: 7px 14px; width: auto; }

/* ---------- « Qui vient ? » ---------- */
.who { justify-self: start; width: fit-content; margin-top: 4px; padding: 3px 10px; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); background: #fff; color: var(--sapin); font-size: .82rem; cursor: pointer; }
.who:hover { border-color: var(--sapin); }
.cal__ev .who { font-size: .74rem; padding: 2px 7px; }
.whobox { border: 0; padding: 0; width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 40px); border-radius: var(--r); background: var(--papier); box-shadow: 0 30px 70px -30px rgba(20, 30, 28, .55); }
.whobox[open] { display: flex; flex-direction: column; animation: ficheIn .25s var(--ease) both; }
.whobox::backdrop { background: rgba(30, 40, 38, .5); }
.whobox__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; background: #fff; border-bottom: 1px solid var(--ligne); }
.whobox__bar strong { flex: 1; font: 600 1.2rem/1.2 var(--titre); color: var(--sapin); }
.whobox__bar button { width: 34px; height: 34px; border: 0; border-radius: var(--r-petit); background: transparent; color: var(--gris); cursor: pointer; }
.whobox__body { overflow: auto; padding: 14px 18px 18px; }
.whobox__msg { margin: 0 0 10px; color: var(--gris); }
.whobox__list { list-style: none; margin: 0; padding: 0; }
.whobox__list li { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.whobox__list li.is-link { cursor: pointer; }
.whobox__list li.is-link:hover .whobox__h { color: var(--vert); }
.whobox__h { font-weight: 600; color: var(--sapin); }
.whobox__c { flex: 1; color: var(--gris); }
.whobox__c i { font-size: .88rem; }
.whobox__list li b { color: var(--gris); font-weight: 400; font-size: 1.2rem; }
.whobox__list li:last-child { border-bottom: 0; }
.whobox__list em { font-style: normal; color: var(--vert); font-weight: 600; }

/* ---------- Proposer une modification de la fiche ---------- */
.chg__form { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.chg__sec { margin: 0; padding: 16px 18px 18px; border: 1px solid var(--ligne); border-radius: var(--r); background: #fff; box-shadow: var(--ombre); }
.chg__sec legend { padding: 0 6px; font: 600 1.15rem var(--titre); color: var(--sapin); }
.chg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.chg__f { display: grid; gap: 4px; font-size: .92rem; }
.chg__f span { font-weight: 600; color: var(--sapin); }
.chg__f--wide { grid-column: 1 / -1; }
.chg__f input, .chg__f select, .chg__f textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); background: #fff; font-size: 16px; }
.chg__f input:focus, .chg__f select:focus, .chg__f textarea:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 3px rgba(45, 66, 63, .08); }
.chg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.whobox__list a { font-weight: 600; }
.whobox__hint { margin: 12px 0 0; font-size: .82rem; color: var(--gris); }
.dog--care:has(.care--oui)::before { background: #b3412f; }
.dog--care:has(.care--oui) { border-color: #e6c3bb; }
