/* Couleur validée, V1. Même identité que la maquette : enduit frais, ruban de masquage bleu, bandes de nuancier.
   Le client a une page immersive ; le patron et l'ouvrier, des écrans rapides et sobres. */
:root {
  --bg: #eef0ec; --surface: #fbfbf8; --ink: #1c2420; --muted: #5b655f; --line: #d3d8d1;
  --tape: #2f63a8; --tape-ink: #ffffff; --ok: #2f7a4b; --warn: #9a5b0b; --stop: #a3352b; --warn-bg: #fbf1e1; --shade: rgba(28, 36, 32, .12);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #161b18; --surface: #1f2622; --ink: #e8ece8; --muted: #a3ada6; --line: #36403a; --tape: #6f9fe0; --tape-ink: #0e1a2b; --ok: #6cc28c; --warn: #e2a65a; --stop: #f08a7e; --warn-bg: #2d2416; --shade: rgba(0, 0, 0, .4); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #161b18; --surface: #1f2622; --ink: #e8ece8; --muted: #a3ada6; --line: #36403a; --tape: #6f9fe0; --tape-ink: #0e1a2b; --ok: #6cc28c; --warn: #e2a65a; --stop: #f08a7e; --warn-bg: #2d2416; --shade: rgba(0, 0, 0, .4); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); padding-top: env(safe-area-inset-top, 0px); }
img { max-width: 100%; }
a { color: var(--tape); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 4vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 720px; margin: 0 auto; padding-block: 12px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.wrap > *, .card, .grid2 > * { min-width: 0; }

/* Barre du haut */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
header.top .in { max-width: 720px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; }
.marque { font: 700 1.05rem/1 var(--font-display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.marque i { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(90deg, #e6ebe8 0 25%, #d6bf9f 25% 50%, #b5c0a8 50% 75%, #4b5f6d 75%); display: inline-block; }
header.top .qui { margin-left: auto; font-size: .85rem; color: var(--muted); text-align: right; min-width: 0; display: grid; justify-items: end; }
header.top .qui .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
header.top .qui .liens { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; }
header.top .qui a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) { header.top .qui .nom { display: none; } header.top .in { padding-block: 4px; } }
header.top .marque { flex: none; min-height: 44px; }
.adresse { font-size: 1.15rem; font-weight: 500; word-break: break-all; }
input, select, textarea { font-size: max(16px, 1em); } /* pas de zoom automatique sur iPhone */

/* Contrôles */
.btn { font: 700 1rem/1.2 var(--font-body); border-radius: 12px; padding: 12px 18px; min-height: 48px; cursor: pointer; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.big { min-height: 64px; font-size: 1.1rem; width: 100%; }
.btn.bleu { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn, .chip, .tile, .prop, .uni, .way { transition: transform .16s var(--ease), box-shadow .2s var(--ease), border-color .2s, background-color .2s, color .2s, opacity .2s; }
.btn:active:not(:disabled), .chip:active, .tile:active, .prop:active, .uni:active, .way:active { transform: scale(.97); }
@media (hover: hover) { .tile:hover, .uni:hover, .way:hover, .prop:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--shade); } }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
label.file { position: relative; overflow: hidden; }
label.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 700 .9rem/1 var(--font-body); padding: 10px 13px; min-height: 44px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.field { display: grid; gap: 4px; }
.field > label, .field > .lab { font-size: .85rem; font-weight: 700; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px; min-height: 46px; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--tape); }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--tape); }

/* Blocs */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.tape { justify-self: start; background: var(--tape); color: var(--tape-ink); font: 700 .78rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px 6px; transform: rotate(-1.2deg); clip-path: polygon(2% 0, 100% 4%, 98% 100%, 0 96%); }
.msg { border-radius: 12px; padding: 11px 13px; font-size: .93rem; }
.msg.warn { background: var(--warn-bg); border-left: 4px solid var(--warn); }
.msg.stop { background: var(--warn-bg); border-left: 4px solid var(--stop); }
.msg.ok { background: var(--surface); border-left: 4px solid var(--ok); }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.stop { color: var(--stop); } .status.muted { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 6px; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-decoration: none; }
.tile b { font-family: var(--font-display); font-size: 1.05rem; }
.tile[aria-pressed="true"] { border-color: var(--tape); box-shadow: 0 0 0 2px var(--tape); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); transition: width .7s var(--ease); }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.item.alert { border-color: var(--warn); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; display: grid; gap: 4px; font-size: .78rem; color: var(--muted); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--line); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs .chip { flex: none; }
.lines { display: grid; gap: 4px; font-size: .92rem; }
.lines div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px dashed var(--line); padding-top: 5px; }
.lines div span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.big-price { font: 700 2rem/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.swatch { width: 52px; height: 66px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.surface-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 10px; border-top: 1px solid var(--line); }
.surface-row:first-child { border-top: 0; }
.chat { display: grid; gap: 8px; }
.bubble { padding: 10px 13px; border-radius: 14px; max-width: 92%; font-size: .95rem; display: grid; gap: 6px; }
.bubble.q { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.bubble.a { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tag { justify-self: start; font: 700 .7rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; border: 1px solid currentColor; }
.tag.projet { color: var(--tape); } .tag.peintre { color: var(--ok); } .tag.general { color: var(--muted); } .tag.transmis { color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 50; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
footer.pied { font-size: .8rem; color: var(--muted); display: grid; gap: 4px; }

/* Vitrine client : le salon qui change de couleur */
.hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--line); box-shadow: 0 18px 50px var(--shade); }
.hero canvas { display: block; width: 100%; height: auto; }
.hero canvas.top { position: absolute; inset: 0; transition: opacity .9s var(--ease); }
.hero .cap { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.hero .badge { font: 700 .78rem/1 var(--font-body); padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .62); color: #fff; }
.hero .dots { display: flex; gap: 6px; }
.hero .dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: transform .3s, background .3s; }
.hero .dots button[aria-pressed="true"] { background: #fff; transform: scale(1.3); }
.lead { font-size: 1.08rem; }
.uni { display: grid; gap: 4px; text-align: left; padding: 0 0 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; overflow: hidden; }
.uni .band { height: 12px; transition: height .25s var(--ease); }
.uni[aria-pressed="true"] { border-color: var(--tape); box-shadow: 0 0 0 2px var(--tape); }
.uni[aria-pressed="true"] .band { height: 20px; }
.uni b, .uni span { padding-inline: 12px; }
.uni b { font-family: var(--font-display); font-size: 1.05rem; padding-top: 8px; }
.uni span { font-size: .86rem; color: var(--muted); }
.way { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.way b { font-family: var(--font-display); font-size: 1.05rem; }
.way[aria-pressed="true"] { border-color: var(--tape); box-shadow: 0 0 0 2px var(--tape); }
.glossary { display: flex; flex-wrap: wrap; gap: 6px; }
.def { border-left: 4px solid var(--tape); background: var(--bg); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: .95rem; }
.rights { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Visualiseur */
.stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--line); touch-action: none; user-select: none; }
.stage canvas { display: block; width: 100%; height: auto; }
.stage canvas.over { position: absolute; inset: 0; pointer-events: none; }
.stage .split { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.stage .badge { position: absolute; top: 8px; font: 700 .72rem/1 var(--font-body); padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; }
.stage .badge.l { left: 8px; } .stage .badge.r { right: 8px; }
.props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prop { display: grid; gap: 6px; text-align: left; padding: 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-width: 0; }
.prop[aria-pressed="true"] { border-color: var(--tape); box-shadow: 0 0 0 2px var(--tape); }
.prop canvas { width: 100%; height: auto; border-radius: 8px; display: block; }
.strip { display: flex; height: 12px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.strip i { flex: 1; }

/* Ouvrier : gros boutons, une main */
.ouvrier .tile { min-height: 76px; font-size: 1.05rem; }

/* Mouvement : entrée des écrans, au repos tout est visible */
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 50% { transform: scale(1.25); } }
.anim > * { animation: entree .5s var(--ease) both; }
.anim > *:nth-child(2) { animation-delay: .04s; } .anim > *:nth-child(3) { animation-delay: .08s; } .anim > *:nth-child(4) { animation-delay: .12s; }
.anim > *:nth-child(5) { animation-delay: .16s; } .anim > *:nth-child(n+6) { animation-delay: .2s; }
.bubble, .def, .msg { animation: entree .35s var(--ease) both; }
.pop { animation: pop .4s var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .grid2, .props { grid-template-columns: 1fr; } }

/* ---------- V2 plateforme : accueil, recherche guidée, recommandations, fiches ---------- */
.demo { font-size: .8rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.accueil { display: grid; gap: 16px; }
.btn.big { min-height: 60px; font-size: 1.1rem; width: 100%; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chiffres > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; display: grid; gap: 2px; text-align: center; }
.chiffres b { font: 700 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.chiffres span { font-size: .78rem; color: var(--muted); }
.etapes-acc { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.etapes-acc li { display: grid; gap: 2px; }
.etapes-acc span { color: var(--muted); font-size: .92rem; }
.assistant-recherche { display: grid; gap: 14px; }
.hero.petit { max-height: 190px; }
.hero.petit canvas { object-fit: cover; height: 190px; }
@keyframes glisse { from { opacity: 0; transform: translateX(28px); } }
.etape-q { display: grid; gap: 12px; }
.etape-q.glisse > * { animation: glisse .42s var(--ease) both; }
.etape-q.glisse > *:nth-child(2) { animation-delay: .05s; } .etape-q.glisse > *:nth-child(3) { animation-delay: .1s; }
label.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--tape); }
.entonnoir { display: grid; gap: 6px; }
.entonnoir .niv { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; overflow: hidden; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); }
.entonnoir .niv::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--tape) 16%, transparent); animation: barre .8s var(--ease) var(--d) both; z-index: 0; }
.entonnoir .niv > * { position: relative; z-index: 1; }
.entonnoir .niv b { font-family: var(--font-mono); }
@keyframes barre { from { width: 0; } }
.cartes { display: grid; gap: 12px; }
.pro-carte { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 6px 20px var(--shade); animation: entree .5s var(--ease) var(--d) both; }
.pro-nom { font-family: var(--font-display); font-size: 1.1rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges span { font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.anneau { flex: none; color: var(--ink); }
.anneau .arc { animation: anneau 1s var(--ease) both; }
@keyframes anneau { from { stroke-dashoffset: var(--c); } }
.etoiles { display: inline-flex; gap: 2px; }
.etoiles i { width: 14px; height: 14px; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.etoiles i.p { background: #e0a526; } .etoiles i.m { background: linear-gradient(90deg, #e0a526 50%, var(--line) 50%); }
.parts { display: grid; gap: 10px; }
.part { display: grid; gap: 4px; }
.barre { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--tape); border-radius: 4px; animation: barre .9s var(--ease) both; }
.verifs { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.verifs li::marker { content: "✓  "; color: var(--ok); font-weight: 700; }
.avis { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.reponse { border-left: 3px solid var(--tape); padding-left: 10px; }
.barre-choix { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 10px 10px 10px 16px; border-radius: 16px; box-shadow: 0 14px 40px var(--shade); animation: entree .35s var(--ease) both; }
.barre-choix .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
dialog.feuille { border: 0; border-radius: 22px 22px 0 0; padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); width: 100%; max-width: 640px; margin: auto auto 0; background: var(--surface); color: var(--ink); box-shadow: 0 -20px 60px var(--shade); }
dialog.feuille[open] { animation: monte .35s var(--ease) both; }
dialog.feuille::backdrop { background: rgba(15, 21, 18, .45); }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.formules { align-items: stretch; }
.formule { display: grid; gap: 6px; align-content: start; }
.formule.mise { border-color: var(--tape); box-shadow: 0 0 0 2px var(--tape); }
.formule .big-price { font-size: 1.4rem; }
@media (max-width: 360px) { .chiffres { grid-template-columns: 1fr; } }

.chiffres.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btn.bleu[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }

.nouveau { flex: none; display: grid; place-items: center; border-radius: 50%; border: 3px dashed var(--tape); color: var(--tape); font: 700 .78rem/1 var(--font-body); text-align: center; }
.cartes { padding-bottom: 90px; }

/* Outils du patron : quantités, camion, planning (relecture de « Bernard », 23 oct. 2026) */
.grid3, .grid4 { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid3 > *, .grid4 > * { min-width: 0; }
@media (max-width: 520px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid3 .field label, .grid4 .field label { font-size: .8rem; }
.check.camion { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 48px; }
.check.camion:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
.planning-zone { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.planning { border-collapse: collapse; min-width: 720px; width: 100%; font-size: .85rem; }
table.planning th, table.planning td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: left; }
table.planning thead th { font-weight: 700; white-space: nowrap; }
table.planning tbody th, table.planning thead th:first-child { width: 110px; font-weight: 700; position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.planning .auj { background: color-mix(in srgb, var(--tape) 8%, transparent); }
.tache { display: grid; gap: 2px; padding: 6px; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--tape); margin-bottom: 6px; }
.tache .sec { font-size: .78rem; color: var(--warn); }
.tache.sechage { border-left-color: var(--warn); background: repeating-linear-gradient(135deg, var(--warn-bg) 0 6px, transparent 6px 12px); }
button.lien { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .78rem; cursor: pointer; justify-self: start; min-height: 32px; }
details.plus { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 10px; }
details.plus summary { cursor: pointer; font-weight: 700; font-size: .9rem; min-height: 32px; }
.matin { margin-top: 4px; }
.matin .tile a { color: inherit; }

/* Bandeau de démonstration : tant que les données sont fictives, chaque page le dit */
.bandeau-demo { margin: 0; padding: 8px max(16px, env(safe-area-inset-left, 0px)); background: var(--warn-bg); color: var(--warn); font-size: .82rem; font-weight: 700; text-align: center; border-bottom: 1px solid var(--line); }
table.planning td.ferie { background: repeating-linear-gradient(135deg, var(--bg) 0 6px, transparent 6px 12px); }
.tache.alerte { border-left-color: var(--stop); }
