/* Plaine Com — styles (charte graphique de La Plaine des Palmistes) */
@font-face { font-family: "Bebas Neue"; src: url(../fonts/bebas-neue-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #3f6c5b; --green-d: #2c4e41; --green-l: #e9f0ec; --green-xl: #f3f7f5;
  --blue: #427f9a; --blue-d: #2f6680; --blue-l: #e7f0f4;
  --lime: #ced950; --lime-l: #f6f8e2; --lime-d: #5d6516;
  --orange: #efb142; --orange-l: #fdf3e0; --orange-d: #8a5a0a;
  --grey: #58585a; --leaf: #6ca860; --brown: #b48052;
  --red: #c0392b; --red-l: #fbecea; --ok: #2e8b57; --ok-l: #e5f4ea;
  --ink: #1f2a26; --ink-2: #4a5652; --ink-3: #6b7672; --line: #dfe6e2; --bg: #f4f6f4; --card: #ffffff;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 1px 2px rgba(31,42,38,.06), 0 4px 16px rgba(31,42,38,.06);
  --shadow-l: 0 10px 40px rgba(31,42,38,.16);
  --font: "Poppins", system-ui, sans-serif; --display: "Bebas Neue", "Poppins", sans-serif;
  --nav-h: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .01em; color: var(--green); }
h2 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .01em; color: var(--green); }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 .7em; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.table-wrap, .media-viewer, .col { position: relative; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- Structure ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; padding: 8px 16px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--green); letter-spacing: .02em; line-height: 1; display: block; }
.brand small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.stripe { display: flex; height: 4px; }
.stripe i { flex: 1; } .stripe i:nth-child(1) { background: var(--green); } .stripe i:nth-child(2) { background: var(--blue); } .stripe i:nth-child(3) { background: var(--lime); } .stripe i:nth-child(4) { background: var(--orange); }
.me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me .who { text-align: right; line-height: 1.2; }
.me .who b { display: block; font-size: 13px; font-weight: 600; }
.me .who span { font-size: 11px; color: var(--ink-3); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--green-xl); color: var(--green); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }

.shell { display: flex; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 64px); }
.sidenav { display: none; }
.main { flex: 1; min-width: 0; padding: 20px 16px calc(var(--nav-h) + 28px); }
.main.narrow { max-width: 760px; margin: 0 auto; }

.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: flex; height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; position: relative; }
.bottomnav a.on { color: var(--green); }
.bottomnav a.on::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); }
.bottomnav .ic { width: 22px; height: 22px; }
.navcount { position: absolute; top: 8px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

@media (min-width: 960px) {
  .has-side .bottomnav { display: none; }
  .has-side .sidenav { display: flex; flex-direction: column; gap: 4px; width: 230px; flex: none; padding: 20px 12px; position: sticky; top: 64px; height: calc(100vh - 64px); }
  .has-side .main { padding: 24px 28px 48px; }
  .sidenav a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; position: relative; }
  .sidenav a:not(.btn):hover { background: #fff; color: var(--green); }
  .sidenav a.on:not(.btn) { background: var(--green); color: #fff; }
  .sidenav .navcount { position: static; margin-left: auto; }
  .sidenav .side-cta { margin-top: 10px; }
  .sidenav .side-foot { margin-top: auto; font-size: 12px; color: var(--ink-3); padding: 0 8px; }
}

/* ---------- Composants ---------- */
.page-head > * { min-width: 0; max-width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.section { margin-top: 26px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-xl); color: var(--green); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #24724a; color: #fff; }
.btn-ko { background: var(--red); color: #fff; }
.btn-ko:hover { background: #a03024; color: #fff; }
.btn-warn { background: var(--orange); color: #3d2a05; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-new { background: var(--blue-l); color: var(--blue-d); }
.st-work { background: #eef0f2; color: #3f4a52; }
.st-valid { background: var(--orange-l); color: var(--orange-d); }
.st-fix { background: var(--red-l); color: var(--red); }
.st-ok { background: var(--ok-l); color: #1f6b41; }
.st-pub { background: var(--green); color: #fff; }
.st-done { background: #e6e9e7; color: var(--ink-2); }
.st-cancel { background: #f1f1f1; color: #888; text-decoration: line-through; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-xl); color: var(--green-d); font-size: 12px; font-weight: 500; }
.chip .ic { width: 15px; height: 15px; }
.tag-v { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }

.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.flash-ok { background: var(--ok-l); color: #1f6b41; }
.flash-err { background: var(--red-l); color: var(--red); }
.flash-warn { background: var(--orange-l); color: var(--orange-d); }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: -2px; }
.field .err { font-size: 13px; color: var(--red); font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=url], input[type=search], select, textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(63,108,91,.15); }
textarea { min-height: 110px; resize: vertical; }
:focus-visible { outline: 3px solid rgba(66,127,154,.55); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.form-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.form-step h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.two { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }

.types { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; height: 100%; }
.type-opt label .ic { color: var(--green); margin-top: 2px; }
.type-opt label b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.type-opt label small { display: block; color: var(--ink-3); font-size: 12px; }
.type-opt input:checked + label { border-color: var(--green); background: var(--green-xl); box-shadow: inset 0 0 0 1px var(--green); }
.type-opt input:focus-visible + label { outline: 3px solid rgba(66,127,154,.55); }
.type-detail { margin-top: 12px; display: none; }
.type-detail.on { display: block; }

.drop { border: 2px dashed #b9c7c1; border-radius: 14px; padding: 18px; text-align: center; background: var(--green-xl); cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-l); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop .ic { width: 28px; height: 28px; color: var(--green); }
.drop-list { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; font-size: 13px; }
.drop-list li { padding: 4px 0; display: flex; gap: 8px; align-items: center; }

/* ---------- Ti Goyavier ---------- */
.tip { position: relative; display: inline-flex; vertical-align: middle; }
.tip-btn { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 4px; border-radius: 999px; border: 1.5px solid #f2c3bd; background: #fff6f4; cursor: pointer; height: 32px; }
.tip-btn img { height: 26px; width: auto; }
.tip-q { font-weight: 700; color: #b8352a; font-size: 14px; }
.tip-btn:hover { background: #ffe9e5; }
.tip-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-l); padding: 14px 14px 14px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink); text-align: left; line-height: 1.5; border: 1px solid var(--line); }
.tip-pop[hidden] { display: none; }
.tip-pop.right { left: auto; right: 0; }
.tip-mascot { width: 46px; height: auto; flex: none; }
.tip-body { display: flex; flex-direction: column; gap: 4px; }
.tip-body strong { color: #b8352a; font-size: 13px; }
.tip-close { position: absolute; top: 6px; right: 6px; background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 4px; }
.tip-close .ic { width: 16px; height: 16px; }
.goyavier { display: flex; gap: 14px; align-items: flex-end; }
.goyavier > img { width: 86px; height: auto; flex: none; }
.goyavier .bubble { position: relative; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); flex: 1; }
.goyavier .bubble::before { content: ""; position: absolute; left: -8px; bottom: 22px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.goyavier .bubble > strong { display: block; color: #b8352a; margin-bottom: 2px; }
.goyavier.big > img { width: 130px; }

/* ---------- Validation en cartes ---------- */
.hello { margin-bottom: 14px; }
.hello h1 { font-size: 32px; }
.hello p { color: var(--ink-3); margin: 2px 0 0; }
.deck { display: flex; flex-direction: column; gap: 14px; }
.vcard { display: block; background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); color: var(--ink); }
.vcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--green-xl); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-media .ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--green); padding: 20px; text-align: center; }
.vcard-media .ph .ic { width: 44px; height: 44px; }
.vcard-media .ph p { font-size: 14px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-media .count { position: absolute; top: 12px; right: 12px; background: rgba(31,42,38,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.vcard-media .vtag { position: absolute; top: 12px; left: 12px; }
.vcard-body { padding: 14px 16px 16px; }
.vcard-body h2 { font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 6px 0 4px; }
.vcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); }
.vcard-meta span { display: inline-flex; gap: 5px; align-items: center; }
.vcard-meta .ic { width: 15px; height: 15px; }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.countdown { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--orange-d); background: var(--orange-l); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.countdown .ic { width: 14px; height: 14px; }
.open-hint { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
@media (min-width: 700px) { .deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

.empty { text-align: center; padding: 26px 10px; }
.empty .goyavier { flex-direction: column; align-items: center; text-align: center; }
.empty .goyavier .bubble::before { left: 50%; bottom: auto; top: -8px; transform: translateX(-50%); border: 9px solid transparent; border-bottom-color: #fff; border-top: 0; }
.empty .goyavier { flex-direction: column-reverse; }

/* Détail d'une carte */
.detail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-top .pos { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.media-viewer { background: #1f2a26; border-radius: 20px; overflow: hidden; position: relative; }
.media-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.media-track::-webkit-scrollbar { display: none; }
.media-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; min-height: 260px; max-height: 72vh; }
.media-slide img { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; cursor: zoom-in; }
.media-slide .doc { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; }
.media-slide .doc .ic { width: 48px; height: 48px; }
.media-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.media-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.media-dots i.on { background: #fff; }
.media-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: none; align-items: center; justify-content: center; }
.media-nav.prev { left: 10px; } .media-nav.next { right: 10px; }
@media (hover: hover) { .media-viewer.multi .media-nav { display: inline-flex; } }
.video-box { background: var(--blue-l); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.video-box .ic { width: 32px; height: 32px; color: var(--blue-d); }
.wording { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.wording-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 18px 0 6px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; }

.decide-bar { position: sticky; bottom: calc(var(--nav-h) + 8px); z-index: 20; margin-top: 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-radius: 20px; box-shadow: var(--shadow-l); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decide-bar .btn { min-height: 58px; font-size: 17px; border-radius: 16px; }
.decide-bar .btn .ic { width: 24px; height: 24px; }
.decided { margin-top: 18px; border-radius: 16px; padding: 14px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.decided.ok { background: var(--ok-l); color: #1f6b41; }
.decided.ko { background: var(--red-l); color: var(--red); }

.sheet-back { position: fixed; inset: 0; background: rgba(20,28,25,.5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back[hidden] { display: none; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-l); animation: up .2s ease-out; }
@media (min-width: 600px) { .sheet-back { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { margin-bottom: 6px; color: var(--red); }
.sheet textarea { min-height: 130px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,14,12,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; right: 14px; }

/* Avis */
.avis-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.avis-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.avis-list li:last-child { border-bottom: 0; }
.avis-list .who { flex: 1; min-width: 0; }
.avis-list .who b { font-weight: 600; font-size: 14px; }
.avis-list .who small { display: block; color: var(--ink-3); font-size: 12px; }
.avis-list .say { margin-top: 4px; font-size: 13px; background: var(--bg); border-radius: 10px; padding: 6px 10px; white-space: pre-wrap; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dot .ic { width: 16px; height: 16px; }
.dot.ok { background: var(--ok); color: #fff; }
.dot.ko { background: var(--red); color: #fff; }
.dot.wait { background: #eef1ef; color: var(--ink-3); }
.verdict { border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.verdict.ok { background: var(--ok-l); color: #1f6b41; }
.verdict.wait { background: var(--orange-l); color: var(--orange-d); }
.verdict.ko { background: var(--red-l); color: var(--red); }

/* Historique des versions */
.versions { display: flex; flex-direction: column; gap: 12px; }
.version { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.version.old { background: var(--bg); }
.version-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumbs a { display: block; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--green-xl); border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .file-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-2); text-decoration: none; text-align: center; padding: 6px; gap: 4px; }
details.history summary { cursor: pointer; font-weight: 600; color: var(--green); list-style: none; display: flex; gap: 6px; align-items: center; }
details.history summary::-webkit-details-marker { display: none; }

/* Listes */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.item:hover { color: var(--ink); box-shadow: var(--shadow-l); }
.item .when { flex: none; width: 56px; text-align: center; border-radius: 12px; background: var(--green-xl); padding: 6px 0; line-height: 1.1; }
.item .when b { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--green); }
.item .when small { font-size: 11px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.item .info { flex: 1; min-width: 0; }
.item .info b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .info small { color: var(--ink-3); font-size: 13px; }
.pips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.pip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.pip .ic { width: 12px; height: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters > * { min-width: 0; max-width: 100%; }
.filters form { flex: 1 1 260px; }
.filters form input[type=search] { min-width: 0 !important; flex: 1 1 140px; }
.filters form select { flex: 1 1 140px; }
.seg { max-width: 100%; display: inline-flex; background: #fff; border-radius: 12px; padding: 4px; box-shadow: var(--shadow); gap: 2px; flex-wrap: wrap; }
.seg a { padding: 7px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.seg a.on { background: var(--green); color: #fff; }

/* Tableau de bord */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; border-top: 4px solid var(--c, var(--green)); }
.stat b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--c, var(--green)); }
.stat span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.mini { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mini:last-child { border-bottom: 0; }
.mini:hover b { color: var(--green); }
.mini .thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; background: var(--green-xl); display: flex; align-items: center; justify-content: center; color: var(--green); overflow: hidden; }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini .info { flex: 1; min-width: 0; }
.mini .info b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .info small { font-size: 12px; color: var(--ink-3); }
.feed { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.feed li:last-child { border-bottom: 0; }

/* Suivi (colonnes) */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.col { flex: 0 0 280px; background: #e9eeeb; border-radius: 16px; padding: 10px; scroll-snap-align: start; min-height: 200px; }
.col.over { background: var(--green-l); outline: 2px dashed var(--green); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 600; font-size: 14px; }
.col-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcard { position: relative; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); cursor: grab; text-decoration: none; color: var(--ink); display: block; border-left: 4px solid var(--blue); }
.kcard.dragging { opacity: .5; }
.kcard .k-type { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.kcard .k-type .ic { width: 14px; height: 14px; }
.kcard b { display: block; font-size: 14px; font-weight: 600; margin: 4px 0; line-height: 1.3; }
.kcard .k-foot { display: flex; gap: 6px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.kcard .k-thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; display: block; }
.k-move { margin-top: 8px; }
.k-move select { font-size: 13px; padding: 5px 8px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .k-move { display: none; } }

/* Calendrier */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h2 { min-width: 180px; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--ink-3); padding: 0 6px; }
.day { background: #fff; border-radius: 12px; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.day.out { opacity: .45; }
.day.today { box-shadow: inset 0 0 0 2px var(--green); }
.day.weekend { background: #f8faf9; }
.day .num { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.day .hol { font-size: 10px; color: var(--orange-d); font-weight: 600; }
.ev { display: block; font-size: 11.5px; line-height: 1.25; padding: 4px 6px; border-radius: 7px; text-decoration: none; color: var(--ink); background: var(--blue-l); border-left: 3px solid var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.event { background: var(--lime-l); border-left-color: var(--lime-d); font-weight: 600; }
.ev.s-validation { background: var(--orange-l); border-left-color: var(--orange); }
.ev.s-valide { background: var(--ok-l); border-left-color: var(--ok); }
.ev.s-modifier { background: var(--red-l); border-left-color: var(--red); }
.ev.s-publie, .ev.s-termine { background: #eef1ef; border-left-color: var(--green); color: var(--ink-3); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 12px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
@media (max-width: 760px) {
  .cal { grid-template-columns: 1fr; }
  .cal .dow { display: none; }
  .day { min-height: 0; }
  .day.empty-day { display: none; }
  .day .num::after { content: attr(data-dow); font-weight: 500; color: var(--ink-3); }
}

/* Tableaux */
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; background: #fafbfa; }
tr:last-child td { border-bottom: 0; }
td input[type=text] { padding: 7px 10px; font-size: 14px; }

/* Connexion */
.bare { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff 0, var(--bg) 100%); }
.bare-in { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.auth { width: 100%; max-width: 440px; }
.auth .logo { display: block; margin: 0 auto 14px; width: 150px; }
.auth h1 { text-align: center; font-size: 38px; }
.auth .lead { text-align: center; color: var(--ink-3); margin-bottom: 20px; }
.auth .card { padding: 22px; }
.bare-foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 16px; }

.welcome-steps { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.welcome-steps li { display: flex; gap: 10px; align-items: flex-start; }

@media print { .topbar, .sidenav, .bottomnav, .decide-bar, .tip { display: none !important; } .main { padding: 0; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 640px) {
  .me .who { display: none; }
  .brand img { height: 36px; }
  .brand b { font-size: 21px; }
  .topbar-in { gap: 8px; padding: 8px 12px; }
  .icon-btn { width: 38px; height: 38px; }
  h1 { font-size: 30px; }
  .main { padding-left: 14px; padding-right: 14px; }
  .mini { flex-wrap: wrap; }
  .mini .info { flex-basis: calc(100% - 60px); }
  .mini > .countdown, .mini > .row, .mini > .badge, .mini > span.xs { margin-left: 54px; }
}
@media (max-width: 380px) { .brand small { display: none; } }
