:root {
  --font-title: "Barlow Condensed", "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #0a0f16; --bg-2: #0d131c; --panel: #111823; --panel-2: #172030; --line: #222d3d; --line-2: #2d3a4e;
  --text: #e9edf3; --muted: #93a0b3; --dim: #64718a;
  --accent: #2d8ee6; --accent-2: #5aaaf2; --accent-soft: rgba(45,142,230,.12);
  --ok: #3fb97a; --warn: #e6a23c; --info: #4c8fe6; --off: #7a8190; --danger: #e5534b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: 2.6rem; } h2 { font-size: 1.9rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.kicker { font-family: var(--font-title); text-transform: uppercase; font-size: .85rem; letter-spacing: 6px; color: var(--accent-2); font-weight: 600; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10,15,22,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: flex-end; gap: 2px; font-family: var(--font-title); text-transform: uppercase; font-size: 2.1rem; font-weight: 800; line-height: 1; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-v { width: 2.4rem; height: 2.3rem; color: var(--accent); margin-bottom: -2px; filter: drop-shadow(0 0 6px rgba(45,142,230,.35)); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: center; }
.top nav a { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; font-size: 1.02rem; font-weight: 600; color: #c3ccd9; padding: 8px 12px; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a.on { color: #fff; border-bottom-color: var(--accent); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); }
.is-home .top { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(6,10,15,.85), rgba(6,10,15,0)); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: .98rem;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: 10px 18px; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.outline { background: rgba(10,15,22,.4); border-color: #c9d2de; color: #fff; }
.btn.outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.danger { background: transparent; border-color: #7a2a26; color: #ff8a80; }
.btn.lg { padding: 16px 30px; font-size: 1.08rem; }
.btn .ti { font-size: 1.2em; }

main { padding: 36px 24px 80px; }
.is-home main, .has-banner main { padding-top: 0; }
.flash { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0; margin: 20px 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Bannière de page ---------- */
.banner { margin: 0 calc(50% - 50vw) 40px; padding: 70px max(24px, calc(50vw - 636px)) 50px; position: relative;
  background: linear-gradient(90deg, rgba(10,15,22,.97) 30%, rgba(10,15,22,.75)), linear-gradient(0deg, var(--bg), rgba(10,15,22,0) 60%), url("/assets/hero.jpg") center 30%/cover, var(--panel);
  border-bottom: 1px solid var(--line); }
.banner h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; margin: 8px 0 10px; }
.banner p { color: #c3ccd9; max-width: 680px; margin: 0; font-size: 1.05rem; }
.banner .actions { margin-top: 22px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* ---------- Cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.grid .card { margin: 0; }
.card.link { color: var(--text); display: block; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card p { margin: 0; color: var(--muted); }
.ico { color: var(--accent); font-size: 1.8rem; flex: none; line-height: 1; }

/* ---------- Accueil ---------- */
.home-hero { position: relative; margin: 0 calc(50% - 50vw); padding: 170px max(24px, calc(50vw - 636px)) 0; min-height: min(100vh, 900px);
  background: linear-gradient(90deg, rgba(6,10,15,.94) 0%, rgba(6,10,15,.55) 40%, rgba(6,10,15,0) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(6,10,15,0) 30%),
              url("/assets/hero.jpg") center/cover no-repeat, var(--panel);
  border-bottom: 1px solid var(--line); }
.home-hero h1 { font-size: clamp(3rem, 6.5vw, 5.8rem); font-weight: 800; line-height: .98; max-width: 720px; margin: 14px 0 18px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.home-hero > p { font-size: 1.3rem; color: #d3dae5; margin: 0 0 30px; }
.side-tag { position: absolute; left: 28px; bottom: 60px; font-size: 11px; letter-spacing: 5px; color: var(--muted); text-transform: uppercase; line-height: 1.8; }
.side-tag::before { content: ""; display: block; width: 36px; height: 2px; background: var(--muted); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(12,18,27,.96); border: 1px solid var(--line-2); border-radius: var(--radius); max-width: 960px; margin: 80px auto 0; transform: translateY(50%); }
.stat { padding: 18px 26px; display: flex; gap: 14px; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-title); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .5px; }
.stat small { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--off); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 12px var(--ok); }

.section { padding: 90px 0 0; }
.home-hero + .section { padding-top: 130px; }
.section-title { text-align: center; margin-bottom: 38px; }
.section-title h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); display: inline-flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.section-title h2::before, .section-title h2::after { content: ""; width: 54px; height: 2px; background: var(--accent); }
.section-title p { letter-spacing: 4px; font-size: .8rem; color: var(--muted); margin: 0; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature { display: flex; gap: 20px; align-items: flex-start; padding: 26px; }
.feature .ico { font-size: 3.2rem; }
.feature h3 { margin-bottom: 6px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 16px; top: 4px; font-family: var(--font-title); font-weight: 800; font-size: 5rem; color: rgba(45,142,230,.09); line-height: 1; }
.step .ico { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.step .btn { margin-top: 16px; }

.city { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: stretch; }
.city-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.big-num { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.big-num b { display: block; font-family: var(--font-title); font-size: 3rem; line-height: 1; color: #fff; }
.big-num span { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; }
.big-num.accent { background: linear-gradient(135deg, rgba(45,142,230,.22), rgba(45,142,230,.05)); border-color: rgba(45,142,230,.4); }
.list-card { margin: 0; }
.list-card h3 { display: flex; align-items: center; gap: 10px; }
.mini { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.mini:hover { text-decoration: none; color: var(--accent-2); }
.mini .who-l { flex: 1; min-width: 0; }
.mini small { display: block; color: var(--muted); }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.links .card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; position: relative; }
.links .card::after { content: "\2192"; position: absolute; top: 18px; right: 20px; color: var(--muted); font-size: 18px; transition: .15s; }
.links .card:hover::after { color: var(--accent); right: 16px; }
.links .card .ico { font-size: 2.4rem; }
.links .card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.links .card p { font-size: 13.5px; }

.cta { margin-top: 90px; border-radius: 16px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(100deg, rgba(88,101,242,.28), rgba(45,142,230,.12) 60%, rgba(45,142,230,.02)), var(--panel); border: 1px solid rgba(88,101,242,.4); }
.cta h2 { margin: 0 0 6px; font-size: 2.1rem; }
.cta p { margin: 0; color: #c3ccd9; }
.btn.discord { background: #5865f2; border-color: #5865f2; }
.btn.discord:hover { background: #6d78f5; border-color: #6d78f5; }

/* ---------- Groupes ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; }
.tabs a:hover { color: #fff; border-color: var(--accent); text-decoration: none; }
.tabs a b { color: var(--accent-2); margin-left: 4px; }
.cat { margin: 0 0 46px; scroll-margin-top: 100px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.count { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 2px 10px; text-transform: none; font-weight: 500; }
.org { position: relative; overflow: hidden; padding-top: 24px; }
.org::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--off); }
.org.s-ok::before { background: var(--ok); } .org.s-warn::before { background: var(--warn); } .org.s-info::before { background: var(--info); }
.org-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.org-top .t { flex: 1; min-width: 0; }
.org-top h3, .org-top h1 { margin: 0; }
.logo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; color: var(--accent-2); }
.org-top.big .logo { width: 84px; height: 84px; font-size: 2rem; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dt { color: var(--muted); display: flex; align-items: center; gap: 6px; } dd { margin: 0; font-weight: 500; }
.bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: rgba(63,185,122,.15); color: var(--ok); }
.badge.warn { background: rgba(230,162,60,.15); color: var(--warn); }
.badge.info { background: rgba(76,143,230,.15); color: var(--info); }
.badge.off { background: rgba(122,129,144,.18); color: var(--off); }

/* ---------- Règlement ---------- */
.search { position: relative; max-width: 560px; margin-top: 24px; }
.search .ti { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; }
.search input { padding: 14px 16px 14px 46px; font-size: 16px; background: rgba(10,15,22,.8); border-color: var(--line-2); border-radius: 10px; }
.chap-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.chap-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; color: var(--text); }
.chap-card .n { font-family: var(--font-title); font-weight: 800; color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.chap-card h3 { margin: 0; font-size: 1.2rem; }
.chap-card small { color: var(--muted); }
.chap-nav { position: sticky; top: 76px; z-index: 10; margin: 0 calc(50% - 50vw) 34px; padding: 12px max(24px, calc(50vw - 636px)); background: rgba(10,15,22,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; gap: 8px; overflow-x: auto; }
.chap-nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; }
.chap-nav a:hover, .chap-nav a.on { color: #fff; border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.chapter { margin-bottom: 64px; scroll-margin-top: 150px; }
.chap-head { display: flex; gap: 22px; align-items: flex-start; padding: 28px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(120deg, rgba(45,142,230,.14), rgba(45,142,230,0) 60%), var(--panel); border: 1px solid var(--line); }
.chap-head .ico { font-size: 2.8rem; background: var(--accent-soft); border-radius: 14px; width: 72px; height: 72px; display: grid; place-items: center; }
.chap-head .t { flex: 1; min-width: 0; }
.chap-head h2 { font-size: 2.1rem; margin: 2px 0 8px; }
.chap-head .prose p { color: #c3ccd9; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; scroll-margin-top: 150px; transition: border-color .15s; }
.article:hover { border-color: var(--line-2); }
.article:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.article-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.article-h .n { font-family: var(--font-title); font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 8px; min-width: 38px; height: 32px; display: grid; place-items: center; }
.article-h h3 { margin: 0; flex: 1; font-size: 1.25rem; }
.article-h a.edit { font-size: 13px; }
.article .prose { color: #cdd5e1; font-size: 14.5px; }
.no-result { display: none; }
.prose p { margin: 0 0 .8rem; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 .8rem; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(229,83,75,.35); background: rgba(229,83,75,.08); color: #ffb4ae; padding: 10px 14px; margin: 0 0 .8rem; border-radius: 10px; font-weight: 600; font-size: 14px; }
.alert::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.alert:last-child { margin-bottom: 0; }

/* ---------- Formulaires ---------- */
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.form .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
input, select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding: 50px 24px 30px; }
.foot-grid h4 { color: #fff; margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; font-size: 14px; }
.foot-grid a:hover { color: #fff; }
.foot-grid p { color: var(--muted); font-size: 14px; max-width: 320px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; text-transform: uppercase; letter-spacing: 4px; font-size: 11px; color: var(--dim); border-top: 1px solid var(--line); padding: 18px 24px 26px; }

@media (max-width: 1000px) {
  .city { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side-tag { display: none; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; transform: none; margin-top: 50px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .home-hero { padding-top: 140px; padding-bottom: 40px; }
  .home-hero + .section { padding-top: 70px; }
  .articles { grid-template-columns: 1fr; }
  .chap-head { flex-direction: column; }
  .who span { display: none; }
  .top-in { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .top nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .cta { padding: 28px; }
}

/* ---------- Carte ---------- */
.foot-grid a.brand { display: inline-flex; font-size: 2.1rem; color: #fff; padding: 0; }
.gmap { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); background: #0fa7d6; overflow: hidden; z-index: 0; }
.gmap.tall { height: 620px; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); }
.leaflet-popup-content a { color: #fff; }
.leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.leaflet-bar a:hover { background: var(--panel-2); }
.rv-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.map-block { margin-bottom: 46px; }
.map-block .cat-head { border: 0; padding: 0; }
.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.detail-grid .gmap { height: 520px; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } .gmap, .gmap.tall, .detail-grid .gmap { height: 380px; } }
.gmap.leaflet-container { background: #10a8d7; }

/* ---------- Comptabilité ---------- */
.badge.danger { background: rgba(229,83,75,.15); color: #ff8a80; }
.banner.compact { padding-top: 40px; padding-bottom: 0; margin-bottom: 30px; }
.subnav { display: flex; gap: 4px; margin-top: 26px; overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.subnav a:hover { color: #fff; text-decoration: none; }
.subnav a.on { color: #fff; border-bottom-color: var(--accent); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.kpi b { display: block; font-family: var(--font-title); font-size: 2rem; line-height: 1.15; margin-top: 4px; }
.kpi small { color: var(--muted); }
.kpi.main { background: linear-gradient(135deg, rgba(45,142,230,.22), rgba(45,142,230,.04)); border-color: rgba(45,142,230,.4); }
.pos { color: var(--ok); } .neg { color: #ff8a80; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); }
.inline-form { display: grid; grid-template-columns: 170px 1fr 150px 190px auto; gap: 10px; align-items: end; }
.inline-form label { margin: 0; }
.lock-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.lock-note.locked { background: rgba(229,83,75,.08); border: 1px solid rgba(229,83,75,.3); color: #ffb4ae; }
.lock-note.open { background: var(--accent-soft); border: 1px solid rgba(45,142,230,.35); color: #cfe4fb; }
.lock-note.done { background: rgba(63,185,122,.1); border: 1px solid rgba(63,185,122,.35); color: #a6e6c4; }
.summary dl { grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 15px; }
.summary dd { text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line-2); padding-top: 10px; font-size: 1.1rem; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; font-size: 1.1rem; }
.icon-btn:hover { color: #ff8a80; }
.week-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.week-pick b { font-family: var(--font-title); font-size: 1.3rem; text-transform: uppercase; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } .inline-form { grid-template-columns: 1fr 1fr; } }

/* ---------- Panel ---------- */
body.panel { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: #080c12; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.side .brand { font-size: 1.7rem; padding: 4px 10px 18px; }
.side .brand-v { width: 1.9rem; height: 1.8rem; }
.side .brand small { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--accent-2); background: var(--accent-soft); border-radius: 6px; padding: 3px 7px; margin-left: 8px; align-self: center; }
.side-group { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--dim); padding: 16px 12px 6px; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #b9c3d1; font-weight: 500; font-size: 14.5px; }
.side-link .ti { font-size: 1.25rem; color: var(--muted); }
.side-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link:hover { background: var(--panel); color: #fff; text-decoration: none; }
.side-link.on { background: var(--accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-link.on .ti { color: var(--accent-2); }
.side-sub { display: flex; flex-direction: column; margin: 2px 0 6px 34px; border-left: 1px solid var(--line-2); }
.side-sub a { padding: 6px 12px; color: var(--muted); font-size: 13.5px; }
.side-sub a:hover { color: #fff; text-decoration: none; }
.side-sub a.on { color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 4px; border-top: 1px solid var(--line); }
.side-user img { width: 36px; height: 36px; border-radius: 50%; }
.side-user div { flex: 1; min-width: 0; line-height: 1.3; }
.side-user b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: var(--muted); font-size: 12px; }
.pmain { min-width: 0; }
.pbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 32px; background: rgba(8,12,18,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pbar h1 { font-size: 1.5rem; margin: 0; }
.burger { display: none; }
.pcontent { padding: 28px 32px 60px; max-width: 1400px; }
.pcontent .card { margin-bottom: 18px; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.phead h2 { margin: 0 0 4px; font-size: 1.7rem; }
.phead p { margin: 0; color: var(--muted); max-width: 720px; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding: 24px 26px; border-radius: 16px;
  background: linear-gradient(110deg, rgba(45,142,230,.2), rgba(45,142,230,0) 70%), var(--panel); border: 1px solid var(--line); }
.welcome h2 { margin: 0 0 4px; font-size: 1.9rem; }
.welcome p { margin: 0; color: var(--muted); }
.kpi.link { color: var(--text); transition: border-color .15s, transform .15s; }
.kpi.link:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.kpi span .ti { color: var(--accent-2); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 24px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; }
.bar-col i { display: block; width: 100%; max-width: 46px; background: var(--accent); border-radius: 6px 6px 2px 2px; }
.bar-col.cur i { background: var(--accent-2); opacity: .55; }
.bar-col small { color: var(--muted); font-size: 11.5px; }
.bar-val { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-size: 13.5px; }
.chip b { color: var(--accent-2); }
.chip .ti { color: var(--dim); }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.search.sm { margin: 0; max-width: 340px; flex: 1; }
.search.sm input { padding: 9px 12px 9px 40px; font-size: 14px; }
.search.sm .ti { left: 13px; font-size: 1rem; }
.cell-org { display: flex; align-items: center; gap: 12px; }
.cell-org .logo { width: 38px; height: 38px; font-size: 1rem; }
.cell-org small { display: block; color: var(--muted); }
.id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--accent-2); }
.btn.sm { padding: 6px 10px; font-size: .85rem; }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); }
.btn.danger-fill:hover { background: #f06a62; border-color: #f06a62; }
tr.focus td { background: rgba(229,83,75,.12) !important; }
.org-hero { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 0; margin-bottom: 22px; }
.org-hero .org-top { margin: 0; }
.org-hero h2 { margin: 0 0 4px; font-size: 1.8rem; }
.org-hero .subnav { margin-top: 16px; border-top: 1px solid var(--line); }
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dir { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 2px; background: var(--bg-2); }
.dir > b { display: block; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--accent-2); }
.sticky-col { position: sticky; top: 84px; }
.big-err { align-items: flex-start; font-weight: 400; }
.big-err .ti { font-size: 1.4rem; }
.big-err a { color: #fff; font-weight: 600; text-decoration: underline; }
.pcontent .two { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
@media (max-width: 1000px) {
  body.panel { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .burger { display: inline-block; font-size: 1.5rem; color: var(--text); }
  .pbar, .pcontent { padding-left: 16px; padding-right: 16px; }
  .pcontent .two, .dir-grid { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}

/* ---------- Suivi, alertes, discussion ---------- */
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.alert-row { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.alert-row .ti { font-size: 1.15rem; flex: none; }
.alert-row.danger { background: rgba(229,83,75,.1); border: 1px solid rgba(229,83,75,.35); color: #ffb4ae; }
.alert-row.warn { background: rgba(230,162,60,.1); border: 1px solid rgba(230,162,60,.35); color: #f3cf95; }
.alert-row.info { background: var(--accent-soft); border: 1px solid rgba(45,142,230,.3); color: #cfe4fb; }
.kpi.bad { background: rgba(229,83,75,.1); border-color: rgba(229,83,75,.4); }
.pos-bg { background: var(--ok) !important; } .neg-bg { background: var(--danger) !important; }
.lg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; vertical-align: 0; margin-left: 6px; }
.bars.profit .bar-col.cur i { opacity: .55; }
.event { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.event:first-of-type { border-top: 0; }
.event-date { flex: none; width: 56px; height: 60px; border-radius: 10px; background: var(--accent-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.event-date b { font-family: var(--font-title); font-size: 1.6rem; color: #fff; }
.event-date small { color: var(--accent-2); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.event-b { flex: 1; min-width: 0; }
.event-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.event-b p { margin: 4px 0 6px; color: #c3ccd9; }
.event-img { max-height: 160px; border-radius: 8px; margin: 6px 0; border: 1px solid var(--line-2); }
.review { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.review input { flex: 1; min-width: 160px; padding: 7px 10px; font-size: 14px; }
.warn-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.warn-row:first-of-type { border-top: 0; }
.warn-row > .ti { font-size: 1.3rem; color: var(--warn); flex: none; }
.warn-row > div { flex: 1; min-width: 0; }
.warn-row small { display: block; }
.warn-row.off { opacity: .45; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; margin: 0 !important; color: var(--text) !important; font-size: 14px !important; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { width: auto; accent-color: var(--accent); }
.check img, .check .logo { width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.follow { border-top: 3px solid var(--ok); }
.follow.warn { border-top-color: var(--warn); } .follow.danger { border-top-color: var(--danger); }
.follow .alerts { margin: 14px 0 0; }
.pill { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }

.chat { display: grid; grid-template-columns: 250px 1fr; gap: 18px; height: calc(100vh - 64px - 56px); min-height: 520px; }
.chat .card { margin: 0; }
.chat-side { overflow-y: auto; padding: 16px 10px; }
.chat-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pins { display: flex; flex-direction: column; gap: 4px; padding: 10px 20px; background: rgba(230,162,60,.07); border-bottom: 1px solid var(--line); font-size: 13px; }
.pins a { color: #f3cf95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; }
.day-sep { text-align: center; margin: 14px 0 8px; position: relative; }
.day-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.day-sep span { position: relative; background: var(--panel); padding: 0 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.msg { display: flex; gap: 12px; padding: 6px 8px; border-radius: 8px; position: relative; margin-top: 8px; }
.msg.grouped { margin-top: 0; padding-top: 2px; }
.msg:hover { background: rgba(255,255,255,.03); }
.msg.pinned { background: rgba(230,162,60,.06); }
.msg-av { width: 38px; flex: none; }
.msg-av img, .msg-av .logo { width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; }
.msg-b { flex: 1; min-width: 0; }
.msg-h { display: flex; gap: 8px; align-items: baseline; }
.msg-h small { color: var(--dim); font-size: 12px; }
.msg-h .ti { color: var(--warn); }
.msg-t { color: #d7dee8; word-wrap: break-word; }
.mention { background: var(--accent-soft); color: var(--accent-2); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention.me { background: rgba(230,162,60,.2); color: #f3cf95; }
.msg-act { position: absolute; right: 8px; top: 4px; display: none; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.msg:hover .msg-act { display: flex; }
.chat-form { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; max-height: 160px; }
.chat-form .btn { height: 44px; }
@media (max-width: 1000px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-side { max-height: 200px; } .chat-list { height: 60vh; } }

/* =====================================================================
   Panel — style « tablette en jeu » (v11)
   Fond photo flouté + voiles noirs transparents, onglets en haut, angles carrés.
   ===================================================================== */
body.panel {
  display: block; min-height: 100vh; font-family: 'Montserrat', system-ui, sans-serif; color: #EDEDED;
  background: #141414;
  --panel: rgba(0,0,0,.30); --panel-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --muted: #B4B4B4; --dim: #8A8A8A; --text: #EDEDED; --radius: 0px; --bg: rgba(0,0,0,.35); --bg-2: rgba(0,0,0,.25);
}
body.panel::before {
  content: ""; position: fixed; inset: -30px; z-index: -2;
  background: url("/assets/hero.jpg") center/cover no-repeat,
              radial-gradient(ellipse 60% 45% at 78% 30%, rgba(190,190,190,.35), transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 75%, rgba(120,120,120,.35), transparent 70%),
              linear-gradient(160deg, #3a3a3a, #232323 45%, #141414);
  filter: blur(14px) grayscale(.55) brightness(.75);
}
body.panel *, body.panel *::before, body.panel *::after { border-radius: 0 !important; }
body.panel .tb-av, body.panel .dot, body.panel .msg-av img, body.panel .msg-av .logo, body.panel .side-user img, body.panel .check img { border-radius: 50% !important; }
body.panel h1, body.panel h2, body.panel h3, body.panel h4, body.panel .btn, body.panel .kpi b, body.panel .stat b, body.panel .big-num b {
  font-family: 'Montserrat', system-ui, sans-serif; text-transform: none; letter-spacing: 0;
}
body.panel h2, body.panel h3 { font-weight: 700; }

.tb-head { height: 96px; display: flex; align-items: center; gap: 18px; padding: 0 40px; background: rgba(0,0,0,.28); }
.tb-logo { font-size: 28px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.tb-logo span { color: var(--accent); }
.tb-logo:hover { text-decoration: none; color: #fff; }
.tb-sep { width: 1px; height: 34px; background: rgba(255,255,255,.18); }
.tb-ctx { line-height: 1.3; }
.tb-ctx b { display: block; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.tb-ctx small { color: #A8A8A8; font-size: 13px; }
.tb-fill { flex: 1; }
.tb-search { position: relative; width: 320px; }
.tb-search .ti { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #A8A8A8; }
.tb-search input { background: rgba(255,255,255,.08); border: 0; padding: 11px 12px 11px 38px; font-size: 14px; }
.tb-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #D0D0D0; font-size: 1.25rem; }
.tb-icon:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.tb-av { width: 36px; height: 36px; }

.tb-tabs { display: flex; background: rgba(0,0,0,.31); overflow-x: auto; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.tb-tabs a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding: 0 22px; color: #B9B9B9; font-size: 15px; font-weight: 500; white-space: nowrap; }
.tb-tabs a .ti { font-size: 1.1rem; opacity: .8; }
.tb-tabs a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.tb-tabs a.on { background: var(--accent); color: #fff; font-weight: 600; }
.tb-badge { background: var(--danger); color: #fff; font-size: 11px; padding: 1px 7px; font-weight: 700; }

.pmain { background: rgba(0,0,0,.33); min-height: calc(100vh - 156px); }
body.panel .pcontent { padding: 34px 48px 60px; max-width: 1500px; margin: 0 auto; }
.tb-title { font-size: 26px !important; font-weight: 800 !important; letter-spacing: .08em !important; color: #A0A0A0; margin: 0 0 26px; }

/* Cartes et surfaces : voile noir léger au lieu de panneaux pleins */
body.panel .card, body.panel .kpi, body.panel .org-hero, body.panel .welcome, body.panel .big-num, body.panel .chat .card {
  background: rgba(0,0,0,.30); border: 1px solid rgba(255,255,255,.06);
}
body.panel .kpi { text-align: center; padding: 22px 16px; }
body.panel .kpi span { font-size: 14px; letter-spacing: 0; text-transform: none; color: #D6D6D6; order: 2; margin-top: 6px; }
body.panel .kpi { display: flex; flex-direction: column; align-items: center; }
body.panel .kpi b { font-size: 2.6rem; font-weight: 700; order: 1; }
body.panel .kpi small { order: 3; color: #9A9A9A; }
body.panel .kpi.main { background: rgba(45,142,230,.25); border-color: rgba(45,142,230,.5); }
body.panel .welcome { background: rgba(0,0,0,.30); }

/* Boutons plats */
body.panel .btn { font-weight: 600; letter-spacing: 0; border: 0; }
body.panel .btn.ghost { background: rgba(255,255,255,.08); color: #EDEDED; }
body.panel .btn.ghost:hover { background: rgba(255,255,255,.14); }
body.panel .btn.lg { height: 52px; }
body.panel button.btn[value="submit"], body.panel .btn.save { background: #1F6E4A; }

/* Champs : sans cadre, fond légèrement éclairci, bleu au focus */
body.panel input, body.panel select, body.panel textarea { background: rgba(255,255,255,.07); border: 0; color: #EDEDED; font-family: 'Montserrat', system-ui, sans-serif; }
body.panel input:focus, body.panel select:focus, body.panel textarea:focus { outline: 0; background: var(--accent); color: #fff; }
body.panel select option { background: #1b1b1b; color: #EDEDED; }
body.panel .form label { color: #D6D6D6; font-size: 14px; font-weight: 500; }

/* Tableaux et listes */
body.panel table.data th { color: #8A8A8A; }
body.panel table.data td, body.panel table.data th { border-bottom-color: rgba(255,255,255,.06); }
body.panel table.data tr:hover td { background: rgba(255,255,255,.04); }
body.panel .subnav { border-top: 0; margin-top: 18px; background: rgba(0,0,0,.25); }
body.panel .subnav a { flex: 1; justify-content: center; border-bottom: 0; padding: 14px 18px; color: #B9B9B9; }
body.panel .subnav a.on { background: var(--accent); color: #fff; }
body.panel .org-hero { padding-bottom: 0; }
body.panel .org-hero .subnav { margin: 18px -24px 0; }
body.panel .flash { background: rgba(45,142,230,.2); border: 0; border-left: 4px solid var(--accent); }
body.panel .mini { border-top-color: rgba(255,255,255,.06); }
body.panel .chip, body.panel .badge, body.panel .id { border-radius: 0 !important; }
body.panel .id { background: rgba(255,255,255,.08); border: 0; }
body.panel .bar-col i { background: var(--accent); }
body.panel .day-sep span { background: #1a1a1a; }

@media (max-width: 900px) {
  .tb-head { padding: 0 16px; height: 76px; gap: 12px; }
  .tb-search, .tb-ctx small { display: none; }
  body.panel .pcontent { padding: 24px 16px 50px; }
  .tb-tabs a { flex: 0 0 auto; padding: 0 16px; }
}

/* =====================================================================
   Site public — même style tablette que le panel (v12)
   ===================================================================== */
body.site {
  font-family: 'Montserrat', system-ui, sans-serif; color: #EDEDED; background: #141414;
  --panel: rgba(0,0,0,.30); --panel-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --muted: #B4B4B4; --dim: #8A8A8A; --text: #EDEDED; --radius: 0px; --bg: rgba(0,0,0,.35); --bg-2: rgba(0,0,0,.25);
}
body.site::before {
  content: ""; position: fixed; inset: -30px; z-index: -2;
  background: url("/assets/hero.jpg") center/cover no-repeat,
              radial-gradient(ellipse 60% 45% at 78% 30%, rgba(190,190,190,.35), transparent 70%),
              linear-gradient(160deg, #3a3a3a, #232323 45%, #141414);
  filter: blur(14px) grayscale(.55) brightness(.75);
}
body.site *, body.site *::before, body.site *::after { border-radius: 0 !important; }
body.site .who img, body.site .dot, body.site .rv-pin span { border-radius: 50% !important; }
body.site .rv-pin span { border-radius: 50% 50% 50% 0 !important; }
body.site h1, body.site h2, body.site h3, body.site h4, body.site .btn, body.site .top nav a, body.site .kicker,
body.site .stat b, body.site .big-num b, body.site .chap-card .n, body.site .article-h .n {
  font-family: 'Montserrat', system-ui, sans-serif;
}
body.site h1, body.site h2 { font-weight: 800; letter-spacing: .04em; }
body.site h3 { font-weight: 700; letter-spacing: .02em; }

/* En-tête + menu en onglets */
body.site .top { background: rgba(0,0,0,.45); border-bottom: 0; backdrop-filter: blur(6px); }
body.site.is-home .top { background: rgba(0,0,0,.30); }
body.site .top-in { min-height: 72px; gap: 20px; }
body.site .brand { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 800; letter-spacing: .04em; font-size: 1.8rem; }
body.site .top nav { gap: 0; align-self: stretch; }
body.site .top nav a { display: flex; align-items: center; height: 100%; min-height: 72px; padding: 0 18px; border-bottom: 0; font-size: .95rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: #C8C8C8; }
body.site .top nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
body.site .top nav a.on { background: var(--accent); color: #fff; font-weight: 600; }

/* Bannières et accueil : voile au lieu du bleu nuit */
body.site main { background: rgba(0,0,0,.33); }
body.site.is-home main { background: transparent; }
body.site .banner { background: rgba(0,0,0,.30); border-bottom: 0; }
body.site .banner h1 { letter-spacing: .08em; }
body.site .banner p { color: #D6D6D6; }
body.site .home-hero { background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%), url("/assets/hero.jpg") center/cover no-repeat; border-bottom: 0; }
body.site .home-hero h1 { font-weight: 800; letter-spacing: .02em; }
body.site .kicker { color: #D6D6D6; letter-spacing: 6px; }
body.site.is-home .section, body.site.is-home .cta { background: rgba(0,0,0,.33); margin: 0 calc(50% - 50vw); padding-left: max(24px, calc(50vw - 636px)); padding-right: max(24px, calc(50vw - 636px)); }
body.site.is-home .section { padding-bottom: 20px; }
body.site.is-home .cta { margin-top: 0; padding-top: 50px; padding-bottom: 60px; border: 0; background: rgba(0,0,0,.33); }
body.site .section-title h2::before, body.site .section-title h2::after { background: var(--accent); }

/* Cartes, statistiques, règlement */
body.site .card, body.site .stats, body.site .big-num, body.site .article, body.site .chap-head, body.site .chap-nav {
  background: rgba(0,0,0,.30); border: 1px solid rgba(255,255,255,.06);
}
body.site .stats { background: rgba(0,0,0,.55); }
body.site .big-num.accent, body.site .chap-card:hover { border-color: var(--accent); }
body.site .big-num.accent { background: rgba(45,142,230,.25); }
body.site .chap-nav { backdrop-filter: blur(6px); background: rgba(0,0,0,.55); }
body.site .chap-nav a { border: 0; background: rgba(255,255,255,.07); color: #C8C8C8; }
body.site .chap-nav a.on, body.site .chap-nav a:hover { background: var(--accent); color: #fff; }
body.site .chap-head .ico, body.site .article-h .n { background: rgba(45,142,230,.25); }
body.site .tabs a { border: 0; background: rgba(255,255,255,.07); color: #C8C8C8; }
body.site .tabs a:hover { background: var(--accent); color: #fff; }
body.site .count { background: rgba(255,255,255,.1); }
body.site .logo { background: rgba(255,255,255,.08); border: 0; }
body.site .empty { border-color: rgba(255,255,255,.14); }

/* Boutons et champs plats */
body.site .btn { border: 0; letter-spacing: .02em; font-weight: 700; }
body.site .btn.ghost { background: rgba(255,255,255,.08); color: #EDEDED; }
body.site .btn.outline { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.5); }
body.site input, body.site select, body.site textarea { background: rgba(255,255,255,.07); border: 0; color: #EDEDED; font-family: 'Montserrat', system-ui, sans-serif; }
body.site input:focus, body.site select:focus, body.site textarea:focus { outline: 0; background: var(--accent); color: #fff; }
body.site .search input { background: rgba(0,0,0,.45); }

/* Pied de page */
body.site .site-foot { background: rgba(0,0,0,.55); border-top: 0; margin-top: 0; }
body.site .foot-bottom { border-top-color: rgba(255,255,255,.08); }

@media (max-width: 760px) {
  body.site .top nav a { min-height: 48px; }
}

/* ---- Correctifs v13 : un seul voile pleine largeur, titres qui ne se chevauchent plus ---- */
body.site::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0,0,0,.40); pointer-events: none; }
body.site main, body.site.is-home main { background: transparent; }
body.site .banner { background: transparent; }
body.site.is-home .section, body.site.is-home .cta { background: transparent; }
body.site h1, body.site h2, body.site h3, body.site h4 { line-height: 1.25; }
body.site .cat-head h2 { font-size: 1.6rem; }
body.site .chap-card { gap: 6px; }
body.site .chap-card h3 { font-size: 1.05rem; line-height: 1.3; }
body.site .chap-card .n { font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }
body.site .chap-card small { margin-top: auto; }
body.site .chap-nav { background: rgba(0,0,0,.35); }
body.site .site-foot { background: rgba(0,0,0,.35); }
body.panel::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0,0,0,.33); pointer-events: none; }
body.panel .pmain { background: transparent; }
body.panel h1, body.panel h2, body.panel h3, body.panel h4 { line-height: 1.25; }
/* Zone de message de la discussion : sombre, simple liseré bleu au focus */
body.panel .chat-form { align-items: stretch; }
body.panel .chat-form textarea, body.panel .chat-form textarea:focus { background: rgba(255,255,255,.06); color: #EDEDED; padding: 12px 14px; box-shadow: inset 0 -2px 0 transparent; }
body.panel .chat-form textarea:focus { box-shadow: inset 0 -2px 0 var(--accent); }
body.panel .chat-form textarea::placeholder { color: #8A8A8A; }
body.panel .chat-form .btn { height: auto; min-height: 48px; padding: 0 20px; }
/* Champs : plus de remplissage bleu à la saisie, juste un liseré bleu en bas */
body.panel input:focus, body.panel select:focus, body.panel textarea:focus,
body.site input:focus, body.site select:focus, body.site textarea:focus {
  background: rgba(255,255,255,.10); color: #EDEDED; box-shadow: inset 0 -2px 0 var(--accent);
}
/* Listes déroulantes : titres de groupe lisibles */
body.panel select optgroup, body.site select optgroup { background: #111111; color: #8A8A8A; font-style: normal; font-weight: 700; }
body.panel select option, body.site select option { background: #1b1b1b; color: #EDEDED; }
/* Carte : marqueurs-logos et fiche au clic */
.rv-lpin span { display: grid; place-items: center; width: 40px; height: 40px; background: #111; border: 3px solid var(--c); box-shadow: 0 4px 12px rgba(0,0,0,.6); position: relative; overflow: visible; }
.rv-lpin span::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--c); border-bottom: 0; }
.rv-lpin img { width: 100%; height: 100%; object-fit: cover; }
.rv-lpin b { color: #fff; font: 800 13px 'Montserrat', sans-serif; }
.leaflet-popup.rv-popup .leaflet-popup-content-wrapper { background: rgba(10,10,10,.92) !important; color: #EDEDED !important; border: 1px solid rgba(255,255,255,.1); border-radius: 0 !important; box-shadow: 0 10px 30px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.leaflet-popup.rv-popup .leaflet-popup-tip { background: rgba(10,10,10,.92) !important; }
.leaflet-popup.rv-popup .leaflet-popup-content { margin: 16px; font-family: 'Montserrat', sans-serif; }
.leaflet-popup.rv-popup a.leaflet-popup-close-button { color: #9A9A9A; top: 6px; right: 6px; }
.rv-card-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.rv-card-logo { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); overflow: hidden; }
.rv-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.rv-card-logo b { font: 800 15px 'Montserrat', sans-serif; color: #fff; }
.rv-card-h strong { display: block; font-size: 15px; color: #fff; line-height: 1.25; }
.rv-card-h small { color: #9A9A9A; font-size: 12px; }
.rv-card-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; color: var(--c); background: rgba(255,255,255,.06); border-left: 3px solid var(--c); }
.rv-card ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.rv-card li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.07); }
.rv-card li span { color: #8A8A8A; }
.rv-card-go { display: block; margin-top: 12px; padding: 9px; text-align: center; background: var(--accent, #2d8ee6); color: #fff !important; font-weight: 700; font-size: 13px; }
.rv-card-go:hover { background: #5aaaf2; text-decoration: none; }
/* Leaflet force les images des marqueurs à leur taille réelle : on les contraint */
.leaflet-container .rv-lpin span img { position: static !important; display: block; width: 34px !important; height: 34px !important; max-width: 34px !important; max-height: 34px !important; object-fit: cover; }
body.panel .rv-pin span { border-radius: 50% 50% 50% 0 !important; }
/* Menu du site sur une seule ligne (sinon « Boutique » passe à la ligne et double la hauteur) */
@media (min-width: 761px) {
  body.site .top-in { flex-wrap: nowrap; }
  body.site .top nav { flex-wrap: nowrap; min-width: 0; }
  body.site .top nav a { padding: 0 14px; font-size: .9rem; }
  body.site .who span { display: none; }
}
body.panel table.data td, body.site table.data td { vertical-align: middle; }
body.panel .btn.sm { height: 36px; padding: 0 12px; vertical-align: middle; justify-content: center; }
