:root {
  --encre: #14213D; --texte: #3A4660; --doux: #5B6780; --trait: #DDE3EC; --fond: #F4F6F9;
  --rouge: #8E1B1B; --rouge-pale: #F8EEEC; --vert: #1E6B3A; --carte: #F6FAF7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, sans-serif; color: var(--encre); background: #fff; }
a { color: var(--encre); font-weight: 700; }
button { font-family: inherit; }
.page { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.entete { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 12px; border-bottom: 1px solid #EEF0F4; }
.marque { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; color: var(--encre); letter-spacing: .02em; }
.logo { height: 26px; width: auto; display: block; }
.adresse-rdv { font-size: 15px; font-weight: 600; color: var(--encre); line-height: 1.4; }
.pastille { font-size: 13.5px; font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--fond); }
.etapes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 12px 20px; }
.etape { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; color: #8A93A6; }
.etape i { height: 4px; border-radius: 2px; background: #E4E8EF; }
.etape.faite { color: var(--encre); } .etape.faite i { background: var(--encre); }
.etape.encours { color: var(--encre); } .etape.encours i { background: #9AA6BC; }
.contenu { flex: 1; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 18px; }
.bonjour { font-size: 16px; font-weight: 600; color: #4A5468; }
h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.sous { font-size: 14.5px; color: #4A5468; }
.hero { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; cursor: pointer;
  background: var(--carte); border: 1.5px solid #CFE3D6; text-align: left; color: var(--encre); }
.hero.choisi, .creneau.choisi { border: 2px solid var(--encre); }
.badge { align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  background: #E6F4EC; color: var(--vert); padding: 4px 10px; border-radius: 999px; }
.hero .accroche { font-size: 15px; font-weight: 600; color: #4A5468; }
.hero .jour { font-size: 26px; font-weight: 800; line-height: 1.1; }
.hero .heure { font-size: 22px; font-weight: 700; }
.hero .secteur { font-size: 13.5px; font-weight: 600; color: var(--vert); }
.titre-bloc { font-size: 15px; font-weight: 800; }
.creneau { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--trait); cursor: pointer; min-height: 60px; text-align: left; color: var(--encre); }
.creneau b { display: block; font-size: 16px; } .creneau span { font-size: 15px; color: var(--texte); }
.lien-btn { background: none; border: none; padding: 6px 2px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: left; color: var(--encre); text-decoration: underline; }
.sortie { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--trait); background: #fff; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; color: var(--encre); }
.sortie.urgente { border-color: #F2C4C4; background: #FFF6F6; color: #8E1C1C; }
.rgpd { font-size: 12.5px; color: var(--doux); line-height: 1.45; }
.pied { padding: 12px 20px 22px; border-top: 1px solid #EEF0F4; position: sticky; bottom: 0; background: #fff; }
.principal { width: 100%; padding: 16px; border-radius: 12px; border: none; font-size: 16px; font-weight: 800; background: var(--encre); color: #fff; cursor: pointer; }
.principal:disabled { background: #E4E8EF; color: var(--doux); cursor: default; }
.jour-carte { background: #fff; border: 1px solid #E4E8EF; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.jour-carte h2 { margin: 0; font-size: 15px; }
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.case { padding: 10px 0; border-radius: 10px; font-size: 14.5px; font-weight: 700; border: 1.5px solid #EEF1F6; background: #EEF1F6; color: var(--encre); cursor: pointer; min-height: 44px; }
.case.choisi { background: var(--encre); color: #fff; border-color: var(--encre); }
.vide { font-size: 13.5px; color: #8A93A6; }
.puce { padding: 12px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; min-height: 46px; border: 1.5px solid var(--trait); background: #fff; color: var(--encre); }
.puce.on { border: 2px solid var(--encre); background: var(--fond); }
textarea { border: 1.5px solid var(--trait); border-radius: 12px; padding: 12px; font-size: 16px; font-family: inherit; resize: none; }
.carte-tech { display: flex; gap: 14px; align-items: center; background: var(--fond); border-radius: 16px; padding: 14px; }
.avatar { position: relative; width: 64px; height: 64px; border-radius: 32px; background: #E1E6EE; color: var(--encre); font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chrono div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-bottom: 12px; }
.chrono i { width: 12px; height: 12px; border-radius: 6px; border: 2.5px solid var(--encre); margin-top: 3px; }
.encadre { background: var(--fond); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--texte); }
.erreur { background: #FFF6F6; color: #8E1C1C; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: 14px; font-weight: 800; padding-bottom: 8px; }
.grille5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
