/* Journal de chantier — feuille de style. */
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/barlow-400i-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/barlow-400i-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Mise en page : une colonne pensée pour le téléphone, plaques claires sur fond béton.
   Un seul élément crie : le bouton jaune de pointage et son ruban de chantier. Le reste est calme, encre bleu-plan. */
:root {
  --beton: #e8ebee;
  --plaque: #ffffff;
  --plaque-2: #f2f4f6;
  --encre: #15202d;
  --encre-2: #485566;
  --encre-3: #6c7887;
  --trait: #cdd3da;
  --signal: #f7c600;
  --signal-bord: #c49b00;
  --signal-encre: #1b1600;
  --ruban: #15202d;
  --plan: #1c4f8f;
  --plan-sur: #ffffff;
  --plan-fond: #e2ebf6;
  --ok: #1b6f45;
  --ok-fond: #dcefe3;
  --alerte: #96500a;
  --alerte-fond: #fae8cf;
  --danger: #ab241b;
  --danger-fond: #f8dfdc;
  --entete: #15202d;
  --entete-encre: #f2f5f8;
  --entete-encre-2: #a9b4c1;
  --nuit: rgba(6, 10, 15, .95);
  --nuit-encre: #f2f5f8;
  --voile: rgba(10, 15, 22, .55);
  --ombre: 0 1px 2px rgba(21, 32, 45, .08), 0 4px 14px rgba(21, 32, 45, .06);
  --f-titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --beton: #0f141a; --plaque: #19212b; --plaque-2: #212b37; --encre: #e8edf3; --encre-2: #b1bbc7; --encre-3: #8c98a6;
    --trait: #33404f; --signal: #f7c600; --signal-bord: #a88700; --signal-encre: #1b1600; --ruban: #0a0e13;
    --plan: #8fb9ef; --plan-sur: #0c1a2c; --plan-fond: #1c2e46; --ok: #72d4a2; --ok-fond: #153424;
    --alerte: #f1b467; --alerte-fond: #3a2a12; --danger: #ff9085; --danger-fond: #41201c;
    --entete: #0a0e13; --entete-encre: #f2f5f8; --entete-encre-2: #96a2b0;
    --voile: rgba(0, 0, 0, .65); --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light dark; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--beton); color: var(--encre); font: 400 16px/1.45 var(--f-texte); -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--plan); outline-offset: 2px; }
.fige { overflow: hidden; }

/* En-tête */
.entete { position: sticky; top: 0; padding-top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--entete); color: var(--entete-encre); }
.entete :focus-visible { outline-color: var(--signal); }
.entete-int { max-width: 900px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px; min-height: 52px; display: flex; align-items: center; gap: 20px; }
.marque { font: 700 1.25rem/1 var(--f-titre); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.ruban { height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--ruban) 10px 20px); }
.qui { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .875rem; min-width: 0; }
.qui-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qui-role { color: var(--entete-encre-2); white-space: nowrap; }
.qui .pastille { width: 28px; height: 28px; font-size: .875rem; }

.onglets { position: fixed; inset: auto 0 0; z-index: 9; display: flex; background: var(--plaque); border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.onglets:empty { display: none; }
.onglet { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; background: none; border: 0; border-top: 3px solid transparent; color: var(--encre-3); font: 600 .75rem/1.2 var(--f-texte); cursor: pointer; }
.onglet[aria-current="page"] { color: var(--encre); border-top-color: var(--signal); }
.onglet svg { width: 22px; height: 22px; }
@media (min-width: 760px) {
  .onglets { position: static; background: none; border: 0; padding: 0; gap: 4px; }
  .onglet { flex: none; flex-direction: row; gap: 8px; min-height: 40px; padding: 6px 12px; border-top: 0; border-bottom: 3px solid transparent; color: var(--entete-encre-2); font-size: .9375rem; }
  .onglet[aria-current="page"] { color: var(--entete-encre); border-bottom-color: var(--signal); }
  .onglet svg { width: 18px; height: 18px; }
}

/* Cadre */
.cadre { max-width: 900px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 108px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 760px) { .cadre { padding-block: 28px 56px; } }
.colonne { width: 100%; max-width: 620px; margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }
.section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.surtitre { font: 600 .8125rem/1.2 var(--f-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
h1 { font: 700 2rem/1.05 var(--f-titre); letter-spacing: .01em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font: 700 1.25rem/1.1 var(--f-titre); letter-spacing: .05em; text-transform: uppercase; text-wrap: balance; }
.aide { font-size: .875rem; color: var(--encre-2); }
.plaque { background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.liste > * + * { border-top: 1px solid var(--trait); }
.vide { padding: 18px 16px; color: var(--encre-2); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.message { padding: 10px 12px; border-radius: var(--r); font-size: .9375rem; }
.message.erreur { background: var(--danger-fond); color: var(--danger); }
.message.info { background: var(--plan-fond); color: var(--encre); }
.message.alerte { background: var(--alerte-fond); color: var(--alerte); }
.rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--r); border: 1.5px solid var(--trait); background: var(--plaque); color: var(--encre); font: 600 .9375rem/1.2 var(--f-texte); cursor: pointer; text-align: center; }
.btn:hover { border-color: var(--encre-3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.plan { background: var(--plan); border-color: var(--plan); color: var(--plan-sur); }
.btn.signal { background: var(--signal); border-color: var(--signal-bord); color: var(--signal-encre); }
.btn.geant { width: 100%; min-height: 76px; font: 700 1.625rem/1 var(--f-titre); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 0 var(--signal-bord); }
.btn.geant:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--signal-bord); }
.btn.large { flex: 1; }
.btn.danger { background: transparent; border-color: currentColor; color: var(--danger); }
.btn.carre { width: 44px; padding: 0; font: 700 1.5rem/1 var(--f-titre); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.lien { align-self: flex-start; min-height: 44px; padding: 8px 0; background: none; border: 0; color: var(--plan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.mini { min-height: 32px; padding: 6px 0 0; background: none; border: 0; color: var(--plan); font: 600 .8125rem/1 var(--f-texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.etiq { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; font: 600 .6875rem/1.5 var(--f-texte); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.etiq.ok { background: var(--ok-fond); color: var(--ok); }
.etiq.alerte { background: var(--alerte-fond); color: var(--alerte); }
.etiq.neutre { background: var(--plaque-2); color: var(--encre-2); box-shadow: inset 0 0 0 1px var(--trait); }

/* Pointage */
.pointage { background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.pointage-int { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.pointage-meta { color: var(--encre-2); font-variant-numeric: tabular-nums; }
.pointage-meta b { color: var(--encre); }
.choix { display: grid; gap: 8px; }
.choix-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1.5px solid var(--trait); border-radius: var(--r); background: var(--plaque-2); text-align: left; cursor: pointer; }
.choix-item[aria-checked="true"] { background: var(--plaque); border-color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.coche { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--encre-3); }
.choix-item[aria-checked="true"] .coche { border-color: var(--encre); background: radial-gradient(var(--encre) 0 42%, transparent 46%); }
.choix-texte { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.choix-texte b { font-weight: 600; }
.choix-texte small { font-size: .875rem; color: var(--encre-2); }
.etapes { display: grid; gap: 14px; }
.etapes li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.etapes b { font: 700 1.0625rem/1.2 var(--f-titre); letter-spacing: .05em; text-transform: uppercase; }
.etapes span { color: var(--encre-2); }

/* Mois */
.nav-mois { display: flex; align-items: center; gap: 8px; }
.mois-nom { min-width: 9.5rem; text-align: center; font: 700 1.25rem/1 var(--f-titre); letter-spacing: .03em; }
.bilan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--r); }
.bilan > div { min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bilan > div:nth-child(2n) { border-left: 1px solid var(--trait); }
.bilan > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
@media (min-width: 680px) {
  .bilan { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bilan > div:nth-child(n+3) { border-top: 0; }
  .bilan > div:nth-child(n+2) { border-left: 1px solid var(--trait); }
}
.chiffre { font: 700 2rem/1 var(--f-titre); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.libelle { font: 600 .75rem/1.2 var(--f-texte); letter-spacing: .07em; text-transform: uppercase; color: var(--encre-3); }
.bilan small { font-size: .8125rem; color: var(--encre-2); }

/* Journées */
.jour { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; align-items: start; }
.jour-date { font: 600 .875rem/1.4 var(--f-texte); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.jour-corps { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jour-titre { font-weight: 600; overflow-wrap: anywhere; }
.jour-taches { font-size: .9375rem; color: var(--encre-2); overflow-wrap: anywhere; }
.jour-note { font-size: .9375rem; font-style: italic; color: var(--encre-2); overflow-wrap: anywhere; white-space: pre-line; }
.jour-heures { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.jour-heures b { font: 700 1.375rem/1 var(--f-titre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jour-heures small { font-size: .75rem; color: var(--encre-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 440px) {
  .jour { grid-template-columns: minmax(0, 1fr) auto; }
  .jour-date { grid-column: 1 / -1; }
}
.vignettes { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.vignette { position: relative; width: 64px; height: 64px; padding: 0; border: 1px solid var(--trait); border-radius: 4px; overflow: hidden; background: var(--plaque-2); cursor: zoom-in; }
.vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vignette.absente { cursor: default; display: grid; place-items: center; padding: 4px; font-size: .625rem; line-height: 1.15; text-align: center; color: var(--encre-3); }
.vignettes.grandes .vignette { width: 88px; height: 88px; cursor: default; }
.retirer { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--nuit); color: var(--nuit-encre); font: 700 1.125rem/1 var(--f-texte); cursor: pointer; }

/* Personnes */
.pastille { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--plan-fond); color: var(--plan); font: 700 1rem/1 var(--f-titre); object-fit: cover; }
.personne-tete { width: 100%; min-height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; background: none; border: 0; text-align: left; cursor: pointer; }
.personne-nom { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 600; overflow-wrap: anywhere; }
.personne-nom small { font-weight: 400; font-size: .8125rem; color: var(--encre-2); }
.personne-heures { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 700 1.375rem/1 var(--f-titre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.personne-heures small { font: 400 .8125rem/1.2 var(--f-texte); color: var(--encre-2); }
.personne.zero .personne-heures, .personne.zero .personne-nom { color: var(--encre-3); }
.personne-detail { padding: 14px; display: flex; flex-direction: column; gap: 14px; background: var(--plaque-2); border-top: 1px solid var(--trait); }
.taux { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.taux .champ { width: 9rem; }
.mini-jours { background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--r); }
.mini-jours li { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 12px; font-size: .9375rem; }
.mini-jours li + li { border-top: 1px solid var(--trait); }
.mini-jours .h { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-jours .mini { padding: 0; }
.mini-jours .d { color: var(--encre-2); font-variant-numeric: tabular-nums; }
.mini-jours .c { min-width: 0; overflow-wrap: anywhere; }
.present { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; }
.present-texte { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.present-texte small { font-size: .875rem; color: var(--encre-2); }
.present-heure { font: 700 1.125rem/1 var(--f-titre); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Chantiers */
.chantier-ligne { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px; background: none; border: 0; text-align: left; cursor: pointer; }
.chantier-ligne:hover, .personne-tete:hover { background: var(--plaque-2); }
.chantier-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 700 1.375rem/1.1 var(--f-titre); letter-spacing: .01em; overflow-wrap: anywhere; }
.chantier-infos { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.chantier-infos small { font-size: .875rem; color: var(--encre-2); overflow-wrap: anywhere; }
.avance { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.barre { flex: 1; max-width: 220px; height: 6px; border-radius: 3px; background: var(--trait); overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--plan); }
.chantier-heures { display: flex; flex-direction: column; align-items: flex-end; font: 700 1.375rem/1 var(--f-titre); font-variant-numeric: tabular-nums; white-space: nowrap; gap: 3px; }
.chantier-heures small { font: 400 .75rem/1.2 var(--f-texte); color: var(--encre-2); }
.tache { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 8px 14px; }
.case { width: 30px; height: 30px; padding: 0; border-radius: 4px; border: 2px solid var(--encre-3); background: var(--plaque); display: grid; place-items: center; color: transparent; }
button.case { cursor: pointer; }
.case svg { width: 18px; height: 18px; }
.case[aria-checked="true"], .case.cochee { background: var(--ok); border-color: var(--ok); color: var(--plaque); }
.tache-texte { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.tache-texte small { font-size: .8125rem; color: var(--encre-2); }
.tache.faite .tache-nom { text-decoration: line-through; color: var(--encre-3); }
.ajout { display: flex; gap: 8px; }
.ajout input { flex: 1; min-width: 0; }
.bloc-ajout { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--plaque-2); }
.retour { align-self: flex-start; }

/* Formulaires */
.champ { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.champ > label, .champ > legend, .etiquette { padding: 0; font: 600 .875rem/1.2 var(--f-texte); color: var(--encre-2); }
input[type="text"], input[type="date"], input[type="time"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: var(--r); background: var(--plaque); color: var(--encre); font-size: 1rem; }
textarea { resize: vertical; line-height: 1.4; }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) {
  .trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trois > :last-child { grid-column: 1 / -1; }
}
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; display: inline-flex; max-width: 100%; }
.puce input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.puce span, .suggestion { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--trait); border-radius: 999px; background: var(--plaque-2); font-weight: 500; overflow-wrap: anywhere; }
.puce input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--plaque); }
.puce input:focus-visible + span { outline: 3px solid var(--plan); outline-offset: 2px; }
.suggestion { min-height: 36px; padding: 4px 12px; font-size: .875rem; cursor: pointer; background: var(--plaque); }
.pas { display: flex; align-items: center; gap: 12px; }
.pas button { width: 60px; height: 60px; flex: none; border-radius: var(--r); border: 1.5px solid var(--trait); background: var(--plaque-2); font: 700 2rem/1 var(--f-titre); cursor: pointer; }
.pas output { flex: 1; text-align: center; font: 700 2.5rem/1 var(--f-titre); font-variant-numeric: tabular-nums; }
.fichier { position: relative; flex: 1; min-width: 150px; }
.fichier input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fichier:focus-within { outline: 3px solid var(--plan); outline-offset: 2px; }
.taches-edit li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 4px 4px 4px 12px; overflow-wrap: anywhere; }
.taches-edit li + li { border-top: 1px solid var(--trait); }
.taches-edit { border: 1px solid var(--trait); border-radius: var(--r); }
.oter { width: 40px; height: 40px; flex: none; border: 0; background: none; color: var(--encre-2); font-size: 1.25rem; cursor: pointer; border-radius: var(--r); }

/* Feuille */
.voile { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: var(--voile); padding-top: max(20px, env(safe-area-inset-top, 0px)); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.feuille { width: 100%; max-width: 580px; max-height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--plaque); border-radius: 12px 12px 0 0; box-shadow: var(--ombre); }
@media (min-width: 640px) {
  .voile { align-items: center; padding-block: 24px; }
  .feuille { border-radius: 10px; }
}
.feuille-tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 12px 16px; background: var(--plaque); border-bottom: 1px solid var(--trait); }
.fermer { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--r); background: none; cursor: pointer; }
.fermer svg { width: 22px; height: 22px; }
.feuille-corps { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.feuille-pied { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--plaque); border-top: 1px solid var(--trait); }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--nuit); color: var(--nuit-encre); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.visionneuse :focus-visible { outline-color: var(--signal); }
.vis-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; font-size: .9375rem; }
.vis-image { min-height: 0; display: grid; place-items: center; padding: 0 8px; }
.vis-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vis-pied { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px; font-variant-numeric: tabular-nums; }
.vis-btn { min-width: 52px; min-height: 48px; border: 1.5px solid currentColor; border-radius: var(--r); background: none; color: inherit; font: 700 1.5rem/1 var(--f-titre); cursor: pointer; }
.visionneuse .fermer { color: inherit; }

.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--r); background: var(--encre); color: var(--plaque); font-weight: 600; box-shadow: var(--ombre); text-align: center; }
.attente { display: flex; flex-direction: column; gap: 10px; }
.attente i { display: block; height: 56px; border-radius: var(--r); background: var(--plaque); border: 1px solid var(--trait); }
@media (prefers-reduced-motion: reduce) { .btn.geant:active { transform: none; } }

/* Accès : installation et connexion */
.acces { width: 100%; max-width: 460px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.acces form { display: flex; flex-direction: column; gap: 16px; }
.bascule { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--trait); border-radius: var(--r); overflow: hidden; }
.bascule button { min-height: 48px; border: 0; background: var(--plaque-2); color: var(--encre-2); font: 600 1rem/1 var(--f-texte); cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--encre); color: var(--plaque); }
input[type="password"], input[type="tel"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: var(--r); background: var(--plaque); color: var(--encre); font-size: 1rem; }
input.code { min-height: 72px; text-align: center; font: 700 2.5rem/1 var(--f-titre); letter-spacing: .22em; font-variant-numeric: tabular-nums; padding-left: calc(12px + .22em); }
input.code::placeholder { color: var(--trait); }
.code-affiche { padding: 18px 12px; border: 2px dashed var(--encre-3); border-radius: var(--r); background: var(--plaque-2); text-align: center; font: 700 3rem/1 var(--f-titre); letter-spacing: .18em; font-variant-numeric: tabular-nums; user-select: all; }
.liste-points { display: grid; gap: 6px; padding-left: 1.1rem; list-style: disc; color: var(--encre-2); }
.qui { background: none; border: 0; padding: 4px; margin-right: -4px; border-radius: var(--r); color: inherit; cursor: pointer; min-height: 40px; }
a.btn { text-decoration: none; }
a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.compte-ligne { display: flex; align-items: center; gap: 12px; }
.compte-ligne b { display: block; font-weight: 600; }
.compte-ligne small { color: var(--encre-2); }
