/* Palette « terre » : neutre, pour tous les clubs */
:root {
  --basalt: #2e2a24;   /* encre brune : textes forts, barre du haut */
  --basalt-2: #4a4036;
  --lava: #c9762b;     /* ocre : couleur principale */
  --lava-2: #dc8f45;
  --moss: #3e7d5e;     /* vert mousse : réussites */
  --gold: #e8b23a;
  --sand: #fbf5ea;
  --sand-2: #f2dec0;
  --card: #ffffff;
  --line: #eadcc6;
  --muted: #8a7a66;
  --text: #2e2a24;
  --radius: 18px;
  --shadow: 0 1px 6px rgba(46, 42, 36, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--sand) url("../img/paws.svg") repeat; color: var(--text); font-size: 15px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; }
h2 { font-size: 1.05rem; margin-bottom: .6rem; }
small { display: block; font-size: .8rem; }
sup { font-size: .6em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.ok { color: var(--moss); font-weight: 600; }
.warn { color: #b3261e; background: #fdecea; padding: .6rem .8rem; border-radius: 12px; margin: .5rem 0 0; }
.warn-text { color: #b3261e; }
.link { color: var(--lava); font-weight: 600; font-size: .85rem; }
.fineprint { font-size: .78rem; color: var(--muted); margin: .5rem 0; }
.fineprint a { text-decoration: underline; }

/* ---------- Coque ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 90px; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem; background: var(--basalt); color: #fff;
}
.topbar h1 { font-size: 1.05rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--lava-2); }
.back { font-size: 1.8rem; line-height: 1; padding: 0 .3rem; }
.club-chip { font-size: .75rem; background: rgba(255,255,255,.12); padding: .25rem .6rem; border-radius: 999px; }
.demo-banner { background: #fff1c9; color: #6b5300; font-size: .78rem; padding: .45rem 1rem; }
.demo-banner a { text-decoration: underline; font-weight: 600; }
.content { padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: #fff; border-top: 1px solid var(--line); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); flex: 1; padding: .2rem 0; }
.tabbar a.active { color: var(--lava); }
.tabbar .ti { font-size: 1.3rem; filter: grayscale(.6); }
.tabbar a.active .ti { filter: none; }
.tabbar .tl { font-size: .68rem; font-weight: 600; }
.tabbar .tab-plus .ti {
  width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lava); color: #fff; font-size: 2rem; font-weight: 300; filter: none;
  box-shadow: 0 0 0 4px #fff, 0 3px 10px rgba(46, 42, 36, .25);
}

/* ---------- Cartes ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.reward { font-size: .78rem; font-weight: 700; color: var(--lava); background: #fff0ea; padding: .15rem .5rem; border-radius: 999px; }
.cta { display: block; border: 2px dashed var(--lava); }
.cta b { display: block; color: var(--lava); }
.cta-block { text-align: center; display: flex; flex-direction: column; gap: .8rem; align-items: center; }

.bar { height: 8px; background: #f1ebe4; border-radius: 99px; overflow: hidden; margin: .35rem 0 .2rem; }
.bar span { display: block; height: 100%; background: var(--lava); border-radius: 99px; transition: width .5s; }
.bar.lvl span { background: var(--gold); }
.bar.club { height: 12px; }
.bar.club span, .bar.ok span { background: var(--moss); }

/* ---------- Accueil ---------- */
.hello {
  background: var(--sand-2) url("../img/scene.svg") no-repeat center bottom / 100% auto;
  color: var(--basalt); border-radius: var(--radius); padding: 1rem 1rem 3.6rem; position: relative; overflow: hidden;
}
.hello .muted { color: var(--basalt-2); margin: 0 0 .4rem; }
.hello .bar { background: rgba(255,255,255,.6); }
.level { display: flex; align-items: center; gap: .7rem; }
.level b { font-size: 1.25rem; }
.level small { color: var(--basalt-2); }
.lvl-icon { font-size: 2.2rem; }
.stats3, .stats4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.stats4 { grid-template-columns: repeat(4, 1fr); }
.stat, .stats4 > div { background: var(--card); border-radius: 14px; padding: .7rem .5rem; text-align: center; box-shadow: var(--shadow); }
.stat b, .stats4 b { font-size: 1.3rem; display: block; }
.stats4 b { font-size: 1.05rem; }
.stat small, .stats4 small { color: var(--muted); font-size: .72rem; }

.challenge-main { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .6rem; }
.challenge-main p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.big-icon { font-size: 2rem; line-height: 1; }
.daily { border-left: 5px solid var(--lava); }
.daily.done { border-left-color: var(--moss); }
.row-ch { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.row-ch:first-of-type { border-top: 0; }
.row-ch small { color: var(--muted); }
.row-ch.done b { color: var(--moss); }
.ch-icon { font-size: 1.4rem; width: 1.8rem; text-align: center; }
.ch-val { font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.club-goal p { margin: 0; }
.contrib { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.contrib > span { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); }
.tip { background: #f1f8f4; box-shadow: none; border: 1px solid #d5eadf; }
.tip p { margin: .4rem 0; }
.source { font-size: .78rem; color: var(--moss); text-decoration: underline; }

.alert { padding: .8rem 1rem; border-radius: 14px; font-size: .9rem; }
.alert.rest { background: #eef1ff; color: #2f3a85; }
.alert.young { background: #fff6e0; color: #6b5300; }

/* ---------- Avatars ---------- */
.avatar {
  --h: 20; display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: hsl(var(--h) 65% 88%); color: hsl(var(--h) 55% 30%); font-weight: 800; font-size: .85rem;
}
.avatar.sm { width: 30px; height: 30px; font-size: .7rem; }
.avatar.xs { width: 22px; height: 22px; font-size: .55rem; margin-right: -6px; border: 2px solid #fff; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar.xl { width: 68px; height: 68px; font-size: 1.4rem; }
.avatar.dog { background: #f3ece4; font-size: 1.2rem; }

/* ---------- Fil ---------- */
.feed-item { display: flex; gap: .7rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.feed-item:first-of-type { border-top: 0; }
.feed-item p { margin: 0; font-size: .9rem; }
.feed-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.pts { font-weight: 800; color: var(--lava); font-size: .85rem; white-space: nowrap; }
.bravo { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .55rem; font-size: .8rem; cursor: pointer; }
.bravo.on { background: #fff0ea; border-color: var(--lava); }
.bravo-count { font-size: .78rem; color: var(--muted); }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: .8rem; }
.form .card { display: flex; flex-direction: column; gap: .7rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--basalt-2); }
input, select {
  font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--lava); }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--text); }
label.check input { width: auto; margin-top: .2rem; accent-color: var(--lava); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-block; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; }
.chip input:checked + span { background: var(--basalt); color: #fff; border-color: var(--basalt); }
.chip input:focus-visible + span { outline: 2px solid var(--lava); }
.chips.static { margin: .4rem 0; }
.chip-s { font-size: .75rem; background: #f3ece4; padding: .2rem .55rem; border-radius: 999px; }
.file-btn { flex-direction: row; cursor: pointer; }
.feeling { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .6rem; }
.feeling > span { font-weight: 700; }
.seg { display: flex; background: #f3ece4; border-radius: 12px; padding: 3px; gap: 3px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg a { display: block; text-align: center; padding: .5rem .3rem; border-radius: 10px; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--basalt-2); flex: 1; }
.seg input:checked + span, .seg a.on { background: #fff; box-shadow: var(--shadow); color: var(--lava); }
.preview { background: #fff7f2; border: 1.5px solid #ffd9c7; box-shadow: none; }
.preview-pts { display: flex; justify-content: space-between; align-items: center; }
.preview-pts b { font-size: 1.6rem; color: var(--lava); }
.notes { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: #8a4a00; }

.btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: .75rem 1.1rem; cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: .4rem; background: #f3ece4; color: var(--basalt);
}
.btn.primary { background: var(--lava); color: #fff; }
.btn.primary:hover { background: #b8691f; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); }
.btn.danger { background: #fff; color: #b3261e; border: 1.5px solid #f3c7c3; }
.btn.big { padding: 1rem; font-size: 1.05rem; }
.btn.small { padding: .4rem .75rem; font-size: .8rem; border-radius: 10px; }
.btn.tiny { padding: .25rem .5rem; font-size: .7rem; border-radius: 8px; margin-top: .3rem; }
.icon-btn { background: none; border: 0; font-size: 1.2rem; cursor: pointer; padding: .3rem; }
.icon-btn.sm { font-size: .95rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.actions.col { flex-direction: column; }

/* ---------- Bienvenue ---------- */
.welcome { padding: 1.2rem 1rem 2rem; display: flex; flex-direction: column; gap: 1rem; }
.hero {
  text-align: center; color: var(--basalt); padding: 1.6rem 1rem 6.5rem; border-radius: 24px;
  background: var(--sand-2) url("../img/scene.svg") no-repeat center bottom / 100% auto;
}
.hero-logo { width: 64px; height: 64px; margin: 0 auto .4rem; color: var(--lava); }
.hero-logo svg { width: 100%; height: 100%; }
.hero h1 { font-size: 2.2rem; letter-spacing: .02em; }
.hero p { margin: .3rem 0 0; color: var(--basalt-2); }
.pitch { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.pitch li { background: #fff; padding: .65rem .9rem; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); }
.user-pick { display: flex; flex-direction: column; gap: .4rem; }
.chip-user { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--line); background: #fff; border-radius: 12px; font: inherit; cursor: pointer; text-align: left; }

/* ---------- Classements ---------- */
.tabs-scroll { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.tabs-scroll a { white-space: nowrap; padding: .5rem .85rem; border-radius: 999px; background: #fff; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); }
.tabs-scroll a.on { background: var(--basalt); color: #fff; }
.period { margin: 0; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; padding: .8rem 0 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 30%; text-align: center; }
.pod b { font-size: .9rem; }
.pod small { color: var(--muted); }
.pod .step { width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: start center; padding-top: .3rem; font-size: 1.5rem; background: #f3ece4; }
.pod.p1 .step { height: 90px; background: linear-gradient(180deg, #ffe39a, #f2b134); }
.pod.p2 .step { height: 65px; background: linear-gradient(180deg, #eef0f4, #c7ccd6); }
.pod.p3 .step { height: 48px; background: linear-gradient(180deg, #f7dcc6, #d8a57c); }
.podium.year .pod.p1 .avatar { box-shadow: 0 0 0 4px var(--gold); }
.rank { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rank li a { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.rank li:first-child a { border-top: 0; }
.rank li.me a { background: #fff3ec; }
.rank .pos { width: 1.6rem; font-weight: 800; color: var(--muted); text-align: center; }
.rank small { color: var(--muted); }
.rank .val { font-weight: 800; white-space: nowrap; }
.reward-card { background: linear-gradient(135deg, #fff4d6, #ffe7b0); font-weight: 600; text-align: center; }
.soon { text-align: center; color: var(--muted); }

/* ---------- Courses ---------- */
.race { display: flex; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.race:first-child { border-top: 0; }
.race.home { background: linear-gradient(90deg, #fff1ea, transparent); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.race-date { width: 48px; flex: none; text-align: center; background: var(--basalt); color: #fff; border-radius: 12px; padding: .35rem 0; align-self: flex-start; }
.race-date b { font-size: 1.2rem; display: block; line-height: 1.1; }
.race-date small { font-size: .7rem; text-transform: uppercase; }
.race small { margin-top: .15rem; }
.going { display: flex; align-items: center; margin-top: .4rem; }
.going small { margin-left: .7rem; color: var(--moss); font-weight: 600; }
.race-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: #f3ece4; color: var(--basalt-2); }
.tag.lava { background: #ffe5da; color: #b73c17; }
.tag.ok { background: #e3f3eb; color: var(--moss); }
.race-teaser .race { border-top: 0; padding-bottom: 0; }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: .9rem; align-items: center; }
.profile-head h2 { margin: 0; font-size: 1.3rem; }
.profile-head p { margin: .1rem 0 .35rem; }
.profile-head > div { flex: 1; }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.dog-card { padding: .8rem 0; border-top: 1px solid var(--line); }
.dog-card:first-of-type { border-top: 0; }
.dog-top { display: flex; gap: .7rem; align-items: center; }
.dog-top small { color: var(--muted); }
.goal-text { margin: .3rem 0; font-size: .88rem; }
.dog-goal small { color: var(--basalt-2); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.badge { text-align: center; padding: .7rem .4rem; border-radius: 14px; background: #f7f3ee; opacity: .75; display: flex; flex-direction: column; align-items: center; }
.badge.on { background: linear-gradient(160deg, #fff5d9, #ffe4cc); opacity: 1; box-shadow: inset 0 0 0 1.5px #f5c58a; }
.badge .b-icon { font-size: 1.8rem; filter: grayscale(1); }
.badge.on .b-icon { filter: none; }
.badge b { font-size: .78rem; margin-top: .2rem; }
.badge small { font-size: .66rem; color: var(--muted); }
.badge .bar { width: 100%; height: 5px; }
.mini-race, .sortie-row { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.mini-race:first-of-type, .sortie-row:first-of-type { border-top: 0; }
.mini-race small, .sortie-row small { color: var(--muted); }
.mini-race .val { font-weight: 800; text-align: right; }
.s-icon { font-size: 1.4rem; }
.rules { padding-left: 0; list-style: none; display: grid; gap: .45rem; font-size: .88rem; margin: 0; }

/* ---------- Fête ---------- */
.celebrate { text-align: center; padding: 1.5rem .5rem; position: relative; display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.big-pts { font-size: 3.2rem; font-weight: 900; color: var(--lava); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.unlock { background: #fff; border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); width: 100%; animation: slide .5s both; }
.unlock.lvl { background: linear-gradient(135deg, #fff4d6, #ffe0b8); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; height: 260px; }
.confetti i {
  position: absolute; top: -10px; left: calc(var(--i) * 4.2%); width: 8px; height: 14px; border-radius: 2px;
  background: hsl(calc(var(--i) * 37) 80% 60%); animation: fall 1.8s calc(var(--i) * 40ms) ease-in forwards;
}
@keyframes fall { to { transform: translateY(270px) rotate(540deg); opacity: 0; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes slide { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Fenêtre et notifications ---------- */
.modal { position: fixed; inset: 0; background: rgba(20, 20, 30, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--sand); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 1.2rem 1rem 2rem; position: relative; animation: slide .25s; }
.sheet h2 { padding-right: 2rem; }
.close { position: absolute; right: .8rem; top: .6rem; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); opacity: 0; z-index: 60;
  background: var(--basalt); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: .25s; max-width: 90%;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Avatars : photo et personnages ---------- */
.avatar.drawn { background: none; overflow: hidden; padding: 0; }
.avatar.drawn svg, .paw-av svg, .club-av svg { width: 100%; height: 100%; display: block; }
.avatar.paw-av { background: var(--sand-2); color: var(--basalt-2); padding: 18%; }
.avatar.club-av { background: var(--lava); color: var(--sand); padding: 16%; border-radius: 28%; }
.avatar.photo { background: #ddd; overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.preset { position: relative; font-size: 1.25em; }
.avatar.preset .pm { font-size: 1.35em; line-height: 1; }
.avatar.preset .px { position: absolute; right: -6%; bottom: -6%; font-size: .75em; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.avatar.sm.preset, .avatar.xs.preset { font-size: .85em; }
.avatar.xs.preset .px { display: none; }
.avatar.lg.preset { font-size: 1.6rem; }
.avatar.xl.preset { font-size: 2rem; }
.av-edit { position: relative; border: 0; background: none; padding: 0; cursor: pointer; flex: none; }
.av-edit > span:last-child { position: absolute; right: -2px; bottom: -2px; background: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: .8rem; box-shadow: var(--shadow); }
.av-edit.sm > span:last-child { width: 20px; height: 20px; font-size: .65rem; }
.center-av { align-self: center; }
.av-preview { display: flex; justify-content: center; margin: .5rem 0 1rem; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.preset-btn { border: 2px solid transparent; background: #fff; border-radius: 14px; padding: .5rem .2rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .25rem; font: inherit; }
.preset-btn small { font-size: .62rem; color: var(--muted); text-align: center; }
.preset-btn.on { border-color: var(--lava); }
.sheet .file-btn { width: 100%; margin-bottom: .3rem; }
.hello { display: flex; gap: .8rem; align-items: center; }
.hello-av .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* ---------- Arrivée et slides ---------- */
.lead { font-size: 1rem; margin: 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.features div { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: var(--shadow); }
.features span { font-size: 1.6rem; display: block; }
.features small { color: var(--muted); }
.back-link { font-weight: 700; color: var(--lava); }
details summary { cursor: pointer; }
details .user-pick { margin-top: .7rem; }
.slides {
  min-height: 100vh; display: flex; flex-direction: column; padding: 1.5rem 1.4rem 2rem; color: var(--basalt); touch-action: pan-y; user-select: none;
  background: var(--sand) url("../img/scene.svg") no-repeat center bottom / 100% auto;
}
.skip { align-self: flex-end; background: rgba(46,42,36,.08); color: var(--basalt); border: 0; border-radius: 999px; padding: .4rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.slide { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1rem; animation: slide .35s; }
.slide-art { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(201,118,43,.12); }
.slide-art .avatar { width: 150px; height: 150px; }
.slide h1 { font-size: 1.6rem; }
.slide p { color: var(--basalt-2); font-size: 1.02rem; max-width: 380px; margin: 0; }
.dots { display: flex; justify-content: center; gap: .5rem; margin: 1.2rem 0; }
.dots a { width: 9px; height: 9px; border-radius: 99px; background: rgba(46,42,36,.2); transition: .2s; }
.dots a.on { width: 26px; background: var(--lava); }
.slide-nav { display: flex; justify-content: space-between; gap: .8rem; margin-bottom: 4.5rem; }
.slide-nav .btn { flex: 1; }

/* ---------- Fil, sorties, réactions, commentaires ---------- */
.feed-title { font-weight: 700; }
.feed-meta { display: flex; gap: .6rem; font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.react-sum { letter-spacing: -.1em; }
.sortie-head .who { display: flex; gap: .7rem; align-items: center; }
.s-title { font-size: 1.3rem; margin: .8rem 0 .3rem; }
.s-note { margin: 0 0 .5rem; white-space: pre-wrap; }
.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; text-align: center; background: #f7f3ee; border-radius: 14px; padding: .6rem .2rem; margin: .6rem 0; }
.s-stats b { font-size: 1.05rem; }
.s-stats small { color: var(--muted); font-size: .7rem; }
.s-dogs { display: flex; flex-direction: column; gap: .4rem; }
.s-dog { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.s-dog .pts { margin-left: auto; }
.small { font-size: .8rem; margin: .3rem 0 0; }
.sortie-head .tags { margin-top: .5rem; }
.react-bar { display: flex; gap: .4rem; }
.react { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .45rem 0; font-size: 1.3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.react small { font-size: .7rem; color: var(--muted); min-height: .9em; font-weight: 700; }
.react.on { background: #fff0ea; border-color: var(--lava); transform: scale(1.05); }
.react:disabled { cursor: default; opacity: .8; }
.reactors { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.reactors a { position: relative; }
.reactors span { position: absolute; right: -4px; bottom: -4px; font-size: .8rem; }
.comment { display: flex; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; }
.comment p { margin: .1rem 0 0; font-size: .92rem; white-space: pre-wrap; word-break: break-word; }
small.inline { display: inline; }
.comment-form { display: flex; gap: .5rem; margin-top: .6rem; }
.comment-form input { flex: 1; }
textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--lava); }
a.sortie-row { color: inherit; }

/* ---------- Annonces, clubs, rôles ---------- */
.announce { border-left: 5px solid var(--gold); }
.ann { display: flex; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.ann:first-of-type { border-top: 0; }
.ann p { margin: .25rem 0; font-size: .9rem; white-space: pre-wrap; }
.ann-icon { font-size: 1.5rem; }
.lava-text { color: var(--lava); font-weight: 700; }
.club-hero { display: flex; gap: .9rem; align-items: center; }
.club-hero h2 { margin: 0; font-size: 1.25rem; }
.club-hero p { margin: .1rem 0 .4rem; }
a.club-goal { display: block; color: inherit; }
.member-row { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--line); color: inherit; }
.member-row:first-of-type { border-top: 0; }
.role-select { width: auto; max-width: 48%; padding: .4rem .5rem; font-size: .8rem; }
.tag.role-admin { background: #fff2c2; color: #7a5800; }
.tag.role-gerant { background: #e3e8ff; color: #2f3a85; }
.tag.role-baf { background: #e3f3eb; color: var(--moss); }
.tag.role-animateur { background: #ffe5da; color: #b73c17; }
.staff-cta { border-color: var(--basalt); }
.staff-cta b { color: var(--basalt); }
.staff-box label { font-weight: 700; }
.staff-box .role-select { max-width: 100%; width: 100%; }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap a { flex: none; padding: .45rem .7rem; }
.role-card b { font-size: 1rem; }
.role-card p { margin: .3rem 0 0; font-size: .88rem; }
.table-wrap { overflow-x: auto; padding: .5rem; }
.matrix { border-collapse: collapse; width: 100%; font-size: .8rem; }
.matrix th { font-size: 1.1rem; padding: .3rem .2rem; }
.matrix th small { font-size: .6rem; color: var(--muted); }
.matrix td { padding: .45rem .3rem; border-top: 1px solid var(--line); text-align: center; }
.matrix td:first-child { text-align: left; }
.inline-form { flex-direction: row; align-items: flex-end; gap: .5rem; margin-top: .8rem; }
.inline-form label { flex: 1; }
.privacy h2 { margin-top: 1rem; }
.privacy h2:first-child { margin-top: 0; }
.privacy p, .privacy li { font-size: .9rem; }
.privacy ul { padding-left: 1.1rem; margin: .3rem 0; }

/* ---------- Logo du club et photo du chien ---------- */
.top-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.top-titles .brand { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.top-titles h1 { flex: none; }
.top-logo { flex: none; display: flex; }
.club-logo { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff; overflow: hidden; padding: 3px; }
.club-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.club-logo.top, .avatar.top { width: 36px; height: 36px; border-radius: 10px; }
.club-logo.lg { width: 52px; height: 52px; border-radius: 14px; }
.club-logo.xl { width: 72px; height: 72px; border-radius: 18px; padding: 5px; box-shadow: var(--shadow); }
.logo-edit { cursor: pointer; }
.logo-zone, .dog-photo { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dog-photo { margin-bottom: 0; }
.dog-photo-btns { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.dog-photo-btns .file-btn { width: auto; margin: 0; }

/* ---------- Connexion, codes, membres présents, administration ---------- */
.form-error { color: #b3261e; font-size: .85rem; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.dev-code { background: #fff6dd; border: 1px dashed var(--gold); border-radius: 12px; padding: .6rem .8rem; font-size: .85rem; }
.otp { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.welcome .btn.ghost.big { background: #fff; }
.picker-block { display: flex; flex-direction: column; gap: .45rem; }
.pick-label { font-weight: 700; font-size: .9rem; }
.pick-list { max-height: 180px; overflow-y: auto; }
.pick-list .chip span { display: inline-flex; align-items: center; gap: .35rem; }
.pick-list .avatar.xs { margin-right: 0; border: 0; }
.companions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: .6rem; font-size: .88rem; }
.comp { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.comp .avatar.xs { margin-right: 0; border: 0; }
.comp.pending { opacity: .7; }
.tag-requests { border-left: 5px solid var(--moss); border-radius: 0 var(--radius) var(--radius) 0; }
.tag-req { display: flex; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.tag-req:first-of-type { border-top: 0; }
.tag-req a { color: var(--lava); font-weight: 600; }
.inline-req { display: block; background: #eef6f1; border: 0; border-radius: 12px; padding: .6rem .8rem; margin-top: .6rem; }
.actions.left { justify-content: flex-start; margin-top: .4rem; }
.join-code { border: 1.5px dashed var(--lava); box-shadow: none; }
.code-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .4rem 0; }
.code-val { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em; background: var(--sand-2); padding: .2rem .5rem; border-radius: 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.admin-grid .stat { color: inherit; }
.admin-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-tools input { flex: 2; min-width: 160px; }
.admin-tools select { flex: 1; min-width: 140px; }
.admin-member { border-top: 1px solid var(--line); padding: .3rem 0 .6rem; }
.admin-member .member-row { border-top: 0; }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; padding-left: 3rem; }
.admin-actions .role-select { max-width: none; flex: 1; min-width: 130px; }
.member-row .pos { width: 1.4rem; font-weight: 800; color: var(--muted); text-align: center; }
code { background: var(--sand-2); padding: .05rem .35rem; border-radius: 6px; font-size: .85em; }

@media (min-width: 600px) {
  body { background: #efe7dd; }
  #app { background: var(--sand); box-shadow: 0 0 40px rgba(0,0,0,.06); }
}
