/* Feuille de Bridge : gabarit (barre latérale, onglets) et classes historiques des écrans.
   Chargée après /assets/ui.css (crate `ui`), qui porte les couleurs claires et sombres, les
   tokens (texte, hauteurs, espacements, rayons), les bases (corps, focus) et les composants
   `ui-…`. Les classes `echo-`, `pod-` et `amber-` sont réservées aux modules.
   Les sélecteurs d'éléments nus passent par :where() (spécificité nulle) pour ne jamais
   l'emporter sur un composant `ui-…`. */

/* Typographie (texte 14/20 par défaut, posé par ui.css sur body) */
:where(h1) { font-size: var(--texte-20); line-height: var(--interligne-20); font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--esp-16); overflow-wrap: anywhere; }
:where(h2) { font-size: var(--texte-16); line-height: var(--interligne-16); font-weight: 600; margin: var(--esp-24) 0 var(--esp-8); overflow-wrap: anywhere; }
:where(h3) { font-size: var(--texte-14); line-height: var(--interligne-14); font-weight: 600; margin: var(--esp-16) 0 var(--esp-4); }
:where(p) { margin: 0 0 var(--esp-12); }
:where(a:not([class*="ui-"], .ui-ariane *, .ui-vide *, .ui-avis *, .ui-liste-liens *)) { color: var(--accent); text-underline-offset: .15em; }
.discret { color: var(--discret); }
time { font-variant-numeric: tabular-nums; }
:where(code, pre) { font-family: var(--police-mono); font-size: .875em; }
:where(code) {
  padding: 1px var(--esp-4);
  background: var(--surface);
  border-radius: var(--rayon-4);
  overflow-wrap: anywhere;
}
:where(pre code) { padding: 0; background: none; }

.lien-evitement {
  position: absolute;
  left: var(--esp-8);
  top: -4rem;
  z-index: 50; /* au-dessus de la barre latérale (40), sous les toasts (60) */
  padding: var(--esp-8) var(--esp-12);
  background: var(--accent);
  color: var(--accent-texte);
  border-radius: var(--rayon-6);
  font-weight: 600;
}
.lien-evitement:focus { top: var(--esp-8); }

/* ---------------------------------------------------------------------------------------------
   Mise en page : en-tête et onglets en bas sur mobile ; barre latérale de 220 px sur bureau ;
   colonne de données fluide jusqu'à 80rem. */

main {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  background: var(--page);
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--esp-16) var(--esp-16) calc(5rem + env(safe-area-inset-bottom, 0px));
  min-width: 0;
  /* Hauteur que le panneau de contenu prend à la fenêtre hors de la page (remplissage haut 1rem et
     bas 5rem du main, marge basse 1.5rem du bloc) : lue par la page plein cadre de ui.css. */
  --bridge-decalage-vertical: 7.5rem;
}
/* Blocs de page enfants directs de <main>. Une page composée en régions (gabarit Fiche) place ses
   blocs dans les régions : les mêmes règles (marge, bloc vide masqué, dernier enfant) y sont
   posées par ui.css, qui seul nomme les classes du squelette (ADR 0022, règle c). */
main > section { margin: 0 0 var(--esp-24); }
main > section:empty { display: none; }
/* Dernier enfant d'une section : marge ramenée à 0 pour les blocs historiques seulement. Tout
   composant `ui-…` a une classe qui commence par `ui-` (jamais un élément nu à la racine) :
   `[class*="ui-"]` les exclut tous sans liste à tenir ; l'erreur possible (une classe historique
   qui contient « ui- » garde sa marge) est sans danger. */
main > section > :last-child:not([class*="ui-"]) { margin-bottom: 0; }

.marque-ligne { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-8); }
.marque {
  display: flex;
  align-items: center;
  gap: var(--esp-8);
  margin: 0;
  font-size: var(--texte-14);
  line-height: var(--interligne-14);
  font-weight: 600;
}
.marque-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--h-24);
  height: var(--h-24);
  border-radius: var(--rayon-6);
  background: var(--accent);
  color: var(--accent-texte);
  font-size: var(--texte-13);
  font-weight: 600;
}

/* Barre latérale : absente sur mobile (la page commence par sa propre ligne d'en-tête, les
   onglets du bas portent la navigation) ; sans menu (connexion, erreurs), la marque seule reste,
   centrée au-dessus du contenu. */
.barre-laterale { display: none; }
.barre-laterale .nav-principale { display: none; }
.sans-menu .barre-laterale {
  display: flex;
  justify-content: center;
  padding: 0 var(--esp-16) var(--esp-16);
}
/* Connexion et erreurs : la marque et la carte forment UN bloc centré dans la page, en largeur et en
   hauteur, sans second cadre autour de la carte (celle-ci porte le sien : `.sys-etat`). */
body.sans-menu {
  box-sizing: border-box;
  padding: var(--esp-24) 0; /* page plus haute que la fenêtre : 24 px au moins autour du bloc */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}
.sans-menu main > section { margin: 0; } /* la marge de section décentrerait la carte */
.sans-menu main {
  flex: none;
  width: 100%;
  max-width: 26rem;
  min-height: 0;
  margin: 0;
  padding: 0 var(--esp-16);
  background: none;
  border: 0;
  border-radius: 0;
}

.nav-liste { margin: 0; padding: 0; list-style: none; gap: 1px; }
.nav-liste a {
  display: flex;
  align-items: center;
  gap: var(--esp-8);
  height: var(--h-controle);
  padding: 0 var(--esp-8);
  color: var(--discret);
  text-decoration: none;
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
  font-weight: 500;
  border-radius: var(--rayon-6);
  transition: background-color var(--duree), color var(--duree);
}
.nav-liste a:hover { background: var(--survol-ui); color: var(--texte); }
.nav-liste [aria-current="page"],
.nav-liste [aria-current="page"]:hover { background: var(--fond); color: var(--texte); box-shadow: var(--ombre-pastille), 0 0 0 1px var(--bord); }
.nav-liste [aria-current="page"] .ui-icone { color: var(--accent); }
.nav-titre {
  margin: var(--esp-16) 0 var(--esp-4);
  padding: 0 var(--esp-8);
  color: var(--faible);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 500;
}

/* Bascule du menu (R5) : deux boutons d'un même formulaire POST (sans JS : cookie `menu` + 303),
   un seul visible selon le mode effectif. Le cookie met la classe `menu-rail` / `menu-deploye` sur
   <body> dès la première réponse ; sans cookie, la largeur décide (rail de 48 à 64rem). */
.menu-bascule { display: contents; }
.menu-bascule-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--h-24);
  height: var(--h-24);
  padding: 0;
  color: var(--faible);
  background: none;
  border: 0;
  border-radius: var(--rayon-6);
  cursor: pointer;
  transition: background-color var(--duree), color var(--duree);
}
.menu-bascule-bouton:hover { background: var(--survol-ui); color: var(--texte); }
.menu-bascule .menu-bascule-deployer { display: none; }
.menu-recherche { margin-left: auto; text-decoration: none; }
.menu-recherche:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Sous-entrées de Mémoire : un filet de repère, comme une arborescence. */
.nav-sous {
  display: grid;
  gap: 1px;
  margin: 1px 0 var(--esp-4) calc(var(--esp-8) + .5rem);
  padding: 0 0 0 var(--esp-4);
  list-style: none;
  border-left: 1px solid var(--bord);
}
.nav-sous-lien { padding-left: var(--esp-8); }
.nav-liste [aria-current="true"] .ui-icone { color: var(--accent); }
.nav-liste [aria-current="true"] { color: var(--texte); }

/* Onglets du bas (mobile) : les quatre premières entrées, le reste dans « Plus ». */
.onglets {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--chrome);
  border-top: 1px solid var(--bord);
}
.onglets ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.onglets li { flex: 1 1 auto; min-width: 0; position: relative; }
.onglets a,
.onglets summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 3.5rem;
  padding: var(--esp-4);
  color: var(--discret);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  overflow-wrap: break-word;
  cursor: pointer;
  list-style: none;
}
.onglets .ui-icone { width: 1.25rem; height: 1.25rem; }
.onglets summary::-webkit-details-marker { display: none; }
/* Caractères décoratifs : texte de remplacement vide, hors du nom accessible. */
.onglets summary::before { content: "\22EF"; content: "\22EF" / ""; font-size: 1.25rem; line-height: 1.25rem; }
.onglets details[open] summary { color: var(--texte); background: var(--actif-ui); }
.onglets [aria-current="page"] { color: var(--accent); }
@supports selector(:has(*)) {
  .onglets .plus:has([aria-current="page"]) summary { color: var(--accent); }
}
.onglets details ul {
  position: absolute;
  right: var(--esp-8);
  bottom: calc(100% + var(--esp-8));
  min-width: 12rem;
  flex-direction: column;
  padding: var(--esp-4);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-8);
  box-shadow: var(--ombre-haute);
}
.onglets details li { flex: none; }
.onglets details a {
  flex-direction: row;
  justify-content: flex-start;
  gap: var(--esp-8);
  min-height: var(--h-controle);
  padding: 0 var(--esp-8);
  font-size: var(--texte-14);
  color: var(--texte);
  border-radius: var(--rayon-4);
}
.onglets details a .ui-icone { width: 1rem; height: 1rem; color: var(--discret); }
.onglets details a:hover { background: var(--survol-ui); }
.onglets details [aria-current="page"] { background: var(--actif-ui); color: var(--texte); }

@media (min-width: 48rem) {
  body:not(.sans-menu) {
    display: grid;
    grid-template-columns: var(--menu-largeur, 13.75rem) minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
  }
  .onglets { display: none; }
  body:not(.sans-menu) .barre-laterale {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 40; /* infobulles et menu flottant du rail au-dessus du contenu (toasts : 60) */
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--esp-12) var(--esp-8);
    border-bottom: 0;
  }
  body:not(.sans-menu) .barre-laterale .marque-ligne { margin: 0 var(--esp-8) var(--esp-16); min-height: var(--h-controle); }
  .barre-laterale .nav-principale { display: block; }
  .nav-liste { display: grid; }
  /* Panneau de contenu posé sur le cadre gris : pleine largeur, contenu borné à 80rem dedans. */
  main {
    width: auto;
    max-width: none;
    margin: var(--esp-8) var(--esp-8) var(--esp-8) 0;
    min-height: calc(100vh - var(--esp-16));
    padding: var(--esp-24) max(var(--esp-32), calc((100% - 80rem) / 2)) var(--esp-40);
    border: 1px solid var(--bord);
    border-radius: 10px;
    /* Marges 1rem, bordure 2px, remplissage 1.5rem + 2.5rem, marge basse du bloc 1.5rem. */
    --bridge-decalage-vertical: 6.625rem;
  }
}

/* Mode rail (56 px) : icônes seules. Deux copies des mêmes règles, car une media query ne se combine pas
   avec une classe : (1) cookie `menu=rail`, dès 48rem ; (2) sans cookie, de 48 à 64rem. */
@media (min-width: 48rem) {
  body.menu-rail:not(.sans-menu) { --menu-largeur: 3.5rem; }
  body.menu-rail .barre-laterale { overflow: visible; }
  body.menu-rail .marque-ligne { flex-direction: column; justify-content: center; gap: var(--esp-8); margin-inline: 0; }
  body.menu-rail .marque-nom,
  body.menu-rail .nav-liste > li > a > span,
  body.menu-rail .compte-nom {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.menu-rail .menu-recherche { margin-left: 0; }
  body.menu-rail .menu-bascule-reduire { display: none; }
  body.menu-rail .menu-bascule .menu-bascule-deployer { display: inline-flex; }
  body.menu-rail .nav-liste > li { position: relative; }
  body.menu-rail .nav-liste > li > a { justify-content: center; padding: 0; }
  /* Infobulle : libellé à droite de l'icône, au survol et au focus clavier (le nom accessible reste
     le texte masqué ci-dessus). */
  @media (hover: hover) {
    body.menu-rail .nav-liste > li:not(.nav-groupe) > a:is(:hover, :focus-visible)::after {
      content: attr(data-infobulle);
      content: attr(data-infobulle) / "";
      position: absolute;
      left: calc(100% + var(--esp-12));
      top: 50%;
      translate: 0 -50%;
      z-index: 30;
      padding: var(--esp-4) var(--esp-8);
      color: var(--texte);
      background: var(--fond-menu);
      border: 1px solid var(--bord);
      border-radius: var(--rayon-6);
      box-shadow: var(--ombre-haute);
      font-size: var(--texte-12);
      line-height: var(--interligne-12);
      font-weight: 500;
      white-space: nowrap;
      pointer-events: none;
    }
  }
  body.menu-rail .nav-titre {
    height: 1px;
    margin: var(--esp-8) var(--esp-8);
    padding: 0;
    overflow: hidden;
    font-size: 0;
    background: var(--bord);
  }
  /* Sous-entrées de Mémoire : menu flottant au survol et au focus de l'entrée. */
  body.menu-rail .nav-sous {
    display: none;
    position: absolute;
    left: calc(100% + var(--esp-12));
    top: 0;
    z-index: 30;
    min-width: 10rem;
    margin: 0;
    padding: var(--esp-4);
    background: var(--fond-menu);
    border: 1px solid var(--bord);
    border-radius: var(--rayon-8);
    box-shadow: var(--ombre-haute);
  }
  body.menu-rail .nav-sous::before {
    content: attr(data-titre);
    content: attr(data-titre) / "";
    padding: var(--esp-4) var(--esp-8);
    color: var(--faible);
    font-size: var(--texte-12);
    line-height: var(--interligne-12);
    font-weight: 500;
  }
  body.menu-rail .nav-sous-lien { justify-content: flex-start; padding: 0 var(--esp-8); }
  @media (hover: hover) {
    body.menu-rail .nav-groupe:is(:hover, :focus-within) > .nav-sous { display: grid; }
  }
  /* Pont invisible entre l'icône et le menu flottant : la souris ne le quitte pas en route. */
  @media (hover: hover) {
    body.menu-rail .nav-groupe:is(:hover, :focus-within)::after {
      content: "";
      position: absolute;
      left: 100%;
      top: 0;
      width: var(--esp-16);
      height: 100%;
    }
  }
  body.menu-rail .nav-liste > li > a[aria-current="true"],
  body.menu-rail .nav-liste > li > a[aria-current="true"]:hover { background: var(--fond); color: var(--texte); box-shadow: var(--ombre-pastille), 0 0 0 1px var(--bord); }
  body.menu-rail .compte { flex-direction: column; padding: var(--esp-8) 0; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  body:not(.menu-deploye, .menu-rail, .sans-menu) { --menu-largeur: 3.5rem; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .barre-laterale { overflow: visible; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .marque-ligne { flex-direction: column; justify-content: center; gap: var(--esp-8); margin-inline: 0; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .marque-nom,
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-liste > li > a > span,
  body:not(.menu-deploye, .menu-rail, .sans-menu) .compte-nom {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .menu-recherche { margin-left: 0; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .menu-bascule-reduire { display: none; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .menu-bascule .menu-bascule-deployer { display: inline-flex; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-liste > li { position: relative; }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-liste > li > a { justify-content: center; padding: 0; }
  /* Infobulle : libellé à droite de l'icône, au survol et au focus clavier (le nom accessible reste
     le texte masqué ci-dessus). */
  @media (hover: hover) {
    body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-liste > li:not(.nav-groupe) > a:is(:hover, :focus-visible)::after {
      content: attr(data-infobulle);
      content: attr(data-infobulle) / "";
      position: absolute;
      left: calc(100% + var(--esp-12));
      top: 50%;
      translate: 0 -50%;
      z-index: 30;
      padding: var(--esp-4) var(--esp-8);
      color: var(--texte);
      background: var(--fond-menu);
      border: 1px solid var(--bord);
      border-radius: var(--rayon-6);
      box-shadow: var(--ombre-haute);
      font-size: var(--texte-12);
      line-height: var(--interligne-12);
      font-weight: 500;
      white-space: nowrap;
      pointer-events: none;
    }
  }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-titre {
    height: 1px;
    margin: var(--esp-8) var(--esp-8);
    padding: 0;
    overflow: hidden;
    font-size: 0;
    background: var(--bord);
  }
  /* Sous-entrées de Mémoire : menu flottant au survol et au focus de l'entrée. */
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-sous {
    display: none;
    position: absolute;
    left: calc(100% + var(--esp-12));
    top: 0;
    z-index: 30;
    min-width: 10rem;
    margin: 0;
    padding: var(--esp-4);
    background: var(--fond-menu);
    border: 1px solid var(--bord);
    border-radius: var(--rayon-8);
    box-shadow: var(--ombre-haute);
  }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-sous::before {
    content: attr(data-titre);
    content: attr(data-titre) / "";
    padding: var(--esp-4) var(--esp-8);
    color: var(--faible);
    font-size: var(--texte-12);
    line-height: var(--interligne-12);
    font-weight: 500;
  }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-sous-lien { justify-content: flex-start; padding: 0 var(--esp-8); }
  @media (hover: hover) {
    body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-groupe:is(:hover, :focus-within) > .nav-sous { display: grid; }
  }
  /* Pont invisible entre l'icône et le menu flottant : la souris ne le quitte pas en route. */
  @media (hover: hover) {
    body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-groupe:is(:hover, :focus-within)::after {
      content: "";
      position: absolute;
      left: 100%;
      top: 0;
      width: var(--esp-16);
      height: 100%;
    }
  }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-liste > li > a[aria-current="true"],
  body:not(.menu-deploye, .menu-rail, .sans-menu) .nav-liste > li > a[aria-current="true"]:hover { background: var(--fond); color: var(--texte); box-shadow: var(--ombre-pastille), 0 0 0 1px var(--bord); }
  body:not(.menu-deploye, .menu-rail, .sans-menu) .compte { flex-direction: column; padding: var(--esp-8) 0; }
}
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  body:not(.sans-menu) { transition: grid-template-columns 160ms ease; }
}

/* Échap (bridge.js pose `menu-echap` dans le rail) : ferme le menu flottant et l'infobulle jusqu'au survol
   ou au focus d'une autre entrée. */
body.menu-echap .nav-groupe > .nav-sous { display: none !important; }
body.menu-echap .nav-liste > li > a::after { content: none !important; }

/* Tactile (R5) :
   - sous `hover: none`, le rail n'a ni infobulle ni menu flottant (un toucher le laisserait ouvert) ; le
     lien Mémoire mène à /amber, dont les onglets To-do / Projets / Notes suffisent ;
   - sous `pointer: coarse`, la cible du bouton de bascule fait 44 x 44 px (l'icône reste de 24 px). */
@media (pointer: coarse) {
  .menu-bascule .menu-bascule-bouton { width: 2.75rem; height: 2.75rem; max-width: none; }
}

/* ---------------------------------------------------------------------------------------------
   Alertes (les messages flash sont des toasts : crate ui) */

/* Envoi en cours sur un bouton historique (bridge.js) : même rendu discret que .ui-bouton. */
:where(button:not(.ui-bouton, .ui-menu-entree), .bouton)[aria-busy="true"] { opacity: .65; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  :where(button:not(.ui-bouton, .ui-menu-entree), .bouton)[aria-busy="true"] {
    animation: ui-occupe 1.2s ease-in-out infinite;
  }
}
/* Second envoi refusé pendant un autre : curseur d'attente sur le bouton cliqué ; annonce invisible. */
html[data-envoi] :where(button:not(.ui-bouton, .ui-menu-entree), .bouton)[aria-disabled="true"] { cursor: progress; }
.statut-envoi {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.alerte {
  margin: 0 0 var(--esp-16);
  padding: var(--esp-8) var(--esp-12);
  background: var(--alerte-fond);
  color: var(--texte);
  border: 1px solid var(--danger);
  border-left-width: 3px;
  border-radius: var(--rayon-6);
}
.alerte a { color: inherit; font-weight: 600; }
.alerte > :last-child { margin-bottom: 0; }
.alerte ul { margin: var(--esp-4) 0 0; padding-left: var(--esp-20); }

/* ---------------------------------------------------------------------------------------------
   Cartes, listes, états vides (surfaces à plat, bordure de 1 px) */

:where(section) { margin: 0 0 var(--esp-24); }

/* Une liste est une carte à lignes séparées (la carte `ui::Carte` est dans ui.css). */
.liste {
  margin: 0 0 var(--esp-24);
  padding: 0;
  list-style: none;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-6);
  min-width: 0;
}
.liste > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-4) var(--esp-12);
  min-width: 0;
  min-height: 2.25rem;
  padding: var(--esp-8) var(--esp-12);
  border-top: 1px solid var(--bord);
  overflow-wrap: anywhere;
}
.liste > li:first-child { border-top: 0; }
.liste > li > a:first-child,
.liste > li > strong:first-child { font-weight: 500; }
.liste > li > p { flex-basis: 100%; margin: 0; }
.liste > li > form { margin: 0; }
.liste > li > form:last-child { margin-left: auto; }
.liste > li > form > :is(button, .bouton) { margin-block: 0; }

.vide,
.a-venir {
  margin: 0 0 var(--esp-16);
  padding: var(--esp-8) 0;
  color: var(--discret);
}
.a-venir { font-style: italic; }

.etiquette {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.25rem;
  padding: 0 var(--esp-8);
  background: var(--surface);
  color: var(--discret);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-4);
  font-size: var(--texte-12);
  font-weight: 500;
  line-height: var(--interligne-12);
  overflow-wrap: anywhere;
}
a.etiquette { color: var(--accent); text-decoration: none; }
a.etiquette:hover { background: var(--survol-ui); }
.etiquette-critique,
a.etiquette-critique { background: var(--danger-doux); color: var(--danger); border-color: transparent; font-weight: 600; }

/* ---------------------------------------------------------------------------------------------
   Formulaires et boutons historiques : contrôles de 32 px (44 au toucher, voir ui.css).
   Les écrans refaits utilisent les composants `ui-…`. */

/* `button` désigne ici les boutons historiques seulement : les composants `ui-…` (bouton, entrée
   de menu : classes `ui-bouton` et `ui-menu-entree`, nommées une à une) sont exclus, pour
   qu'aucune de ces règles ne s'ajoute à leurs propres styles. Tout
   est dans :where() (pseudo-classes comprises) : spécificité nulle. */
:where(button:not(.ui-bouton, .ui-menu-entree), .bouton, select:not(:is(.ui-champ, .ui-filtres, .ui-menu) *), input:not([type="checkbox"]):not([type="radio"]):not(:is(.ui-champ, .ui-filtres, .ui-menu) *), textarea:not(:is(.ui-champ, .ui-filtres, .ui-menu) *)) {
  min-height: var(--h-controle);
  max-width: 100%;
  padding: 0 var(--esp-8);
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--bord-controle);
  border-radius: var(--rayon-4);
}
:where(textarea:not(:is(.ui-champ, .ui-filtres, .ui-menu) *)) { padding: var(--esp-8); resize: vertical; }
:where(select:not(:is(.ui-champ, .ui-filtres, .ui-menu) *):hover:not(:disabled), input:not([type="checkbox"]):not([type="radio"]):not(:is(.ui-champ, .ui-filtres, .ui-menu) *):hover:not(:disabled), textarea:not(:is(.ui-champ, .ui-filtres, .ui-menu) *):hover:not(:disabled)) { border-color: var(--bord-champ); }
:where(button:not(.ui-bouton, .ui-menu-entree), .bouton) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-4);
  padding: 0 var(--esp-12);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
  font-weight: 500;
  white-space: nowrap;
  background: var(--accent);
  color: var(--accent-texte);
  border-color: var(--accent);
  border-radius: var(--rayon-6);
  transition: background-color var(--duree), color var(--duree), border-color var(--duree);
}
:where(button:not(.ui-bouton, .ui-menu-entree):hover:not(:disabled), .bouton:hover:not(:disabled, [aria-disabled="true"])) { background: var(--accent-survol); border-color: var(--accent-survol); }
:where(button.secondaire, .bouton.secondaire) { background: var(--fond); color: var(--texte); border-color: var(--bord-controle); }
:where(button.secondaire:hover:not(:disabled), .bouton.secondaire:hover:not(:disabled, [aria-disabled="true"])) { background: var(--surface); border-color: var(--bord-controle); }
:where(button.danger, .bouton.danger) { background: var(--danger); color: var(--danger-texte); border-color: var(--danger); }
:where(button.danger:hover:not(:disabled), .bouton.danger:hover:not(:disabled, [aria-disabled="true"])) { background: var(--danger-survol); border-color: var(--danger-survol); }
:where(button:not(.ui-bouton, .ui-menu-entree):disabled) { opacity: .5; cursor: not-allowed; }

/* Boutons voisins : espacés, retour à la ligne propre. */
/* Spécificité nulle : toute règle de conteneur (flex avec gap) l'emporte. */
:where(form, p) > :where(button:not(.ui-bouton, .ui-menu-entree), .bouton) { margin-block: var(--esp-4); }
:where(form, p) > :where(button:not(.ui-bouton, .ui-menu-entree), .bouton):where(:not(:last-child)) { margin-right: var(--esp-8); }
.actions { display: flex; flex-wrap: wrap; gap: var(--esp-8); align-items: center; margin: var(--esp-16) 0 0; }
.actions > form:not([class*="ui-"]) { margin: 0; }
.actions > :is(button:not(.ui-bouton, .ui-menu-entree), .bouton),
.actions > form > :is(button:not(.ui-bouton, .ui-menu-entree), .bouton),
.echo-barre > .bouton,
.echo-actions > .bouton { margin: 0; }

.formulaire,
.echo-formulaire {
  max-width: 40rem;
  margin: 0 0 var(--esp-24);
  padding: var(--esp-16);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-6);
}
.formulaire > :last-child:not([class*="ui-"]), .echo-formulaire > :last-child:not([class*="ui-"]) { margin-bottom: 0; }

.champ { display: block; margin: 0 0 var(--esp-12); min-width: 0; }
.champ label { display: block; font-size: var(--texte-13); line-height: var(--interligne-13); font-weight: 500; margin-bottom: var(--esp-4); }
.champ :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { width: 100%; }
.champ > p { color: var(--discret); font-size: var(--texte-12); line-height: var(--interligne-12); margin: var(--esp-4) 0 0; }
.erreur-champ,
.champ > p.erreur-champ { color: var(--danger); font-size: var(--texte-13); line-height: var(--interligne-13); font-weight: 500; margin: var(--esp-4) 0 0; }
form > .erreur-champ, section > .erreur-champ { margin: 0 0 var(--esp-12); }
[aria-invalid="true"]:not(.ui-champ *) { border-color: var(--danger) !important; }

:where(fieldset) {
  min-inline-size: 0;
  margin: 0 0 var(--esp-12);
  padding: var(--esp-8) var(--esp-12) var(--esp-12);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-6);
}
:where(legend) { padding: 0 var(--esp-4); font-size: var(--texte-13); font-weight: 600; }
:where(fieldset) > p:not(.ui-champ-aide, .ui-champ-erreur, .ui-vide, .ui-avis *) { margin: var(--esp-4) 0 var(--esp-8); }
:where(fieldset label:not(.ui-champ *)) { display: inline-flex; align-items: center; gap: var(--esp-8); min-height: var(--h-controle); margin-right: var(--esp-20); }
:where(input[type="radio"], input[type="checkbox"]):not(:is(.ui-radios, .ui-cases) *) { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); flex: none; }

/* ---------------------------------------------------------------------------------------------
   Tableaux historiques : le débordement horizontal reste dans le conteneur. */

:where(table:not(.ui-tableau)) { border-collapse: collapse; width: 100%; }
:where(main table:not(.ui-tableau)) { display: block; max-width: 100%; overflow-x: auto; }
:where(th:not(.ui-tableau *), td:not(.ui-tableau *)) { text-align: left; padding: var(--esp-8) var(--esp-12); border-bottom: 1px solid var(--bord); vertical-align: top; }
:where(thead th:not(.ui-tableau *)) { color: var(--discret); font-size: var(--texte-12); line-height: var(--interligne-12); font-weight: 500; }

progress { accent-color: var(--accent); }

/* Dialogue de confirmation (créé par fragments.js) */
dialog.confirmation {
  width: min(28rem, calc(100vw - 2rem));
  padding: var(--esp-20);
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-8);
  box-shadow: var(--ombre-haute);
}
dialog.confirmation p { margin: 0; }
dialog.confirmation::backdrop { background: rgb(0 0 0 / .5); }
dialog.confirmation .actions { display: flex; flex-wrap: wrap; gap: var(--esp-8); justify-content: flex-end; margin-top: var(--esp-20); }

/* Sans JavaScript, la confirmation passe par une page : le formulaire direct est masqué. */
@media (scripting: none) {
  .avec-js { display: none; }
}

/* Connexion et pages de message : une carte centrée. */
.carte-seule { max-width: 30rem; margin: var(--esp-16) auto var(--esp-24); }
@media (min-width: 48rem) {
  .carte-seule { margin-top: var(--esp-40); }
}

/* ---------------------------------------------------------------------------------------------
   Echo (classes préfixées `echo-`) */

.echo-barre { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.echo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Agenda (docs/design/bridge-critique.md §6) : trois vues rendues par le serveur. Le placement
   passe par les classes générées plus bas (debut-N, duree-N, echo-voies-N, echo-voie-K,
   echo-plus-M, echo-col-K, echo-span-N) : la CSP interdit l'attribut style. Un quart d'heure
   mesure --echo-quart : 14 px sur bureau (56 px par heure), 12 px sur mobile.
   Codes visuels : heures fermées en fond enfoncé uni ; hachures réservées aux demandes en
   attente ; « Occupé » en bloc gris plein. Les zones refusées du futur glisser-déposer
   gardent un code libre (ni hachure, ni gris plein). */
.echo-agenda {
  --echo-quart: .75rem;
  --echo-gouttiere: 3.5rem;
  --echo-n: 7;
  --echo-ouvert: var(--fond);
  /* « Occupé » : gris plein, texte 6:1, trait 4,4:1 ; 1,3:1 contre le fond enfoncé. */
  --echo-occupe-fond: #bfc6cf;
  --echo-occupe-texte: #374151;
  --echo-occupe-trait: #4b5563;
  --echo-accent-fond: var(--accent-doux);
  --echo-accent-texte: var(--accent);
  /* Trait d'heure translucide : visible sur la zone ouverte ET sur les heures fermées. */
  --echo-ligne: rgb(15 23 42 / .09);
  --echo-texte-passe: var(--discret);
  --echo-hachure: repeating-linear-gradient(135deg, transparent 0 6px, rgb(29 78 216 / .14) 6px 8px);
}
/* Sombre : la zone ouverte se relève (#262b33) pour garder 1,3:1 avec --surface-enfoncee. */
[data-theme="sombre"] .echo-agenda {
  --echo-ouvert: #262b33;
  --echo-occupe-fond: #3a414b;
  --echo-occupe-texte: #d4d8de;
  --echo-occupe-trait: #959dab;
  /* Bleu relevé : 1,6:1 contre la zone ouverte ; texte 7,3:1, accent clair 5,2:1. */
  --echo-accent-fond: #2f4a7a;
  --echo-accent-texte: #a7c8ff;
  --echo-ligne: rgb(255 255 255 / .07);
  --echo-texte-passe: #b4bac4;
  --echo-hachure: repeating-linear-gradient(135deg, transparent 0 6px, rgb(124 178 255 / .2) 6px 8px);
}
@media (prefers-color-scheme: dark) {
  [data-theme="systeme"] .echo-agenda {
    --echo-ouvert: #262b33;
    --echo-occupe-fond: #3a414b;
    --echo-occupe-texte: #d4d8de;
    --echo-occupe-trait: #959dab;
    --echo-accent-fond: #2f4a7a;
    --echo-accent-texte: #a7c8ff;
    --echo-ligne: rgb(255 255 255 / .07);
    --echo-texte-passe: #b4bac4;
    --echo-hachure: repeating-linear-gradient(135deg, transparent 0 6px, rgb(124 178 255 / .2) 6px 8px);
  }
}
@media (min-width: 48rem) {
  .echo-agenda { --echo-quart: .875rem; --echo-gouttiere: 4rem; }
}
@media (min-width: 64rem) {
  main.large { max-width: none; padding-inline: var(--esp-32); }
}
.echo-colonnes-1 { --echo-n: 1; }
.echo-colonnes-7 { --echo-n: 7; }

/* Couleurs par état : fond, texte, trait de gauche. Un élément passé n'atténue que son fond. */
.echo-etat-confirme { --echo-base: var(--echo-accent-fond); --echo-texte: var(--accent-doux-texte); --echo-trait: var(--accent); }
.echo-etat-attente { --echo-base: var(--echo-accent-fond); --echo-texte: var(--echo-accent-texte); --echo-trait: var(--accent); }
.echo-etat-termine { --echo-base: var(--surface); --echo-texte: var(--discret); --echo-trait: var(--faible); }
.echo-etat-absent { --echo-base: var(--danger-doux); --echo-texte: var(--texte); --echo-trait: var(--danger); }
.echo-etat-annule { --echo-base: var(--surface); --echo-texte: var(--discret); --echo-trait: var(--bord-controle); }
.echo-occupe { --echo-base: var(--echo-occupe-fond); --echo-texte: var(--echo-occupe-texte); --echo-trait: var(--echo-occupe-trait); }
:is(.echo-bloc, .echo-ligne, .echo-puce, .echo-bande-item, .echo-barre-item) { --echo-fond: var(--echo-base); }
:is(.echo-bloc, .echo-ligne, .echo-puce, .echo-bande-item, .echo-barre-item).echo-passe { --echo-fond: color-mix(in srgb, var(--echo-base) 60%, var(--echo-ouvert)); }
/* « Occupé » ne s'atténue pas : il garde 1,3:1 contre les heures fermées, passé ou non. */
.echo-bloc.echo-occupe.echo-passe { --echo-fond: var(--echo-base); }
/* Texte d'un élément passé : secondaire (4,5:1 au moins sur son fond atténué). */
.echo-bloc.echo-passe .echo-bloc-lien,
.echo-ligne.echo-passe .echo-ligne-texte,
.echo-puce.echo-passe .echo-puce-lien { color: var(--echo-texte-passe); }
.echo-puce.echo-passe .echo-puce-lien::before { background: var(--faible); }

/* Barre d'outils : une ligne sur bureau, deux sur mobile. */
.echo-barre-agenda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-8) var(--esp-16);
  margin: 0 0 var(--esp-16);
}
.echo-barre-periode { display: flex; align-items: center; gap: var(--esp-8); min-width: 0; }
.echo-aujourdhui-long { display: inline-flex; }
.echo-aujourdhui-icone { display: none; }
.echo-fleches { display: inline-flex; align-items: center; }
.echo-titre {
  margin: 0 0 0 var(--esp-4);
  min-width: 0;
  overflow: hidden;
  font-size: var(--texte-20);
  line-height: var(--interligne-20);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.echo-titre-court { display: none; }
.echo-barre-vues { display: flex; align-items: center; gap: var(--esp-8); }
.echo-vues-bureau { display: inline-flex; }
.echo-vues-mobile { display: none; }
.echo-barre-fin { display: inline-flex; align-items: center; gap: var(--esp-4); }
.echo-nouveau-long { display: inline-flex; }
.echo-nouveau-court { display: none; }

/* Cadre du calendrier. */
.echo-calendrier,
.echo-mois {
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-8);
  overflow: clip;
}

/* Volet « Journée du créneau » de Nouveau rendez-vous : la grille défile dans son cadre (hauteur bornée à
   la fenêtre), pour que `agenda.js` y centre le créneau saisi sans faire défiler la page. */
.echo-calendrier-volet {
  max-height: min(48rem, calc(100vh - 13rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* En-têtes des jours (collés en haut au défilement). */
.echo-tetes {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: var(--echo-gouttiere) repeat(var(--echo-n), minmax(0, 1fr));
  background: var(--fond);
  border-bottom: 1px solid var(--bord);
}
.echo-coin {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 var(--esp-4) var(--esp-8) var(--esp-4);
  color: var(--faible);
  font-size: .6875rem;
  line-height: 1rem;
  white-space: nowrap;
}
.echo-tete {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: var(--esp-8) var(--esp-4);
}
.echo-tete-lien {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--discret);
  text-decoration: none;
  border-radius: var(--rayon-6);
}
.echo-tete-jour {
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.echo-tete-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--texte);
  border-radius: 50%;
  font-size: var(--texte-20);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--duree);
}
a.echo-tete-lien:hover .echo-tete-num { background: var(--survol-ui); }
.echo-jour-passe .echo-tete-num { color: var(--discret); }
.echo-aujourdhui .echo-tete-jour { color: var(--accent); }
.echo-aujourdhui .echo-tete-num { background: var(--accent); color: var(--accent-texte); }
.echo-tete-note {
  margin-top: 2px;
  color: var(--attention);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  text-align: center;
}
/* « + » d'un jour : au survol de l'en-tête, au focus clavier, toujours au toucher. */
.echo-ajout {
  /* Collé à droite du libellé du jour. */
  position: absolute;
  top: var(--esp-4);
  left: calc(50% + 1.375rem);
  opacity: 0;
  transition: opacity var(--duree);
}
.echo-tete:hover .echo-ajout,
.echo-ajout:focus-within { opacity: 1; }
@media (pointer: coarse) {
  .echo-ajout { opacity: 1; }
}
/* Vue jour : rangée d'en-tête de 40 px. */
.echo-calendrier-jour .echo-tete {
  flex-direction: row;
  align-items: center;
  gap: var(--esp-8);
  height: 2.5rem;
  padding: 0 var(--esp-12);
}
.echo-calendrier-jour .echo-tete-lien { flex-direction: row; gap: var(--esp-8); }
.echo-calendrier-jour .echo-tete-num { width: 1.75rem; height: 1.75rem; font-size: var(--texte-16); }
.echo-calendrier-jour .echo-tete-note { margin: 0; }
.echo-calendrier-jour .echo-ajout { position: static; }

/* Bande des journées entières et des plages de plusieurs jours, accolée à la grille. */
.echo-bande-ligne {
  display: grid;
  grid-template-columns: var(--echo-gouttiere) minmax(0, 1fr);
  border-bottom: 1px solid var(--bord);
}
.echo-coin-bande { align-items: center; padding: 0 var(--esp-8) 0 0; font-size: var(--texte-12); }
.echo-bande {
  display: grid;
  grid-template-columns: repeat(var(--echo-n), minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 2px 0;
  margin: 0;
  padding: var(--esp-8) 0;
  list-style: none;
}
.echo-bande-item,
.echo-barre-item { min-width: 0; margin: 0 var(--esp-4); }
.echo-bande-item { margin-left: var(--esp-8); }
.echo-bande-lien,
.echo-barre-lien {
  display: flex;
  align-items: center;
  gap: var(--esp-8);
  height: 1.375rem;
  padding: 0 var(--esp-8);
  overflow: hidden;
  color: var(--echo-texte);
  background-color: var(--echo-fond);
  border-left: 3px solid var(--echo-trait);
  border-radius: var(--rayon-4);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  text-decoration: none;
  white-space: nowrap;
}
:is(.echo-bande-item, .echo-barre-item) .echo-nom { font-weight: 600; }
:is(.echo-bande-item, .echo-barre-item) .echo-quand { overflow: hidden; text-overflow: ellipsis; opacity: .85; }

/* Grille horaire. */
.echo-grille {
  display: grid;
  grid-template-columns: var(--echo-gouttiere) minmax(0, 1fr);
}
.echo-gouttiere { position: relative; }
.echo-heure {
  position: absolute;
  right: var(--esp-8);
  color: var(--faible);
  font-size: var(--texte-12);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
}
.echo-heure.echo-heure-premiere { transform: translateY(3px); }
/* L'heure que recouvre le badge de l'heure actuelle (agenda.js la rend visible quand la ligne
   s'éloigne). */
.echo-heure.echo-heure-couverte { visibility: hidden; }
/* Jeton CSRF du report par glisser-déposer (lu par agenda.js, tenu à jour par bridge.js). */
.echo-report { display: none; }
/* Engagements de la période (rendez-vous, demandes, « Occupé ») lus par agenda.js. */
.echo-occupations { display: none; }
.echo-heure-inexistante {
  position: absolute;
  right: var(--esp-4);
  left: 2px;
  color: var(--attention);
  font-size: .6875rem;
  line-height: .875rem;
  font-weight: 500;
  text-align: right;
}
.echo-calendrier-jour .echo-colonnes { container: echo-jour / inline-size; }
.echo-plus-ligne:is(.echo-pour-p2, .echo-pour-p4, .echo-pour-p8) { display: none; }
.echo-colonnes {
  display: grid;
  grid-template-columns: repeat(var(--echo-n), minmax(0, 1fr));
}
.echo-col {
  position: relative;
  min-width: 0;
  background: var(--echo-ouvert);
  border-left: 1px solid var(--bord);
}
/* Un trait fin à chaque heure pleine, par-dessus les heures fermées. */
.echo-col::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(to bottom, var(--echo-ligne) 0 1px, transparent 1px);
  background-size: 100% calc(4 * var(--echo-quart));
  pointer-events: none;
}

.echo-ferme,
.echo-heure-sautee,
.echo-heure-repetee,
.echo-creneau,
.echo-maintenant { position: absolute; left: 0; right: 0; }

/* Heures fermées et jours sans plage : fond enfoncé uni. */
.echo-ferme { background: var(--surface-enfoncee); }

/* Changement d'heure : heure sautée (inerte), heure répétée (1re occurrence). */
.echo-heure-sautee,
.echo-heure-repetee {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--esp-8);
  overflow: hidden;
  color: var(--attention);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  text-align: center;
}
.echo-heure-sautee {
  /* Derrière les cartes : une carte qui traverse l'heure reste entière. */
  z-index: 1;
  background: var(--attention-bande);
  border-block: 1px solid var(--attention-point);
  cursor: not-allowed;
}
.echo-heure-repetee {
  z-index: 1;
  align-items: flex-start;
  padding-top: 2px;
  background: color-mix(in srgb, var(--attention-doux) 55%, transparent);
  border-top: 1px dashed var(--attention-point);
  pointer-events: none;
}

/* Créneau vide : un clic ouvre la création ; l'heure apparaît au survol. */
.echo-creneau {
  z-index: 1;
  padding: 2px var(--esp-8);
  overflow: hidden;
  color: transparent;
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--rayon-4);
}
.echo-creneau:hover { background: var(--survol-ui); color: var(--discret); }
/* Créneau choisi pour la création rapide (popover ouvert) : repère accent, heure visible. */
.echo-creneau.echo-creneau-choisi,
.echo-creneau.echo-creneau-choisi:hover {
  color: var(--accent-texte);
  background: var(--accent);
  border-left: 3px solid var(--accent-survol);
}

/* Heure actuelle : trait sous les blocs (chaque bloc traversé redessine le trait sous son
   texte), pastille, libellé dans la gouttière. */
.echo-maintenant {
  /* Au-dessus des cartes, comme Google Agenda ; liseré couleur de surface pour ne pas écraser
     le texte qu'il traverse. */
  z-index: 20;
  height: 2px;
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--surface);
  pointer-events: none;
}
.echo-maintenant::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
}
.echo-maintenant-heure {
  position: absolute;
  right: var(--esp-4);
  z-index: 2;
  margin: 0;
  padding: 0 var(--esp-4);
  color: var(--danger-texte);
  background: var(--danger);
  border-radius: var(--rayon-4);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
}

/* Blocs : rendez-vous dans leur voie, plages occupées derrière, sur toute la largeur. */
.echo-blocs { margin: 0; padding: 0; list-style: none; }
.echo-bloc {
  position: absolute;
  left: 0;
  z-index: 3;
  width: calc(100% - var(--esp-8));
  min-width: 0;
  overflow: hidden;
  background-color: var(--echo-fond);
  border-left: 3px solid var(--echo-trait);
  border-radius: var(--rayon-4);
  /* Liseré couleur de fond : deux blocs voisins ou en cascade restent distincts. */
  box-shadow: 0 0 0 1px var(--echo-ouvert);
}
.echo-bloc.echo-occupe { z-index: 2; width: 100%; box-shadow: none; }
.echo-bloc.echo-etat-attente { border: 1px solid var(--accent); border-left-width: 3px; background-image: var(--echo-hachure); }
.echo-bloc.echo-etat-annule { border: 1px dashed var(--bord-champ); border-left-width: 3px; }
.echo-bloc-lien {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2px var(--esp-4) 2px 6px;
  overflow: hidden;
  color: var(--echo-texte);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  text-decoration: none;
}
a.echo-bloc-lien:hover { background: var(--survol-ui); }
.echo-ligne1 { display: flex; flex-direction: column; min-width: 0; }
.echo-bloc .echo-nom,
.echo-bloc .echo-heures,
.echo-bloc .echo-debut,
.echo-bloc .echo-mention,
.echo-bloc .echo-objet {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.echo-bloc .echo-nom { font-weight: 600; }
.echo-bloc .echo-heures,
.echo-bloc .echo-debut { font-variant-numeric: tabular-nums; }

.echo-bloc .echo-mention { font-weight: 500; }
.echo-bloc .echo-debut { display: none; flex: 0 0 auto; }
/* Selon la hauteur : moins de 45 min, une ligne (nom, début) ; de 45 à 75 min, deux lignes
   (nom, puis début – fin) ; au-delà, le motif en plus. */
.echo-court .echo-ligne1,
.echo-recouvert .echo-ligne1 { flex-direction: row; align-items: baseline; gap: var(--esp-4); }
:is(.echo-court, .echo-recouvert) .echo-nom { flex: 0 1 auto; }
:is(.echo-court, .echo-recouvert) .echo-heures { flex: 0 0 auto; }
:is(.echo-court, .echo-recouvert) .echo-heures { display: none; }
:is(.echo-court, .echo-recouvert) .echo-debut { display: block; }
.echo-court .echo-bloc-lien { justify-content: center; padding-block: 0; }
.echo-court :is(.echo-mention, .echo-objet),
.echo-moyen .echo-objet { display: none; }
/* Sous une cascade : tout tient sur la première ligne (« nom 10:00 – 11:00 »), jamais
   dessous. */
.echo-recouvert :is(.echo-mention, .echo-objet) { display: none; }
/* Deux colonnes (semaine, deux voies au plus) : l'heure de début complète (« 10:15 ») au lieu
   de la plage, jamais tronquée : c'est le nom qui cède. */
.echo-etroit .echo-heures { display: none; }
.echo-etroit .echo-debut { display: block; overflow: visible; text-overflow: clip; }
/* Carte trop étroite pour « 10:00 – 11:00 » (semaine sur un écran de 1024 px) : l'heure de
   début seule, entière, plutôt qu'une plage coupée. */
.echo-colonnes .echo-bloc { container-type: inline-size; }
@container (max-width: 5.99rem) {
  .echo-bloc-lien .echo-heures { display: none; }
  .echo-bloc-lien .echo-debut { display: block; overflow: visible; text-overflow: clip; }
}
/* Carte de moins de 3rem (deux voies sur un écran de 1024 px) : l'heure de début seule, entière ;
   le nom reste pour l'infobulle et le lecteur d'écran. */
@container (max-width: 2.99rem) {
  .echo-bloc-lien { padding-inline: 3px 0; }
  .echo-bloc-lien .echo-nom {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.echo-etat-annule .echo-nom { text-decoration: line-through; }
/* Créneau assez haut (au moins 70 px : 75 min et plus, ou une heure sur bureau) : le nom passe
   avant tout, jusqu'à deux lignes entières, puis l'heure sur sa propre ligne. Sous une cascade
   ou dans un bloc court, une seule ligne (la première seule est visible). */
.echo-bloc:not(.echo-court, .echo-moyen, .echo-recouvert) .echo-nom {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 48rem) {
  .echo-bloc.duree-4:not(.echo-court, .echo-recouvert) .echo-nom {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* Une heure : le nom entier (deux lignes) et l'heure ; la mention se lit dans l'infobulle et
     par la couleur du bloc. */
  .echo-bloc.duree-4:not(.echo-court, .echo-recouvert) .echo-mention { display: none; }
}

/* « +n » : ligne pleine largeur de 20 px sous une rangée de blocs côte à côte (zone de 24 px,
   44 au toucher), vers la vue jour (semaine) ou la liste (vue jour). */
.echo-plus-ligne {
  position: absolute;
  left: 0;
  right: var(--esp-8);
  z-index: 9;
  display: flex;
  align-items: center;
  height: 1.5rem;
}
.echo-plus-lien {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1.25rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--bord-controle);
  border-radius: var(--rayon-4);
  overflow: hidden;
  font: 600 var(--texte-12)/var(--interligne-12) var(--police);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.echo-plus-lien:hover { background: var(--surface); border-color: var(--bord-champ); }
/* Semaine : pastille « +N » vers la vue jour, au début du premier rendez-vous caché, dans la
   bande (--echo-bande) que les cartes qui le chevauchent lui laissent à droite (echo-reserve) :
   jamais sur une carte. 24 px de haut au plus, moins que les 30 min d'un rendez-vous caché.
   Colonne de moins de 8rem : une carte au lieu de deux quand un rendez-vous est caché
   (echo-s1, echo-s1-cache), et sa pastille (echo-pour-s1) ; cran de cascade (--echo-pas) de
   6 px au lieu de 20 % (20 px au plus), pour que l'heure tienne. */
.echo-calendrier { --echo-bande: 1.75rem; --echo-pas: min(20%, 1.25rem); }
.echo-bloc.echo-reserve { --echo-r: var(--echo-bande); }
.echo-calendrier:not(.echo-calendrier-jour) .echo-col { container: echo-sem / inline-size; }
.echo-plus-ligne.echo-plus-pastille { left: auto; right: var(--esp-8); width: var(--echo-bande); height: 1.25rem; }
.echo-plus-pastille .echo-plus-lien {
  padding-inline: 2px;
  border-radius: .625rem;
  font-variant-numeric: tabular-nums;
}
.echo-plus-ligne.echo-pour-s1 { display: none; }
@container echo-sem (max-width: 7.99rem) {
  .echo-bloc.echo-s1-cache { display: none; }
  .echo-colonnes .echo-bloc { --echo-pas: .375rem; }
  .echo-bloc.echo-s1.echo-s1 { --echo-n: 1; --echo-k: 0; --echo-r: 0px; }
  .echo-bloc.echo-s1-reserve.echo-s1-reserve { --echo-r: var(--echo-bande); }
  .echo-plus-ligne.echo-pour-s2 { display: none; }
  .echo-plus-ligne.echo-pour-s1 { display: flex; }
}
@media (pointer: coarse) {
  .echo-plus-ligne { height: 2.75rem; }
  .echo-plus-lien { height: 2.75rem; }
  /* 44 px de large : la bande (36 px) plus la marge de droite de la colonne (8 px). */
  .echo-calendrier { --echo-bande: 2.25rem; }
  .echo-plus-ligne.echo-plus-pastille { right: 0; width: 2.75rem; height: 1.5rem; }
  .echo-plus-pastille .echo-plus-lien { height: 1.5rem; }
}

/* Listes : popover « +n », semaine et mois sur mobile. */
.echo-lignes { display: grid; gap: var(--esp-4); margin: 0; padding: 0; list-style: none; }
.echo-ligne-lien {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--esp-8);
  min-height: 2.75rem;
  padding: var(--esp-4) var(--esp-12);
  color: var(--texte);
  background-color: var(--echo-fond);
  border-left: 3px solid var(--echo-trait);
  border-radius: var(--rayon-6);
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
  text-decoration: none;
}
a.echo-ligne-lien:hover { background-image: linear-gradient(var(--survol-ui), var(--survol-ui)); }
.echo-ligne.echo-etat-attente .echo-ligne-lien { border: 1px solid var(--accent); border-left-width: 3px; background-image: var(--echo-hachure); }
.echo-ligne.echo-occupe .echo-ligne-lien { min-height: 2rem; padding-block: 0; color: var(--discret); background: none; border-left: 0; padding-left: var(--esp-12); }
.echo-ligne.echo-occupe .echo-nom { font-weight: 400; }
.echo-ligne-heure { color: var(--discret); font-size: var(--texte-12); font-variant-numeric: tabular-nums; }
.echo-ligne-texte { display: flex; flex-direction: column; min-width: 0; }
.echo-ligne .echo-nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.echo-ligne .echo-objet { color: var(--discret); font-size: var(--texte-12); line-height: var(--interligne-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.echo-ligne .echo-mention {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0 6px;
  color: var(--discret);
  background: var(--surface);
  border-radius: var(--rayon-4);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 500;
  white-space: nowrap;
}
.echo-ligne.echo-etat-attente .echo-mention { color: var(--echo-accent-texte); background: var(--fond); border: 1px solid var(--accent); }
.echo-etat-annule .echo-ligne-texte { color: var(--discret); text-decoration: line-through; }

.echo-planning,
.echo-bande-jours,
.echo-jour-mobile,
.echo-mois-liste { display: none; }
.echo-bandeau-heure {
  margin: 0;
  padding: var(--esp-4) var(--esp-8);
  color: var(--attention);
  background: var(--attention-bande);
  border-radius: var(--rayon-6);
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
  font-weight: 500;
}
.echo-planning-jour { min-width: 0; }
.echo-planning-jours { display: grid; gap: var(--esp-16); margin: 0; padding: 0; list-style: none; }
.echo-planning-date {
  display: flex;
  align-items: center;
  gap: var(--esp-8);
  margin: 0 0 var(--esp-8);
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
  font-weight: 600;
}
.echo-planning-lien { color: var(--texte); text-decoration: none; }
.echo-aujourdhui .echo-planning-lien { color: var(--accent); }

/* Popover (« +n autres », « +n ») : sous son bouton quand le navigateur sait ancrer. */
.echo-pop {
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(24rem, calc(100vh - 2rem));
  margin: auto;
  padding: var(--esp-8);
  overflow: auto;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-8);
  box-shadow: var(--ombre-haute);
}
@supports (position-area: bottom) {
  .echo-pop {
    inset: auto;
    margin: var(--esp-4) 0;
    position-area: bottom span-right;
    position-try-fallbacks: flip-block, flip-inline;
  }
}
.echo-pop-titre {
  margin: 0 0 var(--esp-8);
  padding: 0 var(--esp-4);
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
  font-weight: 600;
}
.echo-pop-lien { color: var(--texte); text-decoration: none; }
.echo-pop-lien:hover { text-decoration: underline; text-underline-offset: .15em; }

/* Vue mois : 6 rangées de 7 jours ; chaque rangée porte ses barres de plusieurs jours. */
.echo-vue-mois .echo-barre-agenda { margin-bottom: var(--esp-12); }
.echo-mois-tetes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--bord);
}
.echo-mois-jour {
  padding: var(--esp-8) var(--esp-4);
  color: var(--faible);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.echo-rangee {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  min-height: 7.5rem;
}
.echo-rangee + .echo-rangee { border-top: 1px solid var(--bord); }
.echo-case { position: relative; grid-row: 1 / 4; min-width: 0; border-left: 1px solid var(--bord); }
.echo-case.echo-col-1 { border-left: 0; }
.echo-hors-mois { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.echo-case-choix { display: none; }
.echo-case-tete { position: relative; z-index: 1; grid-row: 1; display: flex; justify-content: center; margin: var(--esp-4) 0 2px; }
.echo-case-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 var(--esp-4);
  color: var(--texte);
  border-radius: 999px;
  font-size: var(--texte-12);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.echo-case-num:hover { background: var(--survol-ui); }
.echo-hors-mois + .echo-case-tete .echo-case-num { color: var(--faible); }
.echo-case-num.echo-aujourdhui,
.echo-case-num.echo-aujourdhui:hover { background: var(--accent); color: var(--accent-texte); }
.echo-barres {
  position: relative;
  z-index: 1;
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 2px 0;
  margin: 0 0 2px;
  padding: 0;
  list-style: none;
}
.echo-rang-1 { grid-row-start: 1; }
.echo-rang-2 { grid-row-start: 2; }
.echo-rang-3 { grid-row-start: 3; }
.echo-barre-item.echo-suite-avant { margin-left: 0; }
.echo-barre-item.echo-suite-apres { margin-right: 0; }
.echo-suite-avant .echo-barre-lien { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.echo-suite-apres .echo-barre-lien { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.echo-case-corps {
  position: relative;
  z-index: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  padding: 0 var(--esp-4) var(--esp-4);
}
.echo-puces { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.echo-puce { min-width: 0; border-radius: var(--rayon-4); }
.echo-puce-lien {
  display: flex;
  align-items: center;
  gap: var(--esp-4);
  height: 1.25rem;
  padding: 0 var(--esp-4);
  overflow: hidden;
  color: var(--texte);
  border-radius: var(--rayon-4);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  text-decoration: none;
  white-space: nowrap;
}
.echo-puce-lien::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  background: var(--echo-trait);
  border-radius: 50%;
}
.echo-etat-attente .echo-puce-lien::before { background: none; border: 1.5px solid var(--accent); }
a.echo-puce-lien:hover { background: var(--survol-ui); }
.echo-puce-heure { flex: none; color: var(--discret); font-variant-numeric: tabular-nums; }
.echo-puce .echo-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.echo-puce-pleine .echo-puce-lien { color: var(--echo-texte); background-color: var(--echo-fond); border-left: 3px solid var(--echo-trait); }
.echo-puce-pleine .echo-puce-lien::before { display: none; }
.echo-pop .echo-puce-lien { height: 1.75rem; font-size: var(--texte-13); }
.echo-autres {
  align-self: flex-start;
  height: 1.25rem;
  min-height: 0;
  margin: 0;
  padding: 0 var(--esp-4);
  color: var(--discret);
  background: none;
  border: 0;
  border-radius: var(--rayon-4);
  font: 500 var(--texte-12)/var(--interligne-12) var(--police);
  cursor: pointer;
}
.echo-autres:hover { color: var(--texte); background: var(--survol-ui); }
.echo-points,
.echo-points-plus { display: none; }
.echo-points-plus { justify-content: center; color: var(--discret); font-size: .6875rem; line-height: 1rem; }
.echo-point { width: .375rem; height: .375rem; border-radius: 50%; }
.echo-point-plein { background: var(--accent); }
.echo-point-contour { border: 1.5px solid var(--accent); }

/* Mobile : la semaine devient une liste des jours occupés ; le jour garde sa grille, avec une
   bande de sept jours ; le mois montre des points et la liste du jour choisi. */
@media (max-width: 47.99rem) {
  .echo-barre-periode { flex: 1 1 100%; }
  .echo-barre-vues { flex: 1 1 100%; }
  .echo-aujourdhui-long { display: none; }
  .echo-aujourdhui-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--texte);
    background: var(--fond);
    border: 1px solid var(--bord-controle);
    border-radius: var(--rayon-6);
    text-decoration: none;
  }
  .echo-aujourdhui-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    border: 1.5px solid currentColor;
    border-top-width: 4px;
    border-radius: var(--rayon-4);
    font-size: .6875rem;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .echo-vues-bureau { display: none; }
  .echo-vues-mobile { display: flex; flex: 1 1 auto; min-width: 0; }
  .echo-titre { font-size: var(--texte-16); line-height: var(--interligne-16); }
  .echo-vue-jour .echo-titre-long { display: none; }
  .echo-vue-jour .echo-titre-court { display: inline; }
  .echo-vue-semaine .echo-calendrier { display: none; }
  .echo-planning { display: block; }
  .echo-agenda { --echo-gouttiere: 3rem; }
  .echo-vue-jour .echo-tetes { display: none; }
  .echo-bande-jours {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--esp-4);
    margin: 0 0 var(--esp-12);
  }
  .echo-bande-jour {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    height: 2.75rem;
    color: var(--discret);
    border-radius: var(--rayon-6);
    text-decoration: none;
  }
  .echo-bande-initiale { font-size: var(--texte-12); line-height: var(--interligne-12); font-weight: 500; }
  .echo-bande-num { color: var(--texte); font-size: var(--texte-14); line-height: var(--interligne-14); font-weight: 600; font-variant-numeric: tabular-nums; }
  .echo-bande-jour.echo-aujourdhui,
  .echo-bande-jour.echo-aujourdhui .echo-bande-num { color: var(--accent); }
  .echo-bande-jour[aria-current] { background: var(--accent); color: var(--accent-texte); }
  .echo-bande-jour[aria-current] .echo-bande-num { color: var(--accent-texte); }
  .echo-bande-jour.echo-jour-passe:not([aria-current]) .echo-bande-num { color: var(--discret); font-weight: 500; }
  .echo-bande-point { width: 4px; height: 4px; border-radius: 50%; }
  .echo-bande-occupe { background: var(--accent); }
  .echo-bande-jour[aria-current] .echo-bande-occupe { background: var(--accent-texte); }
  .echo-rangee { min-height: 3.5rem; }
  .echo-case-mois,
  .echo-barres,
  .echo-case-corps .echo-puces,
  .echo-autres { display: none; }
  .echo-case-choix { display: block; position: absolute; inset: 0; }
  .echo-case-tete { pointer-events: none; }
  .echo-case.echo-choisi .echo-case-choix { inset: 2px; background: var(--accent-doux); border-radius: var(--rayon-6); }
  .echo-points { display: flex; justify-content: center; gap: 3px; }
  .echo-points-plus { display: flex; }
  .echo-jour-mobile { display: block; margin: 0 0 var(--esp-12); }
  /* Jour de passage à l'heure d'été : gouttière élargie pour « Heure inexistante » (11 px). */
  .echo-calendrier-jour:has(.echo-heure-inexistante) { --echo-gouttiere: 4rem; }
  .echo-mois-liste { display: block; margin-top: var(--esp-16); }
}
@media (max-width: 30rem) {
  .echo-nouveau-long { display: none; }
  .echo-nouveau-court { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .echo-tete-num, .echo-ajout { transition: none; }
}

/* Agenda avec agenda.js : cliquer-glisser pour créer, glisser-déposer pour reporter. Éléments
   créés par le module seulement (rien sans JS). Zones refusées : voile pointillé translucide,
   distinct des heures fermées (fond enfoncé uni), des demandes en attente (hachures) et de
   « Occupé » (gris plein). */
.echo-agenda {
  --echo-refuse-fond: rgb(15 23 42 / .06);
  --echo-refuse-point: rgb(15 23 42 / .22);
}
[data-theme="sombre"] .echo-agenda {
  --echo-refuse-fond: rgb(0 0 0 / .16);
  --echo-refuse-point: rgb(255 255 255 / .08);
}
@media (prefers-color-scheme: dark) {
  [data-theme="systeme"] .echo-agenda {
    --echo-refuse-fond: rgb(0 0 0 / .16);
    --echo-refuse-point: rgb(255 255 255 / .08);
  }
}
/* Pendant un geste, le curseur ne redevient pas une main au survol d'un lien (les composants ui-…
   gardent le leur). */
html.echo-glisse, html.echo-glisse *:not([class*="ui-"]) { cursor: grabbing !important; user-select: none; }
html.echo-glisse-creation, html.echo-glisse-creation *:not([class*="ui-"]) { cursor: ns-resize !important; user-select: none; }
/* Sélection d'un nouveau créneau : « Nouveau rendez-vous », puis « 10:15 – 11:00 ». */
.echo-selection {
  position: absolute;
  left: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--esp-8));
  padding: 2px var(--esp-4) 2px 6px;
  overflow: hidden;
  color: var(--accent-texte);
  background: var(--accent);
  border-left: 3px solid var(--accent-survol);
  border-radius: var(--rayon-4);
  box-shadow: 0 0 0 1px var(--echo-ouvert), var(--ombre-haute);
  font-size: var(--texte-12);
  line-height: var(--interligne-12);
  pointer-events: none;
}
.echo-selection-titre { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.echo-selection-heures { font-variant-numeric: tabular-nums; white-space: nowrap; }
.echo-selection-courte { flex-direction: row; align-items: center; gap: var(--esp-4); padding-block: 0; }
.echo-selection-courte .echo-selection-titre { display: none; }
/* Passé (D5), chevauchement, plafond de 24 h : pastille ambre, lisible sur l'accent. */
.echo-selection-mention:empty { display: none; }
.echo-selection-mention,
.echo-fantome-hors .echo-fantome-mention {
  align-self: flex-start;
  max-width: 100%;
  margin-top: 2px;
  padding: 0 var(--esp-4);
  overflow: hidden;
  color: var(--attention);
  background: var(--attention-doux);
  border-radius: var(--rayon-4);
  font-size: .6875rem;
  line-height: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.echo-selection-courte .echo-selection-mention { margin-top: 0; }
/* Zones refusées pendant un report : passé et heure sautée. */
.echo-refuse {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: var(--echo-refuse-fond);
  background-image: radial-gradient(circle, var(--echo-refuse-point) 1px, transparent 1.25px);
  background-size: 6px 6px;
  pointer-events: none;
}
/* Bloc pris : sa place d'origine reste visible, atténuée. */
.echo-bloc.echo-bloc-origine { opacity: .45; outline: 1px dashed var(--echo-trait); outline-offset: -1px; }
/* Aperçu du bloc à sa nouvelle place, horaire en clair. */
.echo-bloc.echo-fantome {
  --echo-fond: var(--accent);
  --echo-texte: var(--accent-texte);
  --echo-trait: var(--accent-survol);
  z-index: 7;
  width: calc(100% - var(--esp-8));
  box-shadow: 0 0 0 1px var(--echo-ouvert), var(--ombre-haute);
  pointer-events: none;
}
/* Horaire d'abord (12 px, chiffres tabulaires), motif ou « Hors plages » à côté, nom dessous ;
   sur une ligne pour un bloc court. */
.echo-fantome-ligne { display: flex; align-items: baseline; gap: var(--esp-4); min-width: 0; white-space: nowrap; }
.echo-fantome-heures { flex: none; font-size: var(--texte-12); font-weight: 600; font-variant-numeric: tabular-nums; }
.echo-fantome-heures:empty { display: none; }
.echo-fantome-mention { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.echo-fantome-mention:empty { display: none; }
.echo-bloc.echo-fantome .echo-nom { font-weight: 500; }
.echo-bloc.echo-fantome.echo-court .echo-bloc-lien { flex-direction: row; align-items: center; gap: var(--esp-4); padding-block: 0; }
/* Sur une ligne, l'horaire et le motif passent avant le nom (qui cède la place). */
.echo-bloc.echo-fantome.echo-court .echo-fantome-ligne { flex: none; max-width: 100%; overflow: hidden; }
.echo-bloc.echo-fantome.echo-court .echo-nom { flex: 1 1 0; min-width: 0; }
.echo-bloc.echo-fantome.echo-court .echo-fantome-mention { margin-top: 0; }
.echo-bloc.echo-fantome.echo-fantome-refuse {
  --echo-fond: var(--surface);
  --echo-texte: var(--danger);
  --echo-trait: var(--danger);
  outline: 1px dashed var(--danger);
  outline-offset: -1px;
}
.echo-bloc[aria-busy="true"] .echo-bloc-lien { cursor: progress; }
.echo-bloc[aria-busy="true"] { opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
  .echo-bloc.echo-fantome, .echo-selection { transition: top 70ms ease-out, height 70ms ease-out; }
}

/* Confirmation d'un report (le visiteur reçoit un e-mail). */
dialog.echo-dialogue {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: var(--esp-20) var(--esp-24);
  color: var(--texte);
  background: var(--fond-menu);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-8);
  box-shadow: var(--ombre-haute);
}
dialog.echo-dialogue::backdrop { background: rgb(0 0 0 / .4); }
.echo-dialogue h2 { margin: 0 0 var(--esp-8); font: 600 var(--texte-16)/var(--interligne-16) var(--police); }
.echo-dialogue-question { margin: 0 0 var(--esp-8); font-size: var(--texte-14); line-height: var(--interligne-14); }
.echo-dialogue strong { font-weight: 600; }
.echo-dialogue-note { margin: 0 0 var(--esp-8); color: var(--discret); font-size: var(--texte-13); line-height: var(--interligne-13); }
.echo-dialogue-avertissement {
  margin: 0 0 var(--esp-8);
  padding: var(--esp-8) var(--esp-12);
  color: var(--texte);
  background: var(--attention-doux);
  border-left: 3px solid var(--attention-point);
  border-radius: var(--rayon-4);
  font-size: var(--texte-13);
  line-height: var(--interligne-13);
}
.echo-dialogue-actions { display: flex; justify-content: flex-end; gap: var(--esp-8); margin-top: var(--esp-20); }

/* Classes de placement de l'agenda, générées (voir `agenda_classes` dans assets.rs ; le test
   `agenda_classes_are_generated` vérifie ce bloc). */
.debut-0 { top: calc(0 * var(--echo-quart)); } .debut-1 { top: calc(1 * var(--echo-quart)); } .debut-2 { top: calc(2 * var(--echo-quart)); } .debut-3 { top: calc(3 * var(--echo-quart)); } .debut-4 { top: calc(4 * var(--echo-quart)); } .debut-5 { top: calc(5 * var(--echo-quart)); } .debut-6 { top: calc(6 * var(--echo-quart)); } .debut-7 { top: calc(7 * var(--echo-quart)); } .debut-8 { top: calc(8 * var(--echo-quart)); } .debut-9 { top: calc(9 * var(--echo-quart)); } .debut-10 { top: calc(10 * var(--echo-quart)); } .debut-11 { top: calc(11 * var(--echo-quart)); } .debut-12 { top: calc(12 * var(--echo-quart)); } .debut-13 { top: calc(13 * var(--echo-quart)); } .debut-14 { top: calc(14 * var(--echo-quart)); } .debut-15 { top: calc(15 * var(--echo-quart)); } .debut-16 { top: calc(16 * var(--echo-quart)); } .debut-17 { top: calc(17 * var(--echo-quart)); } .debut-18 { top: calc(18 * var(--echo-quart)); } .debut-19 { top: calc(19 * var(--echo-quart)); } .debut-20 { top: calc(20 * var(--echo-quart)); } .debut-21 { top: calc(21 * var(--echo-quart)); } .debut-22 { top: calc(22 * var(--echo-quart)); } .debut-23 { top: calc(23 * var(--echo-quart)); } .debut-24 { top: calc(24 * var(--echo-quart)); } .debut-25 { top: calc(25 * var(--echo-quart)); } .debut-26 { top: calc(26 * var(--echo-quart)); } .debut-27 { top: calc(27 * var(--echo-quart)); } .debut-28 { top: calc(28 * var(--echo-quart)); } .debut-29 { top: calc(29 * var(--echo-quart)); } .debut-30 { top: calc(30 * var(--echo-quart)); } .debut-31 { top: calc(31 * var(--echo-quart)); } .debut-32 { top: calc(32 * var(--echo-quart)); } .debut-33 { top: calc(33 * var(--echo-quart)); } .debut-34 { top: calc(34 * var(--echo-quart)); } .debut-35 { top: calc(35 * var(--echo-quart)); } .debut-36 { top: calc(36 * var(--echo-quart)); } .debut-37 { top: calc(37 * var(--echo-quart)); } .debut-38 { top: calc(38 * var(--echo-quart)); } .debut-39 { top: calc(39 * var(--echo-quart)); } .debut-40 { top: calc(40 * var(--echo-quart)); } .debut-41 { top: calc(41 * var(--echo-quart)); } .debut-42 { top: calc(42 * var(--echo-quart)); } .debut-43 { top: calc(43 * var(--echo-quart)); } .debut-44 { top: calc(44 * var(--echo-quart)); } .debut-45 { top: calc(45 * var(--echo-quart)); } .debut-46 { top: calc(46 * var(--echo-quart)); } .debut-47 { top: calc(47 * var(--echo-quart)); } .debut-48 { top: calc(48 * var(--echo-quart)); } .debut-49 { top: calc(49 * var(--echo-quart)); } .debut-50 { top: calc(50 * var(--echo-quart)); } .debut-51 { top: calc(51 * var(--echo-quart)); } .debut-52 { top: calc(52 * var(--echo-quart)); } .debut-53 { top: calc(53 * var(--echo-quart)); } .debut-54 { top: calc(54 * var(--echo-quart)); } .debut-55 { top: calc(55 * var(--echo-quart)); } .debut-56 { top: calc(56 * var(--echo-quart)); } .debut-57 { top: calc(57 * var(--echo-quart)); } .debut-58 { top: calc(58 * var(--echo-quart)); } .debut-59 { top: calc(59 * var(--echo-quart)); } .debut-60 { top: calc(60 * var(--echo-quart)); } .debut-61 { top: calc(61 * var(--echo-quart)); } .debut-62 { top: calc(62 * var(--echo-quart)); } .debut-63 { top: calc(63 * var(--echo-quart)); } .debut-64 { top: calc(64 * var(--echo-quart)); } .debut-65 { top: calc(65 * var(--echo-quart)); } .debut-66 { top: calc(66 * var(--echo-quart)); } .debut-67 { top: calc(67 * var(--echo-quart)); } .debut-68 { top: calc(68 * var(--echo-quart)); } .debut-69 { top: calc(69 * var(--echo-quart)); } .debut-70 { top: calc(70 * var(--echo-quart)); } .debut-71 { top: calc(71 * var(--echo-quart)); } .debut-72 { top: calc(72 * var(--echo-quart)); } .debut-73 { top: calc(73 * var(--echo-quart)); } .debut-74 { top: calc(74 * var(--echo-quart)); } .debut-75 { top: calc(75 * var(--echo-quart)); } .debut-76 { top: calc(76 * var(--echo-quart)); } .debut-77 { top: calc(77 * var(--echo-quart)); } .debut-78 { top: calc(78 * var(--echo-quart)); } .debut-79 { top: calc(79 * var(--echo-quart)); } .debut-80 { top: calc(80 * var(--echo-quart)); } .debut-81 { top: calc(81 * var(--echo-quart)); } .debut-82 { top: calc(82 * var(--echo-quart)); } .debut-83 { top: calc(83 * var(--echo-quart)); } .debut-84 { top: calc(84 * var(--echo-quart)); } .debut-85 { top: calc(85 * var(--echo-quart)); } .debut-86 { top: calc(86 * var(--echo-quart)); } .debut-87 { top: calc(87 * var(--echo-quart)); } .debut-88 { top: calc(88 * var(--echo-quart)); } .debut-89 { top: calc(89 * var(--echo-quart)); } .debut-90 { top: calc(90 * var(--echo-quart)); } .debut-91 { top: calc(91 * var(--echo-quart)); } .debut-92 { top: calc(92 * var(--echo-quart)); } .debut-93 { top: calc(93 * var(--echo-quart)); } .debut-94 { top: calc(94 * var(--echo-quart)); } .debut-95 { top: calc(95 * var(--echo-quart)); } .debut-96 { top: calc(96 * var(--echo-quart)); } .debut-97 { top: calc(97 * var(--echo-quart)); } .debut-98 { top: calc(98 * var(--echo-quart)); }
.duree-1 { height: calc(1 * var(--echo-quart)); } .duree-2 { height: calc(2 * var(--echo-quart)); } .duree-3 { height: calc(3 * var(--echo-quart)); } .duree-4 { height: calc(4 * var(--echo-quart)); } .duree-5 { height: calc(5 * var(--echo-quart)); } .duree-6 { height: calc(6 * var(--echo-quart)); } .duree-7 { height: calc(7 * var(--echo-quart)); } .duree-8 { height: calc(8 * var(--echo-quart)); } .duree-9 { height: calc(9 * var(--echo-quart)); } .duree-10 { height: calc(10 * var(--echo-quart)); } .duree-11 { height: calc(11 * var(--echo-quart)); } .duree-12 { height: calc(12 * var(--echo-quart)); } .duree-13 { height: calc(13 * var(--echo-quart)); } .duree-14 { height: calc(14 * var(--echo-quart)); } .duree-15 { height: calc(15 * var(--echo-quart)); } .duree-16 { height: calc(16 * var(--echo-quart)); } .duree-17 { height: calc(17 * var(--echo-quart)); } .duree-18 { height: calc(18 * var(--echo-quart)); } .duree-19 { height: calc(19 * var(--echo-quart)); } .duree-20 { height: calc(20 * var(--echo-quart)); } .duree-21 { height: calc(21 * var(--echo-quart)); } .duree-22 { height: calc(22 * var(--echo-quart)); } .duree-23 { height: calc(23 * var(--echo-quart)); } .duree-24 { height: calc(24 * var(--echo-quart)); } .duree-25 { height: calc(25 * var(--echo-quart)); } .duree-26 { height: calc(26 * var(--echo-quart)); } .duree-27 { height: calc(27 * var(--echo-quart)); } .duree-28 { height: calc(28 * var(--echo-quart)); } .duree-29 { height: calc(29 * var(--echo-quart)); } .duree-30 { height: calc(30 * var(--echo-quart)); } .duree-31 { height: calc(31 * var(--echo-quart)); } .duree-32 { height: calc(32 * var(--echo-quart)); } .duree-33 { height: calc(33 * var(--echo-quart)); } .duree-34 { height: calc(34 * var(--echo-quart)); } .duree-35 { height: calc(35 * var(--echo-quart)); } .duree-36 { height: calc(36 * var(--echo-quart)); } .duree-37 { height: calc(37 * var(--echo-quart)); } .duree-38 { height: calc(38 * var(--echo-quart)); } .duree-39 { height: calc(39 * var(--echo-quart)); } .duree-40 { height: calc(40 * var(--echo-quart)); } .duree-41 { height: calc(41 * var(--echo-quart)); } .duree-42 { height: calc(42 * var(--echo-quart)); } .duree-43 { height: calc(43 * var(--echo-quart)); } .duree-44 { height: calc(44 * var(--echo-quart)); } .duree-45 { height: calc(45 * var(--echo-quart)); } .duree-46 { height: calc(46 * var(--echo-quart)); } .duree-47 { height: calc(47 * var(--echo-quart)); } .duree-48 { height: calc(48 * var(--echo-quart)); } .duree-49 { height: calc(49 * var(--echo-quart)); } .duree-50 { height: calc(50 * var(--echo-quart)); } .duree-51 { height: calc(51 * var(--echo-quart)); } .duree-52 { height: calc(52 * var(--echo-quart)); } .duree-53 { height: calc(53 * var(--echo-quart)); } .duree-54 { height: calc(54 * var(--echo-quart)); } .duree-55 { height: calc(55 * var(--echo-quart)); } .duree-56 { height: calc(56 * var(--echo-quart)); } .duree-57 { height: calc(57 * var(--echo-quart)); } .duree-58 { height: calc(58 * var(--echo-quart)); } .duree-59 { height: calc(59 * var(--echo-quart)); } .duree-60 { height: calc(60 * var(--echo-quart)); } .duree-61 { height: calc(61 * var(--echo-quart)); } .duree-62 { height: calc(62 * var(--echo-quart)); } .duree-63 { height: calc(63 * var(--echo-quart)); } .duree-64 { height: calc(64 * var(--echo-quart)); } .duree-65 { height: calc(65 * var(--echo-quart)); } .duree-66 { height: calc(66 * var(--echo-quart)); } .duree-67 { height: calc(67 * var(--echo-quart)); } .duree-68 { height: calc(68 * var(--echo-quart)); } .duree-69 { height: calc(69 * var(--echo-quart)); } .duree-70 { height: calc(70 * var(--echo-quart)); } .duree-71 { height: calc(71 * var(--echo-quart)); } .duree-72 { height: calc(72 * var(--echo-quart)); } .duree-73 { height: calc(73 * var(--echo-quart)); } .duree-74 { height: calc(74 * var(--echo-quart)); } .duree-75 { height: calc(75 * var(--echo-quart)); } .duree-76 { height: calc(76 * var(--echo-quart)); } .duree-77 { height: calc(77 * var(--echo-quart)); } .duree-78 { height: calc(78 * var(--echo-quart)); } .duree-79 { height: calc(79 * var(--echo-quart)); } .duree-80 { height: calc(80 * var(--echo-quart)); } .duree-81 { height: calc(81 * var(--echo-quart)); } .duree-82 { height: calc(82 * var(--echo-quart)); } .duree-83 { height: calc(83 * var(--echo-quart)); } .duree-84 { height: calc(84 * var(--echo-quart)); } .duree-85 { height: calc(85 * var(--echo-quart)); } .duree-86 { height: calc(86 * var(--echo-quart)); } .duree-87 { height: calc(87 * var(--echo-quart)); } .duree-88 { height: calc(88 * var(--echo-quart)); } .duree-89 { height: calc(89 * var(--echo-quart)); } .duree-90 { height: calc(90 * var(--echo-quart)); } .duree-91 { height: calc(91 * var(--echo-quart)); } .duree-92 { height: calc(92 * var(--echo-quart)); } .duree-93 { height: calc(93 * var(--echo-quart)); } .duree-94 { height: calc(94 * var(--echo-quart)); } .duree-95 { height: calc(95 * var(--echo-quart)); } .duree-96 { height: calc(96 * var(--echo-quart)); } .duree-97 { height: calc(97 * var(--echo-quart)); } .duree-98 { height: calc(98 * var(--echo-quart)); }
.echo-plus-0 { margin-top: calc(0 * var(--echo-quart) / 15); } .echo-plus-1 { margin-top: calc(1 * var(--echo-quart) / 15); } .echo-plus-2 { margin-top: calc(2 * var(--echo-quart) / 15); } .echo-plus-3 { margin-top: calc(3 * var(--echo-quart) / 15); } .echo-plus-4 { margin-top: calc(4 * var(--echo-quart) / 15); } .echo-plus-5 { margin-top: calc(5 * var(--echo-quart) / 15); } .echo-plus-6 { margin-top: calc(6 * var(--echo-quart) / 15); } .echo-plus-7 { margin-top: calc(7 * var(--echo-quart) / 15); } .echo-plus-8 { margin-top: calc(8 * var(--echo-quart) / 15); } .echo-plus-9 { margin-top: calc(9 * var(--echo-quart) / 15); } .echo-plus-10 { margin-top: calc(10 * var(--echo-quart) / 15); } .echo-plus-11 { margin-top: calc(11 * var(--echo-quart) / 15); } .echo-plus-12 { margin-top: calc(12 * var(--echo-quart) / 15); } .echo-plus-13 { margin-top: calc(13 * var(--echo-quart) / 15); } .echo-plus-14 { margin-top: calc(14 * var(--echo-quart) / 15); }
.echo-bloc.echo-retrait-0 { --echo-d: 0; z-index: 3; } .echo-bloc.echo-retrait-1 { --echo-d: 1; z-index: 4; } .echo-bloc.echo-retrait-2 { --echo-d: 2; z-index: 5; } .echo-bloc.echo-retrait-3 { --echo-d: 3; z-index: 6; }
.echo-voies-1 { --echo-n: 1; } .echo-voies-2 { --echo-n: 2; }
.echo-voie-0 { --echo-k: 0; } .echo-voie-1 { --echo-k: 1; }
.echo-bloc:is(.echo-voies-1, .echo-voies-2) { --echo-l: calc((100% - var(--esp-8) - var(--echo-r, 0px) - var(--echo-d) * var(--echo-pas, 20%)) / var(--echo-n)); left: calc(var(--echo-d) * var(--echo-pas, 20%) + var(--echo-k) * var(--echo-l)); width: var(--echo-l); }
@container echo-jour (max-width: 479.98px) {
.echo-p2-r0-n1-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 1); width: calc((100% - var(--esp-8) - 0 * 20%) / 1); z-index: 3; }
.echo-p2-r0-n2-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 2); width: calc((100% - var(--esp-8) - 0 * 20%) / 2); z-index: 3; } .echo-p2-r0-n2-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 2); width: calc((100% - var(--esp-8) - 0 * 20%) / 2); z-index: 3; }
.echo-p2-r1-n1-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 1); width: calc((100% - var(--esp-8) - 1 * 20%) / 1); z-index: 4; }
.echo-p2-r1-n2-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 2); width: calc((100% - var(--esp-8) - 1 * 20%) / 2); z-index: 4; } .echo-p2-r1-n2-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 2); width: calc((100% - var(--esp-8) - 1 * 20%) / 2); z-index: 4; }
.echo-p2-r2-n1-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 1); width: calc((100% - var(--esp-8) - 2 * 20%) / 1); z-index: 5; }
.echo-p2-r2-n2-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 2); width: calc((100% - var(--esp-8) - 2 * 20%) / 2); z-index: 5; } .echo-p2-r2-n2-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 2); width: calc((100% - var(--esp-8) - 2 * 20%) / 2); z-index: 5; }
.echo-p2-r3-n1-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 1); width: calc((100% - var(--esp-8) - 3 * 20%) / 1); z-index: 6; }
.echo-p2-r3-n2-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 2); width: calc((100% - var(--esp-8) - 3 * 20%) / 2); z-index: 6; } .echo-p2-r3-n2-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 2); width: calc((100% - var(--esp-8) - 3 * 20%) / 2); z-index: 6; }
.echo-p2-cache { display: none; } .echo-plus-ligne.echo-pour-p2 { display: flex; }
.echo-p2-recouvert .echo-ligne1 { flex-direction: row; align-items: baseline; gap: var(--esp-4); } .echo-p2-recouvert :is(.echo-mention, .echo-objet) { display: none; }
}
@container echo-jour (min-width: 480px) and (max-width: 959.98px) {
.echo-p4-r0-n1-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 1); width: calc((100% - var(--esp-8) - 0 * 20%) / 1); z-index: 3; }
.echo-p4-r0-n2-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 2); width: calc((100% - var(--esp-8) - 0 * 20%) / 2); z-index: 3; } .echo-p4-r0-n2-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 2); width: calc((100% - var(--esp-8) - 0 * 20%) / 2); z-index: 3; }
.echo-p4-r0-n3-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 3); width: calc((100% - var(--esp-8) - 0 * 20%) / 3); z-index: 3; } .echo-p4-r0-n3-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 3); width: calc((100% - var(--esp-8) - 0 * 20%) / 3); z-index: 3; } .echo-p4-r0-n3-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 3); width: calc((100% - var(--esp-8) - 0 * 20%) / 3); z-index: 3; }
.echo-p4-r0-n4-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; } .echo-p4-r0-n4-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; } .echo-p4-r0-n4-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; } .echo-p4-r0-n4-k3 { left: calc(0 * 20% + 3 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; }
.echo-p4-r1-n1-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 1); width: calc((100% - var(--esp-8) - 1 * 20%) / 1); z-index: 4; }
.echo-p4-r1-n2-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 2); width: calc((100% - var(--esp-8) - 1 * 20%) / 2); z-index: 4; } .echo-p4-r1-n2-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 2); width: calc((100% - var(--esp-8) - 1 * 20%) / 2); z-index: 4; }
.echo-p4-r1-n3-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 3); width: calc((100% - var(--esp-8) - 1 * 20%) / 3); z-index: 4; } .echo-p4-r1-n3-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 3); width: calc((100% - var(--esp-8) - 1 * 20%) / 3); z-index: 4; } .echo-p4-r1-n3-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 3); width: calc((100% - var(--esp-8) - 1 * 20%) / 3); z-index: 4; }
.echo-p4-r1-n4-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; } .echo-p4-r1-n4-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; } .echo-p4-r1-n4-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; } .echo-p4-r1-n4-k3 { left: calc(1 * 20% + 3 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; }
.echo-p4-r2-n1-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 1); width: calc((100% - var(--esp-8) - 2 * 20%) / 1); z-index: 5; }
.echo-p4-r2-n2-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 2); width: calc((100% - var(--esp-8) - 2 * 20%) / 2); z-index: 5; } .echo-p4-r2-n2-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 2); width: calc((100% - var(--esp-8) - 2 * 20%) / 2); z-index: 5; }
.echo-p4-r2-n3-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 3); width: calc((100% - var(--esp-8) - 2 * 20%) / 3); z-index: 5; } .echo-p4-r2-n3-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 3); width: calc((100% - var(--esp-8) - 2 * 20%) / 3); z-index: 5; } .echo-p4-r2-n3-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 3); width: calc((100% - var(--esp-8) - 2 * 20%) / 3); z-index: 5; }
.echo-p4-r2-n4-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; } .echo-p4-r2-n4-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; } .echo-p4-r2-n4-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; } .echo-p4-r2-n4-k3 { left: calc(2 * 20% + 3 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; }
.echo-p4-r3-n1-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 1); width: calc((100% - var(--esp-8) - 3 * 20%) / 1); z-index: 6; }
.echo-p4-r3-n2-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 2); width: calc((100% - var(--esp-8) - 3 * 20%) / 2); z-index: 6; } .echo-p4-r3-n2-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 2); width: calc((100% - var(--esp-8) - 3 * 20%) / 2); z-index: 6; }
.echo-p4-r3-n3-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 3); width: calc((100% - var(--esp-8) - 3 * 20%) / 3); z-index: 6; } .echo-p4-r3-n3-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 3); width: calc((100% - var(--esp-8) - 3 * 20%) / 3); z-index: 6; } .echo-p4-r3-n3-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 3); width: calc((100% - var(--esp-8) - 3 * 20%) / 3); z-index: 6; }
.echo-p4-r3-n4-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; } .echo-p4-r3-n4-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; } .echo-p4-r3-n4-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; } .echo-p4-r3-n4-k3 { left: calc(3 * 20% + 3 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; }
.echo-p4-cache { display: none; } .echo-plus-ligne.echo-pour-p4 { display: flex; }
.echo-p4-recouvert .echo-ligne1 { flex-direction: row; align-items: baseline; gap: var(--esp-4); } .echo-p4-recouvert :is(.echo-mention, .echo-objet) { display: none; }
}
@container echo-jour (min-width: 960px) {
.echo-p8-r0-n1-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 1); width: calc((100% - var(--esp-8) - 0 * 20%) / 1); z-index: 3; }
.echo-p8-r0-n2-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 2); width: calc((100% - var(--esp-8) - 0 * 20%) / 2); z-index: 3; } .echo-p8-r0-n2-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 2); width: calc((100% - var(--esp-8) - 0 * 20%) / 2); z-index: 3; }
.echo-p8-r0-n3-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 3); width: calc((100% - var(--esp-8) - 0 * 20%) / 3); z-index: 3; } .echo-p8-r0-n3-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 3); width: calc((100% - var(--esp-8) - 0 * 20%) / 3); z-index: 3; } .echo-p8-r0-n3-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 3); width: calc((100% - var(--esp-8) - 0 * 20%) / 3); z-index: 3; }
.echo-p8-r0-n4-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; } .echo-p8-r0-n4-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; } .echo-p8-r0-n4-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; } .echo-p8-r0-n4-k3 { left: calc(0 * 20% + 3 * (100% - var(--esp-8) - 0 * 20%) / 4); width: calc((100% - var(--esp-8) - 0 * 20%) / 4); z-index: 3; }
.echo-p8-r0-n5-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 5); width: calc((100% - var(--esp-8) - 0 * 20%) / 5); z-index: 3; } .echo-p8-r0-n5-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 5); width: calc((100% - var(--esp-8) - 0 * 20%) / 5); z-index: 3; } .echo-p8-r0-n5-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 5); width: calc((100% - var(--esp-8) - 0 * 20%) / 5); z-index: 3; } .echo-p8-r0-n5-k3 { left: calc(0 * 20% + 3 * (100% - var(--esp-8) - 0 * 20%) / 5); width: calc((100% - var(--esp-8) - 0 * 20%) / 5); z-index: 3; } .echo-p8-r0-n5-k4 { left: calc(0 * 20% + 4 * (100% - var(--esp-8) - 0 * 20%) / 5); width: calc((100% - var(--esp-8) - 0 * 20%) / 5); z-index: 3; }
.echo-p8-r0-n6-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 6); width: calc((100% - var(--esp-8) - 0 * 20%) / 6); z-index: 3; } .echo-p8-r0-n6-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 6); width: calc((100% - var(--esp-8) - 0 * 20%) / 6); z-index: 3; } .echo-p8-r0-n6-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 6); width: calc((100% - var(--esp-8) - 0 * 20%) / 6); z-index: 3; } .echo-p8-r0-n6-k3 { left: calc(0 * 20% + 3 * (100% - var(--esp-8) - 0 * 20%) / 6); width: calc((100% - var(--esp-8) - 0 * 20%) / 6); z-index: 3; } .echo-p8-r0-n6-k4 { left: calc(0 * 20% + 4 * (100% - var(--esp-8) - 0 * 20%) / 6); width: calc((100% - var(--esp-8) - 0 * 20%) / 6); z-index: 3; } .echo-p8-r0-n6-k5 { left: calc(0 * 20% + 5 * (100% - var(--esp-8) - 0 * 20%) / 6); width: calc((100% - var(--esp-8) - 0 * 20%) / 6); z-index: 3; }
.echo-p8-r0-n7-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; } .echo-p8-r0-n7-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; } .echo-p8-r0-n7-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; } .echo-p8-r0-n7-k3 { left: calc(0 * 20% + 3 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; } .echo-p8-r0-n7-k4 { left: calc(0 * 20% + 4 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; } .echo-p8-r0-n7-k5 { left: calc(0 * 20% + 5 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; } .echo-p8-r0-n7-k6 { left: calc(0 * 20% + 6 * (100% - var(--esp-8) - 0 * 20%) / 7); width: calc((100% - var(--esp-8) - 0 * 20%) / 7); z-index: 3; }
.echo-p8-r0-n8-k0 { left: calc(0 * 20% + 0 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k1 { left: calc(0 * 20% + 1 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k2 { left: calc(0 * 20% + 2 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k3 { left: calc(0 * 20% + 3 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k4 { left: calc(0 * 20% + 4 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k5 { left: calc(0 * 20% + 5 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k6 { left: calc(0 * 20% + 6 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; } .echo-p8-r0-n8-k7 { left: calc(0 * 20% + 7 * (100% - var(--esp-8) - 0 * 20%) / 8); width: calc((100% - var(--esp-8) - 0 * 20%) / 8); z-index: 3; }
.echo-p8-r1-n1-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 1); width: calc((100% - var(--esp-8) - 1 * 20%) / 1); z-index: 4; }
.echo-p8-r1-n2-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 2); width: calc((100% - var(--esp-8) - 1 * 20%) / 2); z-index: 4; } .echo-p8-r1-n2-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 2); width: calc((100% - var(--esp-8) - 1 * 20%) / 2); z-index: 4; }
.echo-p8-r1-n3-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 3); width: calc((100% - var(--esp-8) - 1 * 20%) / 3); z-index: 4; } .echo-p8-r1-n3-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 3); width: calc((100% - var(--esp-8) - 1 * 20%) / 3); z-index: 4; } .echo-p8-r1-n3-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 3); width: calc((100% - var(--esp-8) - 1 * 20%) / 3); z-index: 4; }
.echo-p8-r1-n4-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; } .echo-p8-r1-n4-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; } .echo-p8-r1-n4-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; } .echo-p8-r1-n4-k3 { left: calc(1 * 20% + 3 * (100% - var(--esp-8) - 1 * 20%) / 4); width: calc((100% - var(--esp-8) - 1 * 20%) / 4); z-index: 4; }
.echo-p8-r1-n5-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 5); width: calc((100% - var(--esp-8) - 1 * 20%) / 5); z-index: 4; } .echo-p8-r1-n5-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 5); width: calc((100% - var(--esp-8) - 1 * 20%) / 5); z-index: 4; } .echo-p8-r1-n5-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 5); width: calc((100% - var(--esp-8) - 1 * 20%) / 5); z-index: 4; } .echo-p8-r1-n5-k3 { left: calc(1 * 20% + 3 * (100% - var(--esp-8) - 1 * 20%) / 5); width: calc((100% - var(--esp-8) - 1 * 20%) / 5); z-index: 4; } .echo-p8-r1-n5-k4 { left: calc(1 * 20% + 4 * (100% - var(--esp-8) - 1 * 20%) / 5); width: calc((100% - var(--esp-8) - 1 * 20%) / 5); z-index: 4; }
.echo-p8-r1-n6-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 6); width: calc((100% - var(--esp-8) - 1 * 20%) / 6); z-index: 4; } .echo-p8-r1-n6-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 6); width: calc((100% - var(--esp-8) - 1 * 20%) / 6); z-index: 4; } .echo-p8-r1-n6-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 6); width: calc((100% - var(--esp-8) - 1 * 20%) / 6); z-index: 4; } .echo-p8-r1-n6-k3 { left: calc(1 * 20% + 3 * (100% - var(--esp-8) - 1 * 20%) / 6); width: calc((100% - var(--esp-8) - 1 * 20%) / 6); z-index: 4; } .echo-p8-r1-n6-k4 { left: calc(1 * 20% + 4 * (100% - var(--esp-8) - 1 * 20%) / 6); width: calc((100% - var(--esp-8) - 1 * 20%) / 6); z-index: 4; } .echo-p8-r1-n6-k5 { left: calc(1 * 20% + 5 * (100% - var(--esp-8) - 1 * 20%) / 6); width: calc((100% - var(--esp-8) - 1 * 20%) / 6); z-index: 4; }
.echo-p8-r1-n7-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; } .echo-p8-r1-n7-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; } .echo-p8-r1-n7-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; } .echo-p8-r1-n7-k3 { left: calc(1 * 20% + 3 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; } .echo-p8-r1-n7-k4 { left: calc(1 * 20% + 4 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; } .echo-p8-r1-n7-k5 { left: calc(1 * 20% + 5 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; } .echo-p8-r1-n7-k6 { left: calc(1 * 20% + 6 * (100% - var(--esp-8) - 1 * 20%) / 7); width: calc((100% - var(--esp-8) - 1 * 20%) / 7); z-index: 4; }
.echo-p8-r1-n8-k0 { left: calc(1 * 20% + 0 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k1 { left: calc(1 * 20% + 1 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k2 { left: calc(1 * 20% + 2 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k3 { left: calc(1 * 20% + 3 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k4 { left: calc(1 * 20% + 4 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k5 { left: calc(1 * 20% + 5 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k6 { left: calc(1 * 20% + 6 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; } .echo-p8-r1-n8-k7 { left: calc(1 * 20% + 7 * (100% - var(--esp-8) - 1 * 20%) / 8); width: calc((100% - var(--esp-8) - 1 * 20%) / 8); z-index: 4; }
.echo-p8-r2-n1-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 1); width: calc((100% - var(--esp-8) - 2 * 20%) / 1); z-index: 5; }
.echo-p8-r2-n2-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 2); width: calc((100% - var(--esp-8) - 2 * 20%) / 2); z-index: 5; } .echo-p8-r2-n2-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 2); width: calc((100% - var(--esp-8) - 2 * 20%) / 2); z-index: 5; }
.echo-p8-r2-n3-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 3); width: calc((100% - var(--esp-8) - 2 * 20%) / 3); z-index: 5; } .echo-p8-r2-n3-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 3); width: calc((100% - var(--esp-8) - 2 * 20%) / 3); z-index: 5; } .echo-p8-r2-n3-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 3); width: calc((100% - var(--esp-8) - 2 * 20%) / 3); z-index: 5; }
.echo-p8-r2-n4-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; } .echo-p8-r2-n4-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; } .echo-p8-r2-n4-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; } .echo-p8-r2-n4-k3 { left: calc(2 * 20% + 3 * (100% - var(--esp-8) - 2 * 20%) / 4); width: calc((100% - var(--esp-8) - 2 * 20%) / 4); z-index: 5; }
.echo-p8-r2-n5-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 5); width: calc((100% - var(--esp-8) - 2 * 20%) / 5); z-index: 5; } .echo-p8-r2-n5-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 5); width: calc((100% - var(--esp-8) - 2 * 20%) / 5); z-index: 5; } .echo-p8-r2-n5-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 5); width: calc((100% - var(--esp-8) - 2 * 20%) / 5); z-index: 5; } .echo-p8-r2-n5-k3 { left: calc(2 * 20% + 3 * (100% - var(--esp-8) - 2 * 20%) / 5); width: calc((100% - var(--esp-8) - 2 * 20%) / 5); z-index: 5; } .echo-p8-r2-n5-k4 { left: calc(2 * 20% + 4 * (100% - var(--esp-8) - 2 * 20%) / 5); width: calc((100% - var(--esp-8) - 2 * 20%) / 5); z-index: 5; }
.echo-p8-r2-n6-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 6); width: calc((100% - var(--esp-8) - 2 * 20%) / 6); z-index: 5; } .echo-p8-r2-n6-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 6); width: calc((100% - var(--esp-8) - 2 * 20%) / 6); z-index: 5; } .echo-p8-r2-n6-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 6); width: calc((100% - var(--esp-8) - 2 * 20%) / 6); z-index: 5; } .echo-p8-r2-n6-k3 { left: calc(2 * 20% + 3 * (100% - var(--esp-8) - 2 * 20%) / 6); width: calc((100% - var(--esp-8) - 2 * 20%) / 6); z-index: 5; } .echo-p8-r2-n6-k4 { left: calc(2 * 20% + 4 * (100% - var(--esp-8) - 2 * 20%) / 6); width: calc((100% - var(--esp-8) - 2 * 20%) / 6); z-index: 5; } .echo-p8-r2-n6-k5 { left: calc(2 * 20% + 5 * (100% - var(--esp-8) - 2 * 20%) / 6); width: calc((100% - var(--esp-8) - 2 * 20%) / 6); z-index: 5; }
.echo-p8-r2-n7-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; } .echo-p8-r2-n7-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; } .echo-p8-r2-n7-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; } .echo-p8-r2-n7-k3 { left: calc(2 * 20% + 3 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; } .echo-p8-r2-n7-k4 { left: calc(2 * 20% + 4 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; } .echo-p8-r2-n7-k5 { left: calc(2 * 20% + 5 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; } .echo-p8-r2-n7-k6 { left: calc(2 * 20% + 6 * (100% - var(--esp-8) - 2 * 20%) / 7); width: calc((100% - var(--esp-8) - 2 * 20%) / 7); z-index: 5; }
.echo-p8-r2-n8-k0 { left: calc(2 * 20% + 0 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k1 { left: calc(2 * 20% + 1 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k2 { left: calc(2 * 20% + 2 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k3 { left: calc(2 * 20% + 3 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k4 { left: calc(2 * 20% + 4 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k5 { left: calc(2 * 20% + 5 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k6 { left: calc(2 * 20% + 6 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; } .echo-p8-r2-n8-k7 { left: calc(2 * 20% + 7 * (100% - var(--esp-8) - 2 * 20%) / 8); width: calc((100% - var(--esp-8) - 2 * 20%) / 8); z-index: 5; }
.echo-p8-r3-n1-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 1); width: calc((100% - var(--esp-8) - 3 * 20%) / 1); z-index: 6; }
.echo-p8-r3-n2-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 2); width: calc((100% - var(--esp-8) - 3 * 20%) / 2); z-index: 6; } .echo-p8-r3-n2-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 2); width: calc((100% - var(--esp-8) - 3 * 20%) / 2); z-index: 6; }
.echo-p8-r3-n3-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 3); width: calc((100% - var(--esp-8) - 3 * 20%) / 3); z-index: 6; } .echo-p8-r3-n3-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 3); width: calc((100% - var(--esp-8) - 3 * 20%) / 3); z-index: 6; } .echo-p8-r3-n3-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 3); width: calc((100% - var(--esp-8) - 3 * 20%) / 3); z-index: 6; }
.echo-p8-r3-n4-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; } .echo-p8-r3-n4-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; } .echo-p8-r3-n4-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; } .echo-p8-r3-n4-k3 { left: calc(3 * 20% + 3 * (100% - var(--esp-8) - 3 * 20%) / 4); width: calc((100% - var(--esp-8) - 3 * 20%) / 4); z-index: 6; }
.echo-p8-r3-n5-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 5); width: calc((100% - var(--esp-8) - 3 * 20%) / 5); z-index: 6; } .echo-p8-r3-n5-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 5); width: calc((100% - var(--esp-8) - 3 * 20%) / 5); z-index: 6; } .echo-p8-r3-n5-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 5); width: calc((100% - var(--esp-8) - 3 * 20%) / 5); z-index: 6; } .echo-p8-r3-n5-k3 { left: calc(3 * 20% + 3 * (100% - var(--esp-8) - 3 * 20%) / 5); width: calc((100% - var(--esp-8) - 3 * 20%) / 5); z-index: 6; } .echo-p8-r3-n5-k4 { left: calc(3 * 20% + 4 * (100% - var(--esp-8) - 3 * 20%) / 5); width: calc((100% - var(--esp-8) - 3 * 20%) / 5); z-index: 6; }
.echo-p8-r3-n6-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 6); width: calc((100% - var(--esp-8) - 3 * 20%) / 6); z-index: 6; } .echo-p8-r3-n6-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 6); width: calc((100% - var(--esp-8) - 3 * 20%) / 6); z-index: 6; } .echo-p8-r3-n6-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 6); width: calc((100% - var(--esp-8) - 3 * 20%) / 6); z-index: 6; } .echo-p8-r3-n6-k3 { left: calc(3 * 20% + 3 * (100% - var(--esp-8) - 3 * 20%) / 6); width: calc((100% - var(--esp-8) - 3 * 20%) / 6); z-index: 6; } .echo-p8-r3-n6-k4 { left: calc(3 * 20% + 4 * (100% - var(--esp-8) - 3 * 20%) / 6); width: calc((100% - var(--esp-8) - 3 * 20%) / 6); z-index: 6; } .echo-p8-r3-n6-k5 { left: calc(3 * 20% + 5 * (100% - var(--esp-8) - 3 * 20%) / 6); width: calc((100% - var(--esp-8) - 3 * 20%) / 6); z-index: 6; }
.echo-p8-r3-n7-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; } .echo-p8-r3-n7-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; } .echo-p8-r3-n7-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; } .echo-p8-r3-n7-k3 { left: calc(3 * 20% + 3 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; } .echo-p8-r3-n7-k4 { left: calc(3 * 20% + 4 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; } .echo-p8-r3-n7-k5 { left: calc(3 * 20% + 5 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; } .echo-p8-r3-n7-k6 { left: calc(3 * 20% + 6 * (100% - var(--esp-8) - 3 * 20%) / 7); width: calc((100% - var(--esp-8) - 3 * 20%) / 7); z-index: 6; }
.echo-p8-r3-n8-k0 { left: calc(3 * 20% + 0 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k1 { left: calc(3 * 20% + 1 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k2 { left: calc(3 * 20% + 2 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k3 { left: calc(3 * 20% + 3 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k4 { left: calc(3 * 20% + 4 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k5 { left: calc(3 * 20% + 5 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k6 { left: calc(3 * 20% + 6 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; } .echo-p8-r3-n8-k7 { left: calc(3 * 20% + 7 * (100% - var(--esp-8) - 3 * 20%) / 8); width: calc((100% - var(--esp-8) - 3 * 20%) / 8); z-index: 6; }
.echo-p8-cache { display: none; } .echo-plus-ligne.echo-pour-p8 { display: flex; }
.echo-p8-recouvert .echo-ligne1 { flex-direction: row; align-items: baseline; gap: var(--esp-4); } .echo-p8-recouvert :is(.echo-mention, .echo-objet) { display: none; }
}
.echo-col-1 { grid-column-start: 1; } .echo-col-2 { grid-column-start: 2; } .echo-col-3 { grid-column-start: 3; } .echo-col-4 { grid-column-start: 4; } .echo-col-5 { grid-column-start: 5; } .echo-col-6 { grid-column-start: 6; } .echo-col-7 { grid-column-start: 7; }
.echo-span-1 { grid-column-end: span 1; } .echo-span-2 { grid-column-end: span 2; } .echo-span-3 { grid-column-end: span 3; } .echo-span-4 { grid-column-end: span 4; } .echo-span-5 { grid-column-end: span 5; } .echo-span-6 { grid-column-end: span 6; } .echo-span-7 { grid-column-end: span 7; }

/* === Echo : fiche, formulaires, disponibilités (B4b) === */
/* Fiche d'un rendez-vous, pages d'action et de report, création manuelle, réglages. Les
   contrôles sont les composants `ui-…` : cette section ne place que leurs conteneurs (toutes les
   règles portent une classe `echo-…` propre). */

/* Fiche et carte des pages d'action : grille libellé / valeur à lignes séparées. */
.echo-fiche-carte,
.echo-confirmation {
  margin: 0 0 var(--esp-24);
  padding: var(--esp-4) var(--esp-16);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-6);
}
.echo-confirmation { max-width: 40rem; padding-bottom: var(--esp-16); }
.echo-fiche {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  margin: 0;
  font-size: var(--texte-14);
  line-height: var(--interligne-14);
}
.echo-fiche > dt {
  padding: var(--esp-12) var(--esp-16) var(--esp-12) 0;
  color: var(--discret);
  font-size: var(--texte-13);
  font-weight: 500;
}
.echo-fiche > dd { min-width: 0; margin: 0; padding: var(--esp-12) 0; overflow-wrap: anywhere; }
.echo-fiche > dt:nth-of-type(n+2),
.echo-fiche > dd:nth-of-type(n+2) { border-top: 1px solid var(--bord); }
.echo-fiche-message { white-space: pre-wrap; }

/* Bandeau d'une ligne : demande en attente, rendez-vous passé à clôturer. */
.echo-note {
  margin: 0 0 var(--esp-16);
  padding: var(--esp-8) var(--esp-12);
  background: var(--attention-doux);
  border-left: 3px solid var(--attention);
  border-radius: var(--rayon-6);
}
.echo-question { margin: var(--esp-16) 0 0; }
.echo-etat-actuel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-8); margin: 0 0 var(--esp-12); }
.echo-refus { max-width: 40rem; }

/* Avis d'Echo (`ui::Notice`) : à la largeur de la colonne. */
.echo-avis { max-width: 40rem; }

/* Formulaires : directement sur la page, grille de champs puis actions alignées. */
.echo-saisie { max-width: 40rem; margin: 0 0 var(--esp-24); }
.echo-champ-seul { max-width: 22rem; margin: var(--esp-16) 0 var(--esp-12); }
.echo-aide { max-width: 44rem; margin: 0 0 var(--esp-16); color: var(--discret); font-size: var(--texte-13); line-height: var(--interligne-13); }
.echo-pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-8); margin-top: var(--esp-16); }
.echo-pied-droite { justify-content: flex-end; }
.echo-saisie .echo-pied { margin-top: 0; }

/* Fragments affichés dans les vues de Pod et « Aujourd'hui ». */
.echo-entete-section { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-8); margin: 0 0 var(--esp-12); }
.echo-entete-section > h2,
.echo-jour-liste { margin: 0; padding: 0; list-style: none; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-6); }
.echo-jour-ligne { position: relative; display: flex; align-items: center; gap: var(--esp-4) var(--esp-12); min-height: 2.5rem; padding: var(--esp-8) var(--esp-12); }
.echo-jour-ligne + .echo-jour-ligne { border-top: 1px solid var(--bord); }
.echo-jour-ligne:hover { background: var(--survol-ui); }
.echo-jour-heure { flex: 0 0 8.5rem; color: var(--discret); font-size: var(--texte-13); }
.echo-jour-texte { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: 0 var(--esp-8); min-width: 0; }
.echo-jour-nom { font-weight: 500; text-decoration: none; }
.echo-jour-nom::after { content: ""; position: absolute; inset: 0; }
.echo-jour-motif { color: var(--discret); font-size: var(--texte-13); }
/* Lien « Visio » de la ligne : au-dessus du lien étiré de la ligne (`.echo-jour-nom::after`). */
.echo-jour-visio { position: relative; flex: none; color: var(--accent); font-size: var(--texte-13); font-weight: 500; text-decoration: none; }
.echo-jour-visio:hover { text-decoration: underline; }
@media (pointer: coarse) { .echo-jour-ligne { min-height: 2.75rem; } }
@media (max-width: 30rem) {
  .echo-jour-ligne { flex-wrap: wrap; }
  .echo-jour-heure { flex: 0 0 auto; }
  .echo-jour-texte { flex-basis: 100%; order: 3; }
}

/* Réglages : pied et pages de motifs (les plages hebdomadaires sont `ui::IntervalGrid`). */
@media (max-width: 30rem) {
  .echo-fiche-carte, .echo-confirmation { padding-inline: var(--esp-16); }
  .echo-fiche { grid-template-columns: minmax(0, 1fr); }
  .echo-fiche > dt { padding: var(--esp-12) 0 0; }
  .echo-fiche > dd { padding: var(--esp-4) 0 var(--esp-12); }
  .echo-fiche > dd:nth-of-type(n+2) { border-top: 0; }
  .echo-pied-droite { justify-content: stretch; }
}

/* Petits écrans */
@media (max-width: 30rem) {
  .formulaire, .echo-formulaire { padding: 1rem; }
}

/* ---------------------------------------------------------------------------------------------
   Catalogue des composants (/catalogue) : mise en page des exemples seulement. */

.catalogue-sommaire { display: flex; flex-wrap: wrap; gap: var(--esp-4) var(--esp-12); margin: 0 0 var(--esp-24); font-size: var(--texte-13); }
.catalogue-sommaire a { color: var(--discret); text-decoration: none; }
.catalogue-sommaire a:hover { color: var(--texte); text-decoration: underline; }
.catalogue-section { margin: 0 0 var(--esp-32); padding-top: var(--esp-16); border-top: 1px solid var(--bord); }
.catalogue-section > h2 { margin: 0 0 var(--esp-4); }
.catalogue-note { margin: 0 0 var(--esp-16); color: var(--discret); font-size: var(--texte-13); max-width: 48rem; }
.catalogue-etat { margin: 0 0 var(--esp-8); color: var(--faible); font-size: var(--texte-12); line-height: var(--interligne-12); font-weight: 500; }
.catalogue-exemple { min-width: 0; }
.catalogue-rendu { min-width: 0; }
.catalogue-pile { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--esp-24); }
.catalogue-ligne { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--esp-24) var(--esp-32); }
.catalogue-icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: var(--esp-8); }
.catalogue-icones .catalogue-exemple { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--esp-4); padding: var(--esp-12) var(--esp-8); background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-6); }
.catalogue-icones .catalogue-etat { margin: 0; }
.catalogue-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--esp-24); }
.catalogue-etats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-8); }
.catalogue-actions { display: flex; gap: var(--esp-8); }
.catalogue-etats > .ui-pastille { margin: 0; }
.catalogue-carte { display: flex; align-items: center; gap: var(--esp-8); width: 18rem; min-height: var(--h-40); padding: var(--esp-4) var(--esp-4) var(--esp-4) var(--esp-12); background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-6); }
.catalogue-carte > .ui-menu { margin-left: auto; }
.catalogue-carte.ui-demo-survol { background: var(--survol); }
.catalogue-survol-ligne .ui-tableau tbody tr > td { background: var(--survol-ui); }
.catalogue-survol-ligne .ui-menu-au-survol > .ui-menu-declencheur { opacity: 1; }
.catalogue-bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--esp-24); }
.catalogue-t20 { margin: 0 0 var(--esp-4); font-size: var(--texte-20); line-height: var(--interligne-20); font-weight: 600; }
.catalogue-t16 { margin: 0 0 var(--esp-4); font-size: var(--texte-16); line-height: var(--interligne-16); font-weight: 600; }
.catalogue-t14 { margin: 0 0 var(--esp-4); font-size: var(--texte-14); line-height: var(--interligne-14); }
.catalogue-t13 { margin: 0 0 var(--esp-4); font-size: var(--texte-13); line-height: var(--interligne-13); font-weight: 500; }
.catalogue-t12 { margin: 0; font-size: var(--texte-12); line-height: var(--interligne-12); color: var(--discret); }
.catalogue-boites { display: flex; align-items: flex-end; gap: var(--esp-8); margin: 0 0 var(--esp-16); }
.catalogue-boites > span { display: inline-flex; align-items: center; justify-content: center; width: var(--esp-40); color: var(--discret); font-size: var(--texte-12); background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-4); }
.catalogue-h24 { height: var(--h-24); }
.catalogue-h28 { height: var(--h-28); }
.catalogue-h32 { height: var(--h-32); }
.catalogue-h40 { height: var(--h-40); }
.catalogue-boites > .catalogue-r4, .catalogue-boites > .catalogue-r6, .catalogue-boites > .catalogue-r8 { height: var(--h-40); }
.catalogue-boites > .catalogue-r4 { border-radius: var(--rayon-4); }
.catalogue-boites > .catalogue-r6 { border-radius: var(--rayon-6); }
.catalogue-boites > .catalogue-r8 { border-radius: var(--rayon-8); }
.catalogue-nuances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-4) var(--esp-16); margin: 0; padding: 0; list-style: none; font-size: var(--texte-12); color: var(--discret); }
.catalogue-nuances li { display: flex; align-items: center; gap: var(--esp-8); }
.catalogue-nuance { width: var(--h-24); height: var(--esp-16); border: 1px solid var(--bord); border-radius: var(--rayon-4); }
.catalogue-nuance-page { background: var(--page); }
.catalogue-nuance-fond { background: var(--fond); }
.catalogue-nuance-surface { background: var(--surface); }
.catalogue-nuance-bord { background: var(--bord); }
.catalogue-nuance-texte { background: var(--texte); }
.catalogue-nuance-discret { background: var(--discret); }
.catalogue-nuance-accent { background: var(--accent); }
.catalogue-nuance-accent-doux { background: var(--accent-doux); }
.catalogue-nuance-succes { background: var(--succes); }
.catalogue-nuance-attention { background: var(--attention-point); }
.catalogue-nuance-danger { background: var(--danger); }
.catalogue-nuance-danger-doux { background: var(--danger-doux); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* === Système et mise en page (B4d) === */
/* Écrans système (réglages, sessions, agents, santé, connexion, erreurs) : composants `ui-…` et
   quelques classes de mise en page à eux. Aucune règle ne vise un composant. */

.sys-aide { margin: 0 0 var(--esp-12); color: var(--discret); font-size: var(--texte-13); line-height: var(--interligne-13); }
.sys-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-8); margin: var(--esp-16) 0 0; }
.sys-formulaire { max-width: 40rem; margin: 0 0 var(--esp-24); }
.sys-confirmation { max-width: 36rem; }
.sys-confirmation .sys-actions { margin-top: var(--esp-4); }
/* Boutons d'un formulaire à libellés à gauche : alignés sur la colonne des contrôles. */
@media (min-width: 40rem) {
  .sys-formulaire .sys-actions { margin-left: calc(12rem + var(--esp-24)); }
}

/* Jeton affiché une seule fois : champ en lecture seule, copie par JS (sinon sélection d'un clic). */
.sys-secret-bloc { margin: 0 0 var(--esp-16); }
.sys-secret-nom { display: block; margin: 0 0 var(--esp-4); color: var(--discret); font-size: var(--texte-13); line-height: var(--interligne-13); }
.sys-secret-ligne { display: flex; align-items: center; gap: var(--esp-8); }
.sys-secret { flex: 1; min-width: 0; padding: 0 var(--esp-12); font-family: var(--police-mono); font-size: var(--texte-13); text-overflow: ellipsis; background: var(--surface); }
html:not(.js) .sys-copie { display: none; }
/* Bouton « Enregistrer » du thème : inutile quand JS applique le choix à l'envoi. */
html.js .sys-sans-js { display: none; }

/* Bloc compte en bas de la barre latérale. */
.compte { display: flex; align-items: center; gap: var(--esp-8); margin-top: auto; padding: var(--esp-8); border-top: 1px solid var(--bord); }
.compte-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--h-24); height: var(--h-24); border-radius: 50%; background: var(--fond); color: var(--discret); box-shadow: 0 0 0 1px var(--bord); }
.compte-nom { flex: 1; min-width: 0; font-size: var(--texte-13); line-height: var(--interligne-13); font-weight: 500; }

/* Connexion, messages et erreurs : un bloc centré, sans barre latérale. */
.sys-etat { max-width: 28rem; margin: var(--esp-40) auto var(--esp-24); text-align: center; }
.sys-etat-code { margin: var(--esp-16) 0 0; color: var(--faible); font-size: var(--texte-12); line-height: var(--interligne-12); font-variant-numeric: tabular-nums; }
.sys-etat-titre { margin: 0 0 var(--esp-8); }
.sys-etat-texte { margin: 0 0 var(--esp-16); color: var(--discret); }
.sys-etat .sys-actions { justify-content: center; margin-top: var(--esp-4); }
.sans-menu .sys-etat {
  max-width: 24rem;
  margin: 0 auto;
  padding: var(--esp-24);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-8);
}
.sys-auth { text-align: left; }
.sys-commande { display: flex; align-items: center; justify-content: center; gap: var(--esp-8); margin: 0 0 var(--esp-16); }
.sys-details { margin: 0 0 var(--esp-24); }
.sys-details-titre { display: flex; align-items: center; gap: var(--esp-8); min-height: var(--h-controle); cursor: pointer; list-style: none; }
.sys-details-titre::-webkit-details-marker { display: none; }
.sys-details-titre h2 { margin: 0; }
.sys-details-titre::before { content: "\203A"; content: "\203A" / ""; color: var(--faible); font-size: var(--texte-16); transition: transform var(--duree); }
.sys-details[open] > .sys-details-titre::before { transform: rotate(90deg); }
.sys-auth .sys-etat-titre { margin-bottom: var(--esp-4); }
.sys-auth-form { display: flex; flex-direction: column; gap: var(--esp-8); margin: var(--esp-16) 0 0; }
@media (max-width: 47.99rem) {
  .sys-etat { margin-top: var(--esp-24); }
  .sans-menu .sys-etat { padding: var(--esp-16); }
}
.catalogue-pile > .catalogue-exemple > .catalogue-rendu > .ui-toast { max-width: 24rem; }

/* N5-Q7b : agenda. La ligne de l'heure courante passe DERRIÈRE les cartes de rendez-vous (elle
   ne barre plus l'horaire d'une carte) ; elle reste au-dessus des plages occupées (z-index 1). */
.echo-bloc.echo-occupe { z-index: 1; }
.echo-maintenant { z-index: 2; }
/* Carte étroite (deux voies, semaine sur tablette) : plus de place pour le nom. L'heure de début
   reste visible sur chaque carte (invariant du test navigateur de l'agenda) mais se resserre :
   marges réduites, écart de 2 px, chiffres de 11 px. */
@container (max-width: 6.99rem) {
  .echo-bloc-lien { padding-inline: 4px 2px; }
  :is(.echo-court, .echo-recouvert) .echo-ligne1 { gap: 2px; }
  :is(.echo-court, .echo-recouvert) .echo-debut { font-size: 11px; line-height: inherit; }
}

/* N5-Q7b : créneau en cours de saisie (« Nouveau rendez-vous »), distinct de la demande en
   attente : teinte d'accent, filet pointillé, sans hachures. */
.echo-etat-saisie { --echo-base: var(--echo-accent-fond); --echo-texte: var(--echo-accent-texte); --echo-trait: var(--accent); }
.echo-bloc.echo-etat-saisie { border: 1px dashed var(--accent); border-left: 3px solid var(--accent); }
.echo-ligne.echo-etat-saisie .echo-ligne-lien { border: 1px dashed var(--accent); border-left: 3px solid var(--accent); }
.echo-ligne.echo-etat-saisie .echo-mention { color: var(--echo-accent-texte); background: var(--fond); border: 1px dashed var(--accent); }
.echo-etat-saisie .echo-puce-lien::before { background: none; border: 1.5px dashed var(--accent); }
