/* Okalendo — identité « piste B » (vif et chaleureux), validée le 02/10/2026.
   Indigo = l'action ; corail = le signal ; Bricolage Grotesque pour les titres, Onest pour le texte. */
:root {
  --indigo: #2E2A92;
  --indigo-vif: #423DC4;
  --indigo-pale: #ECEBFF;
  --corail: #FF6A4D;
  --corail-fonce: #C9442A;
  --encre: #1B1946;
  --fond: #F6F5FF;
  --teinte: #FFE7E0;
  --blanc: #FFFFFF;
  --muted: #54517A;
  --line: #E2E0F2;
  --vert: #157A52;
  --vert-pale: #E2F4EA;
  --r: 22px;
  --rs: 14px;
  --pill: 999px;
  --titre: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --texte: 'Onest', system-ui, -apple-system, sans-serif;
  --ombre: 0 1px 2px rgba(27, 25, 70, .05), 0 10px 30px rgba(27, 25, 70, .07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 16px/1.5 var(--texte);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titre); color: var(--encre); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; line-height: 1.1; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--indigo); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.petit { font-size: 13px; }
.gras { font-weight: 600; }

/* ── logo ── */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--encre); }
.logo svg { display: block; }
.logo b { font: 700 22px/1 var(--titre); letter-spacing: -.03em; }
.logo.clair b { color: var(--blanc); }

/* ── boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--pill);
  border: 2px solid transparent; background: var(--blanc); color: var(--encre);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primaire { background: var(--indigo); color: var(--blanc); box-shadow: 0 6px 18px rgba(46, 42, 146, .25); }
.btn-primaire:hover { background: var(--indigo-vif); }
.btn-signal { background: var(--corail); color: var(--blanc); box-shadow: 0 6px 18px rgba(255, 106, 77, .3); }
.btn-contour { border-color: var(--encre); background: transparent; }
.btn-contour:hover { background: var(--blanc); }
.btn-doux { background: var(--indigo-pale); color: var(--indigo); }
.btn-danger { border-color: var(--corail-fonce); color: var(--corail-fonce); background: transparent; }
.btn-lien { min-height: 40px; padding: 0 6px; background: none; border: 0; text-decoration: underline;
  text-underline-offset: 3px; color: var(--encre); }
.btn-plein { width: 100%; }
.btn-petit { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* ── cartes, puces ── */
.carte { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.carte + .carte { margin-top: 12px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill);
  background: var(--teinte); color: var(--encre); font-size: 12.5px; font-weight: 600;
}
.puce.indigo { background: var(--indigo-pale); color: var(--indigo); }
.puce.vert { background: var(--vert-pale); color: var(--vert); }
.puce.gris { background: #EEEDF6; color: var(--muted); }
.puce.corail { background: var(--corail); color: var(--blanc); }

/* ── champs ── */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > span { font-size: 14px; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--rs);
  background: var(--blanc); font-size: 16px; width: 100%;
}
.champ textarea { min-height: 84px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--indigo); outline: none;
  box-shadow: 0 0 0 4px var(--indigo-pale); }
.champ.erreur input, .champ.erreur select { border-color: var(--corail-fonce); }
.champ .err { color: var(--corail-fonce); font-size: 13px; font-weight: 500; }
.case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--indigo); flex: none; }

.interrupteur { position: relative; display: inline-flex; width: 50px; height: 30px; flex: none; }
.interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.interrupteur i { position: absolute; inset: 0; border-radius: var(--pill); background: #D8D6EA; transition: background .15s; }
.interrupteur i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blanc); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.interrupteur input:checked + i { background: var(--indigo); }
.interrupteur input:checked + i::after { transform: translateX(20px); }
.interrupteur input:focus-visible + i { outline: 3px solid var(--corail); outline-offset: 2px; }

.alerte { border-radius: var(--rs); padding: 12px 14px; background: var(--teinte); font-size: 14px; }
.alerte.info { background: var(--indigo-pale); }
.alerte.ok { background: var(--vert-pale); }
.alerte ul { margin: 6px 0 0; padding-left: 18px; }
.alerte .btn-doux { background: var(--blanc); margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--encre); color: var(--blanc); padding: 12px 20px; border-radius: var(--pill);
  font-weight: 600; font-size: 14px; z-index: 100; transition: opacity .2s, transform .2s; pointer-events: none;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.erreur { background: var(--corail-fonce); }

.chargement { display: flex; justify-content: center; padding: 48px 0; }
.chargement::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line);
  border-top-color: var(--indigo); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ════════════════════════════ pages patient ════════════════════════════ */
body.patient { min-height: 100vh; }
.p-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 640px; margin: 0 auto; padding: 14px 16px 6px; }
.p-entete .cab { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.3; }
.p-corps { max-width: 640px; margin: 0 auto; padding: 8px 16px 140px; display: flex; flex-direction: column; gap: 22px; }
.p-corps.sans-pied { padding-bottom: 48px; }
.p-medecin { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--teinte); color: var(--encre);
  display: flex; align-items: center; justify-content: center; font: 700 17px var(--titre); }
.p-medecin .nom { font: 700 19px/1.2 var(--titre); }
.etape { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.etape > header { display: flex; align-items: baseline; gap: 10px; }
.etape .num { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center; font: 700 14px var(--titre); flex: none;
  transform: translateY(4px); }
.etape.inactive { opacity: .45; pointer-events: none; }

.choix-examen {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--rs); border: 2px solid var(--line); background: var(--blanc); cursor: pointer;
}
.choix-examen .ligne { display: flex; justify-content: space-between; gap: 10px; width: 100%; align-items: baseline; }
.choix-examen .n { font-weight: 600; font-size: 15.5px; }
.choix-examen .d { font-size: 13px; color: var(--muted); flex: none; }
.choix-examen[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo); color: var(--blanc); }
.choix-examen[aria-pressed="true"] .d { color: #CFCDF5; }
.choix-examen[aria-pressed="true"] .puce { background: rgba(255, 255, 255, .16); color: var(--blanc); }
.liste-examens { display: flex; flex-direction: column; gap: 8px; }

.jours { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.jour {
  flex: none; width: 66px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 4px; border-radius: var(--rs); border: 2px solid var(--line); background: var(--blanc); cursor: pointer;
}
.jour .js { font-size: 12px; color: var(--muted); }
.jour .jn { font: 700 20px/1.1 var(--titre); }
.jour .jm { font-size: 12px; color: var(--muted); }
.jour[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--blanc); }
.jour[aria-pressed="true"] .js, .jour[aria-pressed="true"] .jm { color: #CFCDF5; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.heure {
  min-height: 46px; border-radius: var(--pill); border: 2px solid var(--line); background: var(--blanc);
  font-weight: 600; font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.heure:hover { border-color: var(--indigo); }
.heure[aria-pressed="true"] { background: var(--corail); border-color: var(--corail); color: var(--blanc); }
.lieux { display: flex; flex-wrap: wrap; gap: 8px; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulaire .large { grid-column: 1 / -1; }
@media (max-width: 480px) { .formulaire { grid-template-columns: 1fr; } }
.courrier { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px dashed var(--line);
  border-radius: var(--rs); background: var(--blanc); }

.p-pied {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.p-pied .dedans { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.p-pied .resume { font-size: 14px; font-weight: 600; min-height: 21px; }

.recap { display: flex; flex-direction: column; gap: 10px; }
.recap .quand { font: 800 24px/1.15 var(--titre); }
.recap .quand small { display: block; font: 600 15px var(--texte); color: var(--muted); margin-top: 4px; }
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 0; font-size: 15px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 500; }
.preparer { background: var(--teinte); border-radius: var(--rs); padding: 12px 14px; font-size: 15px; }
.preparer b { display: block; font-family: var(--titre); margin-bottom: 2px; }

.compte { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px;
  border-radius: var(--pill); background: var(--teinte); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.compte::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--corail);
  animation: pouls 1.4s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .3; } }
.ou { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code { letter-spacing: .4em; font: 700 26px var(--titre) !important; text-align: center; }
.grand-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--indigo); color: var(--blanc);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(46, 42, 146, .3); }
.grand-ok.corail { background: var(--corail); box-shadow: 0 10px 30px rgba(255, 106, 77, .3); }
.grand-ok.gris { background: var(--muted); box-shadow: none; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.puces-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-choix { min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 2px solid var(--line);
  background: var(--blanc); font-weight: 600; font-size: 14px; cursor: pointer; }
.puce-choix[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo-pale); color: var(--indigo); }
.demo { border: 1.5px dashed var(--corail); border-radius: var(--rs); padding: 12px 14px; font-size: 14px;
  display: flex; flex-direction: column; gap: 8px; background: #FFF7F4; }
.p-bas { text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px 0 0; }
.vitrine { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.vitrine h1 { font-size: clamp(32px, 8vw, 52px); }
.vitrine h1 em { font-style: normal; color: var(--corail); }

/* ════════════════════════════ application du cabinet ════════════════════════════ */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.a-nav { background: var(--encre); color: var(--blanc); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.a-nav .cabinet { font-size: 13px; color: #BDBBE0; line-height: 1.35; padding: 0 6px; }
.a-nav .cabinet b { display: block; color: var(--blanc); font-size: 14px; }
.a-nav select { width: 100%; min-height: 40px; border-radius: var(--rs); border: 1px solid #3B3870; background: #26235A;
  color: var(--blanc); padding: 0 10px; }
.a-nav nav { display: flex; flex-direction: column; gap: 2px; }
.a-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #DCDAF5;
  text-decoration: none; font-weight: 500; font-size: 15px; }
.a-nav nav a:hover { background: #26235A; color: var(--blanc); }
.a-nav nav a[aria-current="page"] { background: var(--blanc); color: var(--encre); font-weight: 600; }
.a-nav nav a .badge { margin-left: auto; background: var(--corail); color: var(--blanc); border-radius: var(--pill);
  font-size: 12px; padding: 1px 8px; font-weight: 700; }
.a-nav nav svg { width: 18px; height: 18px; flex: none; }
.a-nav .bas { margin-top: auto; font-size: 12px; color: #9C9AC8; padding: 0 6px; }
.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-barre { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 24px 12px; }
.a-barre h1 { font-size: 26px; margin-right: auto; }
.a-contenu { padding: 0 24px 40px; min-width: 0; }
.bandeau-sim { background: var(--teinte); color: var(--encre); font-size: 13px; padding: 8px 24px; font-weight: 500; }
.segment { display: inline-flex; background: var(--blanc); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.segment button { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--pill); background: none;
  font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.segment button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.periode { font: 700 16px var(--titre); min-width: 150px; text-align: center; }
.rond { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* grille de l'agenda */
.grille { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); overflow: auto;
  max-height: calc(100vh - 150px); position: relative; }
.grille-tete { display: grid; position: sticky; top: 0; z-index: 4; background: var(--blanc); border-bottom: 1px solid var(--line); }
.grille-tete > div { padding: 10px 8px; text-align: center; font-size: 13px; color: var(--muted); min-width: 0; }
.grille-tete .jn { display: block; font: 700 20px/1.1 var(--titre); color: var(--encre); }
.grille-tete .auj .jn { color: var(--blanc); background: var(--corail); border-radius: 50%; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; }
.grille-tete .nb { display: block; font-size: 11.5px; }
.grille-corps { display: grid; position: relative; }
.gouttiere { position: relative; border-right: 1px solid var(--line); }
.gouttiere span { position: absolute; right: 8px; font-size: 11.5px; color: var(--muted); transform: translateY(-50%);
  font-variant-numeric: tabular-nums; }
.colonne { position: relative; border-right: 1px solid var(--line); min-width: 0;
  background-image: repeating-linear-gradient(135deg, #F3F2FA 0 6px, #FAFAFE 6px 12px); }
.colonne:last-child { border-right: 0; }
.trait { position: absolute; left: 0; right: 0; border-top: 1px solid #EEEDF7; pointer-events: none; }
.trait.demi { border-top-style: dashed; border-top-color: #F3F2FA; }
.ouverture { position: absolute; left: 0; right: 0; background: var(--blanc); cursor: copy; }
.ouverture.cabinet { background: #FCFBFF; box-shadow: inset 3px 0 0 #CFCCEB; }
.indispo { position: absolute; left: 3px; right: 3px; border-radius: 10px; z-index: 1;
  background: repeating-linear-gradient(135deg, #FFE7E0 0 7px, #FFF3EF 7px 14px); border: 1px solid #FFC9BC;
  font-size: 12px; font-weight: 600; color: var(--corail-fonce); padding: 4px 8px; overflow: hidden; }
.rdv { position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 10px; padding: 3px 8px; overflow: hidden;
  font-size: 12.5px; line-height: 1.25; cursor: pointer; text-align: left; border: 0;
  background: var(--indigo-pale); color: var(--encre); box-shadow: inset 4px 0 0 var(--indigo); }
.rdv:hover { filter: brightness(.97); z-index: 3; }
.rdv b { font-weight: 700; }
.rdv .h { font-variant-numeric: tabular-nums; color: var(--indigo); font-weight: 700; }
.rdv .e { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdv.reserve { background: var(--blanc); box-shadow: none; border: 1.5px dashed var(--indigo); }
.rdv.honore { background: #F1F0F7; box-shadow: inset 4px 0 0 #A9A7C8; color: var(--muted); }
.rdv.absent { background: var(--teinte); box-shadow: inset 4px 0 0 var(--corail); }
.rdv.annule { background: #fff; color: #9C9AC8; text-decoration: line-through; box-shadow: none; border: 1px solid var(--line); }
.rdv .ligne1 { display: flex; gap: 6px; white-space: nowrap; overflow: hidden; }
.rdv .web { color: var(--corail); font-weight: 800; }
.maintenant { position: absolute; left: 0; right: 0; border-top: 2px solid var(--corail); z-index: 3; pointer-events: none; }
.maintenant::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--corail); }
.legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 20px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }

/* panneaux */
.voile { position: fixed; inset: 0; background: rgba(27, 25, 70, .35); z-index: 50; display: flex; justify-content: flex-end; }
.panneau { width: min(460px, 100vw); height: 100%; background: var(--fond); overflow-y: auto; padding: 22px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: -10px 0 40px rgba(27, 25, 70, .2);
  animation: glisse .18s ease-out; }
@keyframes glisse { from { transform: translateX(30px); opacity: .6; } }
.panneau .tete { display: flex; align-items: flex-start; gap: 12px; }
.panneau .tete h2 { font-size: 22px; margin-right: auto; }
.fermer { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--blanc); cursor: pointer;
  font-size: 22px; line-height: 1; flex: none; }
.rangee { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grille2 .large { grid-column: 1 / -1; }
.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; font-size: 14px; }
.tableau th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAFF; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau input, .tableau select { min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--blanc); width: 100%; font-size: 14px; }
.colonnes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section + .section { margin-top: 22px; }
.semaine-plages { display: grid; gap: 10px; }
.jour-plages { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 12px 14px;
  background: var(--blanc); border: 1px solid var(--line); border-radius: var(--rs); }
.jour-plages .nomj { font: 700 15px var(--titre); padding-top: 6px; }
.plage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.plage + .plage { border-top: 1px dashed var(--line); }
.plage .hh { font-weight: 700; font-variant-numeric: tabular-nums; }
.regle { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: center; padding: 14px 0;
  border-top: 1px solid var(--line); }
.regle:first-of-type { border-top: 0; }
.regle .lib { font-weight: 600; }
.regle .aide { font-size: 13px; color: var(--muted); }
.regle .ctl { display: flex; justify-content: flex-end; }
.regle .ctl input, .regle .ctl select { min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px;
  width: 100%; background: var(--blanc); font-size: 15px; }
.regle.modifiee .lib::after { content: " •"; color: var(--corail); }
.barre-bas { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--fond) 30%); padding: 18px 0 6px;
  display: flex; gap: 10px; align-items: center; }
.branchement { display: flex; gap: 16px; align-items: flex-start; }
.branchement .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--indigo-pale); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; flex: none; font: 800 16px var(--titre); }
.branchement .txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.lien-public { display: flex; gap: 8px; align-items: center; background: var(--blanc); border: 1.5px solid var(--line);
  border-radius: var(--pill); padding: 6px 6px 6px 18px; }
.lien-public code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.vide { text-align: center; color: var(--muted); padding: 34px 16px; background: var(--blanc); border: 1px dashed var(--line);
  border-radius: var(--r); }

@media (max-width: 900px) {
  body.app { grid-template-columns: 1fr; }
  .a-nav { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .a-nav .cabinet, .a-nav .bas { display: none; }
  .a-nav nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  .a-nav nav a { white-space: nowrap; padding: 8px 12px; }
  .a-nav .choix-prat { margin-left: auto; }
  .a-barre { padding: 14px 16px 10px; }
  .a-contenu { padding: 0 16px 32px; }
  .colonnes { grid-template-columns: 1fr; }
  .regle { grid-template-columns: 1fr; }
  .regle .ctl { justify-content: stretch; }
  .jour-plages { grid-template-columns: 1fr; }
  .grille2 { grid-template-columns: 1fr; }
  .tableau.replie thead { display: none; }
  .tableau.replie tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tableau.replie td { display: block; border: 0; padding: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
