/* Copie de la feuille de l'application (ecole-cms-frontend/src/ecole.css) pour les aperçus. */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --ink: #151a30;
  --ink-2: #454b66;
  --ink-3: #5f6682;
  --line: #dfe2ec;
  --line-strong: #858ca5; 
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #eaeafd;
  --accent-text: #3b35b8; 
  --highlight: #f5a524; 
  --highlight-soft: #fff4dc;
  --warn: #8f3f06;
  --warn-bg: #fdf2d8;
  --warn-line: #f3cf7e;
  --ok: #17693a;
  --ok-bg: #dcf5e5;
  --danger: #b4232c;
  --danger-bg: #fde6e7;
  --surligne: rgb(245 165 36 / 0.45);
  --appel-1: #4f46e5;
  --appel-2: #3730a3;
  --appel-texte: #ffffff;
  --appel-texte-2: rgb(255 255 255 / 0.86);
  --appel-btn: #ffffff;
  --appel-btn-texte: #3b35b8;
  --appel-btn-survol: #eaeafd;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 6px;
  --gap: 16px;
  --tap: 48px; 
  --shadow: 0 1px 2px rgb(21 26 48 / 0.05), 0 1px 3px rgb(21 26 48 / 0.04);
  --shadow-2: 0 4px 12px rgb(21 26 48 / 0.08), 0 1px 3px rgb(21 26 48 / 0.06);
  --shadow-3: 0 16px 40px rgb(21 26 48 / 0.16), 0 2px 8px rgb(21 26 48 / 0.08);
  --halo: 0 0 0 3px rgb(79 70 229 / 0.25); 
  --duree: 0.15s;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6682' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1120;
  --surface: #161a2d;
  --surface-2: #1f2440;
  --ink: #e9ebf5;
  --ink-2: #b0b6cf;
  --ink-3: #949bb8; 
  --line: #2b3150;
  --line-strong: #6a739a;
  --accent: #8f93ff;
  --accent-hover: #a5a8ff;
  --accent-ink: #10122a;
  --accent-soft: #262a5c;
  --accent-text: #b4b6ff;
  --highlight-soft: #33280f;
  --warn: #f7c35c;
  --warn-bg: #35270b;
  --warn-line: #5e4515;
  --ok: #6fdc98;
  --ok-bg: #0f2c1d;
  --danger: #ff8f8f;
  --danger-bg: #3a1518;
  --surligne: rgb(245 165 36 / 0.38);
  --appel-1: #2c3175;
  --appel-2: #1a1d45;
  --appel-texte: #e9ebf5;
  --appel-texte-2: #c3c8e0;
  --appel-btn: #8f93ff;
  --appel-btn-texte: #10122a;
  --appel-btn-survol: #a5a8ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-2: 0 4px 14px rgb(0 0 0 / 0.35);
  --shadow-3: 0 16px 40px rgb(0 0 0 / 0.5);
  --halo: 0 0 0 3px rgb(143 147 255 / 0.3);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238990ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; 
}
h1, h2, h3 { margin: 0 0 var(--s2); line-height: 1.25; color: var(--ink); }
h1 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: var(--t-md); font-weight: 600; }
@media (max-width: 767px) { h1 { font-size: 24px; } }
p { margin: 0 0 var(--s2); }
[hidden] { display: none !important; }
a { color: var(--accent-text); text-underline-offset: 2px; }
strong { font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.evitement {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.evitement:focus { transform: none; }
main:focus { outline: none; } 
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.marque-logo { width: 32px; height: 32px; flex: none; }
.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 16px 16px calc(var(--tap) + 40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.app > header:not(.page-tete) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 4px 4px env(safe-area-inset-bottom);
  z-index: 10;
}
.tabbar a {
  flex: 1;
  max-width: 140px;
  min-height: calc(var(--tap) + 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tabbar a .lucide {
  width: 56px;
  height: 30px;
  padding: 5px 0;
  border-radius: 999px;
  transition: background var(--duree), color var(--duree);
}
.tabbar a:hover { color: var(--ink); }
.tabbar a.active, .tabbar a[aria-current="page"] { color: var(--accent-text); }
.tabbar a.active .lucide, .tabbar a[aria-current="page"] .lucide { background: var(--accent-soft); }
@media (min-width: 768px) {
  .app { max-width: 720px; padding-top: 32px; padding-bottom: calc(var(--tap) + 72px); gap: var(--s4); }
  .tabbar {
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 32px));
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-2);
  }
}
.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100dvh;
}
.shell-barre, .voile { display: none; }
.side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.side > .marque { padding: 0 8px 4px; }
.side-groupe { display: flex; flex-direction: column; gap: 2px; }
.side-titre { padding: 4px 12px; }
.side a, .side-bouton {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duree), color var(--duree);
}
.side a .lucide, .side-bouton .lucide { color: var(--ink-3); }
.side a:hover, .side-bouton:hover { background: var(--surface-2); color: var(--ink); }
.side a.active, .side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.side a.active .lucide, .side a[aria-current="page"] .lucide { color: var(--accent-text); }
.side .pied {
  margin-top: auto;
  position: sticky;
  bottom: -12px;
  background: var(--surface);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--t-sm);
}
.personne {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--duree);
}
.personne:hover, .personne[aria-expanded="true"] { background: var(--surface-2); }
.personne-chevron { margin-left: auto; color: var(--ink-3); }
.menu-compte {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 4px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  animation: apparaitre 0.12s ease-out;
}
.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--t-sm);
  font-weight: 700;
}
.personne-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.personne-texte .nom { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personne-texte .discret { font-size: var(--t-xs); }
.shell > main {
  padding: 32px 40px 64px;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
@media (min-width: 768px) and (max-width: 1099px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .side { padding: 16px 10px 10px; align-items: center; gap: var(--s3); }
  .side > .marque { padding: 0 0 4px; }
  .side .marque-nom, .side .side-libelle, .side-titre, .personne-texte {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .side-groupe + .side-groupe { border-top: 1px solid var(--line); padding-top: var(--s3); }
  .side a, .side-bouton { justify-content: center; width: 48px; min-height: 44px; padding: 10px; }
  .side .pied { align-items: center; bottom: -10px; }
  .personne { justify-content: center; width: 48px; padding: 6px; }
  .personne-chevron { display: none; }
  .menu-compte { position: fixed; left: 84px; right: auto; bottom: 12px; width: 260px; }
  .side .menu-compte .side-libelle { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .side .menu-compte .side-bouton { justify-content: flex-start; width: 100%; padding: 8px 12px; }
  .shell > main { padding: 24px 28px 48px; }
}
@media (max-width: 767px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .shell-barre {
    display: flex;
    align-items: center;
    gap: 4px;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: max(6px, env(safe-area-inset-top)) 12px 6px 6px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .shell-barre .btn { width: var(--tap); padding: 0; }
  .shell-barre .marque-logo { width: 28px; height: 28px; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(300px, 86vw);
    height: 100dvh;
    border-right: 0;
    box-shadow: var(--shadow-3);
    transform: translateX(-100%);
    visibility: hidden; 
    transition: transform 0.22s ease, visibility 0.22s;
  }
  .side[data-ouvert="true"] { transform: none; visibility: visible; }
  .side a, .side-bouton { min-height: var(--tap); }
  .voile { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(14 17 32 / 0.45); }
  .shell > main { padding: 16px 16px 48px; }
  .shell .collant { top: 68px; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
@media (max-width: 767px) { .card { padding: var(--s4); } }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--tap);
  padding: var(--s2) 0;
}
.row + .row { border-top: 1px solid var(--line); }
.k {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.big { font-size: var(--t-2xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill .lucide { width: 14px; height: 14px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: var(--shadow);
  transition: background var(--duree), border-color var(--duree), color var(--duree), box-shadow var(--duree);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.ghost.danger { color: var(--danger); }
.btn.ghost.danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: var(--t-sm); border-radius: var(--r-xs); }
.btn.block { width: 100%; }
.btn:disabled, .btn:disabled:hover { opacity: 0.5; cursor: not-allowed; transform: none; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s3);
}
.tiles > * {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}
.bar-warn, .bar-ok {
  position: relative;
  padding: 12px 16px 12px 44px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.bar-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.bar-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.bar-icone { position: absolute; left: 16px; top: 13px; width: 18px; height: 18px; }
.note {
  font-size: var(--t-sm);
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s4);
}
.lucide { flex: none; width: 1.15em; height: 1.15em; }
.btn .lucide { width: 18px; height: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > span:first-child, .champ > label:first-child {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.champ input, .champ select, .champ textarea,
.filters input, .filters select {
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--duree), box-shadow var(--duree);
}
.champ textarea { line-height: 1.5; resize: vertical; }
.champ select, .filters select {
  appearance: none;
  padding-right: 40px;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
.champ input::placeholder, .champ textarea::placeholder, .filters input::placeholder { color: var(--ink-3); }
.champ input:hover, .champ select:hover, .champ textarea:hover,
.filters input:hover, .filters select:hover { border-color: var(--ink-3); }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible,
.filters input:focus-visible, .filters select:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--halo); }
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--danger); }
.champ input:disabled, .champ select:disabled, .champ textarea:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
a.row { color: inherit; text-decoration: none; }
.pli + .pli { border-top: 1px solid var(--line); }
.choix {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--duree), background var(--duree);
}
.choix:hover { border-color: var(--ink-3); }
.choix:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choix:has(input:focus-visible) { box-shadow: var(--halo); }
.choix input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.choix .suite { margin-left: auto; }
.choix.inactif { opacity: 0.55; cursor: not-allowed; }
.interrupteur {
  appearance: none;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.interrupteur::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.interrupteur:checked { background: var(--accent); }
.interrupteur:checked::after { transform: translateX(18px); }
.interrupteur:disabled { opacity: 0.5; cursor: wait; }
.table-defile { overflow-x: auto; margin: 0 calc(-1 * var(--s5)); padding: 0 var(--s5); }
@media (max-width: 767px) { .table-defile { margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4); } }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th {
  text-align: left;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--duree); }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a:hover { color: var(--accent-text); text-decoration: underline; }
.filters input, .filters select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.filters select, .champ select, select.btn { max-width: 100%; }
select.btn { min-width: 0; } 
select.btn {
  appearance: none;
  padding-right: 40px;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  text-overflow: ellipsis;
}
.filters input[type="search"] { min-width: 240px; flex: 1 1 240px; max-width: 360px; }
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duree), border-color var(--duree), color var(--duree);
}
.puce:hover { border-color: var(--ink-3); color: var(--ink); }
.puce[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.jauge { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.jauge > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.erreur { color: var(--danger); font-size: var(--t-sm); }
.discret { color: var(--ink-3); font-size: var(--t-sm); }
.pile { display: flex; flex-direction: column; gap: var(--s3); }
.m0 { margin: 0; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt1 { margin-top: var(--s1); }
.mt2 { margin-top: var(--s2); }
.mt4 { margin-top: var(--s4); }
.pile.serre { gap: var(--s1); }
.pile.aere { gap: var(--s5); }
.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.ligne.haut { align-items: flex-start; }
.pousse { margin-left: auto; }
.nowrap { white-space: nowrap; }
.a-droite { text-align: right; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s4); }
.filet-haut { border-top: 1px solid var(--line); padding-top: var(--s3); }
.mb1 { margin-bottom: var(--s1); }
.mb2 { margin-bottom: var(--s2); }
.my1 { margin-top: var(--s1); margin-bottom: var(--s1); }
.bloc { display: block; }
.haut { align-items: flex-start; }
.centre { text-align: center; }
.gras { font-weight: 600; }
.pre-ligne { white-space: pre-line; }
.compacte { min-height: 0; }
.sans-retour { flex-wrap: nowrap; }
.sans-cadre { border: 0; padding: 0; margin: 0; min-width: 0; }
.sans-cadre > legend { padding: 0; margin-bottom: var(--s2); }
.bar-ok.texte-courant, .bar-warn.texte-courant { letter-spacing: 0; font-weight: 500; }
label.row { cursor: pointer; }
.pointeur { cursor: pointer; }
.row.enveloppe { flex-wrap: wrap; row-gap: var(--s1); }
.grille-2, .grille-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s3); }
.toute-largeur { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .grille-2, .grille-3 { grid-template-columns: minmax(0, 1fr); }
}
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.vedette {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%);
}
.infos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.infos li {
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.infos li > .lucide { color: var(--accent-text); width: 18px; height: 18px; }
.infos li > :last-child { text-align: right; }
.k.ligne { display: flex; gap: 6px; }
.k .lucide { width: 14px; height: 14px; }
.etiquettes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.etiquettes li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--highlight-soft);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 500;
}
.row.lien { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); transition: background var(--duree); }
.row.lien + .row.lien { border-top-color: var(--line); }
.row.lien:hover { background: var(--surface-2); }
.row.binome-absent { margin: 0 calc(-1 * var(--s3)); padding-left: var(--s3); padding-right: var(--s3); border-radius: var(--r-sm); background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn-line); }
.row.binome-absent .discret { color: var(--warn); }
.row.binome-absent + .row, .row + .row.binome-absent { border-top-color: transparent; }
.chevron { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.lien-icone { width: 20px; height: 20px; color: var(--accent-text); }
.lien-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row.lien .lien-icone { flex: none; }
.row.depliable {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.row.depliable .chevron { width: 14px; height: 14px; color: inherit; transition: transform var(--duree); }
.row.depliable[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.deplie { margin: 0 0 var(--s3); padding-left: var(--s3); border-left: 3px solid var(--accent-soft); }
.coordonnees { margin: 0; display: flex; flex-direction: column; }
.coordonnees > div { padding: 10px 0; border-top: 1px solid var(--line); }
.coordonnees dt { margin-bottom: 2px; }
.coordonnees dd { margin: 0; overflow-wrap: anywhere; }
.avatar.grand { width: 48px; height: 48px; font-size: var(--t-md); }
.personne-nom { font-size: var(--t-lg); }
.collant { position: sticky; top: 8px; z-index: 5; }
.appel-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); }
.appel-ligne .pill { white-space: normal; }
.appel-nom { font-weight: 600; }
.appel-choix { display: flex; gap: 6px; }
.appel-choix .btn { min-width: 84px; padding: 0 12px; box-shadow: none; }
.appel-choix .btn[aria-pressed="true"].present { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.appel-choix .btn[aria-pressed="true"].absent { background: var(--danger); border-color: var(--danger); color: var(--surface); }
@media (max-width: 430px) {
  .appel-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; }
  .appel-ligne > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .appel-choix { display: grid; grid-template-columns: 1fr 1fr; }
  .appel-choix .btn { min-width: 0; }
}
.tiles.compteurs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-connexion { max-width: 420px; margin: 0 auto; min-height: 100dvh; padding: 32px 16px; display: flex; flex-direction: column; justify-content: center; gap: var(--s4); }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chargement { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.chargement .barre {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 45%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: miroiter 1.4s ease-in-out infinite;
}
.chargement .barre:nth-child(2) { width: 90%; }
.chargement .barre:nth-child(3) { width: 72%; }
.chargement .barre:nth-child(4) { width: 55%; }
@keyframes miroiter { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.vide { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: 32px 16px; text-align: center; }
.vide-icone {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.vide-icone .lucide { width: 24px; height: 24px; }
.vide p { max-width: 44ch; }
.page-tete { display: flex; flex-direction: column; gap: var(--s2); }
.page-retour {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-left: -6px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.page-retour:hover { color: var(--accent-text); background: var(--surface-2); }
.page-tete-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.page-tete-titre { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.page-tete-actions { flex: none; }
.page-tete-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 640px) {
  .page-tete-actions { width: 100%; }
  .page-tete-actions > .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .table.empilable thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table.empilable, .table.empilable tbody, .table.empilable tr { display: block; }
  .table.empilable tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table.empilable tbody tr:last-child { border-bottom: 0; }
  .table.empilable tbody tr:hover { background: none; }
  .table.empilable td {
    display: flow-root;
    padding: 3px 0;
    border: 0;
    text-align: right;
    white-space: normal !important; 
  }
  .table.empilable td[data-label]::before {
    content: attr(data-label);
    float: left;
    margin-right: 12px;
    color: var(--ink-3);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 22px;
  }
  .table.empilable td:not([data-label]) { text-align: left; }
  .table.empilable td:first-child { text-align: left; font-size: var(--t-md); font-weight: 600; padding-bottom: 6px; }
  .table.empilable td:first-child::before { content: none; }
  .table.empilable td:empty { display: none; }
}
@media (max-width: 899px) {
  .table.cartes-tablette thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table.cartes-tablette, .table.cartes-tablette tbody, .table.cartes-tablette tr { display: block; }
  .table.cartes-tablette tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table.cartes-tablette tbody tr:last-child { border-bottom: 0; }
  .table.cartes-tablette tbody tr:hover { background: none; }
  .table.cartes-tablette td { display: flow-root; padding: 3px 0; border: 0; text-align: right; white-space: normal !important; }
  .table.cartes-tablette td[data-label]::before {
    content: attr(data-label);
    float: left;
    margin-right: 12px;
    color: var(--ink-3);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 22px;
  }
  .table.cartes-tablette td:not([data-label]) { text-align: left; }
  .table.cartes-tablette td:first-child { text-align: left; font-size: var(--t-md); font-weight: 600; padding-bottom: 6px; }
  .table.cartes-tablette td:first-child::before { content: none; }
  .table.cartes-tablette td:empty { display: none; }
}
.filtres-tete, .filtres-corps { display: contents; }
.filtres-bascule { display: none; }
.compteur {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 700;
}
.filtres-bascule .chevron { transition: transform var(--duree); }
.filtres-bascule[aria-expanded="true"] .chevron { transform: rotate(180deg); }
@media (max-width: 640px) {
  .filtres { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .filtres-tete { display: flex; gap: var(--s2); }
  .filtres-tete input[type="search"] { flex: 1; min-width: 0; max-width: none; }
  .filtres-bascule { display: inline-flex; flex: none; min-height: 40px; padding: 0 12px; }
  .filtres-corps { display: none; }
  .filtres-corps[data-ouverts="true"] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    padding: var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
  }
  .filtres-corps select { flex: 1 1 100%; }
}
.dialogue {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-3);
}
.dialogue[open] { animation: apparaitre 0.18s ease-out; }
.dialogue::backdrop { background: rgb(14 17 32 / 0.5); }
.dialogue > form { padding: var(--s5); }
.dialogue p { color: var(--ink-2); }
.dialogue-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); margin-top: var(--s2); }
@media (max-width: 640px) {
  .dialogue { width: 100%; max-width: none; margin: auto 0 0; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
  .dialogue > form { padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom)); }
  .dialogue-actions { flex-direction: column-reverse; }
  .dialogue-actions .btn { width: 100%; }
}
@keyframes apparaitre { from { opacity: 0; transform: translateY(8px); } }
.btn.danger.plein { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn.danger.plein:hover { background: color-mix(in srgb, var(--danger) 88%, var(--ink)); }
.annonces {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  pointer-events: none;
}
body:has(.tabbar) .annonces { bottom: calc(96px + env(safe-area-inset-bottom)); }
.annonce {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-3);
  font-size: var(--t-sm);
  font-weight: 500;
  animation: apparaitre 0.18s ease-out;
}
.annonce > span { flex: 1; }
.annonce .btn.ghost { min-height: 32px; padding: 0 8px; color: inherit; }
.annonce .btn.ghost:hover { background: color-mix(in srgb, var(--bg) 15%, transparent); }
.annonce.erreur { background: var(--danger); color: var(--surface); }
.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site-tete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.site-tete > div {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 68px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-tete .marque { margin-right: 20px; }
.site-nav { display: flex; gap: 2px; margin-right: auto; }
.site-nav a {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--duree), color var(--duree);
}
.site-nav a .lucide { width: 18px; height: 18px; color: var(--ink-3); }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.site-nav a[aria-current="page"] .lucide { color: var(--accent-text); }
.site-theme { width: 40px; min-height: 40px; padding: 0; }
.site-tete .compte, .site-candidater { flex: none; min-height: 40px; padding: 0 16px; }
.site-candidater { border-radius: 999px; }
.site-candidater[aria-current="page"] { box-shadow: 0 0 0 3px var(--accent-soft); }
.site-onglets { display: none; }
@media (max-width: 900px) {
  .site-tete > div { padding: 8px 16px; }
  .site-tete .marque { margin-right: 4px; }
  .site-theme { display: none; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .site-nav a .lucide { display: none; }
  .site-tete .compte { width: 40px; padding: 0; }
  .compte-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 760px) {
  .site-tete > div { min-height: 56px; padding: 6px 8px 6px 12px; gap: 4px; }
  .site-tete .marque { gap: 8px; font-size: 15px; margin-right: auto; min-width: 0; }
  .site-tete .marque-nom { overflow: hidden; text-overflow: ellipsis; }
  .site-tete .marque-logo { width: 30px; height: 30px; }
  .site-tete .compte { min-height: 40px; padding: 0 10px; gap: 6px; font-size: var(--t-sm); }
  .site-nav, .site-candidater { display: none; }
  .site-onglets { display: flex; }
  .site-onglets a { max-width: none; padding: 0 2px; text-align: center; line-height: 1.15; }
  .site { padding-bottom: calc(var(--tap) + 20px + env(safe-area-inset-bottom)); }
}
.site > main {
  flex: 1;
  width: 100%;
  padding: 0 0 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.site > main > *, .bandeau-dedans { width: min(1120px, 100% - 48px); margin-inline: auto; }
.site > main > .bandeau { width: 100%; }
.site > main > :first-child:not(.bandeau) { margin-top: 40px; }
@media (max-width: 900px) { .site > main { gap: 40px; padding-bottom: 56px; } }
@media (max-width: 680px) {
  .site > main { gap: 32px; padding-bottom: 40px; }
  .site > main > *, .bandeau-dedans { width: calc(100% - 32px); }
  .site > main > :first-child:not(.bandeau) { margin-top: 16px; }
}
.bandeau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 75% at 100% 0%, color-mix(in srgb, var(--highlight) 16%, transparent), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, var(--accent-soft), var(--bg));
}
.bandeau::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 90% at 70% 0%, #000, transparent 75%);
  opacity: 0.55;
}
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.surtitre::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 25%, transparent);
}
.tete-page .bandeau-dedans { padding: 48px 0 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tete-page-titre { margin: 4px 0 0; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.reperes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.repere {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.repere .lucide { flex: none; width: 16px; height: 16px; color: var(--accent-text); }
@media (max-width: 680px) {
  .tete-page .bandeau-dedans { padding: 28px 0 24px; gap: 10px; }
}
.site-pied {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.site-pied-haut, .site-pied-bas { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-pied-haut {
  padding-top: 40px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: start;
}
.site-pied-marque { display: flex; flex-direction: column; gap: var(--s2); }
.site-pied-marque .marque { margin-bottom: 4px; }
.site-pied-marque p { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.site-pied-marque p svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.site-pied-liens { display: flex; flex-wrap: wrap; gap: 24px 72px; }
.site-pied-liens h2 { margin: 0 0 var(--s1); }
.site-pied-liens ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-pied-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-pied-liens a:hover { color: var(--accent-text); text-decoration: underline; }
.site-pied-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.site-pied-bas .btn { color: var(--ink-2); white-space: nowrap; flex: none; }
@media (max-width: 680px) {
  .site-pied-haut { grid-template-columns: minmax(0, 1fr); padding: 28px 16px 20px; }
  .site-pied-bas { padding-left: 16px; padding-right: 16px; }
}
.chapo { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 680px) { .chapo { font-size: 17px; } }
.titre-section { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.btn.grand { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; }
.btn.primary.grand { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.lien-fleche { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.lien-fleche .lucide { width: 16px; height: 16px; transition: transform var(--duree); }
.lien-fleche:hover { text-decoration: underline; }
.lien-fleche:hover .lucide { transform: translateX(2px); }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; }
.etapes > li {
  counter-increment: etape;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 20px;
}
.etapes > li:last-child { padding-bottom: 0; }
.etapes > li::before {
  content: counter(etape);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.etapes > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 52px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
.etapes > li > div { padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 901px) {
  .etapes.en-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .etapes.en-ligne > li { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0; }
  .etapes.en-ligne > li:not(:last-child)::after { left: 60px; right: -16px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .etapes.en-ligne > li > div { padding-top: 0; }
  .etapes.en-ligne strong { font-size: var(--t-lg); }
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.accueil-tete .bandeau-dedans { padding: 72px 0 80px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  align-items: center;
  gap: 56px;
}
.hero-texte { display: flex; flex-direction: column; min-width: 0; }
.accroche {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 22px 0 20px;
  max-width: 16ch;
  text-wrap: balance;
}
.surligne {
  background: linear-gradient(transparent 62%, var(--surligne) 62%, var(--surligne) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-actions { margin-top: 32px; gap: 12px; }
.hero-texte > *, .en-bref { animation: monter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-texte > :nth-child(2) { animation-delay: 0.06s; }
.hero-texte > :nth-child(3) { animation-delay: 0.12s; }
.hero-texte > :nth-child(4) { animation-delay: 0.18s; }
.en-bref { animation-delay: 0.2s; }
@keyframes monter { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .hero-texte > *, .en-bref { animation: none; } }
@media (max-width: 900px) {
  .accueil-tete .bandeau-dedans { padding: 48px 0 48px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 680px) {
  .accueil-tete .bandeau-dedans { padding: 28px 0 32px; }
  .hero { gap: 28px; }
  .accroche { margin: 16px 0 14px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
.en-bref {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-3);
}
.prochain {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
}
.prochain-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prochain-texte strong { font-size: var(--t-lg); line-height: 1.3; }
.feuille {
  flex: none;
  width: 64px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.feuille-mois {
  padding: 3px 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feuille-jour { padding: 8px 0 10px; font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.feuille.vide { height: 64px; display: grid; place-items: center; color: var(--accent-text); }
.feuille.vide .lucide { width: 26px; height: 26px; }
.faits { margin: 0; display: flex; flex-direction: column; }
.fait {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: var(--s3);
  padding: 10px 0;
}
.fait + .fait { border-top: 1px solid var(--line); }
.fait:last-child { padding-bottom: 0; }
.fait-icone {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-text);
}
.fait-icone .lucide { width: 18px; height: 18px; }
.fait dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fait dd { margin: 0; font-weight: 600; }
@media (max-width: 680px) {
  .en-bref { padding: 16px; border-radius: 16px; box-shadow: var(--shadow-2); }
}
.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atout {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.atout h2 { margin: 8px 0 0; }
.atout p { color: var(--ink-2); }
.atout-icone {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.atout-icone .lucide { width: 24px; height: 24px; }
.ton-indigo .atout-icone { background: var(--accent-soft); color: var(--accent-text); }
.ton-ambre .atout-icone { background: var(--highlight-soft); color: var(--warn); }
.ton-vert .atout-icone { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 900px) {
  .atouts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .atout { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px var(--s4); padding: 20px; }
  .atout-icone { grid-row: span 2; }
  .atout h2 { margin: 0; }
}
@media (max-width: 680px) {
  .atout { grid-template-columns: 44px minmax(0, 1fr); gap: 2px var(--s3); padding: 16px; }
  .atout-icone { width: 44px; height: 44px; }
}
.appel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  padding: 44px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--appel-1), var(--appel-2));
  color: var(--appel-texte);
  font-size: var(--t-lg);
}
.appel::before, .appel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--appel-texte) 20%, transparent);
}
.appel::before { width: 340px; height: 340px; right: -90px; top: -190px; }
.appel::after { width: 240px; height: 240px; right: 160px; bottom: -170px; background: color-mix(in srgb, var(--appel-texte) 6%, transparent); }
.appel h2 { color: inherit; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.appel p { color: var(--appel-texte-2); }
.appel .btn.primary { background: var(--appel-btn); border-color: var(--appel-btn); color: var(--appel-btn-texte); box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.45); }
.appel .btn.primary:hover { background: var(--appel-btn-survol); border-color: var(--appel-btn-survol); }
.appel :focus-visible { outline-color: var(--appel-texte); }
@media (max-width: 680px) {
  .appel { padding: 24px 20px; border-radius: 20px; font-size: var(--t-md); }
  .appel .btn { flex: 1 1 100%; }
}
.redaction { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); align-items: start; }
.aparte { position: sticky; top: 84px; }
.shell .aparte { top: 16px; }
@media (max-width: 960px) {
  .redaction { grid-template-columns: minmax(0, 1fr); }
  .aparte { position: static; } 
}
.tarif {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
}
.tarif-prix {
  justify-content: center;
  padding: 36px;
  background:
    radial-gradient(80% 90% at 0% 0%, color-mix(in srgb, var(--highlight) 14%, transparent), transparent 70%),
    var(--accent-soft);
}
.tarif-montant { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--accent-text); text-wrap: balance; }
.tarif-blocs { margin-top: var(--s2); }
.tarif-blocs .row { min-height: 40px; font-size: var(--t-sm); }
.tarif-blocs .row + .row { border-top-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.tarif-suite { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: var(--s5); }
.tarif .coches { font-size: var(--t-md); gap: var(--s3); }
.tarif .coches .lucide { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 0; border-radius: 50%; background: var(--ok-bg); }
.tarif-action { align-self: flex-start; }
@media (max-width: 900px) {
  .tarif { grid-template-columns: minmax(0, 1fr); }
  .tarif-prix, .tarif-suite { padding: 24px; }
}
@media (max-width: 680px) {
  .tarif-prix, .tarif-suite { padding: 20px; }
  .tarif-action { align-self: stretch; }
}
.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: var(--t-sm); color: var(--ink-2); }
.coches li { display: flex; gap: var(--s2); align-items: flex-start; }
.coches .lucide { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }
.niveaux {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.niveau-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.niveau-carte::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--highlight)); }
.niveau-carte h3 { font-size: var(--t-lg); }
.niveau-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.parcours-numero {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.paliers { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.paliers > span { width: 6px; height: 20px; border-radius: 2px; background: var(--line); }
.paliers > span:nth-child(1) { height: 8px; }
.paliers > span:nth-child(2) { height: 12px; }
.paliers > span:nth-child(3) { height: 16px; }
.paliers > span.pleine { background: var(--accent); }
@media (max-width: 680px) { .niveau-carte { padding: 18px; gap: var(--s3); } }
.page-tete-titre .ligne .lucide { color: var(--ink-3); }
.bloc-public { display: flex; flex-direction: column; gap: var(--s5); padding: 28px; border-radius: 20px; }
.bloc-public.en-cours { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); }
.bloc-public-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s3) var(--s5); }
.bloc-public-tete > :first-child { flex: 1 1 320px; min-width: 0; }
.bloc-public-tete h2 { font-size: var(--t-xl); letter-spacing: -0.02em; }
.bloc-public-prix {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
}
.bloc-public-prix strong { font-size: var(--t-xl); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-text); letter-spacing: -0.02em; }
.bloc-public-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.pastille-vive { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: battre 2s ease-out infinite; }
@keyframes battre {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 6px transparent; }
}
@media (max-width: 900px) {
  .bloc-public-corps { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}
@media (max-width: 680px) {
  .bloc-public { gap: var(--s4); padding: 18px; border-radius: 16px; }
  .bloc-public-prix { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
}
.mois-liste { display: flex; flex-direction: column; gap: var(--s4); }
.mois { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.mois-nom { padding-top: 12px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.puces-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puces-dates li {
  position: relative;
  min-width: 54px;
  padding: 6px 8px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  line-height: 1.15;
  text-align: center;
}
.puce-jour { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.puce-numero { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.puces-dates li.passee { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.puces-dates li.passee .puce-numero { font-weight: 500; text-decoration: line-through; }
.puces-dates li.horaire-propre { box-shadow: inset 0 0 0 1.5px var(--accent); }
.puces-dates li.horaire-propre::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 2px var(--surface);
}
.horaires-publics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-sm); color: var(--ink-2); }
.horaires-publics li { display: flex; align-items: center; gap: var(--s2); }
.horaires-publics .lucide { flex: none; width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 340px) {
  .mois { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mois-nom { padding-top: 0; }
}
.groupes-niveaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s3); }
.groupe-niveau { padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.groupe-niveau > strong { display: flex; align-items: center; gap: 8px; }
.groupe-niveau > strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.groupe-niveau .row { min-height: 40px; font-size: var(--t-sm); }
.candidature { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s5); align-items: start; }
.candidature-aparte { position: sticky; top: 92px; }
.formulaire-candidature { padding: 32px; border-radius: 20px; box-shadow: var(--shadow-2); }
@media (max-width: 900px) {
  .candidature { grid-template-columns: minmax(0, 1fr); }
  .candidature-aparte { position: static; }
}
@media (max-width: 680px) { .formulaire-candidature { padding: 20px; border-radius: 16px; } }
.succes { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: 40px 24px; text-align: center; }
.succes-icone {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  color: var(--ok);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok-bg) 45%, transparent);
  animation: apparaitre 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.succes-icone .lucide { width: 36px; height: 36px; }
.succes-titre { font-weight: 700; letter-spacing: 0.06em; color: var(--ok); }
@keyframes apparaitre { from { opacity: 0; transform: scale(0.6); } }
.groupe-champs { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s3); }
.groupe-champs legend { padding: 0; margin-bottom: var(--s3); font-size: var(--t-md); font-weight: 650; color: var(--ink); }
.groupe-champs legend + p { margin-top: calc(-1 * var(--s2)); }
.note:has(.note-icone) { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s2); }
.note-icone { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); }
.colonne-lecture { width: 100%; max-width: 720px; margin: 0 auto; }
@media (max-width: 680px) {
  .envoi .btn { width: 100%; }
}
.etape { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.etape-numero {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
}
.etape-numero.faite { background: var(--ok-bg); color: var(--ok); }
.etape-numero.alerte { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.etape-numero .lucide { width: 20px; height: 20px; }
.etape-corps { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.etape-corps > h2 { margin: 6px 0 0; }
.puce-date { display: inline-flex; align-items: center; background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
span.puce-date { cursor: default; }
.puce-date.barree { background: var(--surface-2); border-color: var(--line); color: var(--ink-3); text-decoration: line-through; }
.puce-date:disabled { opacity: 0.6; cursor: wait; }
.puce-date .puce-horaire { width: 13px; height: 13px; margin-right: -4px; }
.section-horaires .etape-numero .lucide { width: 18px; height: 18px; }
.horaire-habituel { padding: 0; align-items: flex-start; }
.horaire-valeur { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; }
.horaires-bloc { gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.horaires-bloc > .row { padding: 0; align-items: center; }
.liste-horaires { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-sm); }
.liste-horaires li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
.saisie-horaires > li { align-items: center; }
.saisie-horaires .champ { width: 11rem; max-width: 45vw; }
.saisie-horaires .champ input { width: 100%; }
.nouveau-bloc { max-width: 760px; }
.nouveau-bloc > section + section { border-top: 1px solid var(--line); padding-top: 16px; }
.nouveau-bloc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.panneau .nouveau-bloc-grille { grid-template-columns: minmax(0, 1fr); }
.apercu-bloc { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.horaire-nouveau-bloc { flex-wrap: nowrap; align-items: flex-start; font-size: var(--t-sm); }
.horaire-nouveau-bloc > .lucide { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ink-3); }
.bar-warn .manques { margin: 0; padding: 0; list-style: none; font-weight: 500; letter-spacing: 0; display: grid; gap: 6px; }
.manques li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.manques .btn { min-height: 32px; padding: 0 12px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.panneau {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.panneau[open] { display: flex; flex-direction: column; animation: glisser 0.2s ease-out; }
.panneau::backdrop { background: rgb(14 17 32 / 0.5); }
.panneau-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s3) var(--s3) var(--s5);
  border-bottom: 1px solid var(--line);
}
.panneau-titre { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 8px; }
.panneau-titre h2 { overflow-wrap: anywhere; }
.panneau-tete .btn { flex: none; width: var(--tap); padding: 0; }
.panneau-corps {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.panneau-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s2) var(--s3);
  padding: var(--s3) var(--s5) calc(var(--s3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.panneau-pied > p { flex: 1 1 220px; }
body:has(.panneau[open]) { overflow: hidden; }
@keyframes glisser { from { opacity: 0; transform: translateX(24px); } }
@media (max-width: 640px) {
  .panneau {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    max-height: 92dvh;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: var(--r) var(--r) 0 0;
  }
  .panneau[open] { animation: apparaitre 0.18s ease-out; }
  .panneau-tete { padding-left: var(--s4); }
  .panneau-corps { padding: var(--s4); }
  .panneau-pied { padding-left: var(--s4); padding-right: var(--s4); }
  .panneau-pied .btn { flex: 1 1 100%; }
}
.shell .etape, .shell .composeur-partie { scroll-margin-top: 16px; }
@media (max-width: 767px) { .shell .etape, .shell .composeur-partie { scroll-margin-top: 76px; } }
.card.composeur { padding: 0; }
.composeur-partie { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); min-width: 0; }
.composeur-partie + .composeur-partie { border-top: 1px solid var(--line); }
@media (max-width: 767px) { .composeur-partie { padding: var(--s4); } }
.titre-etape { display: flex; align-items: center; gap: 10px; }
.titre-etape .etape-numero { width: 28px; height: 28px; font-size: var(--t-sm); }
.titre-etape .etape-numero .lucide { width: 16px; height: 16px; }
.criteres { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: var(--s4); align-items: start; }
.critere-nom { padding-top: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.critere-tous { font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 640px) {
  .criteres { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .critere-nom { padding-top: 0; }
  .criteres > .critere-nom:not(:first-child) { margin-top: var(--s2); }
}
.note.avis { display: flex; align-items: flex-start; gap: var(--s3); }
.note.avis > .lucide { margin-top: 3px; color: var(--ink-3); }
.note.avis > p { flex: 1; min-width: 0; }
.note.avis > .btn { margin: -6px -8px -6px 0; }
.puce.puce-retirable { cursor: default; padding: 3px 4px 3px 14px; border-radius: 18px; background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.puce-retirable > button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.puce-retirable > button:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.puce-retirable .lucide { width: 16px; height: 16px; }
.segments { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-2); }
.segments > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duree), color var(--duree);
}
.segments > button:hover { color: var(--ink); }
.segments > button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.segments .lucide { width: 16px; height: 16px; }
.composeur .courriel { min-height: calc(8 * 1.5em + 22px); }
.choix-groupes legend { margin-bottom: var(--s2); }
.choix-groupes .filters input[type="search"] { max-width: none; }
.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 6px var(--s2);
}
.case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--tap);
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--duree), border-color var(--duree);
}
.case:hover { border-color: var(--ink-3); }
.case:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.case input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.case-texte { display: flex; flex-direction: column; min-width: 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.case-texte .discret { font-weight: 400; }
.champ-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 24px; }
.champ-tete > label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.compte-car { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.compte-car.proche { color: var(--warn); font-weight: 600; }
.champ textarea.grandit { field-sizing: content; min-height: calc(8 * 1.5em + 22px); max-height: 70vh; }
.courriel { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.courriel-tete {
  margin: 0;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.courriel-tete > div { display: flex; gap: 6px; min-width: 0; }
.courriel-tete dt { flex: none; color: var(--ink-3); }
.courriel-tete dd { margin: 0; min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.courriel-corps { padding: 14px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow-y: auto; }
.panneau .courriel-corps { max-height: none; }
.en-calcul { color: var(--ink-3); }
.non-inclus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.non-inclus li {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr);
  gap: var(--s2);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.non-inclus .discret { font-weight: 400; }
.non-inclus-nombre { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.etape.aparte { row-gap: var(--s3); }
.etape.aparte > .etape-corps { display: contents; }
.etape.aparte > .etape-corps > * { grid-column: 1 / -1; }
.etape.aparte > .etape-corps > h2 { grid-column: 2; align-self: center; margin: 0; }
@media (min-width: 961px) {
  .shell .etape.aparte { max-height: calc(100dvh - 32px); overflow-y: auto; }
}
.noms { list-style: none; margin: 0; padding: 0; columns: 2 200px; column-gap: var(--s5); }
.noms li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: var(--t-sm); }
.resultats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.resultats li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.resultat-ligne { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.resultat-ligne > :first-child { min-width: 0; overflow-wrap: anywhere; }
.lien-bouton {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  overflow-wrap: break-word; 
  cursor: pointer;
}
.lien-bouton:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.table tbody tr.nouvelle, .table tbody tr.nouvelle:hover { background: var(--accent-soft); }
.table .col-sujet { min-width: 12em; }
.pastilles { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
@media (max-width: 899px) {
  .table.cartes-tablette tr.nouvelle, .table.cartes-tablette tr.nouvelle:hover { background: var(--accent-soft); }
  .table.cartes-tablette tr.nouvelle { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r-sm); }
}
.barre-envoi { display: none; }
@media (max-width: 767px) {
  .barre-envoi {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .barre-envoi-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
  .barre-envoi .btn { flex: none; gap: 6px; padding: 0 14px; white-space: nowrap; }
  .shell > main:has(.barre-envoi) { padding-bottom: calc(var(--tap) + 64px + env(safe-area-inset-bottom)); }
  body:has(.barre-envoi) .annonces { bottom: calc(var(--tap) + 32px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .barre-envoi { padding-left: 12px; padding-right: 12px; }
  .barre-envoi-suite { display: none; }
}
.niveau-tete { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.niveau-tete > .pile { min-width: 0; }
@media (max-width: 640px) {
  .niveau-tete { grid-template-columns: 36px minmax(0, 1fr); }
  .niveau-tete > .actions-niveau { grid-column: 1 / -1; }
}
.liste-acquis { list-style: none; margin: 0; padding: 0; }
.liste-acquis > li + li { border-top: 1px solid var(--line); }
.liste-acquis > li.pile { padding: var(--s2) 0; }
.liste-acquis .row > div:first-child { min-width: 0; }
@media (max-width: 640px) {
  .liste-acquis .row { flex-wrap: wrap; row-gap: 0; }
  .liste-acquis .row > div:first-child { flex: 1 1 100%; }
  .liste-acquis .row > .ligne { margin-left: auto; }
}
@media (max-width: 640px) {
  .entete-groupe { flex-wrap: wrap; row-gap: var(--s2); }
  .entete-groupe > div:first-child, .entete-groupe > .ligne { flex: 1 1 100%; }
  .entete-groupe > .ligne > .btn { flex: 1 1 auto; justify-content: center; }
}
.filters .champ-large { flex: 1 1 260px; min-width: 0; }
.filters .champ-code { width: 120px; }
.liste-lignes { list-style: none; margin: 0; padding: 0; }
.liste-lignes > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s2) var(--s3);
  padding: var(--s4) 0;
}
.liste-lignes > li:has(> .avatar) { grid-template-columns: auto minmax(0, 1fr) auto; }
.liste-lignes > li + li { border-top: 1px solid var(--line); }
.liste-lignes > li:first-child { padding-top: var(--s2); }
.liste-lignes > li:last-child { padding-bottom: 0; }
.liste-lignes > li.inactif > :not(.ligne-actions) { opacity: 0.6; }
.liste-lignes > li.en-cours { margin: 0 calc(-1 * var(--s3)); padding-left: var(--s3); padding-right: var(--s3); border-radius: var(--r-sm); background: var(--warn-bg); }
.liste-lignes > li > .toute-largeur { grid-column: 1 / -1; }
.ligne-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ligne-corps > .ligne { gap: 6px var(--s2); }
.ligne-corps > .filters { margin-top: var(--s2); }
.ligne-corps > .filters select { flex: 1 1 260px; min-width: 0; max-width: 100%; }
.ligne-montant { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px var(--s3);
  margin: 4px 0 0;
  font-size: var(--t-sm);
}
.details dt { color: var(--ink-3); font-weight: 600; }
.details dd { margin: 0; min-width: 0; }
.puces-petites { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.puces-petites li {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 20px;
}
.ligne-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: var(--s2); }
@media (max-width: 1279px) {
  .ligne-actions { flex-direction: column; align-items: flex-end; gap: var(--s1); }
}
.puce-case { cursor: pointer; }
.puce-case:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.puce-case input { margin: 0; accent-color: var(--accent); }
@media (max-width: 640px) {
  .liste-lignes > li { grid-template-columns: minmax(0, 1fr); }
  .liste-lignes > li:has(> .avatar) { grid-template-columns: auto minmax(0, 1fr); }
  .ligne-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .liste-lignes > li:has(> .ligne-montant) { grid-template-columns: minmax(0, 1fr) auto; }
}
.grille-groupe { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(6rem, 0.6fr); gap: var(--s3); }
.grille-groupe > .double { grid-column: span 2; }
.grille-groupe.tarif-large { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) minmax(6rem, 0.6fr); }
.grille-groupe .champ input, .grille-groupe .champ select { width: 100%; }
.card { overflow-wrap: break-word; }
.row > .a-droite { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .row:has(> .btn, > .pill, > .ligne) { flex-wrap: wrap; row-gap: var(--s2); }
  .pill { white-space: normal; max-width: 100%; border-radius: 12px; }
  .table .pill { white-space: nowrap; }
  .filters > input:not([type="number"], [type="checkbox"], [type="radio"]), .filters > select {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
  .etape { row-gap: var(--s3); }
  .etape > .etape-corps { display: contents; }
  .etape > .etape-corps > * { grid-column: 1 / -1; min-width: 0; }
  .etape > .etape-corps > h2 { grid-column: 2; align-self: center; margin: 0; }
  .grille-groupe, .grille-groupe.tarif-large { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .grille-groupe > .entier, .grille-groupe > .double { grid-column: 1 / -1; }
  .action-pleine > .btn { width: 100%; }
}
.texte-saisi { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-texte { margin: 0 0 var(--s2); color: var(--ink-2); }
.support-audio { display: block; width: 100%; margin: 0 0 var(--s2); }
.tiles > a.tuile-lien { color: inherit; text-decoration: none; transition: border-color var(--duree); }
.tiles > a.tuile-lien:hover { border-color: var(--ink-3); }
.tiles > a.tuile-lien:focus-visible { outline: none; box-shadow: var(--halo); }
.eval-apprenant { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.eval-apprenant > :first-child { flex: 1 1 12rem; min-width: 0; }
.eval-apprenant > .btn .chevron { width: 14px; height: 14px; color: inherit; transition: transform var(--duree); }
.eval-apprenant > .btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.zone-depot { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 72px; padding: var(--s3) var(--s4); border: 2px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--ink-3); font-size: var(--t-sm); text-align: center; transition: background var(--duree), border-color var(--duree), color var(--duree); }
.zone-depot[data-survol="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 767px), (hover: none) { .zone-depot { display: none; } }
.zone-depot > * { pointer-events: none; }
