/* App Rose : style Mimosa. Mobile d'abord ; menu latéral à partir de 900 px. */
:root { --encre: #141414; --gris: #5c5c5c; --filet: #e5e5e5; --jaune: #ffd23f; --jaune-doux: #fff5cf;
  --vert-f: #e3f1e7; --vert-t: #14532a; --orange-f: #fde7c2; --orange-t: #7a4300; --rouge-f: #f8d7d7; --rouge-t: #8a1c1c;
  --gris-f: #efefef; --gris-t: #767676; --police: Archivo, Arial, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); color: var(--encre); background: #fff; }
a { color: var(--encre); }
button, input, select { font: inherit; color: inherit; }

.app { min-height: 100vh; padding-bottom: 84px; }
.entete { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; }
.logo { font-size: 18px; font-weight: 800; font-stretch: 75%; background: var(--jaune); padding: 1px 7px; text-decoration: none; }
.date { font-size: 13px; color: var(--gris); }
h1 { margin: 0; padding: 4px 20px 10px; font-size: 26px; font-weight: 800; font-stretch: 80%; }
h2 { margin: 0; font-size: 20px; font-weight: 800; font-stretch: 80%; }
.contenu { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.sous-titre { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding-top: 4px; }
.petit { font-size: 12px; color: var(--gris); }

/* navigation : barre d'onglets en bas */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--filet);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 11px; color: var(--gris); min-height: 48px; }
.nav a .pastille { display: flex; width: 48px; height: 28px; border-radius: 14px; align-items: center; justify-content: center; position: relative; }
.nav a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav a.actif { color: var(--encre); font-weight: 700; }
.nav a.actif .pastille { background: var(--jaune); }
.nav .badge { position: absolute; top: -4px; right: 4px; background: var(--rouge-t); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav .marque, .nav form { display: none; }

/* tuiles */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile { border: 1.5px solid var(--encre); border-radius: 12px; padding: 11px 12px; background: #fff; }
.tuile.vedette { background: var(--jaune); border-color: var(--jaune); }
.tuile .l { font-size: 12px; color: var(--gris); }
.tuile .v { font-size: 28px; font-weight: 800; font-stretch: 80%; line-height: 1.15; }
.tuile .s { font-size: 12px; color: var(--gris); }
.tuile.vedette .l, .tuile.vedette .s { color: var(--encre); }

/* bloc à faire */
.a-faire { background: var(--jaune); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.a-faire .titre { font-size: 21px; font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.a-faire.calme { background: var(--jaune-doux); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--encre); background: #fff; }
.btn.noir { background: var(--encre); color: #fff; }
.btn.jaune { background: var(--jaune); border-color: var(--jaune); }
.btn.petit-btn { min-height: 40px; font-size: 13px; padding: 0 12px; }
.puces { display: flex; gap: 8px; flex-wrap: wrap; }
.puce { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--encre); background: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; }
.puce.on { background: var(--encre); color: #fff; }

/* listes */
.liste { display: flex; flex-direction: column; }
.ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.ligne .t { font-weight: 700; font-size: 15px; }
.ligne .d { text-align: right; white-space: nowrap; }
.ligne .d .v { font-weight: 800; font-size: 16px; }
.barre { text-decoration: line-through; }
.etiquette { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.e-ok { background: var(--vert-f); color: var(--vert-t); }
.e-monter { background: var(--orange-f); color: var(--orange-t); }
.e-baisser { background: var(--rouge-f); color: var(--rouge-t); }
.e-absente { background: var(--gris-f); color: var(--gris-t); }
.note { background: var(--jaune-doux); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }

/* calendrier */
.legende { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.legende span { display: inline-flex; align-items: center; gap: 5px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mois-nav { display: flex; justify-content: space-between; align-items: center; }
.mois-nav a { width: 44px; height: 44px; border: 1.5px solid var(--encre); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .j { font-size: 11px; color: var(--gris); }
.cal .c { border-radius: 8px; padding: 5px 0; min-height: 38px; font-size: 11px; }
.cal .c b { display: block; }
.c.ok { background: var(--vert-f); color: var(--vert-t); }
.c.monter { background: var(--orange-f); color: var(--orange-t); }
.c.baisser { background: var(--rouge-f); color: var(--rouge-t); }
.c.absente, .c.vide { background: #f6f6f6; color: var(--gris-t); }
.c.resa { background: var(--encre); color: #fff; }
.c.passe { color: #b0b0b0; }

/* graphique */
.graph { border: 1.5px solid var(--encre); border-radius: 12px; padding: 12px; }
.barres { position: relative; display: flex; align-items: flex-end; border-bottom: 1.5px solid var(--encre); height: 190px; margin-top: 6px; }
.barres .ref { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--gris); }
.barres .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.barres .b { width: 60%; max-width: 34px; background: var(--encre); border-radius: 4px 4px 0 0; }
.barres .b.zero { height: 2px; background: #c9c9c9; border-radius: 0; }
.barres .val { font-size: 11px; font-weight: 700; }
.axe { display: flex; }
.axe span { flex: 1; text-align: center; font-size: 11px; color: var(--gris); padding-top: 4px; }

/* formulaires */
form.carte { border: 1.5px solid var(--encre); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
label { font-size: 13px; font-weight: 700; display: grid; gap: 4px; }
input, select { min-height: 44px; border: 1.5px solid #bdbdbd; border-radius: 8px; padding: 0 10px; font-size: 16px; background: #fff; }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.connexion { max-width: 360px; margin: 18vh auto 0; padding: 0 20px; display: grid; gap: 14px; }

/* PC : menu latéral */
@media (min-width: 900px) {
  .app { padding-bottom: 0; padding-left: 240px; background: #f6f6f4; }
  .nav { top: 0; right: auto; width: 240px; bottom: 0; background: var(--encre); border: 0; display: flex; flex-direction: column; gap: 4px; padding: 26px 16px; }
  .nav .marque { display: block; font-size: 28px; font-weight: 800; font-stretch: 75%; padding: 0 10px 22px; }
  .nav .marque span { background: var(--jaune); color: var(--encre); padding: 0 6px; }
  .nav a { flex-direction: row; gap: 12px; font-size: 15px; color: #fff; min-height: 46px; padding: 0 10px; border-radius: 8px; }
  .nav a .pastille { width: auto; height: auto; background: none !important; }
  .nav a.actif { background: var(--jaune); color: var(--encre); }
  .nav .badge { position: static; margin-left: 6px; }
  .nav form { display: block; margin-top: auto; }
  .nav form button { background: none; border: 1px solid #555; color: #ddd; border-radius: 8px; min-height: 40px; width: 100%; cursor: pointer; }
  .entete { padding: 24px 32px 4px; }
  .entete .logo { display: none; }
  h1 { padding: 0 32px 16px; font-size: 38px; }
  .contenu { padding: 0 32px 32px; max-width: 1200px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .contenu > * { grid-column: span 2; }
  .contenu > .demi { grid-column: span 1; }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tuile, .graph, form.carte, .bloc { background: #fff; }
  .bloc { border-radius: 14px; padding: 18px; }
  .cal .c { min-height: 60px; font-size: 13px; padding: 8px 2px; }
}
