/* Coup du Jour — carnet de bord du pêcheur.
   Mise en page : barre d'en-tête collante, relevé des conditions en carte principale,
   classement des espèces en cartes avec jauge et frise 24 h, conseils repliables, navigation flottante. */
:root{
  --bg:#e9efeb; --surface:#ffffff; --surface-2:#f3f7f4; --fg:#13221d; --muted:#5b6c65; --line:#d3ddd8;
  --accent:#1f6f5c; --accent-2:#2c8b73; --accent-soft:#d8ebe3; --on-accent:#ffffff;
  --amber:#c27a22; --amber-soft:#f6e5cc; --warn:#a2461f; --warn-soft:#f7e0d6;
  --shadow:0 1px 2px rgba(19,34,29,.06),0 6px 20px -8px rgba(19,34,29,.18);
  --hero-1:#1f6f5c; --hero-2:#2c8b73; --hero-fg:#ffffff;
  --radius:16px; --radius-sm:10px;
  --f-display:"Barlow Condensed","Arial Narrow",sans-serif;
  --f-body:"Source Sans 3",system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0c1412; --surface:#15201d; --surface-2:#1a2723; --fg:#e4ede9; --muted:#8ea29a; --line:#26352f;
  --accent:#5cc2a3; --accent-2:#79d3b8; --accent-soft:#183a30; --on-accent:#0c1412;
  --amber:#e7a650; --amber-soft:#3a2a15; --warn:#ec8e63; --warn-soft:#3a2016;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -10px rgba(0,0,0,.6); --hero-1:#174d40; --hero-2:#1f6553; --hero-fg:#e4ede9; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0c1412; --surface:#15201d; --surface-2:#1a2723; --fg:#e4ede9; --muted:#8ea29a; --line:#26352f;
  --accent:#5cc2a3; --accent-2:#79d3b8; --accent-soft:#183a30; --on-accent:#0c1412;
  --amber:#e7a650; --amber-soft:#3a2a15; --warn:#ec8e63; --warn-soft:#3a2016;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -10px rgba(0,0,0,.6); --hero-1:#174d40; --hero-2:#1f6553; --hero-fg:#e4ede9; color-scheme:dark}

/* ---- Couleurs selon le rôle : orange pour les admins, bleu pour les membres ---- */
:root[data-role="admin"]{--bg:#f4e1ca;--surface:#fffaf4;--surface-2:#fbefe1;--line:#ead0b0;--muted:#7a5d43}
:root[data-role="user"]{--bg:#dbe7f3;--surface:#f9fcff;--surface-2:#edf3fa;--line:#c6d7e9;--muted:#4f6478}
@media (prefers-color-scheme: dark){
  :root[data-role="admin"]:not([data-theme="light"]){--bg:#251608;--surface:#331f0f;--surface-2:#3c2614;--line:#56381d;--muted:#c4a283}
  :root[data-role="user"]:not([data-theme="light"]){--bg:#0b1522;--surface:#132134;--surface-2:#182a40;--line:#253b55;--muted:#93a9c2}
}
:root[data-theme="dark"][data-role="admin"]{--bg:#251608;--surface:#331f0f;--surface-2:#3c2614;--line:#56381d;--muted:#c4a283}
:root[data-theme="dark"][data-role="user"]{--bg:#0b1522;--surface:#132134;--surface-2:#182a40;--line:#253b55;--muted:#93a9c2}

/* ---- Base ---- */
body{background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:16px;line-height:1.5;-webkit-tap-highlight-color:transparent}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:1001;background:var(--surface)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:720px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:18px 24px}
main{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
.view{display:flex;flex-direction:column;gap:16px}
h2{text-wrap:balance}
.intro{margin:0;color:var(--muted)}
.note{font-size:.85rem;color:var(--muted);margin:0}
.label{font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;color:var(--muted)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
footer{font-size:.78rem;color:var(--muted);line-height:1.45}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---- En-tête ---- */
.app-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:1000;background:color-mix(in srgb,var(--surface) 88%,transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.app-head-in{max-width:720px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:10px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;flex-shrink:0}
.logo{width:34px;height:34px;border-radius:10px;background:var(--accent);display:grid;place-items:center;flex-shrink:0}
.logo svg{width:24px;height:24px;fill:var(--on-accent)}
.logo circle{fill:var(--accent)}
.app-head h1{font-family:var(--f-display);font-weight:700;font-size:clamp(1.2rem,5.4vw,1.55rem);line-height:1;margin:0;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}
.who{font-family:var(--f-mono);font-size:.78rem;color:var(--fg);white-space:nowrap;display:flex;align-items:center;gap:6px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:4px 6px 4px 10px;min-width:0;overflow:hidden}
.who:empty{display:none}
.who{max-width:52%;flex-shrink:1}
.who-name{overflow:hidden;text-overflow:ellipsis;min-width:0}
.who .badge{flex-shrink:0}
.who .badge{margin-left:0}

/* ---- Boutons et champs ---- */
.btn,.seg button{font:inherit;font-size:.92rem;font-weight:600;border:1px solid var(--line);background:var(--surface);color:var(--fg);
  min-height:42px;padding:8px 16px;border-radius:12px;cursor:pointer;transition:background .15s,border-color .15s,transform .1s}
.btn:active,.seg button:active{transform:scale(.97)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn:disabled{opacity:.55;cursor:default}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--accent);display:grid;place-items:center;cursor:pointer;flex-shrink:0}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.seg{display:flex;gap:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:4px}
.seg button{flex:1;min-height:36px;padding:6px 10px;border:none;background:transparent;color:var(--muted);border-radius:10px;font-size:.88rem}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.linkbtn{font:inherit;font-size:.85rem;font-weight:600;background:none;border:none;color:var(--accent);padding:4px 0;cursor:pointer}
.linkbtn.danger{color:var(--warn)}
.field{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:600;color:var(--muted)}
.field input,.field select,.field textarea,.form input,.form select{font:inherit;font-size:1rem;font-weight:400;color:var(--fg);background:var(--surface-2);
  border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0;width:100%;box-sizing:border-box}
.field input[type=file]{padding:8px}
.field textarea{min-height:76px;resize:vertical}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:420px){.row2{grid-template-columns:1fr}}
.err{color:var(--warn);font-size:.9rem;margin:0}
.ok{color:var(--accent);font-size:.9rem;margin:0}

/* ---- Cartes génériques ---- */
.panel,.conds,.sp,.post{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel{padding:18px;display:flex;flex-direction:column;gap:14px}
.panel h2{font-family:var(--f-display);font-weight:700;font-size:1.3rem;text-transform:uppercase;margin:0;letter-spacing:.03em}
.setup{background:var(--amber-soft);color:var(--fg);border-radius:var(--radius);padding:14px 16px;font-size:.9rem}
.empty{color:var(--muted);text-align:center;padding:28px 12px;border:1.5px dashed var(--line);border-radius:var(--radius)}
.list{display:flex;flex-direction:column;gap:14px}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin-top:6px}
.section-head h2{white-space:nowrap;font-family:var(--f-display);font-weight:700;font-size:1.35rem;text-transform:uppercase;letter-spacing:.03em;margin:0}
.species{display:flex;flex-direction:column;gap:12px}

/* ---- Conditions ---- */
.conds{padding:16px;display:flex;flex-direction:column;gap:16px;overflow:hidden;position:relative}
.conds-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.status{font-size:.85rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.pill{font-family:var(--f-display);font-weight:700;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;padding:3px 9px;border-radius:99px;background:var(--accent-soft);color:var(--accent)}
.pill::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px}
.pill.manual{background:var(--amber-soft);color:var(--amber)}
.hero{display:flex;align-items:center;gap:16px;padding:14px 16px;border-radius:14px;
  background:linear-gradient(135deg,var(--hero-1) 0%,var(--hero-2) 100%);color:var(--hero-fg)}
.hero-temp{display:flex;align-items:flex-start;line-height:.85;flex-shrink:0}
.hero-num{font-family:var(--f-display);font-weight:700;font-size:4rem;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.hero-unit{font-family:var(--f-display);font-weight:600;font-size:1.3rem;margin-left:3px;margin-top:4px;opacity:.85}
.hero-side{display:flex;flex-direction:column;gap:2px;min-width:0}
.hero-k{font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.1em;font-size:.78rem;opacity:.8}
.hero-v{font-weight:600}
.hero-v2{font-size:.9rem;opacity:.85}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:560px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cell{background:var(--surface-2);border-radius:12px;padding:10px 12px;min-width:0}
.cell .k{font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;color:var(--muted)}
.cell .v{font-family:var(--f-mono);font-size:.88rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:2px}
.adjust{border-top:1px solid var(--line);padding-top:12px}
details>summary{list-style:none;cursor:pointer}
details>summary::-webkit-details-marker{display:none}
.adjust>summary{color:var(--accent);font-weight:600;font-size:.92rem;display:flex;align-items:center;gap:8px}
.adjust>summary::after,.tips>summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:4px;transition:transform .2s}
.adjust[open]>summary::after,.tips[open]>summary::after{transform:rotate(-135deg)}
.form{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:600;color:var(--muted)}

/* ---- Cartes espèces ---- */
.sp{padding:16px;display:flex;flex-direction:column;gap:12px}
.sp.top{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--shadow)}
.sp-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sp-id{display:flex;align-items:center;gap:12px;min-width:0}
.sp-rank{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-family:var(--f-display);font-weight:700;font-size:1rem;
  background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.sp.top .sp-rank{background:var(--amber);border-color:var(--amber);color:var(--on-accent)}
.sp-name{font-family:var(--f-display);font-weight:700;font-size:1.55rem;text-transform:uppercase;letter-spacing:.02em;line-height:1;min-width:0}
.sp-name small{display:block;font-family:var(--f-body);font-style:italic;font-weight:400;text-transform:none;letter-spacing:0;font-size:.82rem;color:var(--muted);margin-top:3px}
.gauge{--p:0;width:54px;height:54px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;
  background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--line) 0)}
.gauge span{width:42px;height:42px;border-radius:50%;background:var(--surface);display:grid;place-items:center;
  font-family:var(--f-mono);font-size:.95rem;font-variant-numeric:tabular-nums;color:var(--accent)}
.flag{align-self:flex-start;font-size:.78rem;font-weight:600;padding:2px 10px;border-radius:99px;background:var(--warn-soft);color:var(--warn)}
.timeline{display:flex;flex-direction:column;gap:4px}
.strip{display:grid;grid-template-columns:repeat(24,1fr);gap:2px;height:34px;align-items:end}
.strip div{border-radius:3px;background:var(--accent);min-height:4px}
.strip div.best{background:var(--amber);opacity:1}
.axis{display:grid;grid-template-columns:repeat(8,1fr);font-family:var(--f-mono);font-size:.62rem;color:var(--muted)}
.window{font-size:.9rem;color:var(--muted)}
.window b{color:var(--amber);font-family:var(--f-mono);font-weight:500;margin-left:4px}
.tips{border-top:1px solid var(--line);margin-inline:-16px;padding-inline:16px}
.tips>summary{display:flex;align-items:center;gap:8px;padding-top:12px;font-weight:600;font-size:.95rem;color:var(--accent)}
.tips>summary::before{content:"";width:18px;height:18px;flex-shrink:0;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v11a4 4 0 1 1-4-4'/%3E%3Ccircle cx='12' cy='3' r='1'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v11a4 4 0 1 1-4-4'/%3E%3Ccircle cx='12' cy='3' r='1'/%3E%3C/svg%3E") center/contain no-repeat}
.tips-body{display:flex;flex-direction:column;gap:12px;padding-top:12px}
.tips[open] .tips-body{animation:drop .2s ease-out}
@keyframes drop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:.78rem;padding:3px 10px;border-radius:99px;background:var(--surface-2);color:var(--muted)}
.chip.plus{background:var(--accent-soft);color:var(--accent)}
.chip.minus{background:var(--warn-soft);color:var(--warn)}
.tip{background:var(--surface-2);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.tip h4{margin:0;font-family:var(--f-display);font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted)}
.tip p{margin:0;max-width:65ch}
.tip.lure{background:var(--accent-soft)}
.tip.lure h4{color:var(--accent)}
.tip.bait{background:var(--amber-soft)}
.tip.bait h4{color:var(--amber)}
.tip dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 12px}
.tip dt{font-weight:600;font-size:.88rem}
.tip dd{margin:0}
.tip-extra{font-size:.88rem;color:var(--muted)}
.warn{font-size:.85rem;color:var(--warn);margin:0}

/* ---- Navigation ---- */
nav.tabs{position:fixed;z-index:1000;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));
  bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:560px;margin:0 auto;
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:6px;border-radius:22px;
  background:color-mix(in srgb,var(--surface) 90%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);
  border:1px solid var(--line);box-shadow:0 10px 30px -10px rgba(0,0,0,.35)}
nav.tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 2px;border-radius:16px;color:var(--muted);text-decoration:none;
  font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:.72rem;transition:background .15s,color .15s}
nav.tabs a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
nav.tabs a[aria-current="page"]{color:var(--accent);background:var(--accent-soft)}

/* ---- Fil ---- */
.grp-bar select{font-weight:600}
.post{overflow:hidden;display:flex;flex-direction:column}
.post-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px}
.post-who{display:flex;align-items:center;gap:10px;min-width:0}
.avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:1.05rem;color:#fff;text-transform:uppercase}
.post-user{font-weight:600}
.post-group{font-size:.78rem;color:var(--muted)}
.post-date{font-family:var(--f-mono);font-size:.72rem;color:var(--muted);white-space:nowrap}
.post img{width:100%;max-height:520px;object-fit:cover;background:var(--line);display:block}
.post-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px}
.post-body p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tag{font-family:var(--f-display);font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.8rem;padding:3px 10px;border-radius:99px;background:var(--accent-soft);color:var(--accent)}
.size{font-family:var(--f-mono);font-size:.88rem;font-variant-numeric:tabular-nums}
.bait-box{background:var(--amber-soft);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.bait-box .label{color:var(--amber);font-size:.72rem}
.bait-box p{margin:0}
.post-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:8px}
.badge{font-family:var(--f-display);font-weight:700;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:99px;background:var(--amber);color:var(--on-accent);margin-left:6px;vertical-align:2px}
.badge.owner{background:var(--accent)}
.preview{max-height:220px;border-radius:12px;object-fit:cover}
.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.thumb{position:relative;aspect-ratio:1;max-width:100%;border-radius:12px;overflow:hidden;background:var(--line)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-x{position:absolute;top:5px;right:5px;width:28px;height:28px;border-radius:50%;border:none;background:rgba(0,0,0,.6);color:#fff;font-size:1.1rem;line-height:1;cursor:pointer}
.thumb-first{position:absolute;left:5px;bottom:5px;font-family:var(--f-display);font-weight:700;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;padding:1px 7px;border-radius:99px;background:var(--accent);color:var(--on-accent)}
.gallery{position:relative}
.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-track img{flex:0 0 100%;width:100%;max-height:520px;object-fit:cover;scroll-snap-align:center;background:var(--line)}
.gallery-count{position:absolute;top:10px;right:10px;font-family:var(--f-mono);font-size:.72rem;padding:3px 9px;border-radius:99px;background:rgba(0,0,0,.55);color:#fff}
.gallery-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.gallery-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5)}
.gallery-dots i.on{background:#fff}

/* ---- Carte ---- */
#map{height:62vh;min-height:340px;border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow);z-index:0}
.map-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.leaflet-popup-content{font-family:var(--f-body);font-size:.9rem}
.leaflet-popup-content b{font-size:1rem}
.leaflet-popup-content-wrapper{border-radius:14px}
.spot-pin{width:22px;height:22px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--amber);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.spot-pin.mine{background:var(--accent)}

/* ---- Profil, gestion ---- */
.gcard{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--surface-2)}
.gcard-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.gcard-name{font-weight:600}
.gcard-meta{font-family:var(--f-mono);font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}
.gcard .actions{gap:16px}
.code{font-family:var(--f-mono);font-size:.85rem;background:var(--accent-soft);color:var(--accent);padding:2px 8px;border-radius:8px;user-select:all}
.mrow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.mrow:last-child{border-bottom:none}
#v-admin .list{gap:10px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:2000;
  background:var(--fg);color:var(--bg);padding:10px 18px;border-radius:99px;font-size:.9rem;max-width:90vw;box-shadow:var(--shadow);animation:drop .2s ease-out}

/* ---- Mesure sur photo ---- */
.measure{position:fixed;inset:0;z-index:3000;background:var(--bg);display:flex;flex-direction:column;
  padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left,0px))}
.m-top,.m-bottom{padding-block:10px;display:flex;flex-direction:column;gap:8px}
.m-step{margin:0;font-weight:600}
.m-ref{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--muted)}
.m-ref input{width:5.5em;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:6px 8px}
.m-area{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
#m-canvas{touch-action:none;max-width:100%;max-height:100%;border-radius:10px}
.m-result{margin:0;font-family:var(--f-mono);font-size:1.3rem;color:var(--accent);min-height:1.6em}

/* ---- Bascule de groupe (en-tête) ---- */
.grp-switch{display:flex;align-items:center;gap:6px;min-width:0;max-width:56%;font:inherit;font-weight:600;font-size:.88rem;color:var(--fg);
  background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:6px 8px 6px 12px;cursor:pointer}
.grp-switch svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.gs-name{display:flex;align-items:center;gap:2px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gs-name .badge{flex-shrink:0}
.sheet-back{position:fixed;inset:0;z-index:2500;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:560px;background:var(--surface);border-radius:22px 22px 0 0;padding:16px max(16px,env(safe-area-inset-right,0px)) calc(18px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  display:flex;flex-direction:column;gap:12px;max-height:80vh;overflow:auto;animation:up .2s ease-out}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.sheet-head{display:flex;align-items:center;justify-content:space-between}
.sheet-head h2{margin:0;font-family:var(--f-display);font-weight:700;text-transform:uppercase;font-size:1.3rem;letter-spacing:.03em}
.gs-list{display:flex;flex-direction:column;gap:6px}
.gs-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer}
.gs-item.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.gs-item:disabled{opacity:.6;cursor:default}
.gs-t{font-weight:600;display:flex;align-items:center}
.gs-s{font-size:.82rem;color:var(--muted)}
.sheet .actions .btn{text-decoration:none;display:inline-flex;align-items:center}
.badge.moderator{background:#5b6fb8}
.badge.wait{background:var(--muted)}
.linkbtn.plain{color:var(--fg);font-size:.95rem;text-align:left;display:flex;align-items:center}
.btn.small{min-height:34px;padding:5px 12px;font-size:.84rem;border-radius:10px}

/* ---- Bilan rapide ---- */
#post-mode{max-width:420px}
.q{display:flex;flex-direction:column;gap:8px}
.q-k{font-family:var(--f-display);font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;color:var(--muted)}
.q-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.chips-pick{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pick-label{font-size:.78rem;font-weight:600;color:var(--muted);width:100%}
.pick{font:inherit;font-size:.86rem;border:1px solid var(--line);background:var(--surface-2);color:var(--fg);border-radius:99px;padding:6px 12px;min-height:34px;cursor:pointer}
.pick.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}
.pick.add{border-style:dashed;color:var(--accent);background:transparent}
.pick-input{font:inherit;font-size:.86rem;border:1px solid var(--accent);border-radius:99px;padding:6px 12px;min-height:34px;width:11em;background:var(--surface);color:var(--fg)}
.mini{display:flex;align-items:center;gap:6px;font-size:.86rem;color:var(--muted)}
.mini input{width:5em;font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:6px 8px}
.check{display:flex;align-items:center;gap:8px;font-size:.9rem}
.check input{width:18px;height:18px;accent-color:var(--accent)}
.rating{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.rate{display:flex;flex-direction:column;align-items:center;gap:2px;font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:10px 4px;cursor:pointer}
.rate.on{background:var(--amber-soft);border-color:var(--amber);box-shadow:0 0 0 1px var(--amber)}
.rate-e{font-size:1.6rem;line-height:1}
.rate-t{font-size:.72rem;font-weight:600;text-align:center;line-height:1.15}

/* ---- Fil : bilans et posts en attente ---- */
.post.session .post-body{gap:8px}
.sess-rating{display:flex;align-items:center;gap:10px;font-family:var(--f-display);font-weight:700;font-size:1.25rem;text-transform:uppercase;letter-spacing:.02em}
.sess-emoji{font-size:1.7rem}
.post.session.r4{border-left:4px solid var(--amber)}
.post.session.r1{border-left:4px solid var(--line)}
.combo{display:flex;align-items:baseline;gap:8px;background:var(--surface-2);border-radius:10px;padding:8px 12px}
.combo .label{font-size:.7rem}
.tag.muted{background:var(--surface-2);color:var(--muted)}
.post.is-pending{border-style:dashed}
.pending-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;background:var(--amber-soft);color:var(--amber);font-weight:600;font-size:.88rem}

/* ---- Onglet Groupe ---- */
#groupe-root{display:flex;flex-direction:column;gap:18px}
.g-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px}
.g-head h1{margin:0;font-family:var(--f-display);font-weight:700;font-size:2rem;line-height:1;text-transform:uppercase;letter-spacing:.02em;display:flex;align-items:center;flex-wrap:wrap;text-wrap:balance}
.g-code{display:flex;align-items:center;gap:8px}
.todo{background:var(--warn-soft);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.todo-t{font-weight:700;color:var(--warn)}
.todo .mrow{border-bottom-color:color-mix(in srgb,var(--warn) 25%,transparent)}
.g-sec{display:flex;flex-direction:column;gap:10px}
.g-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.g-sec-head h2{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.3rem;text-transform:uppercase;letter-spacing:.03em}
.g-sub{margin:6px 0 0;font-family:var(--f-display);font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.empty.small{padding:16px 12px;font-size:.9rem}
.memo,.poll{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.memo.pinned{border-color:var(--amber);box-shadow:0 0 0 1px var(--amber),var(--shadow)}
.memo h3,.poll h3{margin:0;font-size:1.05rem;display:flex;align-items:center;gap:6px}
.memo-body{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.memo-link{color:var(--accent);font-weight:600;overflow-wrap:anywhere}
.memo-img{width:100%;max-height:360px;object-fit:cover;border-radius:12px}
.memo-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:8px}
.memo-foot .actions{gap:14px}
.memo-form{gap:12px}
.poll.past{opacity:.7}
.poll-meta{font-size:.88rem;color:var(--muted)}
.votes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.vote{display:flex;flex-direction:column;align-items:center;gap:2px;font:inherit;font-weight:600;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:8px 4px;cursor:pointer}
.vote-n{font-family:var(--f-mono);font-size:1.1rem;font-variant-numeric:tabular-nums}
.vote.v-oui.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.vote.v-peut-etre.on{background:var(--amber);border-color:var(--amber);color:var(--on-accent)}
.vote.v-non.on{background:var(--warn);border-color:var(--warn);color:var(--on-accent)}
.vote:disabled{cursor:default}
.poll-names{font-size:.82rem;color:var(--muted);white-space:pre-line}
.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-width:0}
.kpi-v{font-family:var(--f-display);font-weight:700;font-size:1.5rem;line-height:1.1;font-variant-numeric:tabular-nums}
.kpi-l{font-size:.74rem;color:var(--muted)}
.rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;counter-reset:r}
.rank li{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;counter-increment:r}
.rank-t{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px}
.rank-k{font-weight:700}
.rank-k::before{content:counter(r) ". ";color:var(--amber);font-family:var(--f-mono)}
.rank-m{font-size:.8rem;color:var(--muted)}
.rank-bar{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.rank-bar i{display:block;height:100%;background:var(--amber);border-radius:3px}
.list.tight{gap:0}
.role-sel{font:inherit;font-size:.84rem;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:5px 8px}
.switch{display:flex;align-items:flex-start;gap:12px;cursor:pointer;padding:6px 0}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch-ui{flex-shrink:0;width:44px;height:26px;border-radius:99px;background:var(--line);position:relative;transition:background .15s;margin-top:2px}
.switch-ui::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.switch input:checked+.switch-ui{background:var(--accent)}
.switch input:checked+.switch-ui::after{transform:translateX(18px)}
.switch input:focus-visible+.switch-ui{outline:2px solid var(--amber);outline-offset:2px}
.switch-t{display:flex;flex-direction:column;gap:2px}
.g-edit{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.g-edit .btn{align-self:flex-start}

/* ---- Chat ---- */
.chat-fab{position:fixed;z-index:1100;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(92px + env(safe-area-inset-bottom,0px));
  width:56px;height:56px;border-radius:50%;border:none;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;cursor:pointer;
  box-shadow:0 8px 24px -6px rgba(0,0,0,.45)}
.chat-fab svg{width:26px;height:26px;fill:currentColor}
.chat-badge{position:absolute;top:-2px;right:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:var(--warn);color:#fff;
  font-family:var(--f-mono);font-size:.75rem;display:grid;place-items:center;border:2px solid var(--bg)}
.chat-panel{position:fixed;z-index:2600;right:0;bottom:0;left:0;top:env(safe-area-inset-top,0px);display:flex;flex-direction:column;background:var(--bg);
  padding-bottom:env(safe-area-inset-bottom,0px);animation:up .2s ease-out}
@media (min-width:640px){.chat-panel{left:auto;top:auto;right:20px;bottom:20px;width:400px;height:min(640px,80vh);border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border-bottom:1px solid var(--line);
  padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px))}
.chat-head h2{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.25rem;text-transform:uppercase;letter-spacing:.03em}
.chat-msgs{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:12px max(12px,env(safe-area-inset-right,0px)) 12px max(12px,env(safe-area-inset-left,0px))}
.chat-day{align-self:center;font-size:.72rem;color:var(--muted);background:var(--surface-2);border-radius:99px;padding:2px 10px;margin:8px 0 4px;text-transform:capitalize}
.msg{display:flex;flex-direction:column;align-items:flex-start;max-width:82%}
.msg.mine{align-self:flex-end;align-items:flex-end}
.msg-who{font-size:.74rem;font-weight:600;color:var(--muted);margin:6px 0 2px 10px}
.bubble{background:var(--surface);border:1px solid var(--line);border-radius:18px 18px 18px 6px;padding:7px 12px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:2px 8px;overflow-wrap:anywhere}
.msg.mine .bubble{background:var(--accent);border-color:var(--accent);color:var(--on-accent);border-radius:18px 18px 6px 18px}
.msg-t{white-space:pre-wrap}
.msg-h{font-family:var(--f-mono);font-size:.64rem;opacity:.65;margin-left:auto}
.chat-form{display:flex;gap:8px;padding:10px max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px));background:var(--surface);border-top:1px solid var(--line)}
.chat-form input{flex:1;min-width:0;font:inherit;font-size:1rem;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:10px 16px}
.chat-form .btn{width:46px;padding:0;border-radius:50%;display:grid;place-items:center}
.chat-form .btn svg{width:20px;height:20px;fill:currentColor}
body.chat-open{overflow:hidden}
.chat-groups{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:8px max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));background:var(--surface);border-bottom:1px solid var(--line)}
.chat-scopes{display:flex;gap:6px;padding:8px 12px;background:var(--surface);border-bottom:1px solid var(--line)}
.chat-scope{flex:1;font:inherit;font-size:.86rem;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:7px 12px;cursor:pointer}
.chat-scope.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.chat-groups::-webkit-scrollbar{display:none}
.chat-tab{flex-shrink:0;display:flex;align-items:center;gap:6px;font:inherit;font-size:.86rem;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:6px 12px;cursor:pointer;white-space:nowrap}
.chat-tab.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.chat-tab-n{min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--warn);color:#fff;font-family:var(--f-mono);font-size:.68rem;display:grid;place-items:center}
.msg.mine .msg-who{margin:6px 10px 2px 0}
.msg-who{display:flex;align-items:center;gap:4px}
.msg-who.is-admin{color:var(--amber)}
.msg-who.is-owner{color:var(--accent)}
.msg-ico{font-size:.85rem;line-height:1}
/* ---- Carte de la prise ---- */
.card-sheet{gap:14px}
.card-prev{display:flex;justify-content:center;align-items:center;min-height:200px;background:var(--surface-2);border-radius:16px;padding:10px}
.card-prev img{max-width:100%;max-height:44vh;border-radius:12px;box-shadow:0 10px 28px -8px rgba(0,0,0,.4);display:block}
.card-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.card-styles{display:flex;gap:10px}
.sw{width:38px;height:38px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.sw[aria-pressed="true"]{box-shadow:0 0 0 2px var(--accent)}
.sw-nuit{background:#0f1a17}.sw-lac{background:#123a31}.sw-ivoire{background:#f4efe3}
.card-opts{display:flex;flex-direction:column;background:var(--surface-2);border-radius:14px;padding:4px 12px}
.card-opts .switch input:disabled+.switch-ui{opacity:.4}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.card-actions .btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px}
.card-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.card-hint{text-align:center}
.card-sheet{max-height:94vh}
.card-sheet>*{flex-shrink:0}
.card-prev img{max-height:40vh;width:auto}
.msg-who.is-mod{color:#3f5fbf}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .msg-who.is-mod{color:#8fa6ff}}
:root[data-theme="dark"] .msg-who.is-mod{color:#8fa6ff}
.app-version{font-family:var(--f-mono);font-size:.75rem}
.v-fixed{position:fixed;bottom:max(84px,calc(10px + env(safe-area-inset-bottom,0px)));right:max(12px,env(safe-area-inset-right,0px));z-index:900;font-family:var(--f-mono);font-size:.65rem;color:var(--muted);opacity:.6;pointer-events:none;background:var(--bg);padding:2px 6px;border-radius:6px;box-shadow:0 0 0 1px var(--border)}

/* ---- Réactions et commentaires ---- */
.social{display:flex;flex-direction:column;gap:8px}
.react-bar{display:flex;flex-wrap:wrap;gap:6px}
.react-btn{font:inherit;font-size:.9rem;font-weight:600;display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:4px 12px;border-radius:99px;
  border:1px solid var(--line);background:var(--surface-2);color:var(--fg);cursor:pointer}
.react-btn[aria-pressed="true"]{background:var(--amber-soft);border-color:var(--amber);color:var(--fg)}
.react-btn.com{margin-left:auto;color:var(--muted)}
.react-n{font-family:var(--f-mono);font-size:.8rem}
.react-btn:disabled{opacity:.6}
.cmts{display:flex;flex-direction:column;gap:6px}
.cmt{background:var(--surface-2);border-radius:12px;padding:7px 12px;display:flex;flex-direction:column;gap:2px}
.cmt-t{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:.85rem}
.cmt p{margin:0;overflow-wrap:anywhere}
.cmt .linkbtn{align-self:flex-end;padding:0}
.linkbtn.small{font-size:.8rem;align-self:flex-start}
.cmt-form{display:flex;gap:8px}
.cmt-form input{flex:1;min-width:0;font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:8px 14px}

/* ---- Mentions dans le chat ---- */
.mention{font-weight:700;color:var(--accent)}
.msg.mine .mention{color:inherit;text-decoration:underline}
.bubble.mention-me{border-color:var(--amber);box-shadow:0 0 0 2px var(--amber-soft)}
.mention-sugg{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0;background:var(--surface)}
.mention-sugg .chip{border:1px solid var(--line);font:inherit;font-size:.85rem;padding:5px 12px;cursor:pointer;color:var(--fg)}

/* ---- Classements, défis ---- */
.note.warn{color:var(--warn);font-weight:600}
.rk-list{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:2px 12px}
.rk-l{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.rk-v{font-family:var(--f-mono);font-size:.85rem;white-space:nowrap}
.rk-pos{width:24px;text-align:center;font-family:var(--f-mono)}
.chal{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}
.chal.done{border-color:var(--amber);background:color-mix(in srgb,var(--amber-soft) 45%,var(--surface))}
.chal-h{display:flex;gap:10px;align-items:flex-start}
.chal-ico{font-size:1.6rem;line-height:1}
.chal-t{font-weight:700}
.chal .linkbtn{align-self:flex-start}

/* ---- Carnet ---- */
#carnet .g-sec-head h2{margin:0}
.records{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.record{background:var(--surface-2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}
.record-sp{font-family:var(--f-display);font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.8rem;color:var(--accent)}
.record-v{font-family:var(--f-display);font-weight:700;font-size:2rem;line-height:1;color:var(--amber);font-variant-numeric:tabular-nums}
.record-u{font-size:.8rem;color:var(--muted)}
.record-d{font-size:.72rem;color:var(--muted);margin-top:4px}
.year-nav{display:flex;align-items:center;gap:6px}
.year-nav span{flex:1}
.year-nav .btn{width:36px;padding:0}
.chip.badge-medal{background:var(--amber-soft);color:var(--fg)}

/* ---- Réglementation ---- */
#regl .g-sec-head h2{margin:0}
.regl-reserve{margin:12px 0;padding:12px 14px;border:1px solid var(--warn);border-radius:12px;background:var(--warn-soft)}
.regl-reserve>b{display:block}
.regl-reserve p{margin:6px 0 0}
.regl-sources{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.regl-sources .linkbtn{white-space:normal;text-align:left}
.regl-alert{display:flex;gap:12px;align-items:flex-start;background:var(--accent-soft);border-radius:12px;padding:12px 14px}
.regl-alert.closed{background:var(--warn-soft)}
.regl-alert.pending{background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn) 45%,transparent)}
.chip.pending{background:var(--warn-soft);color:var(--fg);border:1px solid color-mix(in srgb,var(--warn) 45%,transparent)}
.regl-ico{font-size:1.4rem;line-height:1.2}
.regl-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.regl-size{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}
.regl-size .label{font-size:.66rem}

/* ---- Session carpe ---- */
#carp .g-sec-head h2,.carp-head h2{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.3rem;text-transform:uppercase;letter-spacing:.03em}
.carp-start{display:flex;flex-direction:column;gap:12px}
.carp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.live-dot{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.1em;color:var(--warn);display:flex;align-items:center;gap:6px;flex-shrink:0;padding-top:6px}
.live-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--warn);animation:blink 1.6s infinite}
@keyframes blink{50%{opacity:.25}}
.carp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.carp-btn{font:inherit;font-weight:700;font-size:1rem;min-height:68px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:var(--fg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}
.carp-btn:active{transform:scale(.97)}
.carp-e{font-size:1.5rem;line-height:1}
.carp-btn.k-depart{background:var(--amber-soft);border-color:var(--amber)}
.carp-btn.k-prise{background:var(--accent-soft);border-color:var(--accent)}
.carp-prise{display:flex;flex-direction:column;gap:10px;background:var(--surface-2);border-radius:12px;padding:12px}

/* ---- Fiche du poste ---- */
.spot-sheet{max-height:90vh}
.spot-sheet>*{flex-shrink:0}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fact{background:var(--surface-2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;min-width:0}
.fact .label{font-size:.68rem}
.fact-v{font-family:var(--f-display);font-weight:700;font-size:1.25rem;overflow-wrap:anywhere}
.spot-facts{display:flex;flex-direction:column;gap:10px}
.spot-form{display:flex;flex-direction:column;gap:10px}
.spot-details{margin:0;white-space:pre-wrap}
.spot-hist{display:flex;flex-direction:column;gap:10px}
.pop-sheet{font-family:var(--f-mono);font-size:.78rem;margin-top:4px}
.pop-tools{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.pop-tools .btn{min-height:32px;font-size:.8rem;padding:4px 10px}
.bite{display:flex;flex-direction:column;gap:4px}
.bite-bars{display:grid;grid-template-columns:repeat(24,1fr);gap:2px;align-items:end;height:90px;background:var(--surface-2);border-radius:10px;padding:8px}
.bite-bars i{display:block;background:var(--accent-2);border-radius:2px 2px 0 0;min-height:2px}
.bite-bars i.top{background:var(--amber)}
.bite-axis{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:.68rem;color:var(--muted);padding:0 8px}

/* ---- Liste de matos ---- */
.kit{background:var(--surface-2);border-radius:12px;padding:8px 12px}
.kit summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-weight:700;min-height:36px;list-style:none}
.kit summary::-webkit-details-marker{display:none}
.kit-list{display:flex;flex-direction:column}
.kit-item{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);min-height:44px}
.kit-item label{display:flex;align-items:center;gap:10px;flex:1;cursor:pointer}
.kit-item input{width:20px;height:20px;accent-color:var(--accent)}
.kit-item input:checked+span{text-decoration:line-through;color:var(--muted)}
.icon-x{font:inherit;font-size:1.3rem;width:36px;height:36px;border:none;background:none;color:var(--muted);cursor:pointer;border-radius:50%}
.gear-add{display:flex;gap:6px;flex-wrap:wrap}
.gear-add input{font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:8px 12px;min-width:0}
.gear-add input:first-child{flex:0 1 120px}
.gear-add input:nth-of-type(2){flex:1 1 160px}
.chip.pick{border:1px solid var(--line);font:inherit;font-size:.82rem;cursor:pointer;color:var(--accent)}
.regl-l{min-width:0;display:flex;flex-direction:column;gap:4px}
.rk-v.wrap{white-space:pre-line;text-align:right;flex-shrink:0}
.mrow>div:first-child{min-width:0}

/* ---- Alerte du matin ---- */
#alerts .g-sec-head h2{margin:0}
.alert-body{display:flex;flex-direction:column;gap:14px}
.alert-place{font-weight:600;color:var(--fg)}
.alert-spot{font:inherit;font-size:.86rem;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:6px 10px;min-height:34px;max-width:100%}
#alerts input[type=range]{width:100%;accent-color:var(--accent)}

/* ---- Hors ligne ---- */
.queue-pill{position:fixed;left:50%;transform:translateX(-50%);top:calc(64px + env(safe-area-inset-top,0px));z-index:1500;font:inherit;font-size:.82rem;font-weight:700;
  padding:6px 14px;border-radius:99px;border:1px solid var(--amber);background:var(--amber-soft);color:var(--fg);box-shadow:var(--shadow);cursor:pointer}
.queue-pill.off{border-color:var(--warn);background:var(--warn-soft)}
.logo-img{display:block;object-fit:cover;background:none}

/* ---- Fishdex ---- */
#dex .g-sec-head h2{margin:0}
.dex-prog{display:flex;align-items:center;gap:10px}
.dex-count{font-family:var(--f-mono);font-size:.85rem;font-weight:700;white-space:nowrap}
.dex-bar{flex:1;height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden;min-width:40px}
.dex-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--amber));border-radius:4px}
.dex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}
.dex-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px 10px;border-radius:14px;
  background:var(--surface-2);border:1px solid var(--line);color:var(--line);text-align:center;min-width:0}
.dex-card.got{background:var(--surface);color:var(--fg);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.dex-card.rare{border-color:var(--amber);box-shadow:0 0 0 1px var(--amber) inset}
.dex-n{align-self:flex-start;font-family:var(--f-mono);font-size:.66rem;color:var(--muted)}
.dex-art{width:100%;height:44px;display:grid;place-items:center}
.dex-art svg{width:84px;height:42px;overflow:visible}
.dex-card:not(.got) .dex-art{color:color-mix(in srgb,var(--muted) 45%,var(--surface-2))}
.dex-name{font-family:var(--f-display);font-weight:700;font-size:.92rem;text-transform:uppercase;letter-spacing:.03em;line-height:1.1;color:var(--muted)}
.dex-card.got .dex-name{color:var(--fg)}
.dex-rare{font-size:.7rem;color:var(--amber);letter-spacing:.05em}
.dex-card:not(.got) .dex-rare{color:var(--muted);opacity:.6}
.dex-meta{font-family:var(--f-mono);font-size:.7rem;color:var(--muted)}
.dex-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:2px 12px}
.dex-row{display:flex;align-items:center;gap:10px;min-height:48px;font:inherit;color:var(--fg);background:none;border:none;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;padding:6px 0}
.dex-row:last-child{border-bottom:none}
.dex-row.group{font-weight:700}
.dex-who{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto;max-width:55%}
.dex-sheet{max-height:90vh}
.dex-sheet>*{flex-shrink:0}

/* ---- Photos et vocaux dans le chat ---- */
.chat-ico{flex-shrink:0;width:42px;height:46px;display:grid;place-items:center;border:none;background:none;color:var(--muted);cursor:pointer;border-radius:50%;padding:0}
.chat-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.chat-ico:disabled{opacity:.4}
.chat-form{gap:4px}
.chat-rec{display:flex;align-items:center;gap:10px;padding:12px max(14px,env(safe-area-inset-right,0px)) 12px max(14px,env(safe-area-inset-left,0px));background:var(--surface);border-top:1px solid var(--line)}
.chat-rec[hidden]{display:none}
.chat-rec .note{flex:1}
.rec-dot{width:12px;height:12px;border-radius:50%;background:#d93a2b;animation:blink 1s infinite}
.rec-t{font-family:var(--f-mono);font-weight:700;min-width:3.2em}
.bubble.has-photo{padding:4px;flex-direction:column;align-items:stretch}
.bubble.has-photo .msg-t{padding:2px 8px 0}
.bubble.has-photo .msg-h{padding:0 8px 4px}
.msg-photo{display:block;border-radius:14px;overflow:hidden;max-width:240px}
.msg-photo img{display:block;width:100%;max-height:320px;object-fit:cover}
.voice{display:flex;align-items:center;gap:8px;min-width:190px}
.voice-play{width:36px;height:36px;border-radius:50%;border:none;background:var(--accent);color:var(--on-accent);font:inherit;font-size:.85rem;cursor:pointer;flex-shrink:0}
.msg.mine .voice-play{background:var(--on-accent);color:var(--accent)}
.voice-bar{flex:1;height:4px;border-radius:2px;background:color-mix(in srgb,currentColor 25%,transparent);overflow:hidden}
.voice-bar i{display:block;height:100%;width:0;background:currentColor}
.voice-t{font-family:var(--f-mono);font-size:.75rem;opacity:.8}
.chat-form[hidden]{display:none}
.regl-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 12px}
.regl-item{border-bottom:1px solid var(--line)}
.regl-item:last-child{border-bottom:none}
.regl-item summary{display:flex;align-items:center;gap:10px;min-height:52px;cursor:pointer;list-style:none}
.regl-item summary::-webkit-details-marker{display:none}
.regl-item .regl-top{flex:1;min-width:0}
.regl-chev{font-size:1.3rem;color:var(--muted);transition:transform .15s;width:16px;text-align:center}
.regl-item[open] .regl-chev{transform:rotate(90deg)}
.regl-lines{margin:0 0 12px;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:.9rem;color:var(--muted)}

/* ---- Trophées ---- */
.troph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.troph{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px dashed var(--line);opacity:.65}
.troph.got{opacity:1;border:1px solid var(--amber);background:color-mix(in srgb,var(--amber-soft) 55%,var(--surface))}
.troph-e{font-size:1.6rem;line-height:1.2}
.troph-n{font-weight:700;font-size:.92rem}
.troph-d{font-size:.76rem;color:var(--muted)}
.dex-tr{font-size:.78rem;color:var(--muted);white-space:nowrap}
.reco{display:flex;flex-direction:column;gap:6px;background:var(--surface-2);border-radius:12px;padding:10px 12px}
.reco[hidden]{display:none}
.reco .btn{align-self:flex-start}

/* ---- Sorties planifiées ---- */
.outing{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}
.out-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.out-date{display:flex;flex-direction:column;font-family:var(--f-mono);font-size:.8rem;color:var(--muted);text-transform:capitalize}
.out-rel{font-family:var(--f-display);font-weight:700;font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;color:var(--amber)}
.out-title{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.35rem;text-transform:uppercase;letter-spacing:.02em}
.out-notes{margin:0;white-space:pre-wrap}
.out-list{margin:0;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:2px;font-size:.92rem}
.out-opts{display:flex;flex-direction:column;gap:10px;background:var(--surface-2);border-radius:12px;padding:12px}
.outing .linkbtn{align-self:flex-start}

/* ---- Outils de carte ---- */
.map-tools{display:flex;flex-direction:column;gap:8px}
.map-tools[hidden]{display:none}
.map-row{display:flex;flex-wrap:wrap;gap:8px}
.map-row select{font:inherit;font-size:.88rem;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:6px 10px;min-height:36px;flex:1;min-width:130px}
.map-tools .btn.on{background:var(--amber-soft);border-color:var(--amber)}
.map-tools .btn.live{background:var(--warn-soft);border-color:var(--warn);color:var(--warn)}
.live-pin{width:34px;height:34px;border-radius:50%;background:#2c5f8f;border:3px solid #fff;box-shadow:0 0 0 0 rgba(44,95,143,.6);display:grid;place-items:center;animation:livepulse 2s infinite}
.live-pin.me{background:#d93a2b;box-shadow:0 0 0 0 rgba(217,58,43,.6)}
.live-pin span{color:#fff;font-weight:700;font-family:var(--f-display);font-size:1rem}
@keyframes livepulse{70%{box-shadow:0 0 0 14px rgba(0,0,0,0)}100%{box-shadow:0 0 0 0 rgba(0,0,0,0)}}

/* ---- Fiche espèce ---- */
button.dex-card{font:inherit;cursor:pointer}
.sp-back{z-index:2700}
.sp-sheet{max-height:92vh}
.sp-sheet>*{flex-shrink:0}
.sp-hero{display:flex;align-items:center;gap:14px}
.sp-art{width:120px;flex-shrink:0;color:var(--muted)}
.sp-art svg{width:120px;height:60px;overflow:visible}
.sp-hero h2{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.6rem;text-transform:uppercase;letter-spacing:.03em}
.sp-latin{font-style:italic;color:var(--muted);font-size:.9rem}
.sp-status{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-size:.9rem}
.sp-status.got{background:var(--accent-soft)}
.sp-fact{display:flex;gap:10px;align-items:baseline}
.sp-p{margin:0}
.sp-cal{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;align-items:end;height:80px}
.sp-m{display:flex;flex-direction:column;align-items:center;gap:3px;justify-content:flex-end;height:100%}
.sp-m i{display:block;width:100%;border-radius:4px 4px 0 0;background:var(--line)}
.sp-m i.l1{background:color-mix(in srgb,var(--accent) 40%,var(--line))}
.sp-m i.l2{background:var(--accent-2)}
.sp-m i.l3{background:var(--amber)}
.sp-m span{font-family:var(--f-mono);font-size:.66rem;color:var(--muted)}
.sp-m.now span{color:var(--fg);font-weight:700;text-decoration:underline}
.sp-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.sp-tip{background:var(--amber-soft);border-radius:12px;padding:10px 12px;font-size:.92rem}

/* ---- Profil public ---- */
.post-user[data-user]{cursor:pointer}
.post-user[data-user]:hover{text-decoration:underline}
.avatar.has-img{background:none!important;overflow:hidden;padding:0}
.avatar.has-img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.avatar.big{width:76px;height:76px;font-size:2rem;flex-shrink:0;display:grid;place-items:center;border-radius:50%;color:#fff;font-family:var(--f-display);font-weight:700}
.pf-back{z-index:2650}
.pf-sheet{max-height:92vh}
.pf-sheet>*{flex-shrink:0}
.pf-top,.pf-edit-top{display:flex;align-items:center;gap:14px}
.pf-id h2{margin:0;font-size:1.3rem}
.pf-bio{margin:0;font-size:1rem;white-space:pre-wrap}
.pf-more{background:var(--surface-2);border-radius:12px;padding:8px 12px}
.pf-more summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700;min-height:36px;list-style:none}
.pf-more summary::-webkit-details-marker{display:none}
.pf-more[open]{display:flex;flex-direction:column;gap:10px}
.pf-edit-btns{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#pub-profile .g-sec-head h2{margin:0}

/* =====================================================================
   Refonte v24 : sous-onglets, tuiles de partage, cartes plus aérées
   ===================================================================== */
/* Sous-onglets collants sous l'en-tête */
.subbar{position:sticky;top:calc(56px + env(safe-area-inset-top,0px));z-index:900;display:flex;gap:4px;padding:4px;margin:0 -4px;
  background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow-x:auto;scrollbar-width:none}
.subbar::-webkit-scrollbar{display:none}
.subbar[hidden]{display:none}
.subbar button{flex:1 0 auto;font:inherit;font-size:.86rem;font-weight:700;min-height:40px;padding:6px 12px;border:none;border-radius:12px;background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap}
.subbar button[aria-selected="true"]{background:var(--accent);color:var(--on-accent)}
.has-sub[data-s="moi"] [data-sub]:not([data-sub="moi"]),
.has-sub[data-s="collection"] [data-sub]:not([data-sub="collection"]),
.has-sub[data-s="matos"] [data-sub]:not([data-sub="matos"]),
.has-sub[data-s="reglages"] [data-sub]:not([data-sub="reglages"]),
.has-sub[data-s="moderation"] [data-sub]:not([data-sub="moderation"]),
.has-sub[data-s="activite"] > [data-sub]:not([data-sub="activite"]),
.has-sub[data-s="infos"] > [data-sub]:not([data-sub="infos"]),
.has-sub[data-s="membres"] > [data-sub]:not([data-sub="membres"]),
.has-sub[data-s="env"] > [data-sub]:not([data-sub="env"]){display:none!important}
#groupe-root{display:flex;flex-direction:column;gap:20px}
#groupe-root > .g-extras{display:flex;flex-direction:column;gap:20px}

/* Carte « Moi » */
.me-card{background:linear-gradient(135deg,var(--hero-1),var(--hero-2));color:var(--hero-fg);border:none}
.me-card .note{color:color-mix(in srgb,var(--hero-fg) 80%,transparent)}
.me-top{display:flex;align-items:center;gap:14px}
.me-top h2{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.me-card .avatar.big{box-shadow:0 0 0 3px color-mix(in srgb,var(--hero-fg) 70%,transparent)}

/* Tuiles « Partager » du fil */
.share-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.share-tiles[hidden]{display:none}
.share-tiles button{font:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 10px;min-height:92px;text-align:left;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);color:var(--fg);cursor:pointer;transition:transform .1s}
.share-tiles button:active{transform:scale(.97)}
.share-tiles button[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent);background:var(--accent-soft)}
.st-ico{font-size:1.5rem;line-height:1.1}
.st-t{font-family:var(--f-display);font-weight:700;font-size:1.02rem;text-transform:uppercase;letter-spacing:.03em}
.st-s{font-size:.72rem;color:var(--muted);line-height:1.25}

/* Fil : actions secondaires plus discrètes */
.post-foot .linkbtn.danger{color:var(--muted);font-weight:500;font-size:.8rem}
.post{overflow:hidden}

/* Titres de section un peu plus compacts */
.g-sec-head h2,.panel h2{font-size:1.18rem}
.g-head h1{font-size:clamp(1.5rem,7vw,2rem)}
.subbar button{flex:1 1 0;min-width:0;padding:6px 6px;font-size:.8rem;overflow:hidden;text-overflow:ellipsis}

/* Bulle de chat : en haut à gauche par défaut, déplaçable */
.chat-fab{left:max(12px,env(safe-area-inset-left,0px));right:auto;top:calc(118px + env(safe-area-inset-top,0px));bottom:auto;width:52px;height:52px;touch-action:none;
  transition:left .2s ease,top .2s ease}
.chat-fab.dragging{transition:none;transform:scale(1.08);box-shadow:0 14px 30px -6px rgba(0,0,0,.5)}
/* Contrôleur de l'appli : violet ⚖️ */
.badge.controller{background:#6b4fbf;color:#fff}
.msg-who.is-ctl{color:#6b4fbf}
@media (prefers-color-scheme: dark){ .msg-who.is-ctl{color:#b9a4ff} }

/* ---- Solunaire, comparateur, bilans ---- */
.cell.wide{grid-column:1/-1}
.cmp-btn{grid-column:1/-1;justify-self:start}
.strip div.sol-maj{box-shadow:0 -3px 0 0 #8a6fd6}
.strip div.sol-min{box-shadow:0 -2px 0 0 color-mix(in srgb,#8a6fd6 55%,transparent)}
.exp{font-size:.85rem;background:var(--accent-soft);color:var(--fg);border-radius:10px;padding:6px 10px}
.cmp-sheet{max-height:92vh}
.cmp-sheet>*{flex-shrink:0}
.cmp-wrap{overflow-x:auto;margin:0 -4px}
.cmp{border-collapse:separate;border-spacing:3px;width:100%;font-size:.82rem}
.cmp th{font-weight:600;text-align:left;white-space:nowrap;padding:2px 4px;color:var(--muted)}
.cmp thead th{text-align:center;text-transform:capitalize;display:table-cell}
.cmp thead th span,.cmp thead th small{display:block}
.cmp thead th.best{color:var(--amber)}
.cmp td{text-align:center;font-family:var(--f-mono);border-radius:8px;padding:8px 2px;min-width:34px;cursor:pointer;
  background:color-mix(in srgb,var(--accent) calc(var(--v,0)*85%),var(--surface-2));color:var(--fg)}
.cmp td.top{outline:2px solid var(--amber);font-weight:700}
.cmp td.closed{background:var(--surface-2);color:var(--muted)}
.cmp-meteo td{background:none;cursor:default}
.cmp-info{font-weight:600;margin:0}
.carnet-act{display:flex;align-items:center;gap:8px;flex-shrink:0}
.carnet-act .linkbtn{padding:4px}
#carnet .g-sec-head{align-items:center}

/* ---- Recherche, visite guidée ---- */
.feed-search{display:flex;flex-direction:column;gap:4px}
.feed-search[hidden]{display:none}
.feed-search input{font:inherit;font-size:1rem;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:11px 14px;box-shadow:var(--shadow)}
.tour-back{position:fixed;inset:0;z-index:3000;background:rgba(6,14,12,.62);display:flex;align-items:flex-end;justify-content:center;padding:16px;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.tour{width:100%;max-width:440px;background:var(--surface);border-radius:22px;padding:22px 20px;display:flex;flex-direction:column;gap:10px;box-shadow:0 20px 50px -10px rgba(0,0,0,.5);animation:up .25s ease-out}
.tour-ico{font-size:2.6rem;line-height:1}
.tour h2{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.5rem;text-transform:uppercase;letter-spacing:.03em}
.tour p{margin:0;color:var(--muted)}
.tour-dots{display:flex;gap:6px}
.tour-dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}
.tour-dots i.on{background:var(--accent);width:22px;border-radius:4px}
.tour-act{display:flex;justify-content:space-between;gap:8px;margin-top:6px}

/* ---- Onglet Modération ---- */
nav.tabs a[hidden]{display:none}
nav.tabs a{position:relative}
.tab-badge{position:absolute;top:2px;right:calc(50% - 22px);min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--warn);color:#fff;font-family:var(--f-mono);font-size:.66rem;display:grid;place-items:center;letter-spacing:0}
.tab-badge[hidden]{display:none}
.todo-link{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;font:inherit;font-weight:700;cursor:pointer;text-align:left;border:none}
.todo-go{color:var(--warn);white-space:nowrap}
.modo-head h1{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.8rem;text-transform:uppercase}
.modo-item{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px}
.modo-item .actions{justify-content:flex-end}
.modo-meta{font-size:.8rem;color:var(--muted)}
.modo-ex{margin:0;padding:8px 10px;background:var(--surface-2);border-radius:10px;font-size:.92rem;overflow-wrap:anywhere}
.modo-count{font-family:var(--f-mono);font-size:.8rem;background:var(--warn-soft);color:var(--warn);border-radius:99px;padding:2px 9px}
.modo-count.zero{background:var(--surface-2);color:var(--muted)}
/* État du schéma de sanctions, affiché en haut de la console. */
.mod-health{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:.88rem}
.mod-health b{font-family:var(--f-display);font-size:.95rem;letter-spacing:.03em}
.mod-health span{color:var(--muted);flex:1 1 240px}
.mod-health.ok{border-color:var(--accent);background:var(--accent-soft)}
.mod-health.ok b{color:var(--accent)}
.mod-health.warn{border-color:var(--amber);background:var(--amber-soft)}
.mod-health.warn b{color:var(--amber)}
.sanction-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sanction-head .badge{margin-left:0}
.modo-ctx{display:flex;flex-direction:column;gap:3px;padding:8px 10px;border-left:3px solid var(--amber);border-radius:8px;background:var(--surface-2);font-size:.92rem;overflow-wrap:anywhere}
.modo-ctx>b{font-size:.76rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
/* ---- Recours contre une sanction (profil et console) ---- */
.appeal-form,.appeal-reply-form{display:flex;flex-direction:column;gap:10px}
.appeal-form label.field,.appeal-reply-form label.field{margin:0}
.appeal-form textarea,.appeal-reply-form textarea{font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;resize:vertical;min-height:84px;width:100%}
.appeal-reply-form{border-top:1px solid var(--line);padding-top:10px}
.appeal-reply{background:var(--accent-soft);border-left:3px solid var(--accent);border-radius:8px;padding:8px 10px;overflow-wrap:anywhere}
.appeal-reply b{font-family:var(--f-display);font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.appeal-reply p{margin:4px 0 0}
.badge.accepted{background:var(--accent)}
.badge.rejected{background:var(--warn)}
.timeout-banner .timeout-appeal{align-self:flex-start;color:inherit;font-weight:700;text-decoration:underline;padding:2px 0}
#sanction-panel{display:flex;flex-direction:column;gap:12px}
/* ---- Console de modération (Profil > Modération) ---- */
#moderation-content{display:flex;flex-direction:column;gap:22px}
.mod-card{display:flex;flex-direction:column;gap:10px}
.mod-card-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mod-card-head h3{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.2rem}
.mod-row{width:100%;font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;text-align:left;cursor:pointer}
.mod-row.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.mod-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:8px}
.mod-stat{background:var(--surface-2);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column}
.mod-stat b{font-family:var(--f-display);font-size:1.3rem;line-height:1}
.mod-stat span{font-size:.76rem;color:var(--muted)}
.mod-filters{display:grid;grid-template-columns:minmax(120px,.6fr) 1fr;gap:10px;align-items:end}
.mod-filters .field,.mod-form .field{margin:0;flex:1;min-width:140px}
.mod-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.timeout-banner{position:relative;z-index:900;background:var(--warn-soft);color:var(--warn);border-bottom:1px solid color-mix(in srgb,var(--warn) 30%,transparent);padding:10px 14px;display:flex;flex-direction:column;gap:2px;font-size:.9rem}
.timeout-banner b{font-family:var(--f-display);text-transform:uppercase;letter-spacing:.04em}
@media(max-width:560px){.mod-filters{grid-template-columns:1fr}}
.btn.danger-btn{color:var(--warn);border-color:var(--warn)}
.modo-img{width:100%;max-height:260px;object-fit:cover;border-radius:10px}
.report-form{display:flex;flex-direction:column;gap:10px}
.report-form input{font:inherit;color:var(--fg);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.rep-btn{color:var(--muted)!important;font-weight:500}
/* Boîte à leurres */
.lure-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.lure{background:var(--surface-2);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px;position:relative}
.lure.top{outline:2px solid var(--amber)}
.lure-ph{aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--surface);display:grid;place-items:center;font-size:2rem}
.lure-ph img{width:100%;height:100%;object-fit:cover}
.lure-t{display:flex;flex-direction:column}
.lure-st{display:flex;align-items:baseline;gap:4px}
.lure-n{font-family:var(--f-display);font-weight:700;font-size:1.6rem;color:var(--amber)}
.lure-notes{margin:0;font-size:.82rem;color:var(--muted)}
.lure .actions{gap:10px}
.lure-form{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;background:var(--surface-2);border-radius:14px;padding:12px}
#lures .g-sec-head h2{margin:0}
/* Compétitions */
.comp{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}
.comp.live{border-color:var(--warn);box-shadow:0 0 0 1px var(--warn)}
.comp-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.comp-state{font-family:var(--f-mono);font-size:.74rem;letter-spacing:.06em;color:var(--muted)}
.comp.live .comp-state{color:var(--warn);font-weight:700}
.comp-title{margin:0;font-family:var(--f-display);font-weight:700;font-size:1.3rem;text-transform:uppercase}
.comp-win{display:flex;align-items:center;gap:12px;background:var(--amber-soft);border-radius:12px;padding:10px 12px}
.comp-cup{font-size:2rem}
.mrow.me{background:var(--accent-soft);margin:0 -12px;padding-left:12px;padding-right:12px}
/* Rappel d'amorçage */
.bait-rem{display:flex;flex-direction:column;gap:8px;background:var(--surface-2);border-radius:12px;padding:12px}
.bait-rem.due{background:var(--amber-soft);outline:2px solid var(--amber);animation:blink 1.6s infinite}
.bait-t{display:flex;flex-direction:column;gap:2px}
.bait-rem select{font:inherit;font-size:.86rem;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:5px 8px;min-height:34px}

/* ---------- Lot 6 : calques de carte, trace GPS, fond ---------- */
.map-layers{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.map-layers[hidden],.fond-panel[hidden]{display:none}
.map-layers .seg{display:flex;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:4px}
.map-layers .seg button{flex:1;font:inherit;font-size:.85rem;font-weight:700;min-height:38px;border:none;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}
.map-layers .seg button[aria-pressed="true"]{background:var(--accent);color:var(--on-accent)}
.map-row{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.map-row::-webkit-scrollbar{display:none}
.map-row .btn{flex:0 0 auto;white-space:nowrap}
.map-row .btn.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.map-row .btn.live{background:#d93a2b;color:#fff;border-color:#d93a2b}
.track-live{display:flex;align-items:center;justify-content:space-between;gap:8px;background:color-mix(in srgb,#d93a2b 14%,var(--surface));border:1px solid #d93a2b;border-radius:14px;padding:8px 10px;font-weight:600;font-size:.9rem}
.track-live span{color:#d93a2b}
.tracks{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px 10px}
.tracks summary{cursor:pointer;font-weight:700;padding:4px 0}
.tr-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.tr-row .actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.poi-pin{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font:700 11px/1 system-ui,sans-serif;color:#fff;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.poi-pin.park{background:#2c5f8f}
.poi-pin.wc{background:#7a4fbf;font-size:9px}
.bite-pin{font-size:20px;line-height:26px;text-align:center;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.depth-pin{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:700 11px/1 "JetBrains Mono",monospace;color:#0b2540;background:#fff;border:4px solid var(--b,#fff);box-shadow:0 1px 4px rgba(0,0,0,.45)}
.depth-legend{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--muted)}
.depth-legend i{flex:1;height:10px;border-radius:6px;background:linear-gradient(90deg,rgb(178,235,242),rgb(8,48,107))}
.fond-panel .chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.fond-panel .chip{display:inline-flex;align-items:center;gap:5px;font-size:.78rem;padding:3px 8px;border-radius:999px;background:var(--bg);border:1px solid var(--line)}
.bdot{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.25)}
.depth-form{display:flex;flex-direction:column;gap:6px;min-width:190px}
.depth-form input,.depth-form select{font:inherit;padding:6px 8px;border-radius:8px;border:1px solid #ccc}
#map-bar.dim{display:none}
.map-layers.fond .map-row,.map-layers.fond .tracks,.map-layers.fond > .note{display:none}
#permit-panel a{color:var(--accent);font-weight:600}
.permit-scan{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.permit-scan h3{margin:0;font-size:1rem}
.permit-thumbs{display:flex;gap:8px;overflow-x:auto}
.permit-thumbs img{height:110px;border-radius:10px;border:1px solid var(--line);cursor:zoom-in}
#permit-quick{margin-bottom:10px}
#permit-quick[hidden]{display:none}
.permit-btn{width:100%;background:#13221d;color:#fff;border-color:#13221d;min-height:48px;font-weight:700}
.permit-view{position:fixed;inset:0;z-index:6000;background:#fff;color:#111;display:flex;flex-direction:column;padding:calc(10px + env(safe-area-inset-top,0px)) 10px calc(10px + env(safe-area-inset-bottom,0px));gap:8px;overflow:auto}
.pv-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:1.05rem}
.pv-head .btn{background:#eee;color:#111;border-color:#ccc}
.pv-valid{background:#1f7a4a;color:#fff;font-weight:700;text-align:center;padding:10px;border-radius:12px;font-size:1.05rem}
.pv-valid.bad{background:#b3261e}
.pv-imgs{display:flex;flex-direction:column;gap:10px;touch-action:pinch-zoom}
.pv-imgs img{width:100%;height:auto;border-radius:8px;border:1px solid #ddd}
.pv-tip{text-align:center;color:#555;font-size:.85rem;margin:0}
.map-below{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.map-below[hidden]{display:none}
.map-layers .seg button{min-height:34px;font-size:.82rem}
.map-layers{gap:6px}
/* la bulle du chat (en haut à gauche par défaut) ne doit pas cacher « Spot à ma position » */
#map-bar{padding-left:64px}
.ruler-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:color-mix(in srgb,var(--amber) 16%,var(--surface));border:1px solid var(--amber);border-radius:14px;padding:8px 10px;font-size:.92rem}
.ruler-bar .actions{display:flex;gap:6px;align-items:center}
.ruler-pt{width:14px;height:14px;border-radius:50%;background:#e7a650;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.5);position:relative}
.ruler-pt span{position:absolute;left:16px;top:-6px;white-space:nowrap;font:700 11px/1 "JetBrains Mono",monospace;background:rgba(19,34,29,.85);color:#fff;padding:3px 5px;border-radius:6px}

/* ---------- Lot 7 : stations, vent, zones, bilan de trace, stock ---------- */
.hero-src{grid-column:1/-1;font-size:.8rem;color:var(--muted);margin-top:6px;line-height:1.35}
.flood-warn{background:color-mix(in srgb,#b3261e 14%,var(--surface));border-color:#b3261e}
.flood-warn .k{color:#b3261e}
.wind-arrow{width:44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.wind-arrow svg{width:24px;height:24px;fill:var(--c);stroke:#fff;stroke-width:1.2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.wind-arrow b{font:700 10px/1 "JetBrains Mono",monospace;color:#fff;background:var(--c);padding:1px 4px;border-radius:6px;margin-top:-2px}
.wind-arrow i{font-style:normal;opacity:.85;margin-left:2px}
.wind-bar,.zone-bar{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px 10px}
.wind-bar input[type=range]{width:100%;accent-color:var(--accent)}
.wind-bar .note,.zone-bar .note{margin:0;font-size:.78rem}
.zone-bar .actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.zone-bar select{font:inherit;padding:6px 8px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--fg)}
.zone-leg{display:flex;flex-wrap:wrap;gap:5px}
.zone-leg .chip{font-size:.74rem;padding:2px 8px;border-radius:999px;border:2px solid;background:var(--bg)}
.zone-pin{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:#fff;border:3px solid var(--c);box-shadow:0 1px 4px rgba(0,0,0,.4)}
.b-draft{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--accent-soft);border-radius:12px;padding:8px 10px;font-weight:600;font-size:.88rem;margin-bottom:8px}
.sess-trace{font-size:.85rem;color:var(--muted);margin:4px 0}
.stock-list{display:flex;flex-direction:column}
.stock-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.stock-row.low .stock-v{color:#b3261e;border-color:#b3261e}
.stock-l{flex:1;display:flex;flex-direction:column;min-width:0}
.stock-thr{font-size:.78rem;text-align:left;padding:0}
.stock-q{display:flex;align-items:center;gap:4px}
.stock-v{font:700 .9rem "JetBrains Mono",monospace;min-width:76px;padding:6px 4px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--fg);cursor:pointer}
.stock-add{display:grid;grid-template-columns:1fr 70px 90px;gap:6px;margin-top:10px}
.stock-add input:first-child{grid-column:1/-1}
.stock-add input,.stock-add select{font:inherit;padding:8px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--fg);min-width:0}
.stock-add button{grid-column:1/-1}
.stock-warn{background:color-mix(in srgb,var(--amber) 18%,var(--surface));border:1px solid var(--amber);border-radius:12px;padding:8px 10px;margin-bottom:10px;font-size:.88rem}
.stock-warn.soft{background:transparent;border-style:dashed;padding:4px 10px}
.stock-usage{display:flex;flex-direction:column;gap:8px}
.stock-urow{display:flex;justify-content:space-between;align-items:center;gap:8px}
.stock-urow input{width:90px;font:inherit;padding:6px 8px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--fg)}
.aappma{display:flex;flex-direction:column;gap:6px}
.aappma h3{margin:0;font-size:1rem}
.aappma .actions{display:flex;flex-wrap:wrap;gap:6px}
.aappma .note{margin:0}
.aappma a.btn{text-decoration:none}
.aappma a:not(.btn){color:var(--accent);font-weight:600}
.aappma .actions .btn{min-height:38px;display:inline-flex;align-items:center}

/* ---------- Lot 8 : Je pars pêcher, potes proches, dictée ---------- */
.gofish-slot{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.gofish-slot[hidden]{display:none}
.gofish-btn{width:100%;min-height:52px;font-size:1.05rem;font-weight:800;letter-spacing:.02em}
.gofish-me{display:flex;align-items:center;justify-content:space-between;gap:8px;background:color-mix(in srgb,var(--accent) 16%,var(--surface));border:1px solid var(--accent);border-radius:14px;padding:10px 12px;font-weight:700}
.gofish-others{display:flex;flex-direction:column;gap:6px}
.gofish-o{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--amber);border-radius:14px;padding:8px 10px}
.gofish-o .note{margin:2px 0 0}
.gofish-o .actions,.gofish-me .actions{display:flex;gap:6px;flex-wrap:wrap}
.gofish-o a.btn{text-decoration:none;display:inline-flex;align-items:center}
.gofish-form{display:flex;flex-direction:column;gap:8px}
.gofish-form select,.gofish-form input[type=text],.gofish-form input:not([type]){font:inherit;padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--fg)}
.gofish-check{display:flex;flex-direction:column;gap:2px;margin-top:12px}
.gofish-check h3{margin:0 0 4px;font-size:1rem}
.ck-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--line);font-size:.9rem}
.ck-row .ck-t{flex:1}
.ck-row.ok .ck-t{color:var(--accent)}
.ck-row.warn .ck-t{color:#b5651d}
.ck-row.bad .ck-t{color:#b3261e;font-weight:700}
.ck-row.soft .ck-t{color:var(--muted)}
.gofish-go{width:100%;min-height:50px;margin-top:12px;font-size:1.05rem}
.fish-pin{display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.fish-pin span{width:30px;height:30px;border-radius:50%;background:var(--amber,#e7a650);display:grid;place-items:center;font-size:16px;border:2px solid #fff}
.fish-pin b{font:700 10px/1 system-ui,sans-serif;background:#13221d;color:#fff;padding:2px 5px;border-radius:6px;margin-top:2px;white-space:nowrap}
.voice-box{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.voice-btn{width:100%;min-height:48px;font-weight:700}
.voice-btn.rec{background:#b3261e;color:#fff;border-color:#b3261e;animation:vpulse 1.2s infinite}
@keyframes vpulse{50%{opacity:.75}}
.voice-res{background:var(--accent-soft);border-radius:12px;padding:8px 10px;font-size:.9rem;display:flex;flex-direction:column;gap:4px}
.voice-res[hidden]{display:none}

/* ---------- Bascule vue admin / vue membre ---------- */
.view-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;font:inherit;font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  padding:6px 9px;border-radius:999px;border:1.5px solid #b8691c;background:color-mix(in srgb,#b8691c 14%,transparent);color:#b8691c;cursor:pointer;min-height:34px}
.view-toggle[hidden]{display:none}
.view-toggle.on{border-color:#2c5f8f;background:color-mix(in srgb,#2c5f8f 14%,transparent);color:#2c5f8f}
.view-toggle .vt-eye{font-size:.95rem}
.view-toggle + .grp-switch{margin-left:0}
@media (max-width:480px){ .view-toggle{padding:6px;width:36px;justify-content:center} .view-toggle .vt-t{display:none} }

/* =================== Refonte 2 =================== */
/* En-tête compact : logo + groupe en grand */
.app-head h1{display:none}
@media (min-width:760px){ .app-head h1{display:block} }
.app-head .logo-img{width:38px;height:38px;border-radius:11px}
.grp-switch{flex:1 1 auto;max-width:none;justify-content:space-between;font-family:var(--f-display);font-size:1.25rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em;padding:6px 12px}
.grp-switch .gs-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.view-toggle{margin-left:0;order:3}
.app-head-in{justify-content:flex-start}

/* Écran « Aujourd'hui » */
.today{display:flex;flex-direction:column;gap:14px;margin-bottom:14px}
.today-sec:empty{display:none}
.has-today:not(.detail-open) .conds,.has-today:not(.detail-open) .species{display:none}
.day-card{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:100%;cursor:pointer;padding:18px;border-radius:22px;
  background:linear-gradient(150deg,var(--hero-1),var(--hero-2));color:var(--hero-fg);box-shadow:var(--shadow);position:relative;overflow:hidden}
.day-card::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.07)}
.dc-top{display:flex;align-items:flex-end;gap:14px}
.dc-num{font-family:var(--f-display);font-weight:700;font-size:4rem;line-height:.8}
.dc-u{font-family:var(--f-display);font-size:1.4rem;margin-left:2px}
.dc-side{display:flex;flex-direction:column;gap:2px;font-size:.88rem}
.dc-k{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;opacity:.8}
.dc-v2{opacity:.85}
.dc-best{background:rgba(255,255,255,.12);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.dc-bk{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;opacity:.8}
.dc-brow{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.dc-bn{font-family:var(--f-display);font-weight:700;font-size:2rem;text-transform:uppercase;line-height:1}
.dc-bp{font-family:var(--f-display);font-weight:700;font-size:1.9rem;color:#ffd27a}
.dc-bh{font-weight:600}
.dc-others{display:flex;flex-wrap:wrap;gap:6px}
.dc-others span{font-size:.8rem;background:rgba(255,255,255,.1);border-radius:999px;padding:3px 10px}
.dc-place{font-size:.78rem;opacity:.8}
.today-toggle{align-self:center;margin-top:6px}
.today-h{display:flex;justify-content:space-between;align-items:baseline;margin:0 2px 8px}
.today-h h2{margin:0;font-family:var(--f-display);font-size:1.25rem;text-transform:uppercase;letter-spacing:.03em}
.catch-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:none}
.catch-strip::-webkit-scrollbar{display:none}
.catch-c{all:unset;box-sizing:border-box;flex:0 0 42%;scroll-snap-align:start;display:flex;flex-direction:column;gap:4px;cursor:pointer;background:var(--surface);border-radius:16px;padding:6px 6px 10px;box-shadow:var(--shadow);font-size:.88rem}
.catch-c b,.catch-c .note{padding:0 4px;margin:0}
.catch-img{aspect-ratio:1;border-radius:12px;background:var(--accent-soft) center/cover;display:grid;place-items:center;font-size:2rem}
.out-card{all:unset;box-sizing:border-box;width:100%;display:flex;gap:12px;align-items:center;cursor:pointer;background:var(--surface);border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.out-card.empty{cursor:default;justify-content:space-between;color:var(--muted)}
.out-cal{flex:0 0 52px;height:56px;border-radius:12px;background:var(--amber-soft);color:var(--amber);display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--f-display);text-transform:uppercase}
.out-cal b{font-size:1.6rem;line-height:1}
.out-t{display:flex;flex-direction:column;gap:2px}
.out-t .note{margin:0}

/* Carte presque plein écran, calques dans un panneau, outils flottants */
#map-bar{display:none!important}
.map-stage{position:relative;margin:0 -2px}
.map-stage:has(#map[hidden]){display:none}
#v-carte #map{height:calc(100dvh - 64px - 112px - 64px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:380px}
.map-fab{position:relative;z-index:500;min-width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--fg);
  font:inherit;font-weight:700;font-size:1.15rem;box-shadow:0 4px 14px -4px rgba(0,0,0,.35);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0 10px}
.map-fab.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.layers-btn{position:absolute;top:10px;right:10px;font-size:.92rem}
.map-fabs{position:absolute;right:10px;bottom:16px;z-index:500;display:flex;flex-direction:column;gap:10px}
.map-fabs[hidden]{display:none}
.spot-fab{background:var(--amber);color:#fff;border-color:var(--amber);font-size:1.3rem}
.spot-fab[hidden]{display:none}
.layers-panel{position:absolute;top:64px;right:10px;left:10px;z-index:600;max-height:72%;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 14px 40px -10px rgba(0,0,0,.45);padding:12px;display:flex;flex-direction:column;gap:10px}
@media (min-width:520px){ .layers-panel{left:auto;width:360px} }
.layers-panel[hidden]{display:none}
.lp-head{display:flex;justify-content:space-between;align-items:center}
.layers-panel .map-layers,.layers-panel .map-tools{margin:0}
.layers-panel .map-row{flex-wrap:wrap;overflow:visible}
.map-status{position:absolute;left:10px;right:68px;bottom:16px;z-index:550;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.map-status>*{pointer-events:auto;box-shadow:0 8px 24px -8px rgba(0,0,0,.4)}
.map-status:empty{display:none}
.map-status .wind-bar .note{display:none}
.map-status .ruler-bar,.map-status .track-live,.map-status .wind-bar,.map-status .zone-bar{background:var(--surface)}
.leaflet-top.leaflet-left{top:4px}

/* Écran de démarrage */
.splash{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:radial-gradient(circle at 50% 40%,#2c8b73,#0b3229 70%);color:#fff;transition:opacity .45s,transform .45s}
.splash>img{width:120px;height:120px;border-radius:28px;box-shadow:0 20px 50px -10px rgba(0,0,0,.6);animation:splashpop .7s cubic-bezier(.2,1.4,.4,1) both}
.splash b{font-family:var(--f-display);font-size:2rem;text-transform:uppercase;letter-spacing:.04em;animation:splashup .6s .15s both}
.splash span{font-size:.9rem;opacity:.8;animation:splashup .6s .25s both}
.splash.out{opacity:0;transform:scale(1.04);pointer-events:none}
@keyframes splashpop{from{transform:scale(.6) rotate(-8deg);opacity:0}to{transform:none;opacity:1}}
@keyframes splashup{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}

/* Bouton « + » central */
nav.tabs .tab-plus{align-self:center;justify-self:center;width:52px;height:52px;margin-top:-22px;border-radius:18px;border:none;cursor:pointer;
  background:linear-gradient(150deg,#ffb347,#e46f17);color:#fff;box-shadow:0 10px 22px -6px rgba(228,111,23,.7);display:grid;place-items:center;transition:transform .15s}
nav.tabs .tab-plus:active{transform:scale(.92)}
nav.tabs .tab-plus svg{width:28px;height:28px;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;fill:none}
@media (max-width:420px){ nav.tabs a{font-size:.62rem;letter-spacing:.02em} nav.tabs a svg{width:20px;height:20px} }
.plus-back{display:flex;align-items:flex-end;animation:fadein .18s}
.plus-back.out{opacity:0;transition:opacity .18s}
.plus-sheet{animation:sheetup .22s cubic-bezier(.2,1,.4,1)}
.plus-h{font-family:var(--f-display);font-weight:700;font-size:1.4rem;text-transform:uppercase;margin:0 2px 12px}
.plus-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.plus-item{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:18px;background:var(--surface-2);border:1px solid var(--line);cursor:pointer}
.plus-item.wide{grid-column:1/-1;flex-direction:row;align-items:center;gap:10px;background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.plus-item.wide .pi-s{color:inherit;opacity:.85}
.pi-ico{font-size:1.7rem}
.pi-t{font-family:var(--f-display);font-weight:700;font-size:1.15rem;text-transform:uppercase}
.pi-s{font-size:.8rem;color:var(--muted)}
@keyframes fadein{from{opacity:0}}
@keyframes sheetup{from{transform:translateY(40px);opacity:0}}

/* Profil en vitrine */
.me-hero{position:relative;background:linear-gradient(150deg,var(--hero-1),var(--hero-2));color:var(--hero-fg);border:none}
.me-hero .note{color:inherit;opacity:.8}
.me-hero h2{color:inherit}
.me-hero .avatar.big{width:76px;height:76px;font-size:2rem;border:3px solid rgba(255,255,255,.5)}
.pf-hero{order:2;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:4px}
.me-hero{display:flex;flex-direction:column;gap:12px}
.me-hero .me-top{order:1}
.pf-stat{display:flex;flex-direction:column;align-items:center;text-align:center;background:rgba(255,255,255,.12);border-radius:14px;padding:10px 4px}
.pf-stat b{font-family:var(--f-display);font-size:1.5rem;line-height:1}
.pf-stat span{font-size:.68rem;opacity:.85;margin-top:3px}
.pf-shelf{order:3;display:flex;gap:6px;flex-wrap:wrap}
.pf-troph{font-size:1.4rem;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.14)}
#profil-sub .sub-gear{flex:0 0 auto;margin-left:auto;font-size:1.1rem;padding:6px 14px}

/* Célébration */
.celebrate{position:fixed;inset:0;z-index:8000;display:grid;place-items:center;pointer-events:none}
.cel-card{display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--surface);color:var(--fg);padding:22px 28px;border-radius:24px;box-shadow:0 20px 60px -10px rgba(0,0,0,.5);animation:celpop .5s cubic-bezier(.2,1.5,.4,1)}
.cel-ico{font-size:3rem;animation:celwiggle .8s .2s}
.cel-card b{font-family:var(--f-display);font-size:1.5rem;text-transform:uppercase}
.cel-card span{color:var(--muted);font-size:.9rem}
.cel-bit{position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:3px;background:var(--c);animation:celbit .9s ease-out forwards;transform:rotate(var(--a)) translateY(0)}
.celebrate.out{opacity:0;transition:opacity .35s}
@keyframes celpop{from{transform:scale(.5);opacity:0}}
@keyframes celwiggle{25%{transform:rotate(-12deg) scale(1.15)}75%{transform:rotate(10deg)}}
@keyframes celbit{to{transform:rotate(var(--a)) translateY(calc(-1*var(--d) - 60px));opacity:0}}

/* Transition entre onglets */
.view-in{animation:viewin .28s ease-out}
@keyframes viewin{from{opacity:0;transform:translateY(10px)}}
@media (prefers-reduced-motion:reduce){ .view-in,.cel-card,.cel-bit,.splash>img,.splash b,.splash span,.splash-bar,.splash-by,.plus-sheet{animation:none} }

/* Couleur de fond choisie */
.bg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bg-sw{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;border:2px solid var(--line);cursor:pointer;font-weight:600;font-size:.88rem}
.bg-sw.on{border-color:var(--accent);background:var(--accent-soft)}
.bg-dot{width:22px;height:22px;border-radius:50%;border:1px solid rgba(0,0,0,.15);flex:0 0 auto}
html:root[data-bg="lac"]{--bg:#dbe7f3;--surface:#f9fcff;--surface-2:#edf3fa;--line:#c6d7e9;--muted:#4f6478}
html:root[data-bg="sable"]{--bg:#efe4d2;--surface:#fffbf4;--surface-2:#f7efe2;--line:#e2d3ba;--muted:#6f604b}
html:root[data-bg="menthe"]{--bg:#dcefe6;--surface:#f8fdfa;--surface-2:#ebf6f0;--line:#c3e0d2;--muted:#4c6a5d}
html:root[data-bg="ardoise"]{--bg:#dfe3e8;--surface:#fafbfc;--surface-2:#eef0f3;--line:#cdd3da;--muted:#56606c}
html:root[data-bg="lavande"]{--bg:#e6e1f3;--surface:#fcfbff;--surface-2:#f1eef9;--line:#d4cce9;--muted:#5e5577}
html:root[data-bg="rose"]{--bg:#f4e0e2;--surface:#fffafa;--surface-2:#f9edee;--line:#e8cdd0;--muted:#74585c}
html:root[data-bg="peche"]{--bg:#f8e2cf;--surface:#fffaf5;--surface-2:#fcefe3;--line:#efd1b6;--muted:#79604a}
html:root[data-bg="foret"]{--bg:#cfe0d4;--surface:#f6fbf7;--surface-2:#e5efe8;--line:#b8d0bf;--muted:#46604f}
@media (prefers-color-scheme: dark){
  html:root[data-bg="lac"]:not([data-theme="light"]){--bg:#0b1522;--surface:#132134;--surface-2:#182a40;--line:#253b55;--muted:#93a9c2}
  html:root[data-bg="sable"]:not([data-theme="light"]){--bg:#1c160e;--surface:#272016;--surface-2:#2f271b;--line:#433827;--muted:#bba78a}
  html:root[data-bg="menthe"]:not([data-theme="light"]){--bg:#0c1813;--surface:#14241d;--surface-2:#1a2d24;--line:#264034;--muted:#8fb3a2}
  html:root[data-bg="ardoise"]:not([data-theme="light"]){--bg:#111418;--surface:#1a1e24;--surface-2:#20252c;--line:#2e353e;--muted:#9aa4b0}
  html:root[data-bg="lavande"]:not([data-theme="light"]){--bg:#13101d;--surface:#1d1829;--surface-2:#241e33;--line:#352c4a;--muted:#a99fc6}
  html:root[data-bg="rose"]:not([data-theme="light"]){--bg:#1a1012;--surface:#25181b;--surface-2:#2d1e21;--line:#432c30;--muted:#c49fa4}
  html:root[data-bg="peche"]:not([data-theme="light"]){--bg:#1d130b;--surface:#291c12;--surface-2:#312217;--line:#473222;--muted:#c4a487}
  html:root[data-bg="foret"]:not([data-theme="light"]){--bg:#0a140d;--surface:#122017;--surface-2:#17281d;--line:#223a2a;--muted:#8db09a}
}
html:root[data-theme="dark"][data-bg="lac"]{--bg:#0b1522;--surface:#132134;--surface-2:#182a40;--line:#253b55;--muted:#93a9c2}
html:root[data-theme="dark"][data-bg="sable"]{--bg:#1c160e;--surface:#272016;--surface-2:#2f271b;--line:#433827;--muted:#bba78a}
html:root[data-theme="dark"][data-bg="menthe"]{--bg:#0c1813;--surface:#14241d;--surface-2:#1a2d24;--line:#264034;--muted:#8fb3a2}
html:root[data-theme="dark"][data-bg="ardoise"]{--bg:#111418;--surface:#1a1e24;--surface-2:#20252c;--line:#2e353e;--muted:#9aa4b0}
html:root[data-theme="dark"][data-bg="lavande"]{--bg:#13101d;--surface:#1d1829;--surface-2:#241e33;--line:#352c4a;--muted:#a99fc6}
html:root[data-theme="dark"][data-bg="rose"]{--bg:#1a1012;--surface:#25181b;--surface-2:#2d1e21;--line:#432c30;--muted:#c49fa4}
html:root[data-theme="dark"][data-bg="peche"]{--bg:#1d130b;--surface:#291c12;--surface-2:#312217;--line:#473222;--muted:#c4a487}
html:root[data-theme="dark"][data-bg="foret"]{--bg:#0a140d;--surface:#122017;--surface-2:#17281d;--line:#223a2a;--muted:#8db09a}

/* ---------- Refonte 2b : fil, stories, chargement, accueil, états vides ---------- */
/* Bandeau hors ligne pleine largeur sous l'en-tête */
.queue-pill{left:0;right:0;transform:none;border-radius:0;border-width:0 0 1px;text-align:center;padding:8px 14px;box-shadow:0 6px 16px -10px rgba(0,0,0,.4)}
/* Photos des prises en pleine largeur, carrousel fluide */
.post .gallery-track{scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.post .gallery-track img{aspect-ratio:4/5;max-height:72vh;user-select:none;-webkit-user-drag:none}
.post .gallery{touch-action:pan-x pan-y}
.dt-burst{position:absolute;left:50%;top:50%;font-size:96px;transform:translate(-50%,-50%) scale(.2);pointer-events:none;filter:drop-shadow(0 6px 18px rgba(0,0,0,.4));animation:dtburst .9s cubic-bezier(.2,1.4,.4,1) forwards;z-index:5}
@keyframes dtburst{30%{transform:translate(-50%,-50%) scale(1.15);opacity:1}70%{transform:translate(-50%,-50%) scale(1)}100%{transform:translate(-50%,-70%) scale(1);opacity:0}}
/* Stories */
.stories{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;margin-bottom:6px;scrollbar-width:none}
.stories::-webkit-scrollbar{display:none}
.stories[hidden]{display:none}
.story{all:unset;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;width:68px}
.story-ring{padding:3px;border-radius:50%;background:var(--line)}
.story.new .story-ring{background:conic-gradient(#ffb347,#e46f17,#2c8b73,#ffb347)}
.story .story-av{width:58px;height:58px;font-size:1.4rem;border:3px solid var(--bg)}
.story-n{font-size:.74rem;font-weight:600;max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.story-view{position:fixed;inset:0;z-index:7000;background:#000;color:#fff;animation:fadein .2s}
.sv-img{position:absolute;inset:0;background:#111 center/contain no-repeat}
.sv-bars{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:10px;right:10px;display:flex;gap:4px}
.sv-bars i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3);overflow:hidden;position:relative}
.sv-bars i.done{background:#fff}
.sv-bars i.run::after{content:"";position:absolute;inset:0;background:#fff;transform-origin:left;animation:svrun 5s linear forwards}
@keyframes svrun{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.sv-head{position:absolute;top:calc(22px + env(safe-area-inset-top,0px));left:12px;right:56px;display:flex;align-items:center;gap:8px;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.sv-head span{opacity:.8;font-size:.85rem}
.sv-close{position:absolute;top:calc(18px + env(safe-area-inset-top,0px));right:10px;width:40px;height:40px;border-radius:50%;border:none;background:rgba(0,0,0,.4);color:#fff;font-size:1.1rem;cursor:pointer}
.sv-info{position:absolute;left:0;right:0;bottom:0;padding:60px 16px calc(24px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,rgba(0,0,0,.8));display:flex;flex-direction:column;gap:8px}
.sv-t{display:flex;align-items:baseline;gap:10px}
.sv-t b{font-family:var(--f-display);font-size:2rem;text-transform:uppercase}
.sv-t span{font-family:var(--f-display);font-size:1.6rem;color:#ffd27a}
.sv-info p{margin:0}
.sv-info .btn{align-self:flex-start}
/* Chargement en silhouettes */
.skel-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.skel{border-radius:10px;background:linear-gradient(90deg,var(--surface-2) 25%,var(--line) 50%,var(--surface-2) 75%);background-size:300% 100%;animation:skel 1.3s infinite}
.skel-head{height:36px;width:55%}
.skel-photo{height:260px}
.skel-line{height:14px}
.skel-line.short{width:40%}
@keyframes skel{from{background-position:100% 0}to{background-position:-100% 0}}
/* États vides utiles */
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:22px 16px;border:2px dashed var(--line);border-radius:var(--radius);background:var(--surface-2)}
.empty-state .es-ico{font-size:2.6rem}
.empty-state b{font-family:var(--f-display);font-size:1.3rem;text-transform:uppercase}
.empty-state p{margin:0;color:var(--muted);max-width:34ch}
.empty-state .actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.map-hint{background:var(--surface);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;font-size:.88rem}
/* Premier lancement */
.onb-back{display:flex;align-items:center;justify-content:center;padding:16px}
.onb{width:100%;max-width:420px;background:var(--surface);border-radius:26px;padding:22px 20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 30px 80px -20px rgba(0,0,0,.6);animation:celpop .35s cubic-bezier(.2,1.3,.4,1)}
.onb h2{margin:0;font-family:var(--f-display);font-size:1.7rem;text-transform:uppercase}
.onb .note{margin:0}
.onb-ico{font-size:2.6rem}
.onb-dots{display:flex;gap:6px}
.onb-dots i{flex:1;height:4px;border-radius:2px;background:var(--line)}
.onb-dots i.on,.onb-dots i.done{background:var(--accent)}
.onb-photo{display:flex;align-items:center;gap:14px;cursor:pointer}
.onb-av{width:84px;height:84px;border-radius:50%;background:var(--accent) center/cover;color:#fff;display:grid;place-items:center;font-size:2.2rem;font-weight:700;flex:0 0 auto}
.onb-input{font:inherit;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--fg);width:100%;box-sizing:border-box}
.onb-chips{display:flex;flex-wrap:wrap;gap:6px}
.onb-groups{display:flex;flex-wrap:wrap;gap:6px}
.onb-place{display:flex;flex-direction:column;gap:8px}
.onb-pl{font-weight:700}
.onb-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}

/* Chat dans l'en-tête (ne recouvre plus rien) */
.app-head .brand{order:0}
.app-head .grp-switch{order:1}
.chat-fab.in-head{order:2;position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;
  width:40px;height:40px;flex:0 0 auto;border-radius:12px;box-shadow:none;touch-action:auto}
.chat-fab.in-head svg{width:22px;height:22px}
.chat-fab.in-head .chat-badge{top:-6px;right:-6px}
.view-toggle{order:3}

/* Lecture à une main : actions principales à portée du pouce */
#composer .actions,#bilan .actions{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:20;background:linear-gradient(transparent,var(--surface) 30%);padding-top:14px;margin-bottom:-4px}
#composer .actions .btn.primary,#bilan .actions .btn.primary{flex:1;min-height:50px;font-size:1.02rem}
.sheet-back{align-items:flex-end}
.sheet{border-bottom-left-radius:0;border-bottom-right-radius:0;max-height:88vh}
.sheet-head{order:-1}
.gofish-go{position:sticky;bottom:0}

/* Réactions : appui long, plus de choix, qui a réagi */
.react-more{min-width:38px;font-weight:800;color:var(--muted)}
.react-btn{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.react-pick{display:flex;justify-content:space-between;gap:4px;background:var(--surface-2);border-radius:999px;padding:6px;margin-bottom:12px}
.react-pick .rp{all:unset;cursor:pointer;font-size:1.7rem;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;transition:transform .12s}
.react-pick .rp:active{transform:scale(1.25)}
.react-pick .rp.on{background:var(--accent-soft)}
.react-who{display:flex;flex-direction:column;gap:8px}
.rw-line{display:flex;gap:10px;align-items:flex-start}
.rw-e{font-size:1.4rem}
.rw-names{display:flex;flex-wrap:wrap;gap:4px 10px;padding-top:4px}
.user-link{cursor:pointer}
.msg-who.user-link:hover,.chip.user-link:hover{text-decoration:underline}

/* Fiche de prise */
.ps-sheet{padding:0;overflow:auto;position:relative}
.ps-close{position:absolute;top:10px;right:10px;z-index:5;background:rgba(0,0,0,.45);color:#fff;border:none}
.ps-photos{position:relative}
.ps-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.ps-track::-webkit-scrollbar{display:none}
.ps-track img{flex:0 0 100%;width:100%;aspect-ratio:4/5;max-height:62vh;object-fit:cover;scroll-snap-align:center}
.ps-body{padding:16px;display:flex;flex-direction:column;gap:12px}
.ps-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.ps-top h2{margin:0;font-family:var(--f-display);font-size:2.2rem;text-transform:uppercase;line-height:1}
.ps-size{font-family:var(--f-display);font-weight:700;font-size:1.6rem;color:var(--amber)}
.ps-by{color:var(--muted);font-size:.88rem}
.ps-cap{margin:0}
.ps-sec h3{margin:0 0 8px;font-size:1rem}
.ps-cond{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.psc{background:var(--surface-2);border-radius:12px;padding:8px;display:flex;flex-direction:column}
.psc span{font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.psc b{font-size:.92rem}
.ps-map{height:170px;border-radius:14px;overflow:hidden;border:1px solid var(--line);margin:6px 0}
.ps-sec .actions{display:flex;gap:8px}
.ps-sec a.btn{text-decoration:none}
.ps-photos .gallery-count{right:auto;left:10px}

/* corrections 0.37 */
.bg-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
.bg-sw{min-width:0;padding:8px;gap:6px;font-size:.84rem}
.bg-sw span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bg-dot{width:20px;height:20px}
.out-card.empty .btn{white-space:nowrap;flex:0 0 auto}

/* ---------- 0.39 : calendrier, réveil, nœuds, leurres intelligents ---------- */
.td-tools{display:flex;gap:8px}
.td-tools .btn{flex:1}
.cal-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.cal-opts select,.wake-form select{font:inherit;padding:9px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--fg);min-width:0;width:100%}
.cal-best{display:flex;flex-direction:column;gap:2px;background:var(--amber-soft);border-radius:14px;padding:10px 12px;margin-bottom:10px;font-size:.9rem}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.cal-wd{text-align:center;font-family:var(--f-mono);font-size:.7rem;color:var(--muted)}
.cal-day{all:unset;box-sizing:border-box;aspect-ratio:1;border-radius:12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;
  background:color-mix(in srgb,#2c8b73 calc(var(--s)*100%),color-mix(in srgb,#d9822b 35%,var(--surface-2)));color:var(--fg)}
.cal-day b{font-size:.95rem;line-height:1}
.cal-day span{font-family:var(--f-mono);font-size:.62rem;opacity:.85}
.cal-day i{position:absolute;top:2px;right:3px;font-size:.6rem;font-style:normal}
.cal-day.we{outline:2px solid color-mix(in srgb,var(--fg) 25%,transparent);outline-offset:-2px}
.cal-day.trend{background:var(--surface-2);border:2px dashed color-mix(in srgb,#2c8b73 calc(var(--s)*100%),var(--line))}
.cal-day.on{outline:3px solid var(--amber);outline-offset:-3px}
.cal-day[style*="--s:0.8"],.cal-day[style*="--s:0.9"],.cal-day[style*="--s:1"]{color:#fff}
.cal-leg{display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--muted);margin-top:8px}
.cal-leg i{flex:1;height:8px;border-radius:4px;background:linear-gradient(90deg,color-mix(in srgb,#d9822b 35%,var(--surface-2)),#2c8b73)}
.cal-detail{margin-top:8px;padding-top:10px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.cal-detail h3{margin:0;font-size:1rem;text-transform:capitalize}
.cal-sp{display:flex;flex-wrap:wrap;gap:6px}
.cal-sp span{background:var(--accent-soft);border-radius:999px;padding:3px 10px;font-size:.82rem;font-weight:600}
.wake-form{display:flex;flex-direction:column;gap:6px}
.wake-res{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.wake-card{display:flex;align-items:center;gap:14px;background:linear-gradient(150deg,var(--hero-1),var(--hero-2));color:var(--hero-fg);border-radius:18px;padding:14px 16px}
.wk-time{font-family:var(--f-display);font-weight:700;font-size:3rem;line-height:1}
.wk-info{display:flex;flex-direction:column;gap:3px;font-size:.86rem}
.wake-act{display:flex;flex-direction:column;gap:8px}
.wake-act .btn{width:100%;justify-content:center;text-align:center;text-decoration:none;min-height:48px;display:flex;align-items:center}
.wake-list{margin-top:12px;display:flex;flex-direction:column;gap:4px}
.wake-list h3{margin:0;font-size:.95rem}
.wk-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.85rem;padding:6px 0;border-top:1px solid var(--line)}
.knot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.knot-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:10px}
.knot-card .note{margin:0}
.knot-mini svg{width:100%;height:56px}
.knot-fig{background:var(--surface-2);border-radius:14px;padding:10px;margin:6px 0}
.knot-fig svg{width:100%;max-height:160px}
.knot-steps{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:10px}
.knot-steps li{display:flex;gap:10px;align-items:flex-start}
.ks-n{flex:0 0 28px;height:28px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-weight:800}
.knot-tip{background:var(--amber-soft);border-radius:12px;padding:10px 12px;margin:0}
.lure-when{display:flex;flex-direction:column;gap:2px;background:var(--surface-2);border-radius:10px;padding:8px 10px;font-size:.82rem;margin-top:6px}
.lure-when b{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.lure-when.good{background:color-mix(in srgb,#2c8b73 18%,var(--surface))}
.lw-today{font-weight:700}
.lure-day{display:flex;flex-direction:column;gap:2px;background:linear-gradient(150deg,var(--hero-1),var(--hero-2));color:var(--hero-fg);border-radius:16px;padding:12px 14px;margin-bottom:10px}
.lure-day .note{color:inherit;opacity:.85;margin:0}
.lure-day b{font-family:var(--f-display);font-size:1.4rem;text-transform:uppercase}
.b-wt-note{margin:4px 0 0}
.wake-act .btn,.wake-act a.btn{box-sizing:border-box;max-width:100%}

/* ---------- Lot 11 : no-kill / prélevé, fraie ---------- */
.rel-field{display:flex;flex-direction:column;gap:6px}
.rel-seg button{flex:1}
.rel-seg button[aria-pressed="true"][data-v="1"]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.rel-seg button[aria-pressed="true"][data-v="0"]{background:var(--amber);color:#2a1d05;border-color:var(--amber)}
#b-rel{margin-top:8px}
.fraie-hint{color:#b8336a;font-weight:600}
.rel-tag,.kept-tag{display:inline-flex;align-items:center;font-size:.78rem;font-weight:700;padding:3px 9px;border-radius:999px}
.rel-tag{background:var(--accent-soft);color:var(--accent)}
.kept-tag{background:var(--amber-soft);color:var(--fg)}
.rel-rate{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:10px 0;border-radius:16px;background:var(--surface-2);border:1px solid var(--line)}
.rel-rate.good{background:var(--accent-soft);border-color:var(--accent)}
.rel-rate .rr-ico{font-size:1.6rem}
.rel-rate b{display:block;font-size:1.05rem}
.fraie-banner{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;cursor:pointer;margin-top:10px;padding:12px 14px;border-radius:18px;
  background:linear-gradient(135deg,rgba(224,90,138,.16),rgba(224,90,138,.06));border:1px solid rgba(224,90,138,.45);color:var(--fg)}
.fraie-banner .fb-ico{font-size:1.6rem}
.fraie-banner .fb-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:.9rem}
.fraie-banner .fb-txt span{color:var(--muted)}
.fraie-banner .fb-go{font-size:1.4rem;color:#e05a8a}
.fraie-grid{display:grid;grid-template-columns:minmax(84px,auto) repeat(12,1fr);gap:3px;align-items:center;margin:12px 0 6px}
.fg-m{text-align:center;font-size:.72rem;color:var(--muted);font-weight:700}
.fg-m.now{color:#e05a8a}
.fg-sp{all:unset;cursor:pointer;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:4px}
.fg-sp.on{font-weight:800;color:#e05a8a}
.fg-c{height:16px;border-radius:4px;background:var(--surface-2)}
.fg-c.f{background:rgba(224,90,138,.55)}
.fg-c.now{outline:2px solid var(--fg);outline-offset:-1px}
.fg-c.f.now{background:#e05a8a}
.fraie-info{min-height:2.6em;font-size:.9rem;margin:6px 0}

/* ---------- Lot 12 : minuteur par canne, carnet d'amorçage, photo du mois ---------- */
.rod-timers{margin:12px 0;padding:12px 14px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.rt-head{display:flex;flex-direction:column;gap:2px}
.rt-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.rt-row.due{border-color:var(--amber);background:var(--amber-soft);animation:rtPulse 1.2s ease-in-out infinite alternate}
@keyframes rtPulse{to{box-shadow:0 0 0 3px var(--amber-soft)}}
@media (prefers-reduced-motion:reduce){.rt-row.due{animation:none}}
.rt-name{font-weight:800;min-width:64px}
.rt-left{flex:1;min-width:90px;font-family:var(--f-mono);font-size:.88rem}
.rt-left.off{color:var(--muted);font-family:inherit}
.rt-act{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.rt-row select{max-width:100%;min-height:36px}
.icon-btn.small{width:32px;height:32px;min-width:32px}
.bait-form{display:flex;flex-direction:column;gap:10px;margin:10px 0 4px}
.bait-stats{display:flex;flex-direction:column;gap:6px}
.bs-row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:8px 12px;border-radius:12px;background:var(--surface-2)}
.bs-row .note{grid-column:1/-1}
.bs-row.top{background:var(--accent-soft)}
.bait-row{gap:8px}
.bait-row>div:first-child{flex:1;min-width:0}
.bait-res{font-weight:800;font-size:.85rem;padding:3px 9px;border-radius:999px;background:var(--surface-2);white-space:nowrap}
.bait-res.ok{background:var(--accent-soft);color:var(--accent)}
.bait-res.none{font-weight:600;color:var(--muted)}
.pm-winner{all:unset;box-sizing:border-box;cursor:pointer;display:flex;gap:12px;align-items:center;width:100%;padding:10px;margin:6px 0 10px;border-radius:18px;
  background:linear-gradient(135deg,var(--amber-soft),var(--surface));border:1px solid var(--amber)}
.pm-winner img{width:84px;height:84px;object-fit:cover;border-radius:12px;background:var(--surface-2);flex:none}
.pm-wt{display:flex;flex-direction:column;gap:2px;min-width:0}
.pm-crown{font-weight:800;text-transform:capitalize}
.pm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;margin-top:8px}
.pm-cell{all:unset;box-sizing:border-box;cursor:pointer;position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--surface-2);border:2px solid transparent;min-width:0}
.pm-cell img{width:100%;height:100%;object-fit:cover;display:block}
.pm-cell.voted{border-color:var(--amber);box-shadow:0 0 0 3px var(--amber-soft)}
.pm-cell.own{cursor:default}
.pm-who{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 5px;font-size:.72rem;font-weight:700;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.7));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-vote{position:absolute;top:6px;left:6px;font-size:.7rem;font-weight:800;padding:2px 7px;border-radius:999px;background:var(--amber);color:#2a1d05}
.pm-vote.own{background:rgba(0,0,0,.55);color:#fff}
.knot-cat{margin-top:14px}
.knot-emo{display:flex;align-items:center;justify-content:center;height:56px;font-size:2rem}
.knot-mat{background:var(--surface-2);border-radius:14px;padding:10px 12px;margin:8px 0}
.knot-mat ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:3px;font-size:.92rem}
.knot-h{margin:12px 0 0;font-size:1rem}

/* ---------- Comptes par e-mail ---------- */
.ok-msg{margin:6px 0;padding:10px 12px;border-radius:12px;background:var(--accent-soft);color:var(--fg);font-size:.92rem}
#a-forgot{margin-left:auto}
.acc-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.acc-row:last-child{border-bottom:none}
.acc-row.warn .acc-t .note{color:var(--warn)}
.acc-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.acc-t .note{margin:0;overflow-wrap:anywhere}
.btn.danger{color:#fff;background:var(--warn);border-color:var(--warn)}
.btn.small.danger{background:transparent;color:var(--warn)}
.acc-form{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.acc-list{margin:4px 0 8px;padding-left:20px;display:flex;flex-direction:column;gap:3px}
.acc-temp{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;background:var(--accent-soft);margin:10px 0}
.acc-pw{font-family:var(--f-mono);font-size:1.3rem;font-weight:800;letter-spacing:.04em;user-select:all;word-break:break-all}

/* ---------- Lot 14 : cloche, invitations, fiches techniques, découverte, mode nuit ---------- */
.notif-bell{order:2;position:relative;flex:0 0 auto;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--fg);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.notif-bell[hidden]{display:none}
.notif-bell svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.notif-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#d9534f;color:#fff;font-size:.7rem;font-weight:800;display:flex;align-items:center;justify-content:center}
.notif-badge[hidden]{display:none}
.notif-tools{justify-content:flex-end;margin:-4px 0 6px}
.notif-list{display:flex;flex-direction:column;gap:6px}
.notif-item{all:unset;box-sizing:border-box;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;cursor:pointer;background:var(--surface-2);border:1px solid transparent}
.notif-item.unread{background:var(--accent-soft);border-color:var(--accent)}
.notif-item .ni-ico{font-size:1.3rem;line-height:1.2}
.ni-t{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:.92rem}
.ni-t b{font-size:.95rem}
.ni-t .note{margin:0;font-size:.78rem}
.invite-qr{display:flex;justify-content:center;padding:14px;background:#fff;border-radius:16px;margin:10px auto;width:max-content;min-height:60px}
.invite-qr img,.invite-qr canvas{display:block}
.invite-link{background:var(--surface-2);border-radius:12px;padding:10px 12px;overflow-wrap:anywhere;font-size:.85rem;margin-bottom:10px}
.g-code{flex-wrap:wrap}
.tech-intro{font-size:1.02rem;margin:4px 0 10px}
.tech-sec{margin:12px 0}
.tech-sec h3{font-size:1rem;margin:0 0 6px}
.tech-sec ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.tech-seasons{display:grid;grid-template-columns:1fr;gap:6px}
.tech-season{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-radius:12px;background:var(--surface-2);font-size:.92rem}
.tech-season.now{background:var(--accent-soft);border:1px solid var(--accent)}
.tech-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:8px}
.tech-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);border-left:5px solid var(--accent);min-width:0}
.tech-card .note{margin:0;font-size:.8rem}
.discover{margin-top:14px}
.disc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.disc-item{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);min-width:0}
.disc-item .disc-ico{font-size:1.5rem}
.disc-item .note{margin:0;font-size:.8rem}
.nl-actions{justify-content:center;margin-top:12px}
html.night{filter:grayscale(1) sepia(1) saturate(6) hue-rotate(-50deg) brightness(.7) contrast(1.05)}
@media (max-width:420px){ .notif-bell,.chat-fab.in-head{width:36px;height:36px} .app-head-in{gap:6px} #theme-panel .seg button{font-size:.8rem;padding:6px 4px} }
.sp-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:-4px 0 10px;font-size:.74rem;color:var(--muted)}
.sp-legend span{display:inline-flex;align-items:center;gap:5px}
.sp-legend i{display:inline-block;width:12px;height:10px;border-radius:2px}
.sp-legend .lg-act{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 25%,transparent),var(--accent))}
.sp-legend .lg-best{background:var(--amber)}
.sp-legend .lg-sol{background:var(--accent);opacity:.5;box-shadow:inset 0 3px 0 0 #8a6fd6}
:root{--best:#2f7fd1;--low:#e8873a}
.strip div.best{background:var(--best);opacity:1}
.strip div.low{background:var(--low);opacity:.8}
.window b{color:var(--best)}
.sp-legend .lg-best{background:var(--best)}
.sp-legend .lg-low{background:var(--low);opacity:.8}
.dc-best.dc-second{margin-top:8px;padding:9px 14px;background:rgba(255,255,255,.08)}
.dc-best.dc-second .dc-bn{font-size:1.25rem}
.dc-best.dc-second .dc-bp{font-size:1.15rem}
.sp-tag{display:inline-block;align-self:flex-start;margin:-2px 0 8px;font-size:.78rem;font-weight:700;padding:3px 9px;border-radius:999px}
.sp-tag.is-fav{background:var(--amber-soft);color:var(--fg)}
.sp-tag.is-top{background:color-mix(in srgb,var(--best) 16%,transparent);color:var(--best)}
.sp.fav .sp-rank{background:var(--amber-soft);border-color:var(--amber);color:var(--fg)}

/* =====================================================================
   Refonte « Sondeur » (thème sombre par défaut) : bleu nuit, cyan lumineux,
   quadrillage discret comme un écran d'échosondeur.
   ===================================================================== */
:root[data-theme="dark"],:root[data-theme="dark"][data-role]{
  --bg:#060c12; --surface:#0d1620; --surface-2:#12202d; --fg:#e4eef6; --muted:#88a0b3; --line:#1d2e3d;
  --accent:#2fd3c4; --accent-2:#5be3d6; --accent-soft:#0e3036; --on-accent:#03201d;
  --amber:#ffb547; --amber-soft:#3a2a10; --warn:#ff8a65; --warn-soft:#3a1a12;
  --hero-1:#0d2536; --hero-2:#0b3f4c; --hero-fg:#e4eef6;
  --shadow:0 0 0 1px rgba(47,211,196,.07),0 12px 30px -12px rgba(0,0,0,.85); color-scheme:dark;
  --best:#4aa8ff; --low:#ff9a4a;
}
/* un léger reflet de couleur selon le rôle, sans quitter l'ambiance sondeur */
:root[data-theme="dark"][data-role="admin"]{--bg:#0d0a07;--surface:#17120c;--surface-2:#1f1810;--line:#33271a;--muted:#b49a7e}
@media (prefers-color-scheme: dark){
  :root:not([data-theme]),:root:not([data-theme])[data-role]{
    --bg:#060c12; --surface:#0d1620; --surface-2:#12202d; --fg:#e4eef6; --muted:#88a0b3; --line:#1d2e3d;
    --accent:#2fd3c4; --accent-2:#5be3d6; --accent-soft:#0e3036; --on-accent:#03201d;
    --amber:#ffb547; --amber-soft:#3a2a10; --hero-1:#0d2536; --hero-2:#0b3f4c; --hero-fg:#e4eef6;
    --shadow:0 0 0 1px rgba(47,211,196,.07),0 12px 30px -12px rgba(0,0,0,.85); --best:#4aa8ff; --low:#ff9a4a}
}
:root[data-theme="dark"] body{background:radial-gradient(1100px 520px at 50% -180px,#0f2a3a,transparent 70%),var(--bg);background-attachment:fixed}
:root[data-theme="dark"] .app-head{background:rgba(6,12,18,.86);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
:root[data-theme="dark"] .grp-switch{background:var(--surface);border-color:var(--line);color:var(--fg)}
:root[data-theme="dark"] .day-card{border:1px solid rgba(47,211,196,.22);
  background:linear-gradient(rgba(47,211,196,.055) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,rgba(47,211,196,.055) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(180deg,#0e2a3b,#09192a)}
:root[data-theme="dark"] .day-card::after{background:radial-gradient(circle,rgba(47,211,196,.16),transparent 65%)}
:root[data-theme="dark"] .dc-num,:root[data-theme="dark"] .dc-bp{color:var(--accent);text-shadow:0 0 18px rgba(47,211,196,.45)}
:root[data-theme="dark"] .dc-best{background:rgba(47,211,196,.07);border:1px solid rgba(47,211,196,.18)}
:root[data-theme="dark"] .dc-best.dc-second{background:rgba(255,255,255,.03)}
:root[data-theme="dark"] nav.tabs{background:rgba(13,22,32,.92);border:1px solid var(--line);backdrop-filter:blur(10px)}
:root[data-theme="dark"] nav.tabs a[aria-current="page"]{color:var(--accent);background:rgba(47,211,196,.1)}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] article.post,:root[data-theme="dark"] .sp{border-color:var(--line)}
:root[data-theme="dark"] .gauge{filter:drop-shadow(0 0 6px rgba(47,211,196,.35))}
:root[data-theme="dark"] .btn.primary{box-shadow:0 0 0 1px rgba(47,211,196,.3),0 6px 18px -8px rgba(47,211,196,.6)}
:root[data-theme="dark"] .splash{background:radial-gradient(800px 500px at 50% 30%,#0f2a3a,#060c12)}
/* Calculateurs et agenda */
.calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.calc-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);min-width:0}
.calc-card .cc-ico{font-size:1.4rem}
.calc-card .note{margin:0;font-size:.78rem}
.calc-field{display:flex;flex-direction:column;gap:5px;margin:10px 0}
.calc-lab{font-size:.8rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.calc-seg{flex-wrap:wrap}
.calc-seg button{flex:1 1 auto;font-size:.82rem;padding:7px 8px}
.calc-out{margin-top:12px;padding:14px;border-radius:16px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.calc-out ul{margin:8px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:.9rem}
.calc-big{display:block;font-family:var(--f-mono);font-size:1.6rem;color:var(--accent)}
.calc-table{display:flex;flex-direction:column;gap:6px}
.ct-row{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:10px;background:var(--surface)}
.calc-table.pe .ct-row{display:grid;grid-template-columns:40px 1fr 1fr 1fr;gap:6px;align-items:center;font-size:.86rem}
.calc-table.pe .ct-head{background:transparent;font-weight:700;color:var(--muted);font-size:.75rem}
.calc-tip{margin:10px 0 0;font-size:.9rem}
.calc-h{font-size:1rem;margin:16px 0 8px}
.ag-list{display:flex;flex-direction:column;gap:8px}
.ag-item{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.ag-item.auto{border-style:dashed}
.ag-date{flex:0 0 46px;display:flex;flex-direction:column;align-items:center;padding:6px 0;border-radius:10px;background:var(--accent-soft);color:var(--accent);line-height:1.1}
.ag-date b{font-size:1.3rem;font-family:var(--f-mono)}
.ag-date span{font-size:.72rem;text-transform:uppercase;font-weight:700}
.ag-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:.9rem}
.ag-t .note{margin:0;font-size:.8rem}
.ag-link{font-size:.85rem;font-weight:600;color:var(--accent)}
.calc-type{background:var(--surface-2);border-color:var(--line)}
.calc-tt{display:block;font-size:1rem;margin-bottom:2px}

/* ===== Lot 16 : prévisions sur la carte, vent et berge, image des conditions, album ===== */
.fc-pin{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font:700 13px/1 var(--font-mono,ui-monospace,monospace);color:#04121a;border:2px solid rgba(255,255,255,.9);box-shadow:0 0 0 3px rgba(0,0,0,.25),0 2px 8px rgba(0,0,0,.45)}
.fc-top{background:var(--best,#4aa8ff);box-shadow:0 0 0 3px rgba(74,168,255,.35),0 0 14px rgba(74,168,255,.6)}
.fc-good{background:var(--accent,#2fd3c4)}
.fc-mid{background:var(--amber,#ffb547)}
.fc-low{background:var(--low,#ff9a4a);opacity:.85}
.fc-closed{background:#55606a;color:#fff}
.fc-bar{background:var(--surface);border:1px solid var(--line,rgba(255,255,255,.1));border-radius:14px;padding:10px 12px;display:grid;gap:8px;pointer-events:auto}
.fc-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between}
.fc-sel{max-width:60%;padding:6px 8px;border-radius:10px}
.fc-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:.8rem;color:var(--muted)}
.fc-lg{display:inline-flex;align-items:center;gap:5px}
.fc-dot{width:11px;height:11px;border-radius:50%;display:inline-block}
.fc-dot.fc-top{background:var(--best,#4aa8ff)} .fc-dot.fc-good{background:var(--accent)} .fc-dot.fc-mid{background:var(--amber)} .fc-dot.fc-low{background:var(--low,#ff9a4a)}
.fc-bar .note{margin:0}
.fc-pop-s{margin:4px 0;font-weight:600}
.vent-berge{margin:14px 0 6px;padding:12px;border-radius:14px;background:var(--surface-2,rgba(255,255,255,.03));border:1px solid var(--line,rgba(255,255,255,.08))}
.vent-berge .g-sub{margin-top:0}
.vb-top{display:flex;gap:14px;align-items:center}
.vb-compass{width:104px;height:104px;flex:none}
.vb-ring{fill:none;stroke:var(--muted);stroke-opacity:.35;stroke-width:2}
.vb-card{fill:var(--muted);font:600 11px system-ui;text-anchor:middle}
.vb-bank{fill:#6b5a3e;fill-opacity:.75}
.vb-look{fill:none;stroke:var(--fg,#eaf4f6);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.vb-me{fill:var(--accent)}
.vb-wind{fill:none;stroke:var(--best,#4aa8ff);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.vb-txt{display:grid;gap:3px}
.vb-k{font-size:1.1rem}
.vb-face{color:var(--accent)} .vb-dos{color:var(--amber)} .vb-cote{color:var(--best,#4aa8ff)} .vb-calm{color:var(--muted)}
.vb-adv{margin:10px 0 6px;line-height:1.45}
.vb-next{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0}
.vb-n{display:grid;gap:1px;text-align:center;padding:6px 4px;border-radius:10px;background:rgba(255,255,255,.04);font-size:.85rem}
.vb-n.vb-face{background:rgba(47,211,196,.12)} .vb-n.vb-dos{background:rgba(255,181,71,.12)} .vb-n.vb-cote{background:rgba(74,168,255,.12)}
.vb-n .note{font-size:.75rem}
.vb-pick{display:grid;grid-template-columns:repeat(3,64px);gap:6px;justify-content:center;margin:8px 0}
.vb-pick .btn{min-height:44px}
.vb-mid{display:grid;place-items:center;font-size:1.4rem}
.today-share{display:flex;align-items:center;gap:6px;margin:8px auto 0;align-self:center}
.cond-prev{display:grid;place-items:center;margin:6px 0 10px}
.cond-prev img{max-width:100%;max-height:58vh;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.4)}
.sp-album{margin-top:14px}
.sp-album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.alb-item{position:relative;aspect-ratio:1;border:0;padding:0;border-radius:10px;background:#0d1620 center/cover no-repeat;overflow:hidden;cursor:pointer}
.alb-cap{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 5px;font-size:.78rem;font-weight:700;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.75));text-align:left}
.alb-rank{position:absolute;top:4px;left:4px;font-size:1.1rem}
.fc-pin{position:relative}
.fc-w{position:absolute;right:-9px;top:-9px;font-style:normal;font-size:13px;line-height:1;background:var(--surface,#0d1620);border-radius:50%;padding:3px;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.fc-seg{display:flex}
.fc-seg button{flex:1}
.vb-water{fill:var(--best,#4aa8ff);fill-opacity:.13}

/* ===== Lot 17 : assistant montage, conditions gagnantes, bulletin d'eau, environnement, structures, récap ===== */
.asst{margin:10px 0 4px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:16px;background:var(--surface);overflow:hidden}
.asst-head{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:none;border:0;color:var(--fg);font:700 1rem/1.2 inherit;cursor:pointer;text-align:left}
.asst-body{padding:0 14px 14px;display:grid;gap:10px}
.asst-steps{display:flex;gap:6px;flex-wrap:wrap;font-size:.78rem}
.asst-dot{padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.05);color:var(--muted)}
.asst-dot.cur{background:rgba(47,211,196,.16);color:var(--accent)} .asst-dot.done{color:var(--fg)}
.asst-q{margin:0;font-weight:700}
.asst-chips{display:flex;flex-wrap:wrap;gap:8px}
.asst-chip{border:1px solid var(--line,rgba(255,255,255,.14));background:rgba(255,255,255,.03);color:var(--fg);border-radius:12px;padding:10px 12px;min-height:44px;font:inherit;cursor:pointer}
.asst-chip.on,.asst-chip:active{border-color:var(--accent);background:rgba(47,211,196,.14)}
.asst-ctx{margin:0;color:var(--muted);font-size:.9rem}
.asst-res{display:grid;gap:8px}
.asst-line{display:flex;gap:10px;align-items:flex-start;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.035)}
.asst-line>div{display:grid;gap:2px}
.asst-line b{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--accent)}
.al-i{font-size:1.2rem;line-height:1.3}
.asst-knots{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.gagnantes .win-card{border:1px solid var(--line,rgba(255,255,255,.1));border-radius:14px;padding:10px 12px;margin:10px 0;display:grid;gap:6px}
.win-h{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.win-f{position:relative;display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;padding:6px 8px;border-radius:10px;overflow:hidden}
.win-f>*{position:relative;z-index:1}
.wf-bar{position:absolute!important;z-index:0!important;left:0;top:0;bottom:0;width:var(--p);background:rgba(47,211,196,.10)}
.win-f.now .wf-bar{background:rgba(74,168,255,.22)}
.wf-n{font:600 .8rem/1 var(--font-mono,ui-monospace,monospace);color:var(--muted)}
.win-today{margin:4px 0 0;font-size:.9rem;color:var(--muted)} .win-today.good{color:var(--best,#4aa8ff);font-weight:700}
.win-hint{display:grid;gap:2px;text-align:left;width:100%;margin-top:8px;padding:10px 12px;border-radius:12px;border:1px solid rgba(74,168,255,.45);background:rgba(74,168,255,.10);color:var(--fg);font:inherit;cursor:pointer}
.water-note{display:grid;gap:2px;margin-top:8px;padding:9px 12px;border-radius:12px;background:rgba(74,168,255,.08);border:1px solid rgba(74,168,255,.25)}
.spot-water{margin:12px 0;display:grid;gap:6px;justify-items:start}
.spot-water .g-sub{margin:0}
.water-line{margin:0;font-weight:600}
.env-seg{display:flex;flex-wrap:wrap}
.env-seg button{flex:1}
.env-form{display:grid;gap:10px}
.env-kinds,.st-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.env-kind,.st-kind{display:grid;gap:2px;text-align:left;padding:10px;border-radius:12px;border:1px solid var(--line,rgba(255,255,255,.14));background:rgba(255,255,255,.03);color:var(--fg);font:inherit;cursor:pointer;min-height:44px}
.env-kind.on,.st-kind.on{border-color:var(--accent);background:rgba(47,211,196,.14)}
.env-kind .note,.st-kind .note{font-size:.75rem}
.ek-i{font-size:1.3rem}
.env-sec .g-sec-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.env-list{display:grid;gap:10px;margin:10px 0}
.env-item{border:1px solid var(--line,rgba(255,255,255,.1));border-radius:14px;padding:10px 12px;display:grid;gap:6px}
.env-item.done{opacity:.6}
.env-top{display:flex;gap:10px;align-items:center}
.env-t{display:grid;flex:1;min-width:0}
.env-st{font-size:.75rem;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}
.st-open{background:rgba(255,154,74,.18);color:var(--low,#ff9a4a)} .st-sent{background:rgba(74,168,255,.18);color:var(--best,#4aa8ff)} .st-done{background:rgba(47,211,196,.16);color:var(--accent)}
.env-d{margin:0;white-space:pre-wrap}
.env-ph{width:100%;max-height:220px;object-fit:cover;border-radius:10px}
.env-who{display:grid;gap:6px}
.env-water .mrow{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.env-pin,.st-pin{position:relative;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:17px;background:var(--surface,#0d1620);border:2px solid rgba(255,255,255,.85);box-shadow:0 2px 6px rgba(0,0,0,.45)}
.st-pin.st-top{border-color:var(--best,#4aa8ff);box-shadow:0 0 0 3px rgba(74,168,255,.35),0 0 12px rgba(74,168,255,.6)}
.st-pin b{position:absolute;right:-7px;top:-7px;min-width:18px;height:18px;border-radius:9px;background:var(--best,#4aa8ff);color:#04121a;font:700 11px/18px system-ui;text-align:center}
.st-bar{background:var(--surface);border:1px solid var(--line,rgba(255,255,255,.1));border-radius:14px;padding:10px 12px;display:grid;gap:8px;pointer-events:auto}
.st-bar .note{margin:0}
.st-tip{margin:0;font-size:.9rem}
.st-rank{margin:0;padding-left:22px;display:grid;gap:2px}
.st-go{text-align:left;padding:4px 0}
.st-why{margin-top:6px;color:var(--best,#4aa8ff);font-weight:600}
.recap-opts{display:grid;gap:6px;margin:4px 0 10px}
.recap-snack{position:fixed;left:12px;right:12px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:3000;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:10px 12px;border-radius:14px;background:var(--surface,#0d1620);border:1px solid rgba(47,211,196,.45);box-shadow:0 8px 24px rgba(0,0,0,.45)}
#groupe-root .subbar button{flex:1 0 auto;min-width:auto;overflow:visible;text-overflow:clip;padding:6px 10px}
/* envois hors ligne refusés */
.queue-pill.bad{background:var(--low,#ff9a4a);color:#1a0d00}
.queue-list{display:grid;gap:10px}
.queue-item{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:12px}

/* ===== Navigation simplifiée (nav.js) ===== */
.nav5 nav.tabs a[data-v="profil"]{display:none!important}
.head-me{order:99;margin-left:2px;position:relative;flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--fg);text-decoration:none;border:1px solid var(--line,rgba(255,255,255,.14));background:var(--surface)}
.head-me svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8}
.head-me .hm-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700}
.head-me.on{box-shadow:0 0 0 2px var(--accent)}
.head-me-badge{position:absolute;top:-4px;right:-4px}
nav.tabs a{position:relative}
nav.tabs a .tab-badge{position:absolute;top:2px;right:calc(50% - 22px)}
.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 12px}
.tool-tile{display:grid;justify-items:center;gap:4px;padding:12px 6px;border-radius:14px;border:1px solid var(--line,rgba(255,255,255,.12));background:var(--surface);color:var(--fg);font:inherit;font-weight:600;cursor:pointer;min-height:72px}
.tt-i{font-size:1.5rem}
.tool-tile:active{transform:scale(.97)}
.tool-off{display:none!important}
.tt-s{font-size:.72rem;font-weight:400;color:var(--muted)}
.tool-back{display:block;margin:2px 0 10px;font-weight:700}

/* Échec de chargement du profil : bandeau de reprise, jamais « Terminer mon profil » */
.me-error{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:10px 0;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:.9rem;line-height:1.35}
.me-error .btn{flex:none}

/* Provenance du conseil : lieu, heure de mise à jour, nature de la température */
.hero-prov{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:.72rem;color:var(--muted,var(--text));opacity:.85}
.hero-prov span{white-space:nowrap}

/* Provenance sur la carte du jour */
.dc-prov{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:6px;font-size:.68rem;opacity:.8;color:var(--text)}
.dc-prov span{white-space:nowrap}

/* Panneau d'invitation : QR + lien copiable */
.inv-back{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.62);display:flex;align-items:flex-end;justify-content:center;padding:0}
.inv-box{width:100%;max-width:420px;background:var(--surface);border-radius:22px 22px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px;align-items:center}
.inv-title{margin:0;font-size:1.05rem}
.inv-qr{width:216px;height:216px;border-radius:14px;background:#fff;padding:0}
.inv-link{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--bg,transparent);cursor:pointer;font-size:.78rem}
.inv-link.ok{border-color:#2c8b73}
.inv-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inv-copy{font-weight:700;color:var(--accent,#2c8b73);flex:none}
.inv-left{margin:0;font-size:.8rem;opacity:.8}

/* ===== Carnet de sortie hors ligne (logbook.js) ===== */
#logbook .g-sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#logbook .g-sec-head h2{margin:0}
.lb-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lb-intro{margin:6px 0 12px}
.lb-status{font-size:.82rem;line-height:1.35;padding:9px 12px;border-radius:12px;border:1px solid var(--line,rgba(255,255,255,.14));background:var(--surface)}
.lb-status.ok{color:var(--muted);border-color:color-mix(in srgb,var(--accent,#2c8b73) 40%,var(--line,rgba(255,255,255,.14)))}
.lb-status.wait{border-color:color-mix(in srgb,#c27a22 45%,var(--line,rgba(255,255,255,.14)))}
.lb-status.bad{border-color:color-mix(in srgb,#c0392b 55%,var(--line,rgba(255,255,255,.14)))}
.lb-form-host{margin:12px 0}
.lb-form{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:16px;border:1px solid var(--line,rgba(255,255,255,.14));background:var(--surface)}
.lb-form-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lb-form-head h3{margin:0;font-size:1rem}
.lb-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lb-grid .lb-field:first-child{grid-column:1/-1}
.lb-field{display:flex;flex-direction:column;gap:4px;font-size:.78rem;font-weight:600;color:var(--muted)}
.lb-field input,.lb-field textarea{font:inherit;font-weight:400;color:var(--text);background:var(--bg,transparent);border:1px solid var(--line,rgba(255,255,255,.16));border-radius:10px;padding:9px 10px;min-width:0}
.lb-field textarea{resize:vertical;min-height:64px}
.lb-field-full{grid-column:1/-1}
.lb-catch-list{display:flex;flex-direction:column;gap:10px}
.lb-catch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border-radius:12px;border:1px dashed var(--line,rgba(255,255,255,.18));position:relative}
.lb-catch .lb-field:nth-child(5){grid-column:1/-1}
.lb-check{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--muted);grid-column:1/-1}
.lb-catch-del{position:absolute;top:6px;right:6px}
.lb-add-catch{display:flex}
.lb-form-actions{margin-top:2px}
.lb-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.lb-card{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:14px;border:1px solid var(--line,rgba(255,255,255,.14));background:var(--surface)}
.lb-card.bad{border-color:color-mix(in srgb,#c0392b 50%,var(--line,rgba(255,255,255,.14)))}
.lb-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.lb-card-when{display:flex;flex-direction:column;gap:2px;min-width:0}
.lb-card-when b{font-size:.92rem}
.lb-badge{flex:none;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:999px;border:1px solid var(--line,rgba(255,255,255,.16));white-space:nowrap}
.lb-badge.ok{color:var(--accent,#2c8b73);border-color:color-mix(in srgb,var(--accent,#2c8b73) 45%,var(--line,rgba(255,255,255,.16)))}
.lb-badge.wait{color:#c27a22;border-color:color-mix(in srgb,#c27a22 50%,var(--line,rgba(255,255,255,.16)))}
.lb-badge.bad{color:#e06c5f;border-color:color-mix(in srgb,#c0392b 55%,var(--line,rgba(255,255,255,.16)))}
.lb-notes{margin:0;white-space:pre-wrap;font-size:.86rem;line-height:1.4}
.lb-catches{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.lb-catches li{display:flex;flex-direction:column;gap:1px;padding:6px 0 6px 10px;border-left:2px solid color-mix(in srgb,var(--accent,#2c8b73) 45%,transparent);font-size:.84rem}
.lb-err{margin:0;font-size:.8rem;color:#e06c5f}
.lb-card-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:2px}
@media(max-width:520px){.lb-grid{grid-template-columns:1fr}.lb-catch{grid-template-columns:1fr}.lb-catch .lb-field:nth-child(5){grid-column:auto}}

/* Sélecteur de fédération départementale dans la fiche AAPPMA */
.fede-picker-label{display:flex;flex-direction:column;gap:7px;margin:12px 0 4px;font-size:.82rem;font-weight:700;color:var(--text)}
.fede-picker{display:flex;align-items:stretch;gap:8px}
.fede-select{min-width:0;flex:1;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:.82rem}
.fede-open[aria-disabled="true"]{opacity:.5;pointer-events:auto}
@media(max-width:420px){.fede-picker{flex-direction:column}.fede-open{align-self:flex-start}}

/* 0.69 : annonces, journal de modération, santé de l'appli, sanctions graduées */
.annonce-bar{display:flex;align-items:flex-start;gap:10px;margin:10px auto 0;max-width:720px;padding:10px 10px 10px 14px;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--fg);border:1px solid var(--line)}
.annonce-bar.lvl-important,.annonce-bar.lvl-maintenance{background:var(--amber-soft)}
.annonce-bar .ann-txt{flex:1;display:flex;flex-direction:column;gap:2px;font-size:.9rem;min-width:0}
.annonce-bar .ann-txt span{color:var(--muted)}
.annonce-bar .ann-x{width:32px;height:32px;font-size:.85rem}
@media (max-width:760px){.annonce-bar{margin:10px 16px 0}}
.log-filter{margin:6px 0 10px}
.log-list{display:flex;flex-direction:column;gap:2px}
.log-row{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line)}
.log-row:last-child{border-bottom:none}
.log-row.past{opacity:.6}
.log-ic{flex:0 0 34px;text-align:center;font-size:.95rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.log-txt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.log-txt .note{margin:0;font-size:.8rem}
.log-det{font-size:.85rem;color:var(--fg);overflow-wrap:anywhere}
.log-more{margin-top:8px}
.health-verdict{font-weight:600;margin:4px 0 10px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--accent-soft)}
.health-verdict.warn{background:var(--amber-soft)}
.health-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:10px}
.health-tile{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--line)}
.health-tile b{font-family:var(--f-mono);font-size:1.3rem;font-variant-numeric:tabular-nums}
.health-tile span{font-size:.78rem;color:var(--muted)}
.health-tile.bad{border-color:var(--warn);background:var(--warn-soft)}
.health-tile.bad b{color:var(--warn)}
.health-det{margin:8px 0;border-top:1px solid var(--line);padding-top:6px}
.health-det>summary{cursor:pointer;font-weight:600;color:var(--accent);padding:4px 0}
.record-box{display:flex;flex-direction:column;gap:2px;padding:10px 12px;margin:4px 0 10px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--line)}
.record-box .note{margin:0}
.reason-chips{margin:-4px 0 10px}
.reason-chips .chip{border:none;cursor:pointer;font:inherit;font-size:.78rem}
.ann-form .form-row{display:flex;gap:10px;flex-wrap:wrap}
.ann-form .form-row .field{flex:1;min-width:140px}

/* 0.69.1 : type de pêche sous le nom */
.fish-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.fish-tags[hidden]{display:none}
.fish-tag{font-size:.68rem;font-weight:600;line-height:1.5;padding:0 7px;border-radius:99px;background:var(--accent-soft);color:var(--accent);white-space:nowrap}
.fish-tag.fish-carpe,.fish-tag.fish-coup,.fish-tag.fish-feeder{background:var(--amber-soft);color:var(--amber)}
.fish-tag.fish-silure,.fish-tag.fish-mer{background:var(--surface-2);color:var(--fg);border:1px solid var(--line)}
.msg-tags{margin:-1px 10px 3px}
.pf-id .fish-tags{margin:4px 0 2px}

/* 0.69.2 : « Nouvelle prise » rangée derrière un bouton */
.share-tiles .st-toggle{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:10px;min-height:52px;padding:10px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--accent);background:var(--accent-soft);color:var(--fg);font:inherit;cursor:pointer;text-align:left}
.share-tiles .st-toggle .stt-ico{font-size:1.25rem}
.share-tiles .st-toggle .stt-t{font-weight:700}
.share-tiles .st-toggle .stt-s{font-size:.82rem;color:var(--muted);flex:1}
.share-tiles .st-toggle[aria-expanded="true"]{border-color:var(--line);background:var(--surface);min-height:40px}
.share-tiles.collapsed button[data-m]{display:none}

/* 0.70 : chat (réponse, réactions, épingle), messages privés, questions-réponses, parrainage */
.msg{position:relative}
.msg.flash .bubble{box-shadow:0 0 0 2px var(--amber)}
.msg-quote{display:flex;flex-direction:column;gap:1px;margin:0 0 6px;padding:5px 9px;border-left:3px solid var(--accent);border-radius:6px;background:var(--surface-2);font-size:.8rem;cursor:pointer;max-width:100%}
.msg-quote b{font-size:.75rem;color:var(--accent)}
.msg-quote span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.msg-reacts{display:flex;flex-wrap:wrap;gap:4px;margin:3px 8px 0}
.react-chip{font:inherit;font-size:.78rem;padding:1px 8px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer}
.react-chip.on{border-color:var(--accent);background:var(--accent-soft)}
.msg-menu{position:relative;z-index:5;margin:4px 0;padding:8px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;max-width:290px}
.mm-emojis{display:flex;gap:2px;justify-content:space-between}
.mm-e{font-size:1.35rem;background:none;border:none;border-radius:10px;width:42px;height:42px;cursor:pointer}
.mm-e:active,.mm-e:hover{background:var(--surface-2)}
.mm-acts{display:flex;flex-wrap:wrap;gap:4px}
.mm-a{font:inherit;font-size:.85rem;font-weight:600;padding:6px 10px;border-radius:99px;border:1px solid var(--line);background:var(--surface-2);color:var(--fg);cursor:pointer}
.mm-a.danger{color:var(--warn)}
.chat-reply{display:flex;align-items:center;gap:8px;padding:6px 12px;border-top:1px solid var(--line);background:var(--surface-2)}
.chat-reply[hidden]{display:none}
.chat-reply .cr-t{flex:1;display:flex;flex-direction:column;font-size:.8rem;min-width:0}
.chat-reply .cr-t span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-reply .cr-x{width:30px;height:30px}
.chat-pin{display:flex;align-items:center;gap:8px;width:100%;padding:8px 14px;border:none;border-bottom:1px solid var(--line);background:var(--amber-soft);color:var(--fg);font:inherit;font-size:.85rem;text-align:left;cursor:pointer}
.chat-pin[hidden]{display:none}
.chat-pin .cp-t{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-dm-btn{position:relative;margin-left:auto;margin-right:6px;font-size:1.05rem}
.chat-dm-btn .tab-badge{position:absolute;top:-4px;right:-4px}
.dm-list{display:flex;flex-direction:column}
.dm-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border:none;border-bottom:1px solid var(--line);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.dm-row.unread .dm-last{color:var(--fg);font-weight:600}
.dm-c{flex:1;display:flex;flex-direction:column;min-width:0}
.dm-top{display:flex;justify-content:space-between;gap:8px}
.dm-last{font-size:.85rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-n{min-width:22px;height:22px;border-radius:11px;background:var(--accent);color:var(--on-accent);font-size:.75rem;font-weight:700;display:grid;place-items:center;padding:0 6px}
.dm-thread .dm-msgs{display:flex;flex-direction:column;gap:4px;max-height:55vh;overflow-y:auto;padding:4px 0 10px}
.dm-thread .msg{max-width:85%}
.dm-thread .msg.mine{align-self:flex-end;align-items:flex-end}
.dm-form{display:flex;gap:8px;position:static;padding:8px 0 0;border-top:1px solid var(--line)}
.dm-form input{flex:1}
.dm-block{margin-left:auto;margin-right:8px}
.pf-dm{margin-top:8px}
.month-card .kpis{margin:6px 0}
.month-card h3{margin:0 0 4px}
.qa-list,.mentor-sec .g-sec-head+div{display:flex;flex-direction:column}
.qa-sec>.btn{margin:4px 0 8px}
.qa-row{display:flex;gap:10px;align-items:flex-start;padding:10px 2px;border:none;border-bottom:1px solid var(--line);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.qa-ic{font-size:1.1rem;flex:0 0 26px;text-align:center}
.qa-c{display:flex;flex-direction:column;gap:2px;min-width:0}
.qa-c .note{margin:0;font-size:.8rem}
.qa-title{margin:2px 0 4px}
.qa-body{white-space:pre-wrap}
.qa-ans{padding:10px 12px;margin:6px 0;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface-2)}
.qa-ans.best{border-color:var(--accent);background:var(--accent-soft)}
.qa-ans p{margin:6px 0;white-space:pre-wrap}
.qa-best{font-size:.75rem;font-weight:700;color:var(--accent)}
.qa-form{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.mentor-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.mentor-row>div{display:flex;flex-direction:column;min-width:0}
.mentor-row .note{margin:2px 0 0;font-size:.8rem}
.mentor-me{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--accent-soft)}
.mentor-vol{margin-top:10px}
/* une fiche ouverte depuis le chat passe au-dessus du chat */
body.chat-open .sheet-back{z-index:2700}

/* 0.70 : photo lue, ambassadeur */
.exif-note{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:6px 0;padding:8px 10px;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--fg)}
.exif-note[hidden]{display:none}
.post-caught{font-size:.75rem;color:var(--muted);margin-top:2px}
.ambassadeur .amb-link{box-sizing:border-box;width:100%;font:inherit;font-size:.85rem;padding:8px 10px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface-2);color:var(--fg);margin:6px 0}
.ambassadeur .amb-next{margin-top:0}
.amb-badge{display:inline-block;margin:4px 0;font-size:.75rem;font-weight:700;padding:1px 9px;border-radius:99px;background:var(--amber-soft);color:var(--amber)}
.dm-thread .msg:not(.mine){flex-direction:row;align-items:flex-end;gap:4px}
.dm-flag{font-size:.8rem;opacity:.55;padding:2px 4px}

/* 0.71 : maintenance, statistiques, bugs, quoi de neuf */
.maint-ov{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:24px;background:var(--bg)}
.maint-card{max-width:420px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.maint-ico{font-size:3rem}
.maint-admin{margin:10px auto 0;max-width:720px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--warn-soft);color:var(--warn);font-weight:600;font-size:.85rem}
@media (max-width:760px){.maint-admin{margin:10px 16px 0}}
.usage-chart{display:flex;align-items:flex-end;gap:2px;height:90px;padding:6px 0;border-bottom:1px solid var(--line)}
.uc-col{flex:1;height:100%;display:flex;align-items:flex-end}
.uc-bar{width:100%;border-radius:3px 3px 0 0;background:var(--accent)}
.usage-screens{display:flex;flex-direction:column;gap:4px}
.us-row{display:grid;grid-template-columns:120px 1fr 36px;align-items:center;gap:8px;font-size:.82rem}
.us-bar{height:8px;border-radius:4px;background:var(--accent);min-width:2px}
.us-v{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}
.bug-form{display:flex;flex-direction:column;gap:8px}
.bug-form textarea{width:100%;box-sizing:border-box}
.bug-shot img{max-width:160px;max-height:220px;border-radius:8px;margin-top:6px;border:1px solid var(--line)}
.news-list{margin:4px 0 10px;padding-left:18px;display:flex;flex-direction:column;gap:6px}

/* 0.74 : rangement */
.tidy .app-head-in #notif-bell,.tidy .app-head-in #view-toggle{display:none!important}
.tidy .grp-switch{max-width:none;flex:1 1 auto}
.head-me{position:relative}
.head-me .hm-dot{position:absolute;top:-4px;right:-4px}
.head-menu{position:fixed;z-index:3000;min-width:230px;padding:6px;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.35);display:flex;flex-direction:column}
.hm-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border:none;border-radius:10px;background:none;color:var(--fg);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.hm-item:hover,.hm-item:focus-visible{background:var(--surface-2);outline:none}
.hm-i{width:22px;text-align:center}
.hm-l{flex:1}
.hm-n{min-width:20px;height:20px;border-radius:10px;padding:0 6px;background:var(--warn);color:#fff;font-size:.72rem;font-weight:800;display:grid;place-items:center}
#profil-sub button[data-tidy]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:1 1 0;min-width:0;padding:5px 2px;font-size:.72rem;line-height:1.1;overflow:visible;text-overflow:clip;margin-left:0}
#profil-sub .sb-i{font-size:1.1rem;line-height:1.2}
#profil-sub .sb-t{white-space:nowrap}
.set-group{padding:0;overflow:hidden}
.set-group>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer}
.set-group>summary::-webkit-details-marker{display:none}
.set-group>summary::after{content:"▾";margin-left:auto;color:var(--muted);transition:transform .2s}
.set-group[open]>summary::after{transform:rotate(180deg)}
.set-group .sg-i{font-size:1.4rem}
.set-group .sg-t{display:flex;flex-direction:column;min-width:0}
.set-group .sg-t b{font-family:var(--f-display);text-transform:uppercase;letter-spacing:.03em;font-size:1.1rem}
.set-group .sg-t .note{margin:0;font-size:.8rem}
.set-group>.panel.in-group{margin:0;border:none;border-top:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}
.mod-off{display:none!important}
.mod-tabs{margin:6px 0 14px;display:grid!important;grid-template-columns:repeat(4,1fr);gap:4px;position:static;overflow:visible}
.mod-tabs button{display:flex!important;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:6px 2px!important;font-size:.7rem!important;line-height:1.15;position:relative;overflow:visible!important}
.mod-tabs .sb-i{font-size:1.1rem}
.mod-tabs .sb-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.mod-tabs .mt-n{position:absolute;top:2px;right:4px}
.tidy .modo-head h1{display:none}
.mod-tabs .mt-n{min-width:18px;height:18px;border-radius:9px;background:var(--warn);color:#fff;font-size:.68rem;display:grid;place-items:center;padding:0 5px}
.has-sub[data-s="jeux"] > [data-sub]:not([data-sub="jeux"]){display:none!important}
.subbar button.has-dot::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--warn);margin-left:5px;vertical-align:middle}
/* règles locales par département */
.regl-dep{display:block;margin:8px 0 4px}
.regl-dep select{width:100%}
.regl-dep .note{display:block;margin-top:4px}
.regl-general{margin:4px 0 0;padding-left:18px}
.regl-general li{margin:4px 0}

/* écran de démarrage : signature Octane Code */
.splash-bar{display:block;width:140px;height:3px;border-radius:2px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:14px;position:relative}
.splash-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#ffc463,#e46f17);transform-origin:left;animation:splashbar 1.4s cubic-bezier(.4,0,.2,1) both}
.splash-by{position:absolute;left:0;right:0;bottom:max(34px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:6px;animation:splashup .6s .45s both}
.splash-by small{font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;opacity:.7}
.splash-by img{width:min(200px,52vw);height:auto;border-radius:0;box-shadow:none;animation:none}
@keyframes splashbar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* 0.77 : postes, direct, étangs */
.postes{margin-top:14px}
.postes-list{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:6px}
.postes-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.postes-list li>div{min-width:0}
.postes-form{display:grid;gap:8px;margin-top:8px}
.postes-form .row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.postes-form input,.postes-form select{width:100%;min-width:0}
.carp-live-slot{display:grid;gap:8px;margin:0 0 12px}
.carp-live{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:14px;border:1px solid color-mix(in srgb,#e0453a 35%,var(--line));background:color-mix(in srgb,#e0453a 7%,var(--surface))}
.carp-live-h{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.7rem;text-transform:uppercase;color:#e0453a;min-width:52px}
.live-dot{width:10px;height:10px;border-radius:50%;background:#e0453a;box-shadow:0 0 0 0 #e0453a88;animation:livepulse 1.6s infinite}
@keyframes livepulse{70%{box-shadow:0 0 0 8px #e0453a00}100%{box-shadow:0 0 0 0 #e0453a00}}
@media (prefers-reduced-motion:reduce){.live-dot{animation:none}}
.carp-live-k{font-weight:600;margin-top:2px}
.etang-pop p{margin:6px 0}
.today-location-hint,.spot-prep,.etang-prep{display:grid;gap:6px;padding:10px 12px;border:1px solid var(--warn);border-radius:12px;background:var(--warn-soft);margin:8px 0}
.today-location-hint .note,.spot-prep .note,.etang-prep .note{margin:0}
.etang-prep{font-size:.9rem}
.etang-tags{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.etang-tags .chip{font-size:.7rem;padding:2px 8px}
.etang-pin{border-radius:10px}
