:root {
  --fond: #F6F4EF; --carte: #FFFFFF; --encre: #1F2A24; --doux: #4A5650; --ligne: #E4DFD3; --ligne2: #EEEAE0;
  --vert: #2F6B5A; --vert-fonce: #1F4D40; --orange: #C8662B; --orange-fonce: #A9521F;
  --alerte-fond: #FBE5D6; --alerte: #8A3F12; --ferme: #F1EEE6; --rayon: 12px;
  --h-minute: 1px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--encre); background: var(--fond);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--vert); }
.chargement { padding: 40px; text-align: center; color: var(--doux); }
.cache { display: none !important; }

/* ---------- barre du haut ---------- */
.barre { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--encre); color: #fff;
  display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--encre); }
.barre .marque { font-weight: 700; font-size: 18px; margin-right: auto; white-space: nowrap; }
.barre nav { display: flex; gap: 2px; }
.barre nav a { color: #fff; text-decoration: none; padding: 0 12px; min-height: 44px; display: flex; align-items: center;
  border-radius: 10px; font-size: 14px; }
.barre nav a.actif { background: rgba(255,255,255,.16); font-weight: 600; }
.barre .moi { background: none; border: 0; color: #fff; opacity: .85; font-size: 13px; min-height: 44px; padding: 0 6px; cursor: pointer; }

/* ---------- éléments communs ---------- */
.btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #D6D1C4; background: var(--carte);
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--encre); }
.btn.principal { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.principal:hover { background: var(--orange-fonce); }
.btn.vert { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn.danger { color: #9B2C1C; border-color: #E2B8AE; }
.btn.lien { border: 0; background: none; color: var(--vert); padding: 0 8px; }
.btn.icone { width: 44px; padding: 0; font-size: 20px; }
.btn:disabled { opacity: .5; cursor: default; }
.puce { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #D6D1C4; background: var(--carte);
  cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.puce.on { background: var(--encre); border-color: var(--encre); color: #fff; font-weight: 600; }
.pastille { width: 10px; height: 10px; border-radius: 5px; display: inline-block; flex: none; }
.champ { display: flex; flex-direction: column; gap: 4px; }
.champ label, .etiquette { font-size: 12px; font-weight: 600; color: var(--doux); }
.champ input, .champ select, .champ textarea, .recherche input {
  min-height: 44px; border: 1px solid #D6D1C4; border-radius: 10px; padding: 8px 12px; background: var(--carte); width: 100%; }
.champ textarea { min-height: 72px; resize: vertical; }
.grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pile { display: flex; flex-direction: column; gap: 12px; }
.ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.alerte { background: var(--alerte-fond); color: var(--alerte); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-line; }
.alerte strong { display: block; margin-bottom: 2px; }
.vide { color: var(--doux); text-align: center; padding: 24px 12px; }
.erreur { color: #9B2C1C; font-size: 14px; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.case input { width: 20px; height: 20px; accent-color: var(--vert); }
.recherche { display: flex; align-items: center; gap: 8px; border: 1px solid #D6D1C4; border-radius: 10px; background: var(--carte); padding-left: 12px; }
.recherche input { border: 0; padding-left: 0; outline: none; background: transparent; }
.recherche svg { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- agenda ---------- */
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; }
.outils h1 { margin: 0; font-size: 18px; min-width: 170px; text-align: center; text-transform: capitalize; }
.outils .recherche { flex: 1 1 220px; }
.puces-tl { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; }
.agenda { margin: 0 16px 24px; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: clip; }
.agenda-corps { padding: 10px 0 6px; }
.agenda-tetes, .agenda-corps, .agenda-memos { display: grid; grid-template-columns: 52px repeat(var(--nb), minmax(0, 1fr)); }
.agenda-tetes { border-bottom: 1px solid var(--ligne); position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); background: var(--carte); z-index: 5; }
.agenda-tetes div { padding: 10px; border-left: 1px solid var(--ligne); display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.agenda-tetes div span.n { font-weight: 400; font-size: 12px; color: var(--doux); }
.heures { position: relative; font-size: 11px; color: var(--doux); }
.heures span { position: absolute; right: 8px; transform: translateY(-50%); }
.colonne { position: relative; border-left: 1px solid var(--ligne); cursor: pointer;
  background-image: repeating-linear-gradient(to bottom, var(--ligne2) 0, var(--ligne2) 1px, transparent 1px, transparent calc(60 * var(--h-minute))); }
.ferme { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--ferme) 0 8px, #ECE8DE 8px 16px); pointer-events: none; }
.bloc { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; font-size: 12px; border: 0; text-align: left; color: var(--encre); }
.bloc > * { flex-shrink: 0; }
.bloc strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc .petit { color: #34403A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc .al { color: var(--alerte); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc.indispo { background: #E6E2D8 !important; color: var(--doux); }
.bloc.court { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.bloc.court strong { flex: 1; min-width: 0; }
.maintenant { position: absolute; left: 0; right: 0; height: 2px; background: #C0392B; z-index: 3; pointer-events: none; }
@media (max-width: 899px) {
  .agenda-tetes, .agenda-corps, .agenda-memos { grid-template-columns: 44px minmax(0, 1fr); }
  .agenda:not(.toutes) .tl:not(.on):not(.archive) { display: none; }
  .agenda:not(.toutes) .agenda-tetes, .agenda:not(.toutes) .agenda-corps, .agenda:not(.toutes) .agenda-memos { grid-template-columns: 44px repeat(var(--nbm), minmax(0, 1fr)); }
  .agenda.toutes .agenda-tetes, .agenda.toutes .agenda-corps, .agenda.toutes .agenda-memos { grid-template-columns: 34px repeat(var(--nb), minmax(0, 1fr)); }
  .agenda.toutes .agenda-tetes div { padding: 8px 4px; gap: 4px; font-size: 13px; }
  .agenda.toutes .agenda-tetes .n, .agenda.toutes .bloc .tel, .agenda.toutes .bloc .nt { display: none; }
  .agenda.toutes .bloc { left: 2px; right: 2px; padding: 3px 5px; font-size: 11px; }
  .agenda.toutes .bloc strong { font-size: 12px; white-space: normal; line-height: 1.2; }
  .agenda.toutes .bloc.court strong { white-space: nowrap; }
  .agenda.toutes .heures span { right: 4px; font-size: 10px; }
}
.colonne-bains { position: relative; border-left: 1px solid var(--ligne); background: #FAF8F3; }
.tranche { position: absolute; left: 3px; right: 3px; border-radius: 5px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tranche.ok { background: #D3E6DE; color: #1F4D40; }
.tranche.plein { background: #F6D7BF; color: #7A3A12; }
.tranche.trop { background: #C0392B; color: #FFFFFF; }
.tete-bains { border: 0; border-left: 1px solid var(--ligne); background: #FAF8F3; color: var(--doux); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; min-height: 44px; }
.bloc.conflit { outline: 2px solid #C0392B; outline-offset: -2px; }
.legende { margin: -14px 16px 20px; font-size: 12px; color: var(--doux); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.legende .tranche { position: static; display: inline-flex; width: 20px; height: 18px; }
@media (min-width: 900px) { .puces-tl:not(.toujours) .puce { display: none; } .puces-tl.jour { justify-content: flex-end; } }

/* ---------- listes ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.resultat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--encre); border-bottom: 1px solid var(--ligne2); }
.resultat:last-child { border-bottom: 0; }
.resultat:hover { background: #FAF8F3; }
.resultat .haut { display: flex; justify-content: space-between; gap: 8px; }
.resultat .petit { font-size: 13px; color: var(--doux); }
.resultat .al { font-size: 12px; font-weight: 700; color: var(--alerte); white-space: nowrap; }

/* ---------- dossier ---------- */
.entete-chien { background: var(--vert); color: #fff; padding: 16px; border-radius: var(--rayon); display: flex; align-items: center; gap: 14px; }
.entete-chien h1 { margin: 0; font-size: 24px; }
.entete-chien p { margin: 2px 0 0; opacity: .92; }
.infos { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; font-size: 14px; }
.infos dt { color: var(--doux); }
.infos dd { margin: 0; font-weight: 600; text-align: right; }
.histo { padding: 10px 14px; border-top: 1px solid var(--ligne2); font-size: 14px; }
.histo:first-child { border-top: 0; }
.histo .petit { color: var(--doux); font-size: 13px; white-space: pre-line; }
.histo.annule { opacity: .55; text-decoration: line-through; }
h2.titre-section { font-size: 15px; margin: 8px 0 0; }

/* ---------- feuille (dialogue) ---------- */
dialog#feuille { border: 0; padding: 0; width: min(560px, 100vw); max-height: 92vh; border-radius: 18px; background: var(--fond); color: var(--encre); }
dialog#feuille::backdrop { background: rgba(20, 28, 24, .45); }
@media (max-width: 599px) {
  dialog#feuille { margin: auto 0 0; max-width: 100vw; border-radius: 18px 18px 0 0; }
}
.feuille-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 8px; position: sticky; top: 0; background: var(--fond); z-index: 2; }
.feuille-tete h2 { margin: 0; font-size: 18px; }
.feuille-corps { padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.feuille-pied { display: flex; gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; background: var(--fond); border-top: 1px solid var(--ligne); }
.feuille-pied .btn { flex: 1; }
.choix-chien { max-height: 240px; overflow: auto; }
.creneau { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 6px 14px;
  border: 0; border-bottom: 1px solid var(--ligne2); background: var(--carte); cursor: pointer; text-align: left; }
.creneau:last-child { border-bottom: 0; }
.creneau:hover { background: #F2F8F5; }
.creneau .petit { font-size: 12px; color: var(--doux); display: block; }
.creneau .choisir { color: var(--vert); font-weight: 700; font-size: 14px; }

/* ---------- connexion ---------- */
.connexion { max-width: 380px; margin: 12vh auto 0; padding: 24px; }
.connexion h1 { font-size: 26px; margin: 0 0 4px; }
.connexion p { margin: 0 0 20px; color: var(--doux); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--encre); color: #fff;
  padding: 12px 18px; border-radius: 12px; transition: transform .25s, visibility .25s; z-index: 100; max-width: 90vw; visibility: hidden; }
#toast.vu { transform: translateX(-50%) translateY(0); visibility: visible; }
.titre-date { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.titre-date h1 { min-width: 0; }
.date-sur-titre { min-height: 44px; border: 1px solid #D6D1C4; border-radius: 10px; padding: 0 10px; background: var(--carte); }
@media (max-width: 599px) {
  .titre-date { flex: 1 1 auto; justify-content: center; }
  .date-sur-titre { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
}
@media (min-width: 600px) { .titre-date h1 .fl { display: none; } }
@media (max-width: 599px) {
  .outils { gap: 6px; padding: 10px 12px; }
  .outils h1 { font-size: 16px; }
  .outils .recherche { order: 5; flex: 1 1 0; }
  #ag-nouv { order: 6; padding: 0 14px; }
  #ag-nouv .long { display: none; }
}
@media (min-width: 600px) { #ag-nouv .court-txt { display: none; } }

.corps-res { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.vignette { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.vide-photo { background: #E3EEE9; color: var(--vert); font-weight: 700; }
.photo-rdv { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--rayon); }
.photo-grande { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--rayon); background: #000; }
.photo-dossier { border: 0; padding: 0; background: none; cursor: zoom-in; flex: none; }
.photo-dossier img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.7); display: block; }
.btn-photo { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.5); font: inherit;
  background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-photo:hover { background: rgba(255,255,255,.28); }
.carte.note { padding: 12px 14px; white-space: pre-line; display: flex; flex-direction: column; gap: 4px; }

.colonne.archive { background: #FFFFFF; background-image: none; cursor: default; }
.agenda-tetes .archive { color: var(--doux); font-weight: 500; }
.bloc.ancien { border: 1px dashed #C9C3B4; color: var(--doux); }
.bloc.ancien strong { color: var(--encre); font-weight: 600; }
a.histo { display: block; color: inherit; text-decoration: none; }
a.histo:hover { background: #FAF8F3; }

.ouvert { position: absolute; left: 0; right: 0; background: var(--carte); pointer-events: none;
  }
.etiq-dispo { position: absolute; right: 4px; z-index: 2; border: 1px solid #A9CFC2; background: #E3F1EC; color: #1F4D40;
  border-radius: 10px; font: inherit; font-size: 11px; font-weight: 600; padding: 1px 8px; cursor: pointer; }

.limites { display: flex; flex-direction: column; gap: 6px; margin: 0 16px 10px; }
.limite { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid #B9CCE3; background: #E8F0FA; color: #1E3A5F;
  border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.limite strong { font-size: 14px; }
.limite.depassee { border-color: #E2A79D; background: var(--alerte-fond); color: var(--alerte); }

.agenda-memos { border-bottom: 1px solid var(--ligne); background: #FFFDF6; }
.agenda-memos > div { border-left: 1px solid var(--ligne); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.memo { border: 0; border-radius: 6px; background: #FFF1C9; color: #5C4A12; font: inherit; font-size: 12px; text-align: left;
  padding: 3px 7px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puces-tl .puce { flex: none; white-space: nowrap; }

/* ---------- bascule jour / mois ---------- */
.bascule { display: inline-flex; border: 1px solid #D6D1C4; border-radius: 10px; overflow: hidden; background: var(--carte); }
.bascule a { min-height: 42px; padding: 0 14px; display: flex; align-items: center; color: var(--encre); text-decoration: none; font-weight: 600; font-size: 14px; }
.bascule a.on { background: var(--encre); color: #fff; }
.puces-tl.toujours { display: flex !important; }

/* ---------- vue du mois ---------- */
.mois { margin: 0 16px 12px; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.mo-tetes, .mo-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mo-tetes span { padding: 8px; font-size: 12px; font-weight: 600; color: var(--doux); text-align: center; border-bottom: 1px solid var(--ligne); }
.mo-case { min-height: 118px; padding: 6px; border-right: 1px solid var(--ligne2); border-bottom: 1px solid var(--ligne2);
  display: flex; flex-direction: column; gap: 3px; color: var(--encre); text-decoration: none; min-width: 0; }
.mo-case:nth-child(7n) { border-right: 0; }
.mo-case:hover { background: #FAF8F3; }
.mo-case.hors { background: #FBFAF6; color: #9A968C; }
.mo-case.hors .mo-rdv, .mo-case.hors .mo-compte { opacity: .55; }
.mo-num { font-size: 13px; font-weight: 700; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; }
.mo-case.auj .mo-num { background: var(--orange); color: #fff; }
.mo-lignes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mo-rdv { font-size: 11px; line-height: 1.3; padding: 1px 5px; border-left: 3px solid var(--c); border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-rdv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mo-plus { font-size: 11px; color: var(--doux); padding-left: 4px; }
.mo-comptes { display: none; gap: 3px; flex-wrap: wrap; }
.mo-compte { min-width: 20px; height: 20px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-variant-numeric: tabular-nums; }
.mo-abs { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.mo-abs > span { font-size: 10px; color: var(--doux); border-left: 3px solid var(--c); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 699px) {
  .mois { margin: 0 4px 12px; }
  .mo-case { min-height: 74px; padding: 3px 2px; gap: 2px; }
  .mo-num { font-size: 12px; width: 22px; height: 22px; }
  /* Sur le Natel : seulement le prénom du chien, sans l'heure */
  .mo-rdv { font-size: 10px; line-height: 1.25; padding: 0 2px 0 3px; border-left-width: 2px; border-radius: 2px; }
  .mo-rdv b { display: none; }
  .mo-plus { font-size: 10px; padding-left: 2px; }
  .mo-abs > span { font-size: 9px; border-left-width: 2px; padding-left: 2px; }
  .mo-abs .ab { display: none; }
  .mo-abs .nm { text-decoration: line-through; }
  .mo-tetes span { padding: 6px 2px; }
}
@media (max-width: 599px) { .outils .bascule { order: -1; } }

.memo.horaires { background: #E3F1EC; color: #1F4D40; font-weight: 600; }
@media (max-width: 599px) {
  .outils .bascule { flex: 1 0 100%; }
  .outils .bascule a { flex: 1; justify-content: center; }
  .outils > h1 { flex: 1 1 0; font-size: 16px; }
}

/* ---------- confirmation ---------- */
.feuille-pied { flex-wrap: wrap; }
.feuille-pied .confirmation { flex: 1 0 100%; }
.confirmation { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF4D6; border: 1px solid #E8C96B; color: #4D3B07;
  display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.confirmation strong { font-size: 15px; }

/* ---------- taille de l'agenda ---------- */
.zoom { display: flex; align-items: center; gap: 4px; flex: none; order: 99; margin-left: auto; padding-left: 6px; }
.zoom .btn.icone { width: 40px; min-height: 36px; font-size: 20px; }
@media (max-width: 899px) {
  .zoom .etiquette { display: none; }
  .puces-tl.jour { padding-right: 0; }
  .puces-tl.jour .zoom { position: sticky; right: 0; background: var(--fond); padding: 0 16px 0 8px; box-shadow: -10px 0 10px -6px var(--fond); }
}
@media (max-width: 599px) { .outils .recherche { flex: 1 1 55%; } }
.agenda.compact .bloc { padding: 1px 6px; font-size: 11px; gap: 0; }
.agenda.compact .bloc strong { font-size: 11px; }
.agenda.compact .bloc .tel, .agenda.compact .bloc .nt, .agenda.compact .bloc .al { display: none; }
.agenda.compact .heures span { font-size: 10px; }
.agenda.compact .tranche { font-size: 9px; }

@media (max-width: 899px) {
  .agenda.compact.toutes .bloc strong { white-space: normal; line-height: 1.15; overflow: hidden; }
  .agenda.compact.toutes .bloc .h { display: none; }
  .agenda.compact.toutes .bloc { padding: 1px 3px; }
}

/* ---------- infos en haut (absences, horaires, mémos) : compact ---------- */
.agenda-memos > div { gap: 2px; padding: 3px; }
.memo { font-size: 11px; padding: 2px 6px; line-height: 1.3; }
.memo.absence { background: #ECE8DE; color: #4A5650; }
.memo.plus { background: none; color: var(--vert); font-weight: 700; padding: 0 6px; }
.memo.en-plus { display: none; }
.zone-indispo { position: absolute; left: 0; right: 0; border: 0; padding: 0; cursor: pointer; z-index: 1;
  background: repeating-linear-gradient(135deg, #E9E5DA 0 6px, #DDD8CB 6px 12px); opacity: .9; }
.zone-indispo:hover { opacity: 1; }
.bloc { z-index: 2; }
.alerte-courte { margin: 0 16px 8px; padding: 6px 12px; border-radius: 8px; background: var(--alerte-fond); color: var(--alerte); font-size: 13px; font-weight: 600; }
.limites { gap: 4px; margin-bottom: 8px; }
.limite { padding: 5px 10px; font-size: 12px; flex-direction: row; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.limite strong { font-size: 13px; }

/* ---------- à contrôler ---------- */
.badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-left: 4px; font-variant-numeric: tabular-nums; }
.controle { background: #FFF8E1; border: 1px solid #EBD38A; border-radius: var(--rayon); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.controle p { margin: 0; font-size: 14px; }
.controle .btn { min-height: 40px; }
.ctrl-infos { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 13px; }
.ctrl-infos dt { color: var(--doux); }
.ctrl-infos dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .barre nav a { padding: 0 8px; font-size: 13px; } .barre .marque { font-size: 16px; } }

a.puce { text-decoration: none; color: var(--encre); }
a.puce.on { color: #fff; }
.barre nav a { white-space: nowrap; }
@media (max-width: 599px) {
  .barre { gap: 4px; }
  .barre .moi-nom { display: none; }
  .barre nav { gap: 0; }
  .barre nav a { padding: 0 7px; }
  .barre .badge { min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; margin-left: 2px; }
}
@media (max-width: 400px) {
  .barre .marque { font-size: 14px; }
  .barre nav a { padding: 0 5px; font-size: 12.5px; }
  .barre .moi { padding: 0 2px; }
}

.memo.plus { min-height: 28px; text-decoration: underline; }
.barre .moi { display: inline-flex; align-items: center; gap: 4px; }

/* Infos du haut : tout est écrit, en petit, sur plusieurs lignes si besoin */
.agenda-memos .memo { white-space: normal; overflow: visible; text-overflow: clip; font-size: 10.5px; line-height: 1.25; padding: 2px 5px; }
@media (max-width: 899px) { .agenda-memos .memo { font-size: 10px; padding: 1px 4px; } .agenda-memos > div { padding: 2px; } }

/* Un seul style pour « pas disponible » (hors horaires ou absence notée) */
.zone-indispo { background: repeating-linear-gradient(135deg, var(--ferme) 0 8px, #ECE8DE 8px 16px); opacity: 1; }
.zone-indispo:hover, .zone-indispo:focus-visible { outline: 2px solid #C9C3B4; outline-offset: -2px; }
/* Rendez-vous : le nom toujours lisible, sur une ligne */
.bloc strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 899px) {
  .agenda.compact.toutes .bloc strong, .agenda.toutes .bloc strong { white-space: nowrap; line-height: 1.25; }
  .agenda.toutes .bloc { padding: 2px 4px; }
  .agenda.toutes .bloc .h { font-size: 10px; }
}
.agenda.compact .bloc { justify-content: flex-start; }

/* Race sous le prénom, toujours visible */
.bloc .race { font-size: 12px; color: #2E3833; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.bloc .race-inline { font-weight: 400; }
.bloc.moyen { justify-content: flex-start; gap: 0; padding-top: 2px; padding-bottom: 2px; }
.agenda.compact .bloc .race, .agenda.toutes .bloc .race { font-size: 10.5px; }
@media (max-width: 899px) { .agenda.toutes .bloc .race { font-size: 10px; } }
.bloc:not(.moyen):not(.court) .race { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- places libres et aperçu de la journée ---------- */
.places { display: flex; flex-direction: column; gap: 6px; }
.liste-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.place { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; min-height: 48px; padding: 6px 10px;
  border: 1px solid #D6D1C4; border-left: 4px solid var(--c); border-radius: 10px; background: var(--carte); font: inherit; font-size: 14px; cursor: pointer; }
.place strong { font-size: 13px; text-transform: capitalize; }
.place span { font-size: 12px; color: var(--doux); }
.place.on { background: #E3F1EC; border-color: var(--vert); border-left-color: var(--c); }
.apercu { display: flex; flex-direction: column; gap: 6px; }
.apercu .etiquette { display: flex; align-items: center; gap: 4px; }
.ap-liste { background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.ap-ligne { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 6px; border-left: 4px solid var(--c); font-size: 13px; }
.ap-ligne.autre { background: #F4F2EC; }
.ap-ligne.nouveau { background: #E3F1EC; font-weight: 700; outline: 2px dashed var(--vert); outline-offset: -2px; }
.ap-ligne.nouveau.en-conflit, .ap-ligne.conflit { background: var(--alerte-fond); color: var(--alerte); outline-color: #C0392B; }
.ap-h { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 88px; }
.ap-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-libre { font-size: 12px; color: var(--vert); padding: 0 12px; }
.ap-ligne.nettoyage { border-left-color: #999; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.05) 6px 12px); color: var(--doux, #666); }
.ap-alerte { font-size: 13px; color: var(--alerte); background: var(--alerte-fond); border-radius: 8px; padding: 6px 10px; }
.calcul { font-size: 13px; margin: -4px 0 0; color: #7B4FB0; }

/* Demandes venues de la page de réservation */
.bloc.demande { background: repeating-linear-gradient(135deg, #FFF6DB 0 8px, #FFFDF5 8px 16px) !important; border: 2px dashed #C99A1E; border-left-width: 4px; color: #5B4300; }
.bloc.demande .race { color: #7A5B00; }
.demande-carte { background: var(--carte); border: 1px solid var(--ligne); border-left: 4px solid #C99A1E; border-radius: var(--rayon); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; }
.dm-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dm-tete strong { font-size: 17px; }
.dm-tete .petit { color: var(--doux); font-size: 13px; }
.dm-chiens, .dm-extras { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.dm-extras { color: var(--doux); }
.dm-info { margin: 0; font-size: 14px; }
.dm-creneaux { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-cr { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--ligne);
  border-left: 4px solid var(--c); background: #FFFBEA; font: inherit; font-size: 13px; cursor: pointer; text-align: left; color: inherit; }
.dm-cr.refuse strong { text-decoration: line-through; }
.demande-carte details { font-size: 13px; }
.demande-carte summary { cursor: pointer; color: var(--doux); }
.demande-carte pre, .dm-message { white-space: pre-wrap; font: inherit; font-size: 13px; background: var(--fond); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; }
.badge.cache { display: none; }

@media (max-width: 520px) { .barre .marque { display: none; } .barre nav { margin-right: auto; } }
.barre nav .court-txt { display: none; }
@media (max-width: 520px) { .barre nav .long { display: none; } .barre nav .court-txt { display: inline; } }

/* ---------- agenda en grand : barre d'outils fine, agenda sur toute la largeur ---------- */
.barre { min-height: 48px; }
.barre nav a { min-height: 38px; }
.nav-ag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; }
.nav-ag .btn { min-height: 36px; padding: 0 10px; font-size: 14px; }
.nav-ag .btn.icone { width: 36px; padding: 0; font-size: 20px; }
.nav-ag .esp { flex: 1 1 0; }
.nav-date { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-ag h1 { margin: 0; font-size: 17px; text-transform: capitalize; white-space: nowrap; min-width: 0; padding: 0 4px; }
.nav-ag .titre-date { min-height: 36px; flex: none; justify-content: center; }
.nav-ag .titre-date h1 { min-width: 0; text-align: center; cursor: pointer; }
.nav-ag .date-sur-titre { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; min-height: 0; }
.nav-ag .court-txt { display: none; }
.nav-ag .puces-tl { order: 10; flex: 1 0 100%; padding: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-ag .puces-tl::-webkit-scrollbar { display: none; }
.nav-ag .puce { min-height: 32px; padding: 0 10px; font-size: 13px; }
.nav-ag .bascule { flex: none; }
.nav-ag .bascule a { min-height: 32px; padding: 0 10px; font-size: 13px; }
.nav-ag .zoom { margin-left: auto; padding-left: 6px; }
.nav-ag .zoom .btn.icone { width: 34px; min-height: 32px; }
.nav-ag .zoom .btn { min-height: 32px; font-size: 13px; padding: 0 8px; }
.agenda { margin: 0 8px 16px; }
.agenda-tetes { top: calc(48px + env(safe-area-inset-top, 0px)); }
.agenda-tetes div { padding: 6px 10px; }
.agenda-corps { padding: 8px 0 4px; }
.bloc strong { font-size: 14px; }
.bloc .race { font-size: 12.5px; }
.agenda.compact .bloc strong { font-size: 11px; }
@media (min-width: 900px) {
  /* Sur grand écran : une seule ligne, toutes les colonnes sont visibles */
  .nav-ag .puces-tl.jour { display: contents; }
  .nav-ag .puces-tl.jour .bascule { order: -1; }
  .nav-ag .puces-tl.jour .zoom { order: 3; }
  .nav-ag .esp { order: 2; }
  #ag-cherche { order: 4; }
  #ag-nouv { order: 5; }
}
@media (max-width: 899px) {
  .nav-ag .puces-tl.jour .zoom { position: sticky; right: 0; background: var(--fond); padding: 0 0 0 8px; box-shadow: -10px 0 10px -6px var(--fond); }
}
@media (max-width: 599px) {
  .nav-ag { padding: 4px 8px 6px; gap: 4px; }
  .nav-ag .long { display: none; }
  .nav-ag .court-txt { display: inline; }
  .nav-ag h1 { font-size: 16px; }
  .nav-ag #ag-nouv { width: 40px; padding: 0; font-size: 22px; }
  /* l'agenda touche les bords, comme Google Agenda */
  .agenda { margin: 0 0 12px; border-radius: 0; border-left: 0; border-right: 0; }
}

/* ---------- barre d'outils encore plus fine ---------- */
.barre { min-height: 44px; }
.barre nav a { min-height: 34px; font-size: 13px; }
.agenda-tetes { top: calc(44px + env(safe-area-inset-top, 0px)); }
.nav-ag { padding: 4px 10px; gap: 4px; }
.nav-ag .btn { min-height: 30px; padding: 0 8px; font-size: 13px; border-radius: 8px; }
.nav-ag .btn.icone { width: 30px; font-size: 17px; }
.nav-ag .btn.icone svg { width: 15px; height: 15px; }
.nav-ag h1 { font-size: 15px; }
.nav-ag .titre-date { min-height: 30px; }
.nav-ag .puce { min-height: 28px; padding: 0 9px; font-size: 12.5px; }
.nav-ag .bascule { border-radius: 8px; }
.nav-ag .bascule a { min-height: 28px; padding: 0 9px; font-size: 12.5px; }
.nav-ag .zoom .btn.icone { width: 30px; min-height: 28px; }
.nav-ag .zoom .btn { min-height: 28px; font-size: 12.5px; }
.agenda-tetes div { padding: 4px 8px; font-size: 14px; }
@media (max-width: 599px) {
  .nav-ag { padding: 3px 6px 5px; gap: 3px; }
  .nav-ag h1 { font-size: 14px; }
  .nav-ag #ag-nouv { width: 34px; font-size: 20px; }
}

/* ---------- mois qui défilent les uns après les autres ---------- */
.mois { overflow: clip; }
.mo-tetes { position: sticky; top: calc(44px + env(safe-area-inset-top, 0px)); z-index: 4; background: var(--carte); }
.mo-titre { margin: 0; padding: 10px 12px 6px; font-size: 16px; text-transform: capitalize; border-bottom: 1px solid var(--ligne2);
  background: var(--fond); position: relative; }
.mo-bloc + .mo-bloc .mo-titre { border-top: 1px solid var(--ligne); }
.mo-case.vide { background: #FBFAF6; pointer-events: none; }
@media (max-width: 699px) { .mo-titre { font-size: 15px; padding: 8px 8px 4px; } }
.mois-nav { position: sticky; top: calc(var(--haut-barre, 44px) + env(safe-area-inset-top, 0px)); z-index: 6; background: var(--fond);
  box-shadow: 0 1px 0 var(--ligne); }
.mo-tetes { top: calc(var(--haut-barre, 44px) + var(--haut-nav-mois, 70px) + env(safe-area-inset-top, 0px)); }
.mois, .mois * { overflow-anchor: none; }
.mo-avant { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--ligne2); background: var(--fond); color: var(--vert);
  font: inherit; font-weight: 600; font-size: 13px; padding: 10px; cursor: pointer; }

/* ---------- activités ---------- */
.barre nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
.barre nav::-webkit-scrollbar { display: none; }
.act-carte { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--carte);
  border: 1px solid var(--ligne); border-left: 4px solid var(--vert); border-radius: var(--rayon); text-decoration: none; color: var(--encre); }
.act-carte > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-carte strong { font-size: 16px; }
.act-carte .petit, .act-creneau .petit, .insc .petit { color: var(--doux); font-size: 13px; }
.act-chiffres { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.act-n { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.act-off { font-size: 11px; font-weight: 700; color: var(--alerte); background: var(--alerte-fond); border-radius: 6px; padding: 1px 6px; }
.act-on { font-size: 11px; font-weight: 700; color: var(--vert-fonce); background: #E3F1EC; border-radius: 6px; padding: 1px 6px; }
.act-sous { margin: 8px 0 0; font-size: 15px; color: var(--doux); }
.act-passees .act-carte { border-left-color: #B9B3A5; opacity: .8; }
.act-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.act-stats b { font-size: 17px; }
.act-lien { background: #FFF8E1; border: 1px solid #EBD38A; border-radius: var(--rayon); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.act-lien input { flex: 1 1 220px; min-width: 0; font-size: 14px; }
.act-creneaux { overflow: hidden; }
.act-creneau { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-bottom: 1px solid var(--ligne2); }
.act-creneau:last-child { border-bottom: 0; }
.act-heure { padding: 10px; display: flex; flex-direction: column; gap: 2px; background: #FAF8F3; border-right: 1px solid var(--ligne2); }
.act-heure strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.act-liste { display: flex; flex-direction: column; min-width: 0; }
.act-liste .libre { padding: 12px; color: var(--vert); }
.insc { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; padding: 8px 10px; border-bottom: 1px solid var(--ligne2); }
.insc:last-child { border-bottom: 0; }
.insc.annulee { opacity: .55; }
.insc-qui { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.insc-rep { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--doux); }
.insc-rep b { color: var(--encre); font-weight: 600; }
.insc-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.insc-actions .puce { min-height: 32px; font-size: 13px; }
.act-annulees { font-size: 14px; }
.act-annulees summary { cursor: pointer; color: var(--doux); padding: 4px 0; }
.act-bloc { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.act-titre-bloc { margin: 0; font-size: 16px; }
.act-gen { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; align-items: end; background: #FAF8F3; border-radius: 10px; padding: 10px; }
.act-crlist { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.act-cr { display: flex; gap: 6px; align-items: center; }
.act-cr input { min-height: 36px; padding: 0 8px; border: 1px solid #D6D1C4; border-radius: 8px; background: var(--carte); font: inherit; font-size: 14px; }
.act-cr input[type=number] { width: 62px; }
.act-cr .btn.icone { width: 36px; min-height: 36px; }
.act-q { border: 1px solid var(--ligne); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #FDFCF9; }
.act-q select { min-height: 36px; border: 1px solid #D6D1C4; border-radius: 8px; background: var(--carte); font: inherit; font-size: 14px; padding: 0 8px; }
.act-q .btn.icone { width: 36px; min-height: 36px; }
@media (max-width: 599px) { .act-creneau { grid-template-columns: 70px minmax(0, 1fr); } .act-heure { padding: 8px 6px; } .act-heure strong { font-size: 16px; } }

/* liste imprimée (PDF) */
#impression { display: none; }
@media print {
  body.imprime > *:not(#impression) { display: none !important; }
  body.imprime #impression { display: block; font: 11pt/1.35 system-ui, sans-serif; color: #000; }
  #impression h1 { font-size: 16pt; margin: 0 0 4px; }
  #impression p { margin: 0 0 10px; }
  #impression table { width: 100%; border-collapse: collapse; }
  #impression th, #impression td { border: 1px solid #999; padding: 4px 6px; text-align: left; vertical-align: top; }
  #impression th { background: #eee; }
  #impression tr { break-inside: avoid; }
  @page { margin: 12mm; }
}
.act-cr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 56px auto 36px; gap: 4px; align-items: center; }
.act-cr input { width: 100%; min-width: 0; padding: 0 6px; }
.act-cr input[type=number] { width: 100%; }
.act-cr .petit { font-size: 11px; white-space: nowrap; }
.act-gen .champ input { min-width: 0; width: 100%; }
.act-cr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 50px 52px 36px; }
.act-cr-tete { color: var(--doux); font-weight: 600; margin-bottom: -4px; }
.act-cr { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 46px 46px 34px; gap: 3px; }
.act-cr input { padding: 0 4px; font-size: 13px; }
.act-cr .btn.icone { width: 34px; }

.act-gen { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.act-pas, .act-gen-btns { grid-column: 1 / -1; gap: 6px; }
.act-pas .puce { min-height: 32px; font-size: 13px; }

/* ---------- rallye ---------- */
.onglets-act { align-self: flex-start; }
.onglets-act a { min-height: 36px; font-size: 14px; }
.table-defile { overflow-x: auto; }
.classement { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.classement th, .classement td { padding: 6px 8px; border-bottom: 1px solid var(--ligne2); text-align: center; white-space: nowrap; }
.classement th:nth-child(2), .classement td:nth-child(2) { text-align: left; white-space: normal; min-width: 110px; }
.classement th { font-size: 12px; color: var(--doux); }
.classement .podium.r1 td { background: #FFF4CC; }
.classement .podium.r2 td { background: #F1F1F1; }
.classement .podium.r3 td { background: #FBE9DC; }
.classement td.a-noter { color: var(--alerte); font-weight: 700; }
.photos-rallye { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-r { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--ligne); border-radius: 10px; padding: 6px; background: var(--carte); }
.photo-r.a-noter { border-color: #E3A33A; box-shadow: 0 0 0 2px #FCE7BE; }
.photo-r img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #eee; }
.photo-r input { width: 60px; min-height: 34px; padding: 0 6px; border: 1px solid #D6D1C4; border-radius: 8px; font: inherit; }
.photo-r .btn { min-height: 34px; padding: 0 10px; }
.photo-r .petit { color: var(--doux); font-size: 12px; }
.poste { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--ligne2); padding-top: 10px; }
.poste-qr { flex: none; background: #fff; border-radius: 6px; line-height: 0; }
.poste-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.poste-txt ol { margin: 0; padding-left: 20px; font-size: 14px; }
.poste-txt .petit { color: var(--doux); font-size: 12.5px; }
.poste-txt .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
@media (max-width: 499px) { .poste { flex-direction: column; } }
.choix-r { display: flex; flex-direction: column; gap: 4px; }
.choix-r input:not([type=radio]) { min-height: 36px; padding: 0 8px; border: 1px solid #D6D1C4; border-radius: 8px; font: inherit; font-size: 14px; }
.choix-r input[type=radio] { width: 20px; height: 20px; }
.choix-r .btn { align-self: flex-start; min-height: 34px; font-size: 13px; }
@media print {
  #impression .qr-page { text-align: center; page-break-after: always; break-after: page; padding-top: 10mm; }
  #impression .qr-page:last-child { page-break-after: auto; break-after: auto; }
  #impression .qr-page h1 { font-size: 40pt; margin: 4mm 0; }
  #impression .qr-page h2 { font-size: 22pt; margin: 0 0 8mm; font-weight: 600; }
  #impression .qr-page .qr-titre { font-size: 14pt; color: #444; }
  #impression .qr-page svg { width: 120mm; height: 120mm; }
  #impression .qr-page p { font-size: 16pt; margin-top: 8mm; }
}

/* ---------- rappels SMS ---------- */
.rappel { background: var(--carte); border: 1px solid var(--ligne); border-left: 4px solid #B9B3A5; border-radius: var(--rayon); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px; }
.rappel.repondu { border-left-color: var(--vert); }
.rappel.attente { border-left-color: #E3A33A; }
.rappel.a_appeler, .rappel.echec { border-left-color: #C0392B; background: #FFF8F6; }
.rappel.sans_tel { border-left-color: #8E8A80; }
.rappel.alerte { border-left-color: #C0392B; }
.rp-tete { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rp-tete strong { font-size: 16px; }
.rp-etat { font-size: 16px; }
.rp-rdvs { display: flex; flex-direction: column; gap: 2px; }
.rp-rdv { border-left: 3px solid var(--c); padding-left: 6px; font-size: 14px; }
.rp-rdv .petit { color: var(--doux); font-size: 12px; }
.rp-reponse { background: #E3F1EC; color: #1F4D40; border-radius: 10px; padding: 6px 10px; font-size: 14px; align-self: flex-start; max-width: 100%; }
.rp-reponse.alerte { background: var(--alerte-fond); color: var(--alerte); font-weight: 600; }
.rp-infos { color: var(--doux); font-size: 12.5px; }
.rp-actions .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
.rp-msgs { display: flex; flex-direction: column; gap: 4px; }
.rp-msg { font-size: 13px; padding: 6px 10px; border-radius: 10px; max-width: 90%; display: flex; flex-direction: column; gap: 2px; }
.rp-msg.sortant { background: #F1EEE6; align-self: flex-end; }
.rp-msg.entrant { background: #E3F1EC; align-self: flex-start; }
.rp-msg .petit { color: var(--doux); font-size: 11px; }
.rp-date { min-height: 32px; border: 1px solid #D6D1C4; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--carte); }
.demo-sim { border-style: dashed !important; color: #A9521F !important; }
