/* Application de l'équipe : grands boutons, gros textes, lisible dehors au soleil. Couleurs du logo. */
:root {
  --nuit: #0A2E6E; --nuit-2: #123C86; --onde: #1F5FD1; --onde-pale: #E6EEFD;
  --croix: #FFDD00; --papier: #F5F7FB; --blanc: #fff; --encre: #0E1A33; --ardoise: #4E5A75; --trait: #D5DDEB;
  --rouge: #C62E32; --rouge-pale: #FDECEC; --ambre: #8A5A00; --ambre-pale: #FFF4D6; --vert: #13795B; --vert-pale: #E3F5EE;
  --r: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--encre); background: var(--papier);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 17px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
main { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
h1 { font-size: 24px; line-height: 1.2; margin: 0; }
h2 { font-size: 15px; color: var(--ardoise); margin: 28px 0 10px; font-weight: 600; }
h3 { font-size: 19px; margin: 0; line-height: 1.25; }
p { margin: 8px 0; }
button, .lien { font: inherit; cursor: pointer; border: 0; border-radius: 12px; min-height: 48px; padding: 10px 18px; }
button:focus-visible, .lien:focus-within { outline: 3px solid var(--onde); outline-offset: 2px; }
.principal { background: var(--nuit); color: var(--blanc); font-weight: 600; }
.secondaire { background: var(--onde-pale); color: var(--nuit); font-weight: 600; }
.discret { background: none; color: var(--ardoise); text-decoration: underline; min-height: 44px; }
.grand { width: 100%; min-height: 58px; font-size: 18px; }
.lien { display: inline-flex; align-items: center; background: none; color: var(--onde); text-decoration: underline; padding: 6px 0; font-size: 15px; min-height: 40px; }
.petit { font-size: 14px; color: var(--ardoise); margin: 0 0 2px; }
.note { background: var(--onde-pale); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.alerte { background: var(--ambre-pale); color: var(--ambre); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.vide { color: var(--ardoise); background: var(--blanc); border-radius: var(--r); padding: 18px; border: 1px solid var(--trait); }
.chargement { text-align: center; color: var(--ardoise); padding-top: 40vh; }

.accueil { text-align: center; padding-top: 6vh; display: grid; gap: 12px; justify-items: center; }
.accueil img { border-radius: 24px; }
.accueil p { max-width: 34ch; }
#camera { width: 100%; }
#camera video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: #000; }

.barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.langue { background: var(--blanc); border: 1px solid var(--trait); color: var(--nuit); font-weight: 700; min-height: 44px; min-width: 52px; padding: 6px 10px; }

.carte-notif { margin-top: 16px; display: flex; gap: 12px; align-items: center; background: var(--nuit); color: var(--blanc); border-radius: var(--r); padding: 14px 16px; }
.carte-notif p { margin: 2px 0 0; font-size: 15px; opacity: .9; }
.carte-notif .principal { background: var(--croix); color: var(--nuit); flex: none; }

.tache { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); padding: 16px; margin-bottom: 12px; scroll-margin: 16px; }
.tache.bientot { border-color: #E5B83B; box-shadow: inset 4px 0 0 #E5B83B; }
.tache.tard { border-color: var(--rouge); box-shadow: inset 4px 0 0 var(--rouge); }
.tache.finie { opacity: .8; }
.tache .tete { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tache dl { margin: 10px 0 0; display: grid; gap: 4px; }
.tache dl div { display: flex; gap: 8px; flex-wrap: wrap; }
.tache dt { color: var(--ardoise); font-size: 15px; }
.tache dd { margin: 0; font-weight: 600; }
.tache.tard .echeance b { color: var(--rouge); }
.tache.bientot .echeance b { color: var(--ambre); }
.remarque { background: var(--ambre-pale); border-radius: 10px; padding: 8px 12px; }
.consignes { font-size: 15px; color: var(--ardoise); }
.actions { display: grid; gap: 8px; margin-top: 14px; }
.actions .principal { min-height: 56px; font-size: 18px; }
.accepte { color: var(--vert); font-weight: 600; margin: 0; }
.etiquette { flex: none; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--onde-pale); color: var(--nuit); }
.etiquette.a-refaire { background: var(--ambre-pale); color: var(--ambre); }
.etiquette.recu, .etiquette.valide { background: var(--vert-pale); color: var(--vert); }
.envoi { margin-top: 12px; }
.envoi progress { width: 100%; height: 12px; accent-color: var(--onde); }
.faites { margin-top: 24px; }
footer { margin-top: 32px; display: grid; justify-items: center; gap: 4px; }

/* Enregistreur */
.studio { display: grid; gap: 12px; }
.retour { justify-self: start; background: none; color: var(--nuit); font-weight: 600; padding-left: 0; }
.conseils { font-size: 15px; color: var(--ardoise); background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; padding: 10px 14px; }
.vumetre { height: 18px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px; overflow: hidden; }
.vumetre span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vert) 70%, #E5B83B 88%, var(--rouge)); transition: width .1s linear; }
.chrono { font-size: 56px; font-weight: 300; text-align: center; margin: 4px 0; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.indication { text-align: center; color: var(--ardoise); min-height: 1.5em; }
.studio .alerte { text-align: center; }
.etats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 14px; }
.etats li { background: var(--vert-pale); color: var(--vert); border-radius: 999px; padding: 4px 12px; }
.etats li:empty { display: none; }
.commandes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; justify-items: center; }
.commandes.colonne { grid-template-columns: 1fr; }
.commandes:has(.rec) { grid-template-columns: 1fr; }
.commandes p { margin: 0; font-weight: 600; }
.rec { width: 104px; height: 104px; border-radius: 50%; background: var(--blanc); border: 6px solid var(--rouge); display: grid; place-items: center; padding: 0; }
.rec span { width: 64px; height: 64px; border-radius: 50%; background: var(--rouge); }
.studio audio { width: 100%; }

#message { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto; background: var(--vert); color: var(--blanc); border-radius: 14px; padding: 14px 16px; font-weight: 600; box-shadow: 0 6px 24px rgba(10,46,110,.25); }
#message.erreur { background: var(--rouge); }
@media (prefers-reduced-motion: reduce) { .vumetre span { transition: none; } }
.bouton-lien { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 12px; }
