:root {
  --g950: #0b1f16; --g900: #10301f; --g800: #174a2f; --g700: #1d6b43; --g600: #258a5a; --g500: #34a56f;
  --g100: #e1f2e8; --g50: #f2f9f5; --gold: #d9b15a;
  --bg: #f3f6f4; --card: #fff; --ink: #16241c; --muted: #66756c; --line: #dfe7e2;
  --bad: #c0392b; --warn: #c27c0e; --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 48, 31, .06), 0 6px 20px rgba(16, 48, 31, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--g700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; margin-top: .4rem; }
code { background: var(--g50); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.ico { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; display: block; }
.num { text-align: right; white-space: nowrap; }

/* ───────── Structure ───────── */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--g900), var(--g950)); color: #d9ebe0; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 4px 8px 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff; }
.brand-mark.big { width: 56px; height: 56px; border-radius: 16px; } .brand-mark.big .ico { width: 30px; height: 30px; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2f6b4a transparent; }
.nav::-webkit-scrollbar { width: 6px; } .nav::-webkit-scrollbar-thumb { background: #2f6b4a; border-radius: 6px; } .nav::-webkit-scrollbar-track { background: transparent; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cfe3d6; font-size: .96rem; }
.nav-link:hover { background: rgba(255, 255, 255, .07); text-decoration: none; color: #fff; }
.nav-link.on { background: var(--g600); color: #fff; font-weight: 600; }
.linklike { background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; margin-top: 10px; font-size: .9rem; }
.who { padding: 4px 12px 8px; } .who strong { display: block; color: #fff; } .who small { color: #9fbfae; }
.credit { display: block; color: #7fa38f; font-size: .78rem; padding: 6px 12px; }
.main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px 6px; }
.topbar h1 { margin: 0; }
.content { padding: 14px 30px 60px; display: flex; flex-direction: column; gap: 18px; max-width: 1280px; }

/* ───────── Composants ───────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: .4rem; }
.card-head h2 { margin: 0; }
.narrow { max-width: 760px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2, .row3, .row4 { display: grid; gap: 12px; }
.row2 { grid-template-columns: repeat(2, 1fr); } .row3 { grid-template-columns: repeat(3, 1fr); } .row4 { grid-template-columns: repeat(4, 1fr); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; margin: 0; }

.fld { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld > legend, .lbl { font-size: .86rem; font-weight: 600; color: #3b4d42; padding: 0; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=file], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d6ce; border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(52, 165, 111, .3); border-color: var(--g500); }
.filters input[type=search] { width: 280px; max-width: 100%; } .filters select { width: auto; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--g600); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; cursor: pointer; background: #fff; color: var(--g800); border: 1px solid #b9cfc2; border-radius: 10px; padding: 9px 16px; min-height: 42px; }
.btn:hover { background: var(--g50); text-decoration: none; }
.btn-primary { background: var(--g600); border-color: var(--g600); color: #fff; }
.btn-primary:hover { background: var(--g700); }
.btn-danger { background: #fff; color: var(--bad); border-color: #e3b7b1; } .btn-danger:hover { background: #fdf1ef; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-sm { padding: 5px 11px; min-height: 34px; font-size: .88rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding: 12px 22px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

.flash { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash-ok { background: var(--g100); color: var(--g800); border: 1px solid #b7dcc5; }
.flash-err { background: #fdecea; color: #8e2a20; border: 1px solid #f0c0ba; }
.content > .flash { margin: 0; }
.main > .flash { margin: 8px 30px 0; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; background: var(--g50); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafcfb; }
.tbl .late { color: var(--bad); font-weight: 600; }
.tbl tr.inactive td { opacity: .55; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef2ef; color: #46564c; white-space: nowrap; }
.st-a_planifier { background: #fff1d6; color: #8a5a07; } .st-planifie { background: #dcebfb; color: #1c4f8a; }
.st-en_cours { background: #fde7c9; color: #9a4d00; } .st-termine { background: var(--g100); color: var(--g800); }
.st-annule { background: #ececec; color: #666; }
.ct-cdi { background: var(--g100); color: var(--g800); } .ct-cdd { background: #fff1d6; color: #8a5a07; }
.ct-independant { background: #e8e1f7; color: #4d3a8a; } .ct-stagiaire { background: #dcebfb; color: #1c4f8a; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-size: .9rem; } .kv dd { margin: 0; }
.site { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.site:last-of-type { border-bottom: 0; }
.more summary { cursor: pointer; font-weight: 600; color: var(--g700); padding: 10px 0; }
.empty { color: var(--muted); padding: 10px 0; margin: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; }
.plain li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pager a.on { background: var(--g600); color: #fff; border-color: var(--g600); }
.danger-zone { border-color: #efcfcb; }
.status-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.status-form .fld { flex: 1; min-width: 180px; }

.note { padding: 12px 0; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.note p { margin: .4rem 0 0; }
.issue { background: #fff6e5; border-left: 3px solid var(--gold); padding: 6px 10px; border-radius: 6px; }
.times { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--g50); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; font-size: .86rem; }
.chip.strong { background: var(--g600); color: #fff; border-color: var(--g600); font-weight: 700; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.photos .lbl { width: 54px; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }

.prod-rows { display: flex; flex-direction: column; gap: 8px; }
.prod-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; }
.calc { margin: 0; padding: 10px 14px; background: var(--g50); border-radius: 10px; border: 1px dashed #b7dcc5; }
.calc.bad { background: #fdecea; border-color: #f0c0ba; color: #8e2a20; }

/* ───────── Tableau de bord ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
a.stat:hover { text-decoration: none; border-color: var(--g500); }
.stat-num { font-size: 1.7rem; font-weight: 700; color: var(--g800); line-height: 1.2; } .stat-label { color: var(--muted); font-size: .86rem; }
.stat.warn .stat-num { color: var(--warn); } .stat.bad .stat-num { color: var(--bad); }
.jobline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.jobline:hover { text-decoration: none; background: #fafcfb; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 60px; gap: 10px; align-items: center; padding: 5px 0; font-size: .92rem; }
.bar { height: 10px; background: var(--g100); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--g500); }
.bar-row b { text-align: right; }

/* ───────── Planning ───────── */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 140px; }
.day.today { border-color: var(--g500); box-shadow: 0 0 0 2px rgba(52, 165, 111, .25); }
.day h3 { font-size: .9rem; margin: 0 0 8px; } .day h3 small { color: var(--muted); font-weight: 400; }
.slot { display: flex; flex-direction: column; gap: 1px; font-size: .82rem; padding: 7px 8px; border-radius: 9px; margin-bottom: 6px; color: var(--ink); border-left: 4px solid var(--g500); background: var(--g50); }
.slot:hover { text-decoration: none; filter: brightness(.97); }
.slot.st-en_cours { border-left-color: #e08a1e; background: #fff4e3; } .slot.st-termine { border-left-color: #888; background: #f1f1f1; }
.slot.st-planifie { border-left-color: #3d83d6; background: #eaf3fd; } .slot.st-a_planifier { border-left-color: var(--gold); background: #fff8e8; }

/* ───────── Connexion (décor cinématographique) ───────── */
body.bare { min-height: 100vh; background: #06100a; color: #fff; overflow-x: hidden; }
.cine-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #06100a; }
.cine-vid { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform: translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px)) scale(1.04); will-change: opacity, transform; }
.cine-vid.on { opacity: 1; animation: kenburns 16s ease-in-out forwards; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.09; } }
/* Sans vidéo : lumière d'or qui respire sur fond de forêt. */
.cine-aurora { position: absolute; inset: 0; background:
  radial-gradient(70% 55% at 78% 8%, rgba(255, 190, 110, .55), transparent 60%),
  radial-gradient(60% 50% at 12% 95%, rgba(52, 165, 111, .45), transparent 65%),
  linear-gradient(180deg, #0a2417 0%, #0e3a24 55%, #07150d 100%); animation: breathe 12s ease-in-out infinite alternate; }
.cine-stage.has-video .cine-aurora { opacity: 0; transition: opacity 1.4s; }
@keyframes breathe { from { filter: brightness(.9) saturate(1); } to { filter: brightness(1.12) saturate(1.2); } }
/* Étalonnage : ombres vertes profondes, hautes lumières dorées. */
.cine-grade { position: absolute; inset: 0; mix-blend-mode: soft-light; background: linear-gradient(115deg, rgba(0, 70, 45, .55), rgba(255, 176, 90, .35)); }
.cine-vignette { position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 45%, transparent 38%, rgba(2, 10, 5, .72) 100%), linear-gradient(90deg, rgba(3, 12, 7, .72) 0%, rgba(3, 12, 7, .15) 55%, rgba(3, 12, 7, .5) 100%); }
#pollen { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-grain { position: absolute; inset: -50%; width: 200%; height: 200%; opacity: .09; pointer-events: none; animation: grain 1.1s steps(6) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
.cine-bars::before, .cine-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 5.5vh; background: #000; z-index: 2; }
.cine-bars::before { top: 0; } .cine-bars::after { bottom: 0; }
.login-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 8vh 16px; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 410px); gap: 56px; align-items: center; max-width: 1140px; width: 100%; }
.hero { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); color: #d9f4e2; backdrop-filter: blur(6px); background: rgba(8, 40, 24, .35); }
.hero-mark .ico { width: 26px; height: 26px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(2.3rem, 6.2vw, 5rem); letter-spacing: .16em; line-height: 1.05; margin: 22px 0 14px; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); animation: track 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes track { from { letter-spacing: .42em; opacity: 0; } to { letter-spacing: .16em; opacity: 1; } }
.hero .tag { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(1.1rem, 2.3vw, 1.6rem); color: #f1e6c7; max-width: 24em; margin: 0 0 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 22px rgba(0, 0, 0, .85); animation: rise 1.6s .35s cubic-bezier(.2, .7, .2, 1) both; }
.hero .pillars { margin: 0; letter-spacing: .32em; text-transform: uppercase; font-size: .86rem; font-weight: 600; color: #d8f0df; padding-top: 16px; border-top: 1px solid rgba(255, 214, 140, .55); display: inline-block; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); animation: rise 1.6s .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero .pillars i { font-style: normal; color: #e8c274; margin: 0 .4em; }
.hero .contact { margin-top: 34px; display: grid; gap: 4px; color: #eef8f1; font-size: .98rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 22px rgba(0, 0, 0, .85); animation: rise 1.6s .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .contact a { color: #fff; font-weight: 600; }
body.bare .card.login-card { background: rgba(8, 28, 18, .5); backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35); border: 1px solid rgba(255, 255, 255, .16); color: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); padding: 30px; width: 100%; max-width: 440px; animation: rise 1.4s .5s cubic-bezier(.2, .7, .2, 1) both; }
.login-card.solo { margin: 0 auto; }
.login-title { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .08em; text-align: center; margin: 0 0 18px; font-size: 1.35rem; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; text-align: center; }
.login-brand h1 { margin: 0; font-size: 1.4rem; }
body.bare .fld > span { color: #d6ebdc; }
body.bare input { background: rgba(255, 255, 255, .94); }
body.bare .muted { color: #b5cfbf; }
body.bare .credit { color: #9dc4ad; text-align: center; margin-top: 14px; }
body.bare a { color: #cdeed8; }
body.bare .btn { color: var(--g800); }
body.bare .btn-primary { color: #fff; }
.login-card .btn-primary { background: linear-gradient(135deg, #3aa874, #1d6b43); border: 0; min-height: 50px; font-size: 1.02rem; letter-spacing: .04em; }
.login-card .btn-primary:hover { filter: brightness(1.1); }

/* ───────── Mobile ───────── */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .login-shell { grid-template-columns: 1fr; gap: 26px; }
  .hero { text-align: center; } .hero .tag { margin: 0 auto 18px; }
  .hero .pillars { letter-spacing: .2em; font-size: .78rem; }
  .login-shell .login-card { margin: 0 auto; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .who, .credit { display: none; }
  .topbar { padding: 16px 16px 4px; } .content { padding: 10px 16px 60px; } .main > .flash { margin: 8px 16px 0; }
  .row2, .row3, .row4 { grid-template-columns: 1fr; }
  .prod-row { grid-template-columns: 1fr 90px auto; }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; text-align: left !important; }
  .tbl td[data-l]::before { content: attr(data-l) " : "; color: var(--muted); font-size: .8rem; }
  .filters input[type=search] { width: 100%; }
  .bar-row { grid-template-columns: 90px 1fr 54px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .side, .topbar-actions, .btn { display: none !important; } .app { display: block; } }

/* ───────── Pointage, à faire, factures, cartes ───────── */
.clock { text-align: center; margin: 0 auto; }
.clock .stack { text-align: left; }
.big-time { font-size: 3rem; font-weight: 700; color: var(--g700); margin: .2rem 0; letter-spacing: -.02em; }
.geo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map { width: 100%; border: 0; border-radius: 12px; background: var(--g50); margin-top: 8px; display: block; }
.summary-btn { cursor: pointer; font-weight: 700; color: var(--g700); display: flex; gap: 8px; align-items: center; list-style: none; }
.summary-btn::-webkit-details-marker { display: none; }
details[open] > .summary-btn { margin-bottom: 12px; }
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo-body { flex: 1; min-width: 0; }
.todo.is-done .todo-body strong { text-decoration: line-through; color: var(--muted); }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #9db9a8; background: #fff; color: #fff; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; flex: none; padding: 0; }
.is-done .tick { background: var(--g600); border-color: var(--g600); }
.late { color: var(--bad); font-weight: 600; }
.bill { border-left: 5px solid var(--gold); }
.bill.is-new { border-left-color: var(--g500); box-shadow: 0 0 0 2px rgba(52, 165, 111, .25), var(--shadow); }
.bill-amount { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: none; }
.bill-amount strong { font-size: 1.5rem; color: var(--g800); } .bill-amount small { color: var(--muted); }
.bill-actions { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 12px 0 4px; }
.bill-actions .fld { flex: 1; min-width: 220px; }
.alert-card { border-left: 5px solid var(--gold); background: #fffdf6; }
.done-box { margin-top: 14px; padding: 14px; background: var(--g50); border: 1px dashed #9fcfb2; border-radius: 12px; }
.done-box p { margin: 0 0 10px; }
.count { font-style: normal; background: var(--gold); color: #1d1a0f; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 8px; margin-left: auto; }
@media print { .card, .table-wrap { box-shadow: none; } .map, details.more { display: none; } .content { max-width: none; } }

/* ───────── Tableau de bord ───────── */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hello { font-size: 1.7rem; margin: 0; letter-spacing: -.01em; }
.dash-head p { margin: 2px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow); color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.kpi:hover { transform: translateY(-3px); box-shadow: 0 10px 34px rgba(16, 48, 31, .13); text-decoration: none; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.kpi-ico .ico { width: 20px; height: 20px; }
.tone-green .kpi-ico, .kpi-ico.tone-green { background: linear-gradient(135deg, #34a56f, #1d6b43); }
.kpi-ico.tone-blue { background: linear-gradient(135deg, #4f9be8, #2c64b4); }
.kpi-ico.tone-gold { background: linear-gradient(135deg, #f0bf5c, #c98a14); }
.kpi-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.kpi-val { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--g900); line-height: 1.1; }
.kpi-val small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.kpi-foot { font-size: .84rem; min-height: 1.2em; }
.kpi-spark { height: 38px; margin: 6px -4px -4px; }
.spark { width: 100%; height: 100%; display: block; }
.spark polyline { stroke: #34a56f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.kpi-spark.tone-blue polyline { stroke: #3d83d6; } .kpi-spark.tone-gold polyline { stroke: #d99a1c; }
.delta { font-weight: 700; font-size: .82rem; padding: 1px 8px; border-radius: 999px; }
.delta.up { background: #dff3e7; color: #17653f; } .delta.down { background: #fde9e6; color: #a8372a; } .delta.flat { background: #eef2ef; color: #66756c; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-stat { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; box-shadow: var(--shadow); }
.chip-stat b { font-size: 1.15rem; color: var(--g800); } .chip-stat:hover { text-decoration: none; border-color: var(--g500); }
.chip-stat.warn b { color: var(--warn); } .chip-stat.bad b { color: var(--bad); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.chart-grid.wide { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.chart-card { display: flex; flex-direction: column; }
.chart-card .card-head { align-items: flex-start; margin-bottom: 8px; } .chart-card h3 { margin: 0; font-size: 1.05rem; }
.pill { background: var(--g100); color: var(--g800); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .85rem; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: #e6ece8; stroke-width: 1; stroke-dasharray: 3 4; }
.ch-axis { fill: #7b8b81; font-size: 11px; } .ch-axis.strong { fill: var(--g800); font-weight: 700; }
.ch-value { fill: #2c3e33; font-size: 11px; font-weight: 700; }
.ch-empty { fill: #9aa89f; font-size: 14px; }
.ch-bar { transition: opacity .2s, filter .2s; } .ch-bar:hover { filter: brightness(1.1); }
.ch-bar.dim { opacity: .55; }
.c-green { fill: #2e9f68; stroke: #2e9f68; } .c-gold { fill: #e3a935; stroke: #e3a935; } .c-blue { fill: #3d83d6; stroke: #3d83d6; }
.c-orange { fill: #e57f2b; stroke: #e57f2b; } .c-gray { fill: #aab4ae; stroke: #aab4ae; } .c-red { fill: #d4483b; stroke: #d4483b; }
.ch-bar.c-green, .ch-bar.c-gold, .ch-bar.c-blue, .ch-bar.c-orange, .ch-bar.c-gray, .ch-bar.c-red { stroke: none; }
.ch-line { stroke: #2e9f68; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ch-dot { fill: #fff; stroke: #2e9f68; stroke-width: 2.2; }
.ga-top { stop-color: #2e9f68; stop-opacity: .38; } .ga-bot { stop-color: #2e9f68; stop-opacity: 0; }
.ch-ring { stroke: #eef2ef; } .ch-seg { transition: stroke-width .2s; } .ch-seg:hover { stroke-width: 31; }
.ch-seg.c-gold, .ch-seg.c-blue, .ch-seg.c-orange, .ch-seg.c-green, .ch-seg.c-gray { fill: none; }
.donut { max-width: 190px; margin: 0 auto; }
.donut-num { font-size: 34px; font-weight: 800; fill: var(--g900); } .donut-sub { font-size: 12px; fill: #7b8b81; }
.donut-wrap { display: flex; flex-direction: column; gap: 14px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; font-size: .92rem; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin: 0 5px 0 12px; vertical-align: -1px; }
.legend .dot { margin: 0; }
i.dot.c-green { background: #2e9f68; } i.dot.c-gold { background: #e3a935; } i.dot.c-blue { background: #3d83d6; } i.dot.c-orange { background: #e57f2b; } i.dot.c-gray { background: #aab4ae; }
.legend-inline { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; padding: 7px 0; font-size: .93rem; }
.hbar-track { height: 12px; background: #eaf1ec; border-radius: 99px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34a56f, #1d8a5a); }
.hbar b { text-align: right; color: var(--g800); }
.did { background: var(--g50); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.did h3 { margin: 0 0 6px; font-size: .95rem; } .did ul { margin: 0; padding-left: 18px; } .did li { margin: 4px 0; font-size: .92rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chart-grid, .chart-grid.wide { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .hbar { grid-template-columns: 96px 1fr 54px; } .hello { font-size: 1.4rem; } }

/* ───────── Planning ───────── */
.plan-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.plan-nav { display: flex; gap: 8px; } .plan-title h2 { margin: 0; font-size: 1.35rem; } .plan-title p { margin: 2px 0 0; }
.plan-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-icon { min-width: 42px; font-size: 1.3rem; padding: 4px 12px; }
.seg { display: inline-flex; background: #e9f0eb; border-radius: 999px; padding: 4px; }
.seg a { padding: 7px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; } .seg a:hover { text-decoration: none; color: var(--g800); }
.seg a.on { background: #fff; color: var(--g800); box-shadow: 0 1px 4px rgba(16, 48, 31, .15); }
.week2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
.daycol { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; min-height: 210px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px; }
.daycol.weekend { background: #fafcfb; }
.daycol.today { border-color: var(--g500); box-shadow: 0 0 0 2px rgba(52, 165, 111, .3), var(--shadow); background: linear-gradient(180deg, #f1faf5, #fff 40%); }
.daycol header { display: flex; align-items: center; gap: 8px; }
.daycol header > div { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.dow { text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.dnum { font-size: 1.5rem; font-weight: 800; color: var(--g900); line-height: 1; }
.today .dnum { color: #fff; background: var(--g600); border-radius: 10px; padding: 3px 8px; }
.count { background: var(--g100); color: var(--g800); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 1px 9px; }
.addday { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed #b3c9bb; color: var(--g700); font-weight: 700; opacity: 0; transition: opacity .15s; }
.daycol:hover .addday, .addday:focus { opacity: 1; } .addday:hover { background: var(--g100); text-decoration: none; }
.free { margin: auto; color: #b0bdb5; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.jobcard { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 9px; border-radius: 13px; border: 1px solid transparent; border-left: 5px solid var(--g500); background: var(--g50); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.jobcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 48, 31, .14); text-decoration: none; }
.jobcard.st-a_planifier { border-left-color: #e3a935; background: #fff8e8; } .jobcard.st-planifie { border-left-color: #3d83d6; background: #eef5fd; }
.jobcard.st-en_cours { border-left-color: #e57f2b; background: #fff3e6; } .jobcard.st-termine { border-left-color: #2e9f68; background: #eefaf3; }
.jc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .jc-top .badge { font-size: .68rem; padding: 1px 7px; }
.jc-time { font-weight: 800; font-size: .9rem; color: var(--g900); } .jc-title { font-size: .94rem; line-height: 1.25; }
.jc-client { font-size: .84rem; color: #4d5f54; } .jc-loc { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; color: var(--muted); } .jc-loc .ico { width: 13px; height: 13px; }
.jc-foot { margin-top: 5px; display: flex; align-items: center; } .unassigned { font-size: .74rem; font-weight: 700; color: var(--bad); background: #fdecea; padding: 1px 8px; border-radius: 999px; }
.avatars { display: inline-flex; } .avatars .avatar { margin-left: -7px; border: 2px solid #fff; } .avatars .avatar:first-child { margin-left: 0; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .82rem; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 24px; height: 24px; font-size: .62rem; } .avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; } .avatar.xl { width: 84px; height: 84px; font-size: 1.9rem; }
.avatar.more { background: #8b9a91; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mhead, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mhead span { text-align: center; padding: 10px 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--g50); border-bottom: 1px solid var(--line); }
.mcell { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mcell:nth-child(7n) { border-right: 0; } .mcell.other { background: #f7f9f8; opacity: .6; } .mcell.today { background: #f1faf5; box-shadow: inset 0 0 0 2px var(--g500); }
.mnum { align-self: flex-end; font-weight: 700; font-size: .9rem; color: var(--g900); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; } .mnum:hover { background: var(--g100); text-decoration: none; }
.mcell.today .mnum { background: var(--g600); color: #fff; }
.mjob { display: block; font-size: .76rem; padding: 2px 7px; border-radius: 6px; border-left: 3px solid var(--g500); background: var(--g100); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjob:hover { text-decoration: none; filter: brightness(.96); }
.mjob.st-a_planifier { border-left-color: #e3a935; background: #fff3d6; } .mjob.st-planifie { border-left-color: #3d83d6; background: #e3eefb; } .mjob.st-en_cours { border-left-color: #e57f2b; background: #ffe9d2; }
.mmore { font-size: .74rem; color: var(--g700); font-weight: 600; padding-left: 4px; }
.plan-legend { color: var(--muted); font-size: .85rem; margin: 0; }
/* ───────── Équipe ───────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(16, 48, 31, .13); }
.member.inactive { opacity: .55; }
.member header { display: flex; align-items: center; gap: 12px; } .member-id { display: flex; flex-direction: column; flex: 1; min-width: 0; } .member-id strong { font-size: 1.05rem; }
.member-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.member-kpi div { background: var(--g50); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; }
.member-kpi b { font-size: 1.25rem; color: var(--g900); } .member-kpi span { font-size: .72rem; color: var(--muted); }
.member-salary { display: flex; align-items: center; gap: 8px; background: #fffaf0; border: 1px dashed #e3c682; border-radius: 12px; padding: 8px 12px; font-size: .82rem; color: #7d6420; }
.member-salary .ico { width: 16px; height: 16px; } .member-salary span { flex: 1; } .member-salary b { font-size: 1rem; color: #5a4510; }
.member-salary.big { margin-left: auto; align-self: center; padding: 12px 18px; font-size: .88rem; flex-direction: column; align-items: flex-start; gap: 2px; } .member-salary.big b { font-size: 1.3rem; }
.member footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.member-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .member-hero h2 { margin: 0 0 4px; font-size: 1.6rem; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1250px) { .week2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .daycol { min-height: 0; } .addday { opacity: 1; } }
@media (max-width: 700px) { .week2 { grid-template-columns: 1fr; } .kpis.three { grid-template-columns: 1fr; } .mcell { min-height: 74px; padding: 3px; } .mjob { font-size: .62rem; padding: 1px 3px; } .mjob b { display: none; } .team-grid { grid-template-columns: 1fr; } .plan-head { gap: 10px; } }

.chk { width: 38px; text-align: center; } .chk input { width: 18px; height: 18px; accent-color: var(--g600); cursor: pointer; }
.bulkbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 2px; }

/* ───────── Logo, photos de profil ───────── */
/* Identité Verts Espaces : noir charbon + jaune du logo (« espaces »). */
:root { --brand-ink: #151513; --brand-ink2: #0c0c0b; --brand-y: #d7d843; --brand-y-soft: rgba(215, 216, 67, .14); }

.side { background: radial-gradient(120% 60% at 50% 0%, #23231f 0%, var(--brand-ink) 55%, var(--brand-ink2) 100%); color: #dcdcd3; }
.nav { scrollbar-color: #3a3a33 transparent; }
.nav-link { color: #cfcfc6; position: relative; }
.nav-link:hover { background: rgba(255, 255, 255, .06); }
.nav-link.on { background: var(--brand-y-soft); color: #fff; box-shadow: inset 3px 0 0 var(--brand-y); }
.nav-link.on .ico { color: var(--brand-y); }
.nav-link .count { background: var(--brand-y); color: var(--brand-ink); }
.side-foot { border-top-color: rgba(255, 255, 255, .08); }
.who small { color: #a3a397; } .credit { color: #8a8a7f; }

.brand.logo { position: relative; display: block; padding: 6px 8px 20px; margin: 0 4px 12px; text-align: center; }
.brand.logo::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(215, 216, 67, .55), transparent); }
.brand-logo { height: 132px; width: auto; display: block; margin: 0 auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .5s; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.brand.logo:hover .brand-logo { transform: scale(1.04) rotate(-1.5deg); filter: drop-shadow(0 6px 22px rgba(215, 216, 67, .22)); }


.hero-logo { height: 200px; width: auto; display: block; margin: 0 auto 10px; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .65)); animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both, sway 7s 1.6s ease-in-out infinite; transform-origin: 40% 95%; }
.hero-logo.small { height: 120px; }
.hero .hero-logo { margin-left: 0; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -1.6deg; } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } .brand.logo:hover .brand-logo { transform: none; } }
.hero .pillars { border-top-color: rgba(215, 216, 67, .6); } .hero .pillars i { color: var(--brand-y); }
body.bare .card.login-card { background: rgba(14, 14, 12, .55); }
.login-card .btn-primary { background: var(--brand-y); color: var(--brand-ink); font-weight: 700; }
.login-card .btn-primary:hover { filter: brightness(1.08); }
body.bare .btn-primary { color: var(--brand-ink); }

@media (max-width: 980px) { .hero .hero-logo { margin: 0 auto 10px; height: 160px; } }
/* Bannière d'accueil du tableau de bord */
.welcome { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 30px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2a6b45 0%, #1c4a31 45%, #12301f 100%); box-shadow: 0 14px 34px rgba(16, 48, 31, .22); }
.welcome::after { content: ""; position: absolute; right: -40px; top: -50px; width: 300px; height: 300px; background: url("img/logo-mark.png") center / contain no-repeat; opacity: .09; transform: rotate(-8deg); pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 6px; color: #fff; }
.welcome p { margin: 0; color: #cfe8d8; } .welcome p .late { color: #ffd2a6; font-weight: 600; }
.welcome p b { color: var(--brand-y); }
.welcome .btn { border: 0; }
.welcome .btn-yellow { background: var(--brand-y); color: var(--brand-ink); font-weight: 700; }
.welcome .btn-yellow:hover { background: var(--brand-y); filter: brightness(1.07); text-decoration: none; }
.welcome .btn-glass { background: rgba(255, 255, 255, .13); color: #fff; }
.welcome .btn-glass:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }

/* Lien « Mon compte » sous le menu, avec rappel discret pour la photo */
.side-foot a.who { border-radius: 10px; padding: 8px 12px; margin-bottom: 4px; color: inherit; }
.side-foot a.who:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.who .add-photo { font-style: normal; font-size: .76rem; color: var(--brand-y); }

/* Pointage par étapes */
.place-now { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 6px 14px; border-radius: 999px; font-weight: 700; background: var(--g100); color: var(--g800); }
.place-now.place-depot { background: #f3f3c9; color: #4a4a10; }
.place-now.place-travel { background: #eceee9; color: #4b524d; }
.team-now { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.team-now .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; }
.team-all { justify-content: center; font-weight: 600; }
.end-day { margin-top: 14px; text-align: left; } .end-day summary { text-align: center; }
.tl-day { padding: 10px 0 4px; border-top: 1px solid var(--line); } .tl-day:first-child { border-top: 0; }
.tl-day h3 { font-size: .92rem; color: var(--muted); margin: 0 0 8px; }
.tl-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.card .tl-row:not(:has(.tl-who)) { grid-template-columns: 1fr auto; }
.tl-who { display: flex; align-items: center; gap: 8px; min-width: 0; } .tl-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-step { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 5px 10px; border-radius: 10px; font-size: .86rem; border-left: 4px solid var(--g500); background: var(--g50); }
.tl-step.place-depot { border-left-color: var(--brand-y); background: #fbfbe8; }
.tl-step.place-travel { border-left-color: #a3aaa5; background: #f2f3f1; color: #4b524d; }
.tl-step .ico { width: 15px; height: 15px; vertical-align: -2px; }
.tl-warn { font-style: normal; color: #a14a00; font-weight: 600; }
.tl-edit { font-size: .8rem; color: var(--muted); text-decoration: underline; }
.tl-total { font-weight: 700; white-space: nowrap; }
.dot.c-gray { background: #a3aaa5; }
@media (max-width: 860px) { .tl-row { grid-template-columns: 1fr auto; } .tl-who { grid-column: 1 / -1; } }

/* Signature en bas de chaque page */
.main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page-foot { margin-top: auto; text-align: center; padding: 6px 30px 26px; font-size: .8rem; letter-spacing: .04em; }
.page-foot a { color: var(--muted); } .page-foot a:hover { color: var(--g700); }

/* Téléphone : menu latéral en tiroir, ouvert par un bouton rond en bas à gauche (rien en haut de l'écran). */
.side-close, .nav-fab, .side-backdrop { display: none; }
@media (max-width: 860px) {
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 286px; max-width: 86vw; height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); gap: 0; overflow-y: auto;
    transform: translateX(-104%); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
  body.nav-open .side { transform: none; box-shadow: 18px 0 50px rgba(0, 0, 0, .45); }
  body.nav-open { overflow: hidden; }
  .side .brand.logo { padding: 6px 8px 18px; margin: 0 4px 10px; } .side .brand-logo { height: 104px; }
  .side .nav { flex-direction: column; overflow: visible; flex: 1; }
  .side .nav-link { white-space: normal; padding: 12px 12px; font-size: 1rem; }
  .side .side-foot { display: block; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: 10px; }
  .side .who { display: flex; } .side .credit { display: block; }
  .side-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
  .side-close .ico { width: 20px; height: 20px; }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8, 8, 6, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .side-backdrop { opacity: 1; pointer-events: auto; }
  .nav-fab { display: grid; place-items: center; position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--brand-y);
    background: var(--brand-ink); color: var(--brand-y); cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
  .nav-fab .ico { width: 26px; height: 26px; }
  .nav-fab .count { position: absolute; top: -4px; right: -4px; margin: 0; background: var(--brand-y); color: var(--brand-ink); border: 2px solid var(--brand-ink); }
  .page-foot { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .welcome { padding: 22px 20px; } .welcome::after { width: 200px; height: 200px; right: -50px; }
}
@media (prefers-reduced-motion: reduce) { .side, .side-backdrop { transition: none; } }
img.avatar.photo { object-fit: cover; background: #dfe6e1; display: inline-block; }
img.avatar.sm.photo { border: 2px solid #fff; }
.who { display: flex; align-items: center; gap: 10px; } .who span { display: flex; flex-direction: column; min-width: 0; }
.photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } .photo-row .stack { flex: 1; min-width: 220px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
