/* Compatible Safari 9 (iOS 9) : pas de variables CSS, pas de grid. Thème sombre, gros caractères. */
* { -webkit-box-sizing: border-box; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0e1116; color: #f2f4f7; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px; line-height: 1.4; -webkit-tap-highlight-color: rgba(0,0,0,0); padding-bottom: 110px; }
@media (min-width: 700px) { body { font-size: 23px; } }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: #4cd964; }

#haut { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline;
  padding: 14px 18px 6px; background: #0e1116; }
#horloge { font-size: 2.3em; font-weight: 700; letter-spacing: 1px; margin-right: 14px; }
#date { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; color: #9aa4b2; text-transform: capitalize; }
.etat { font-size: 0.7em; color: #9aa4b2; white-space: nowrap; }
.etat.ok:before { content: "● "; color: #34c759; }
.etat.ko:before { content: "● "; color: #ff9f0a; }

#bandeau { margin: 0 16px; }
.alerte { background: #2a1f0b; border: 2px solid #ff9f0a; color: #ffd28a; border-radius: 14px; padding: 12px 16px; margin: 8px 0; font-weight: 600; }
.alerte.nuit { background: #141a33; border-color: #5e6ad2; color: #c8ceff; }

#contenu { padding: 6px 16px 20px; max-width: 980px; margin: 0 auto; }
h1 { font-size: 1.5em; margin: 10px 0 4px; }
h2 { font-size: 1.2em; margin: 24px 0 10px; color: #c9d1db; }
.sous { color: #9aa4b2; margin: 0 0 12px; }
.charge { color: #9aa4b2; text-align: center; padding: 60px 0; }

.carte { background: #1a1f27; border-radius: 16px; padding: 16px 18px; margin: 12px 0; }
.carte.verte { border: 2px solid #34c759; }
.carte p { margin: 6px 0; }
.petit { font-size: 0.8em; color: #9aa4b2; }

.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 18px 16px; margin: 10px 0; background: #2b3340;
  font-size: 1.05em; font-weight: 700; text-align: center; text-decoration: none; color: #f2f4f7; cursor: pointer; }
.btn.vert { background: #34c759; color: #06140a; }
.btn.orange { background: #ff9f0a; color: #1d1200; }
.btn.rouge { background: #4a1c1c; color: #ffb4b4; }
.btn.spotify { background: #1db954; color: #04140a; font-size: 1.25em; }
.btn.lien { background: none; color: #4cd964; padding: 10px; }
.ligne-btn { display: -webkit-box; display: -webkit-flex; display: flex; }
.ligne-btn > * { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; margin-right: 10px; }
.ligne-btn > *:last-child { margin-right: 0; }

.barre { height: 14px; background: #2b3340; border-radius: 7px; overflow: hidden; margin: 10px 0 4px; }
.barre div { height: 100%; background: #34c759; }

.exo { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start;
  background: #1a1f27; border-radius: 16px; padding: 14px; margin: 10px 0; cursor: pointer; }
.case { width: 52px; height: 52px; min-width: 52px; border-radius: 12px; border: 3px solid #4b5563; margin-right: 14px;
  font-size: 34px; line-height: 46px; text-align: center; color: #06140a; font-weight: 900; }
.exo.fait { background: #13261a; }
.exo.fait .case { background: #34c759; border-color: #34c759; }
.exo.fait .nom { text-decoration: line-through; color: #8fd9a6; }
.exo-txt { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.nom { font-weight: 700; font-size: 1.05em; }
.dose { display: inline-block; background: #2b3340; color: #ffd28a; font-weight: 700; border-radius: 8px; padding: 2px 10px; margin: 4px 0; }
.consigne { font-size: 0.8em; color: #9aa4b2; margin: 4px 0 0; }
.btn-repos { border: 0; border-radius: 12px; background: #ff9f0a; color: #1d1200; font-weight: 800; padding: 14px 12px; margin-left: 10px;
  min-width: 96px; font-size: 0.95em; }

.exo-txt { min-width: 0; }
.charge-ligne { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-align-items: center; align-items: center; margin-top: 10px; }
.charge-ligne > * { margin-bottom: 6px; }
@media (max-width: 500px) {
  .btn-repos { min-width: 0; padding: 12px 8px; font-size: 0.85em; }
  .case { width: 44px; height: 44px; min-width: 44px; line-height: 38px; font-size: 28px; margin-right: 10px; }
  .champ-kg { width: 78px; }
}
.champ-kg { width: 96px; border: 2px solid #3a4352; background: #11151b; border-radius: 10px; padding: 10px; font-size: 1.05em; font-weight: 700; text-align: center; -webkit-appearance: none; }
.unite { margin: 0 10px 0 6px; color: #9aa4b2; }
.ressenti { border: 0; border-radius: 10px; background: #2b3340; padding: 11px 12px; margin-right: 6px; font-weight: 700; font-size: 0.85em; }
.ressenti.choisi { background: #5e6ad2; color: #fff; }
.conseil-charge { font-size: 0.78em; color: #ffd28a; margin: 6px 0 0; }
.douleur { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.douleur button { width: 15.5%; margin: 0 1% 8px 0; border: 0; border-radius: 10px; padding: 14px 0; background: #2b3340; font-weight: 800; font-size: 1.1em; }
.douleur button.choisi { background: #ff9f0a; color: #1d1200; }

#minuteur { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(8,10,14,0.97); z-index: 50; text-align: center; padding-top: 12vh; }
#minuteur.cache { display: none; }
#minuteur .chiffres { font-size: 9em; font-weight: 800; line-height: 1; }
#minuteur .titre { font-size: 1.4em; color: #9aa4b2; margin-bottom: 20px; }
#minuteur.fini .chiffres { color: #34c759; }
#minuteur .btn { max-width: 420px; margin: 30px auto 0; }

.liste-aliments { margin: 0; padding: 0; list-style: none; }
.liste-aliments li { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #1a1f27; border-radius: 12px; padding: 10px 10px 10px 16px; margin: 8px 0; }
.liste-aliments li span { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; font-weight: 600; }
.retirer { border: 0; background: #4a1c1c; color: #ffb4b4; border-radius: 10px; padding: 12px 16px; font-weight: 800; }
.champ { width: 100%; border: 2px solid #3a4352; background: #11151b; border-radius: 12px; padding: 16px; margin: 6px 0; font-size: 1em; -webkit-appearance: none; }
textarea.champ { min-height: 180px; }
.puces { margin: 6px 0; }
.puce { display: inline-block; border: 0; background: #2b3340; border-radius: 20px; padding: 10px 16px; margin: 0 8px 8px 0; font-weight: 600; }

.recette .entete { cursor: pointer; }
.tag { display: inline-block; font-size: 0.75em; font-weight: 700; border-radius: 8px; padding: 2px 8px; margin: 4px 6px 0 0; background: #2b3340; color: #c9d1db; }
.tag.ok { background: #13261a; color: #8fd9a6; }
.tag.manque { background: #2a1f0b; color: #ffd28a; }
.recette ol, .recette ul { padding-left: 24px; margin: 6px 0; }
.texte-libre { white-space: pre-wrap; font-size: 0.9em; }

table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #2b3340; }
th { color: #9aa4b2; font-weight: 600; }
canvas { width: 100%; height: 260px; display: block; background: #11151b; border-radius: 12px; }
.chiffre { font-size: 1.8em; font-weight: 800; }
.grille2 { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.grille2 > .carte { width: 48%; margin-right: 4%; }
.grille2 > .carte:nth-child(2n) { margin-right: 0; }

#nav { position: fixed; left: 0; right: 0; bottom: 0; display: -webkit-box; display: -webkit-flex; display: flex; background: #151a21;
  border-top: 1px solid #2b3340; z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
#nav button { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; border: 0; background: none; color: #9aa4b2; padding: 12px 2px 14px; font-size: 0.78em; font-weight: 700; }
#nav button .ico { display: block; font-size: 1.7em; line-height: 1.2; }
#nav button.actif { color: #34c759; }

.connexion { max-width: 520px; margin: 30px auto; }
.msg { color: #ffd28a; font-weight: 600; }
