/*
 * oddy.fr — espace CSE, comptes et back-office.
 * Chargée APRÈS oddy.css (charte de référence) : mêmes variables, mêmes composants (.btn, .chip, .tile,
 * .card…). Aucune nouvelle couleur d'interface ; seule la palette des documents des CSE (.sw-*) est ajoutée.
 * Aucun style n'est écrit dans les pages (politique de sécurité stricte).
 */

/* ---------- Bases ---------- */

/* Classe de page « appli » (et non « app » : .app est la tuile d'outil de oddy.css) */
body.appli, body.auth, body.compte { background: var(--soft); font-size: 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* oddy.css agrandit « .card .ic » (pastilles de la vitrine) : les icônes de l'espace gardent leur taille */
.card .ic { display: inline-block; width: 20px; height: 20px; border-radius: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
[hidden] { display: none !important; }

/* Titres dans les zones de travail : plus sobres que sur la vitrine */
.ws h1, .auth-card h1, .compte-main h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; font-weight: 800; }
.ws h2, .auth-card h2, .compte-main h2 { font-size: 1.1875rem; line-height: 1.3; font-weight: 800; }
.ws h3, .compte-main h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.ws p + p, .card p + p { margin-top: .6rem; }
.ws a:not(.btn):not(.nav-i):not(.tab), .auth-card a:not(.btn), .compte-main a:not(.btn) { color: var(--green-700); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Boutons (compléments) ---------- */

.btn-lg { padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--white); color: var(--coral-700); border-color: var(--coral-100); }
.btn-danger:hover { background: var(--coral-50); border-color: var(--coral-700); }
.btn-text { padding: .5rem .25rem; background: none; border: 0; color: var(--green-700); font: 600 .9375rem/1.3 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn .ic { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.actions-row .push { margin-left: auto; }

/* ---------- Structure de l'espace : colonne, barre du haut, zone de travail ---------- */

.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem .9rem;
  background: var(--white);
  border-right: 1px solid var(--line);
}
/* Zone qui défile (outils et second groupe) : barre fine, visible au survol de la colonne, sans changer la largeur ;
   un léger dégradé en haut ou en bas signale qu'il reste des entrées à faire défiler */
.side-defile {
  flex: 1;
  min-height: 0;
  margin: 0 -.9rem;
  padding: 0 calc(.9rem - 6px) 0 .9rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    linear-gradient(var(--white) 40%, rgba(255, 255, 255, 0)) left top / 200% 28px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), var(--white) 60%) left bottom / 200% 28px no-repeat local,
    linear-gradient(rgba(27, 31, 36, .08), rgba(27, 31, 36, 0)) left top / calc(100% - 8px) 12px no-repeat scroll,
    linear-gradient(rgba(27, 31, 36, 0), rgba(27, 31, 36, .08)) left bottom / calc(100% - 8px) 12px no-repeat scroll;
}
.side-defile::-webkit-scrollbar { width: 6px; }
.side-defile::-webkit-scrollbar-track { background: transparent; }
.side-defile::-webkit-scrollbar-thumb { border-radius: 6px; background: transparent; }
.side:hover .side-defile::-webkit-scrollbar-thumb, .side-defile:focus-within::-webkit-scrollbar-thumb { background: #D5DAE0; }
.side-defile::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
@supports not selector(::-webkit-scrollbar) {
  .side-defile { scrollbar-width: thin; scrollbar-color: transparent transparent; padding-right: .9rem; scrollbar-gutter: auto; }
  .side:hover .side-defile, .side-defile:focus-within { scrollbar-color: #D5DAE0 transparent; }
}
/* Écrans peu hauts : entrées un peu plus serrées, pour en montrer davantage sans défiler */
@media (max-height: 820px) {
  .side { gap: .75rem; padding-top: 1rem; padding-bottom: .9rem; }
  .side .nav-i { min-height: 38px; padding-top: .2rem; padding-bottom: .2rem; }
  .side .nav-ic { width: 28px; height: 28px; }
  .side .nav-ic .ic { width: 18px; height: 18px; }
  .side .side-foot { margin-top: .6rem; padding-top: .5rem; }
}
.side-logo { display: inline-block; padding: .25rem .5rem; }
.side-logo img { height: 30px; width: auto; }
.cse-cur {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  line-height: 1.3;
}
.cse-cur b { display: block; font-size: .9375rem; }
.cse-cur small { color: var(--ink-3); font-size: .8125rem; }
.cse-cur > .ic { color: var(--ink-3); }
details.cse-switch > summary { list-style: none; cursor: pointer; }
details.cse-switch > summary::-webkit-details-marker { display: none; }
details.cse-switch > summary .ic-chev { margin-left: auto; transition: rotate .2s ease; }
details.cse-switch[open] > summary .ic-chev { rotate: 180deg; }
.cse-list { margin: .4rem 0 0; padding: .35rem; list-style: none; border: 1px solid var(--line); border-radius: 12px; }
.cse-list a { display: block; padding: .55rem .6rem; border-radius: 8px; color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.cse-list a:hover { background: var(--soft); }

.side-nav { display: grid; gap: .15rem; }
.side-title { padding: .75rem .6rem .25rem; color: var(--ink-3); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav-i {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .4rem .6rem;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-i:hover { background: var(--soft); color: var(--ink); }
.nav-i[aria-current="page"] { background: var(--green-50); color: var(--green-700); }
.nav-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; }
.nav-i .soon {
  margin-left: auto;
  padding: .05rem .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-3);
  font-size: .6875rem;
  font-weight: 700;
}
/* Le second groupe suit les outils (pas de vide quand des outils sont masqués) ; seuls les liens légaux restent en bas */
.side-foot { display: grid; gap: .15rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }

/* Familles d'outils : vert = organisation, jaune = documents, corail = communication */
.f-g { background: var(--green-50); color: var(--green-700); }
.f-y { background: var(--yellow-50); color: var(--yellow-800); }
.f-c { background: var(--coral-50); color: var(--coral-700); }
.f-n { background: var(--soft); color: var(--ink-2); }

.main { display: flex; flex-direction: column; min-width: 0; }
.top { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .5rem clamp(1rem, 3vw, 2rem); }
.top .top-cse, .top .top-logo { display: none; }
.top .spacer { margin-left: auto; }
.ws { width: 100%; max-width: 1120px; margin: 0 auto; padding: .5rem clamp(1rem, 3vw, 2rem) 3rem; }

/* Cloche et menu du membre */
.bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink-2); text-decoration: none; }
.bell:hover { background: var(--white); color: var(--ink); }
.bell .ic { width: 22px; height: 22px; }
.bell .count {
  position: absolute;
  top: 5px;
  right: 4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral-700);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
}
details.menu { position: relative; }
details.menu > summary { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 12px; list-style: none; cursor: pointer; font-weight: 600; font-size: .9375rem; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { background: var(--white); }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .875rem;
  font-weight: 800;
  flex: none;
}
.avatar.lg { width: 44px; height: 44px; font-size: 1rem; }
/* Photo de profil à la place des initiales */
img.avatar.photo { display: block; object-fit: cover; background: var(--soft); }
/* Mon profil : aperçu de la photo et dépôt */
.pf-photo-in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 1.5rem; margin-top: .75rem; }
.avatar.pf-apercu { width: 96px; height: 96px; font-size: 2rem; border: 4px solid var(--white); box-shadow: var(--shadow); }
.pf-photo-txt { flex: 1 1 18rem; min-width: 0; display: grid; gap: .75rem; }
.pf-photo-txt p { margin: 0; }
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 250px;
  padding: .5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.menu-pop .who { padding: .5rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; line-height: 1.35; }
.menu-pop .who b { display: block; }
.menu-pop .who span { color: var(--ink-3); font-size: .8125rem; word-break: break-all; }
.menu-pop a, .menu-pop button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem .7rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: 500 .9375rem/1.3 var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--soft); }
.menu-pop form { margin: 0; }

/* Barre d'onglets sur téléphone */
.tabbar { display: none; }
@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
  .top .top-logo { display: block; flex: none; }
  .top .top-logo img { height: 26px; width: auto; }
  .top .top-cse { display: block; min-width: 0; overflow: hidden; color: var(--ink-2); font-size: .875rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
  .top .menu-name { display: none; }
  .ws { padding-top: 1.25rem; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: 60px;
    padding: .4rem .2rem;
    color: var(--ink-2);
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  .tab .ic { width: 24px; height: 24px; }
  .tab[aria-current="page"] { color: var(--green-700); }
}

/* ---------- En-tête de page (outil) ---------- */

.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: .5rem 0 1.5rem; }
.ph-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.ph-ic .ic { width: 24px; height: 24px; }
/* Icône et titre calés en haut, quelle que soit la longueur de la description : même position d'une page à l'autre */
.ph > .ph-ic, .ph > .ph-txt { align-self: flex-start; }
.ph > .ph-ic { margin-top: .3rem; }
/* En-tête d'un outil : son icône illustrée (comme sur le tableau de bord), sur une tuile blanche */
.ph-tuile { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.ph-tuile svg { width: 36px; height: 36px; }
.ph-txt { min-width: 0; flex: 1 1 16rem; }
.ph-txt p { margin-top: .2rem; color: var(--ink-2); }
.ph-act { display: flex; flex-wrap: wrap; gap: .6rem; }
.back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem; font-size: .9375rem; }
.back .ic { width: 18px; height: 18px; }

/* ---------- Cartes ---------- */

.ws .card, .compte-main .card { padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow); }
.ws .card + .card, .compte-main .card + .card, .stack > * + * { margin-top: 1.25rem; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card-head p { color: var(--ink-2); margin-top: .25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.grid-2 > .card + .card { margin-top: 0; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.sep { height: 1px; margin: 1.5rem 0; background: var(--line); border: 0; }

/* ---------- Formulaires ---------- */

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-row.r3 { grid-template-columns: 1fr 2fr; }
/* Ligne de champs espacée du haut : la marge va à la ligne, pas à la seconde colonne (qui se retrouvait plus bas que la première) */
.form-row.stack { margin-top: 1rem; }
.form-row.stack > * + * { margin-top: 0; }
@media (max-width: 640px) { .form-row, .form-row.r3 { grid-template-columns: 1fr; } }
.field { display: block; min-width: 0; }
.lbl { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.lbl .opt { color: var(--ink-3); font-weight: 500; }
.hint { margin-top: .35rem; color: var(--ink-3); font-size: .875rem; }
.inp, .sel, .txt {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.txt { min-height: 120px; resize: vertical; }
.sel { appearance: none; padding-right: 2.5rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%234B535D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .8rem center / 18px no-repeat; }
.inp:hover, .sel:hover, .txt:hover { border-color: var(--ink-2); }
.inp:focus, .sel:focus, .txt:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); outline: none; }
.inp:focus-visible, .sel:focus-visible, .txt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.inp[readonly] { background: var(--soft); color: var(--ink-2); }
/* Dates et heures : sur iPhone, Safari leur donne une largeur minimale et centre le texte (le champ dépassait de la carte) */
input.inp[type="date"], input.inp[type="time"], input.inp[type="datetime-local"], input.inp[type="month"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; height: 48px; text-align: left; }
.inp::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
/* Page de connexion : champ du code centré, avec son libellé et son message d'erreur */
.field-code { text-align: center; }
.field-code .inp.code { margin: 0 auto; }
.field-code .field-err { justify-content: center; }
.inp.code { max-width: 12rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.375rem; letter-spacing: .25em; text-align: center; }
[aria-invalid="true"] { border-color: var(--coral-700); background-color: var(--coral-50); }
.field-err { display: flex; align-items: flex-start; gap: .4rem; margin-top: .4rem; color: var(--coral-700); font-size: .875rem; font-weight: 600; }
.field-err .ic { width: 18px; height: 18px; margin-top: .05rem; }
.pw { position: relative; }
.pw .inp { padding-right: 6.5rem; }
.pw-btn {
  position: absolute;
  right: .4rem;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .6rem;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink-2);
  font: 600 .8125rem/1 var(--font);
  cursor: pointer;
}
.pw-btn .ic { width: 16px; height: 16px; }
.check { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .05rem 0 0; flex: none; accent-color: var(--green-700); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .6rem; font-size: .9375rem; font-weight: 600; }

/* Choix en cartes (rôles, méthodes) */
.choices { display: grid; gap: .6rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--ink-3); }
.choice input { width: 20px; height: 20px; margin: .15rem 0 0; flex: none; accent-color: var(--green-700); }
.choice b { display: block; }
.choice span { display: block; margin-top: .15rem; color: var(--ink-2); font-size: .9375rem; }
.choice:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
.choice:has(input:disabled) { cursor: default; opacity: .7; }

/* Palette de couleurs des documents du CSE (cahier des charges §6.2) */
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.sw { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem .4rem .45rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font-size: .875rem; font-weight: 600; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { width: 26px; height: 26px; border-radius: 50%; }
.sw:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sw:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Identiques à config couleurs_cse et à PV_PALETTE (modèles de PV) */
.sw-marine i { background: #1f3a5f; }
.sw-bordeaux i { background: #7a1e2e; }
.sw-sapin i { background: #1e4d3a; }
.sw-anthracite i { background: #3a3f45; }
.sw-roi i { background: #1f4e9c; }
.sw-prune i { background: #4b2a5c; }

.logo-prev { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--soft); }
.logo-prev img { max-height: 72px; max-width: 220px; width: auto; }
.file { display: block; width: 100%; padding: .6rem; border: 1px dashed var(--ink-3); border-radius: 10px; background: var(--white); font: inherit; }

/* Zone de dépôt (le champ de fichier d'origine, invisible, couvre toute la zone : clic, dépôt, clavier) */
.depot { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.5rem 1.25rem; border: 2px dashed #CFD4DA; border-radius: 14px;
  background: var(--white); text-align: center; transition: border-color .15s, background-color .15s; }
.depot-grand { padding: 2.25rem 1.25rem; }
.depot:hover, .depot-survol, .depot:focus-within { border-color: var(--green); background: var(--green-50); }
.depot:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.depot-survol { border-style: solid; }
.depot-champ { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.depot-ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: .2rem; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.depot-ic .ic { width: 22px; height: 22px; }
.depot:hover .depot-ic, .depot-survol .depot-ic { background: var(--white); }
.depot-titre { font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.depot-grand .depot-titre { font-size: 1.1875rem; }
.depot-sous { color: var(--ink-2); font-size: .9375rem; }
.depot-formats { margin-top: .25rem; color: var(--ink-3); font-size: .8125rem; letter-spacing: .02em; }
.depot-rempli { border-color: var(--green); }
.depot-liste { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.depot-liste li { display: flex; align-items: center; gap: .75rem; padding: .45rem .75rem; border-radius: 10px; background: var(--green-50); font-size: .9375rem; }
.depot-nom { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.depot-taille { color: var(--ink-3); font-size: .8125rem; white-space: nowrap; }
.depot-retirer { font-size: .875rem; }
[data-depot-cible].depot-survol { outline: 2px dashed var(--green); outline-offset: 4px; background: var(--green-50); }

/* Réglages avancés (masqués par défaut) */
details.adv { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
details.adv > summary { display: inline-flex; align-items: center; gap: .4rem; color: var(--green-700); font-weight: 600; cursor: pointer; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary .ic { transition: rotate .2s ease; }
details.adv[open] > summary .ic { rotate: 180deg; }
.perm { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.perm th, .perm td { padding: .55rem .25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.perm th { font-weight: 600; }
.perm td { width: 12rem; }
.perm .sel { min-height: 40px; padding-top: .45rem; padding-bottom: .45rem; }

/* ---------- Messages d'état (toujours icône + texte) ---------- */

.alert { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border: 1px solid; border-radius: 12px; line-height: 1.5; }
.alert + .alert, .alert + .card, .alert + .ph { margin-top: 1rem; }
.alert .ic { width: 22px; height: 22px; margin-top: .05rem; }
.alert .alert-txt { flex: 1; min-width: 0; }
.alert .alert-txt b { display: block; }
.alert .btn { margin-left: auto; flex: none; }
.alert.ok { background: var(--green-50); border-color: var(--green-100); color: var(--green-700); }
.alert.warn { background: var(--yellow-50); border-color: var(--yellow-100); color: var(--yellow-800); }
.alert.err { background: var(--coral-50); border-color: var(--coral-100); color: var(--coral-700); }
.alert.info { background: var(--soft); border-color: var(--line); color: var(--ink-2); }
.flashes { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .alert { flex-wrap: wrap; } .alert .btn { margin-left: 0; } }

/* Bloc « À compléter avant validation » (PV) */
.a-completer { padding: .9rem 1rem; border: 1.5px dashed var(--yellow); border-radius: 12px; background: var(--yellow-50); color: var(--yellow-800); }

/* Étiquettes : complément neutre */
.chip.n { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Listes ---------- */

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; }
.rows .who { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1 1 16rem; }
.rows .who b { display: block; }
/* Texte secondaire seulement (et non l'avatar ni la pastille d'icône, qui sont aussi des <span>) */
.rows .who > span > span { display: block; color: var(--ink-3); font-size: .875rem; }
.rows .who > span > .n-txt { color: var(--ink); font-size: 1rem; }
.rows .end { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
.rows.muted-rows .avatar { background: var(--soft); color: var(--ink-3); }
.log > li { display: grid; grid-template-columns: 11rem 1fr; gap: .25rem 1rem; }
.log time { color: var(--ink-3); font-size: .875rem; }
.log .auteur { font-weight: 600; }
@media (max-width: 640px) { .log > li { grid-template-columns: 1fr; } }
/* « Mon menu » : ordre des outils et outils masqués, propres au membre */
.mo-liste { display: grid; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; max-width: 40rem; }
.mo { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
/* Poignée pour faire glisser la ligne (affichée par le script) */
.mo-poignee { flex: none; display: grid; place-items: center; width: 28px; height: 36px; margin-right: -.25rem; border-radius: 8px; color: #B6BCC4; cursor: grab; touch-action: none; user-select: none; }
.mo-poignee[hidden] { display: none; }
.mo-poignee svg { width: 12px; height: 18px; fill: currentColor; }
.mo-poignee:hover { background: var(--soft); color: var(--ink-2); }
.mo.mo-glisse { position: relative; z-index: 1; border-color: var(--green); background: var(--green-50); box-shadow: var(--shadow-lg); }
.mo.mo-glisse .mo-poignee, .mo-en-cours { cursor: grabbing; }
.mo-en-cours { user-select: none; }
#menu .hint { margin-top: .75rem; }
/* Pendant l'enregistrement d'un réglage (une fraction de seconde) : pas de second envoi */
.mo-envoi .mo-act, .mo-envoi .mo-poignee { pointer-events: none; }
.mo-nom { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-weight: 600; }
.mo.masque { background: var(--soft); border-style: dashed; }
.mo.masque .nav-ic { opacity: .45; filter: grayscale(1); }
.mo.masque .mo-nom { color: var(--ink-3); }
.mo-act { display: flex; align-items: center; gap: .35rem; margin: 0; }
.mo-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-2); cursor: pointer; }
.mo-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green-700); }
.mo-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mo-btn:disabled { opacity: .35; cursor: default; }
.mo-btn .ic { width: 18px; height: 18px; }
.mo-btn.haut .ic { transform: rotate(180deg); }
.mo-voir { min-width: 6.5rem; justify-content: center; }
#menu .actions-row { margin-top: 1rem; }
@media (max-width: 520px) { .mo-voir { min-width: 0; } .mo { gap: .5rem; } }

/* Notifications : une ligne par avis, icône de l'outil, toute la ligne cliquable */
.card.nt-liste { display: grid; gap: .25rem; margin: 0; padding: .5rem; list-style: none; }
.nt { margin: 0; }
.nt-ligne { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.ws a.nt-ligne { color: var(--ink) !important; font-weight: 400 !important; text-decoration: none !important; }
a.nt-ligne:hover { background: var(--soft); }
a.nt-ligne:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nt.non-lue .nt-ligne { background: var(--green-50); }
.nt.non-lue a.nt-ligne:hover { background: var(--green-100); }
.nt-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.nt-ic .ic { width: 20px; height: 20px; }
.nt-txt { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.nt-texte { line-height: 1.45; overflow-wrap: anywhere; }
.nt.non-lue .nt-texte { font-weight: 600; }
.nt-meta { color: var(--ink-3); font-size: .8125rem; }
.nt-point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coral-700); }
.nt-suite { flex: none; display: grid; color: var(--ink-3); }
.nt-suite .ic { width: 18px; height: 18px; }
a.nt-ligne:hover .nt-suite { color: var(--green-700); }
@media (max-width: 640px) {
  .card.nt-liste { padding: .25rem; }
  .nt-ligne { gap: .7rem; padding: .75rem; }
  .nt-ic { width: 36px; height: 36px; }
  .nt-suite { display: none; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; font-weight: 600; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.tbl th, table.tbl td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.tbl th { color: var(--ink-3); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tbl-wrap { overflow-x: auto; }

/* ---------- Tableau de bord ---------- */

.hello { margin: .5rem 0 1.5rem; }
.hello p { color: var(--ink-2); margin-top: .25rem; }
.todo { margin: 0; padding: 0; list-style: none; }
.todo li { border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo a { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; color: var(--ink) !important; font-weight: 600 !important; text-decoration: none; }
.todo a:hover .todo-txt { text-decoration: underline; text-underline-offset: 3px; }
.todo .dot { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.todo .done .dot { background: var(--green-100); border-color: var(--green-100); color: var(--green-700); }
.todo .done .todo-txt { color: var(--ink-3); font-weight: 500; }
.todo .ic-go { margin-left: auto; color: var(--ink-3); }
progress.bar { display: block; width: 100%; height: 8px; margin: .5rem 0 .25rem; border: 0; border-radius: 8px; background: var(--line); appearance: none; overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--line); border-radius: 8px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 8px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 8px; }

/* Tuiles d'outils (composant .apps/.app/.tile de la vitrine) */
.ws .apps { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1.5rem 1rem; }
.ws .tile { width: 84px; }
.app.soon a { color: var(--ink-3); }
.app.soon a:hover .tile { transform: none; box-shadow: none; }

/* État vide / « Bientôt disponible » : motifs de la marque autorisés ici */
.empty { position: relative; padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem); text-align: center; overflow: hidden; isolation: isolate; }
.empty::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 20% 20%, rgba(105, 197, 156, .12), transparent 70%),
    radial-gradient(38% 55% at 85% 30%, rgba(248, 199, 106, .14), transparent 70%);
}
.empty .tile { margin: 0 auto; width: 96px; }
.empty .bar-deco { display: flex; justify-content: center; gap: 8px; margin: 1.5rem 0 1rem; }
.empty .bar-deco i { height: 8px; border-radius: 8px; }
.empty .bar-deco i:first-child { width: 56px; background: var(--yellow); }
.empty .bar-deco i:last-child { width: 8px; background: var(--coral); }
.empty h2 { font-size: 1.375rem !important; }
.empty p { max-width: 34rem; margin: .6rem auto 0; color: var(--ink-2); }
.empty .badge { position: static; display: inline-block; margin-bottom: .75rem; }

/* Assistant de démarrage : étapes */
.wsteps { display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.wsteps li { flex: 1; display: flex; flex-direction: column; gap: .45rem; color: var(--ink-3); font-size: .8125rem; font-weight: 600; }
.wsteps li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); }
.wsteps li.done::before { background: var(--green); }
.wsteps li[aria-current="step"] { color: var(--ink); }
.wsteps li[aria-current="step"]::before { background: var(--yellow); }
@media (max-width: 560px) { .wsteps li span { display: none; } .wsteps li[aria-current="step"] span { display: block; } }

/* Visite */
.tour { text-align: center; }
.tour .tile { margin: 0 auto 1.25rem; width: 96px; }
.tour p { max-width: 32rem; margin: .75rem auto 0; color: var(--ink-2); }
.tour-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.5rem; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { width: 24px; border-radius: 8px; background: var(--yellow); }

/* Menu complet (onglet « Plus » sur téléphone) */
.menu-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.menu-list a { display: flex; align-items: center; gap: .85rem; min-height: 56px; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.menu-list .soon { margin-left: auto; color: var(--ink-3); font-size: .8125rem; font-weight: 600; }

/* ---------- Coffre-fort ---------- */

.coffre-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
.jauge { flex: 1 1 18rem; }
.jauge-txt { color: var(--ink-2); font-size: .9375rem; }
.jauge.warn .jauge-txt { color: var(--yellow-800); font-weight: 600; }
.jauge.err .jauge-txt { color: var(--coral-700); font-weight: 600; }
.jauge.err progress.bar::-webkit-progress-value { background: var(--coral-700); }
.jauge.err progress.bar::-moz-progress-bar { background: var(--coral-700); }
.coffre-liens { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Accueil du coffre-fort : recherche, ajoutés récemment, rangement par thème (accordéon) */
.coffre-cherche { margin-bottom: 1.5rem; }
.coffre-cherche-ligne { display: flex; flex-wrap: wrap; gap: .5rem; }
.coffre-cherche-champ { position: relative; flex: 1 1 18rem; min-width: 0; }
.coffre-cherche-champ .ic { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.coffre-cherche-champ .inp { width: 100%; padding-left: 2.6rem; }
.coffre-avance { margin-top: .5rem; }
.coffre-avance > summary { display: inline-flex; align-items: center; gap: .35rem; color: var(--green-700); font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none; }
.coffre-avance > summary::-webkit-details-marker { display: none; }
.coffre-avance > summary .ic { width: 16px; height: 16px; transition: rotate .15s; rotate: -90deg; }
.coffre-avance[open] > summary .ic { rotate: 0deg; }
.coffre-avance-champs { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.coffre-avance-champs .field { flex: 1 1 11rem; }

.coffre-section { margin-bottom: 1.75rem; padding: 0; } /* annule l'espacement des sections de la vitrine (oddy.css) */
.coffre-section > h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
.coffre-recents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .75rem; }
.coffre-recents a { display: grid; gap: .35rem; height: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  color: var(--ink) !important; font-weight: 400 !important; text-decoration: none; box-shadow: 0 1px 2px rgba(27, 31, 36, .04); transition: border-color .15s, box-shadow .15s; }
.coffre-recents a:hover { border-color: var(--yellow); box-shadow: 0 6px 18px -10px rgba(27, 31, 36, .25); }
.coffre-recents b { overflow-wrap: anywhere; line-height: 1.3; }
.coffre-recent-haut { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .15rem; }
.coffre-recent-meta { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: .875rem; }
.theme-puce { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 6px; flex: none; }
.theme-puce .ic { width: 14px; height: 14px; }

.coffre-themes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.coffre-theme { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.coffre-theme[open] { border-color: #D8DCE1; box-shadow: 0 8px 24px -16px rgba(27, 31, 36, .3); }
.coffre-theme > summary { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; cursor: pointer; list-style: none; }
.coffre-theme > summary::-webkit-details-marker { display: none; }
.coffre-theme > summary:hover { background: #FAFAFB; }
.coffre-theme > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.theme-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.theme-ic .ic { width: 22px; height: 22px; }
.theme-txt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.theme-txt b { font-size: 1rem; }
.theme-txt > span { color: var(--ink-3); font-size: .875rem; }
.theme-n { min-width: 2rem; padding: .15rem .55rem; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: .8125rem; font-weight: 700; text-align: center; }
.theme-chevron { width: 18px; height: 18px; color: var(--ink-3); rotate: -90deg; transition: rotate .15s; flex: none; }
.coffre-theme[open] .theme-chevron { rotate: 0deg; }
.coffre-theme.vide .theme-ic { opacity: .55; }
.coffre-theme.vide .theme-n { opacity: .6; }
.coffre-theme-corps { padding: .25rem 1rem 1rem; border-top: 1px solid var(--line); }
.coffre-theme-corps > p { margin: .75rem 0 .25rem; }
.coffre-theme-corps .actions-row { margin-top: .75rem; }
.coffre-theme-entete { margin-bottom: 1rem; }
.coffre-theme-titre { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .5rem; }
.coffre-theme-titre > div { flex: 1; min-width: 12rem; }
.coffre-theme-titre h2 { margin: 0; font-size: 1.375rem; }
.coffre-theme-titre p { margin: .1rem 0 0; }
@media (max-width: 44rem) {
  .coffre-theme > summary { gap: .7rem; padding: .75rem; }
  .theme-ic { width: 38px; height: 38px; }
  .coffre-theme-corps .end .btn { display: none; }
}

.coffre-recherche { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.coffre-recherche .field { flex: 1 1 10rem; }
.coffre-recherche .field.grow { flex: 3 1 16rem; }
.coffre-recherche-act { display: flex; gap: .5rem; }
.coffre-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.coffre-cats a { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink) !important; font-weight: 600 !important; text-decoration: none; }
.coffre-cats a:hover { border-color: var(--yellow); background: var(--yellow-50); }
.coffre-cats .ic { color: var(--yellow-800); }
.coffre-cats span { flex: 1; min-width: 0; }
.coffre-cats b { min-width: 1.75rem; padding: .1rem .45rem; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: .8125rem; text-align: center; }
.docs > li { gap: .6rem 1rem; }
.doc { display: flex; align-items: center; gap: .85rem; flex: 1 1 18rem; min-width: 0; color: var(--ink) !important; text-decoration: none; font-weight: 400 !important; }
.doc:hover b { text-decoration: underline; text-underline-offset: 3px; }
.doc-txt { min-width: 0; }
.doc-txt b { display: block; overflow-wrap: anywhere; }
.doc-txt span { display: block; color: var(--ink-3); font-size: .875rem; }
.doc-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  flex: none;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow-50);
  color: var(--yellow-800);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.doc-ic.lg { width: 56px; height: 66px; font-size: .6875rem; }

/* Icône graphique d'un fichier : page au coin replié, couleur par famille (palette d'oddy et des documents du CSE) */
.fic { --fic: #3a3f45; position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; width: 44px; height: 52px; flex: none;
  padding: 11px 0 6px; border-radius: 7px; background: var(--fic); color: #fff;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.fic::after { content: ""; position: absolute; top: 0; right: 0; width: 13px; height: 13px; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, .42); }
.fic-picto { width: 18px; height: 18px; align-self: center; stroke-width: 2; }
.fic-lbl { font-size: .5625rem; font-weight: 800; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.fic.lg { width: 56px; height: 66px; padding: 14px 0 8px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.fic.lg::after { width: 16px; height: 16px; }
.fic.lg .fic-picto { width: 22px; height: 22px; }
.fic.lg .fic-lbl { font-size: .625rem; }
.fic-pdf     { --fic: var(--coral-700); }
.fic-texte   { --fic: #1f4e9c; }
.fic-tableur { --fic: var(--green-700); }
.fic-diapo   { --fic: var(--yellow-800); }
.fic-image   { --fic: #4b2a5c; }
.fic-audio   { --fic: #1f3a5f; }
.fic-pv      { --fic: #1e4d3a; }
.fic-autre   { --fic: #3a3f45; }
.doc:hover .fic { filter: brightness(1.08); }
.actions-row.centre { justify-content: center; }
.cat-ligne { align-items: flex-start !important; }
.cat-reglages { flex: 1 1 100%; margin-top: 0; padding-top: .25rem; border-top: 0; }

/* ---------- Procès-verbaux ---------- */

/* Étapes du cycle de vie (toujours le libellé, la couleur ne fait que souligner) */
.pv-etapes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: none; }
.pv-etapes li { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink-3); font-size: .875rem; }
.pv-etapes b { display: block; font-weight: 600; line-height: 1.25; }
.pv-etapes small { display: block; font-size: .75rem; }
.pv-etapes .fait { color: var(--green-700); border-color: var(--green-100); background: var(--green-50); }
.pv-etapes .cours { color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pv-puce { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--soft); font-size: .75rem; font-weight: 700; }
.pv-etapes .fait .pv-puce { background: var(--green-700); color: var(--white); }
.pv-etapes .fait .pv-puce .ic { width: 14px; height: 14px; stroke-width: 3; }
.pv-etapes .cours .pv-puce { background: var(--ink); color: var(--white); }
@media (max-width: 900px) { .pv-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pv-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-liste-points { display: grid; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.pv-liste-points li { display: flex; align-items: flex-start; gap: .5rem; color: var(--yellow-800); }
.pv-liste-points .ic { width: 18px; height: 18px; margin-top: .15rem; }

/* Éditeur : étapes à gauche, formulaire à droite */
.pv-edit { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pv-nav { position: sticky; top: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: .9375rem; }
.pv-nav ol { margin: 0; padding: 0; list-style: none; }
.pv-nav a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.pv-nav a:hover { background: var(--soft); color: var(--ink); }
.pv-nav a[aria-current="page"] { background: var(--yellow-50); color: var(--yellow-800); box-shadow: inset 3px 0 0 var(--yellow); }
.pv-nav-points { margin: .1rem 0 .3rem .6rem !important; padding-left: .5rem !important; border-left: 1px solid var(--line); }
.pv-nav-points a { font-weight: 500; font-size: .875rem; }
@media (max-width: 900px) {
  .pv-edit { grid-template-columns: 1fr; }
  .pv-nav { position: static; }
  .pv-nav > ol { display: flex; flex-wrap: wrap; gap: .25rem; }
  .pv-nav-points { display: none; }
}
.pv-etat { color: var(--ink-3); font-size: .875rem; }
.pv-etat.err { color: var(--coral-700); font-weight: 600; }
.pv-bloc { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 1rem; }
.pv-bloc > legend { padding: 0 .4rem; margin-bottom: 0; }
.pv-bloc.a-completer { border: 1.5px dashed var(--yellow); }
.pv-lignes { display: grid; gap: .75rem; }
.pv-points { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.pv-points > li { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.pv-points .field.grow { flex: 1 1 16rem; }
.pv-num { display: grid; place-items: center; width: 32px; height: 48px; flex: none; color: var(--ink-3); font-weight: 800; }
.pv-point-act { display: flex; flex-wrap: wrap; gap: .4rem; }
.pv-ajouts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; scroll-margin-top: 5rem; }
/* Décompte d'un vote (pour, contre, abstentions) — à ne pas confondre avec les cartes « Qui parle ? » (.pv-voix) */
.pv-votes { display: grid; grid-template-columns: repeat(3, minmax(0, 8rem)); gap: 1rem; }
.pv-choix-dec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .pv-choix-dec { grid-template-columns: 1fr; } }
.pv-presents .sel { min-width: 10rem; min-height: 40px; padding-top: .45rem; padding-bottom: .45rem; }
.pv-presents th[scope="row"] { font-weight: 400; }
.pv-actions { position: sticky; bottom: 0; margin: 0 calc(-1 * clamp(1.25rem, 3vw, 1.75rem)) calc(-1 * clamp(1.25rem, 3vw, 1.75rem)); padding: 1rem clamp(1.25rem, 3vw, 1.75rem); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius, 16px) var(--radius, 16px); background: var(--white); }
@media (max-width: 900px) { .pv-actions { bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* Import de l'ordre du jour (lecture par l'IA) */
.pv-edit > .pv-form > .card + .card, .pv-form > .alert + .card { margin-top: 1.25rem; }
.pv-import-det { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.pv-import-det > p { margin-top: .75rem; }
.pv-import-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin-top: 1.25rem; }
.pv-import-ligne .field.grow { flex: 1 1 18rem; }
.pv-import-ligne .field .hint { margin-bottom: 0; }
.pv-attente { text-align: center; }
.pv-attente p { max-width: 34rem; margin: .6rem auto 0; }
.pv-sablier { display: block; width: 44px; height: 44px; margin: 0 auto 1rem; border: 4px solid var(--yellow-100, var(--line)); border-top-color: var(--yellow); border-radius: 50%; animation: pv-tourne 1s linear infinite; }
@keyframes pv-tourne { to { rotate: 360deg; } }
/* Rédaction du PV lancée : suivi de l'envoi des documents (sous le bouton) */
.pv-envoi { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
.pv-envoi[hidden] { display: none; }
.pv-envoi .pv-sablier { flex: none; width: 34px; height: 34px; margin: 0; border-width: 3px; }
.pv-envoi-txt { flex: 1; min-width: 0; }
.pv-envoi-titre { margin: 0; font-weight: 600; }
.pv-envoi-txt .hint { margin: .2rem 0 0; }
.pv-envoi.err { border-color: var(--coral-700); }
.pv-envoi.err .pv-sablier { animation: none; border-color: var(--coral-700); }
@media (prefers-reduced-motion: reduce) { .pv-sablier { animation: none; border-top-color: var(--yellow-100, var(--line)); } }
.pv-comparer td:first-child { width: 6.5rem; }
.pv-comparer input { width: 20px; height: 20px; accent-color: var(--green-700); }
.pv-imp-partie { margin-top: 1.25rem; font-size: 1rem; }
.pv-imp-points { display: grid; gap: .6rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.pv-imp-points .chip { margin-top: .3rem; }
.pv-imp-mode { margin-top: 1.5rem; }
/* PV généré en une fois : premier panneau et relecture */
.pv-depot { padding: 1.25rem; border-width: 2px; background: var(--yellow-50); }
.pv-notes-vrac { min-height: 260px; }
.pv-manuel { margin-top: 1rem; text-align: center; }
.pv-gen-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .875rem; }
.pv-gen-docs li { display: inline-flex; align-items: center; gap: .3rem; }
.pv-gen-docs .ic { width: 16px; height: 16px; }
details.pv-avant > summary { cursor: pointer; color: var(--yellow-800); }
.pv-rl .card-head { margin-bottom: .75rem; }
.pv-rl h3 { margin: 0; font-size: 1.0625rem; }
.pv-rl-partie { margin: 2rem 0 .75rem; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pv-rl-act { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pv-rl-point { scroll-margin-top: 5rem; }
.pv-rl-contenu { display: grid; gap: .75rem; line-height: 1.6; }
.pv-rl-contenu p { margin: 0; }
.pv-rl-contenu .a-completer .ic { width: 18px; height: 18px; vertical-align: -3px; }
.pv-rl .a-completer .ic { width: 18px; height: 18px; vertical-align: -3px; }
.pv-rl-decl .pv-rprop { margin-top: .75rem; }

/* Liens vers les pages légales */
.side-legal { flex: none; margin: 0 .6rem; color: var(--ink-3); font-size: .75rem; line-height: 1.6; }
.side-legal a { color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.side-legal abbr { text-decoration: none; }
.side-legal a:hover { color: var(--ink); text-decoration: underline; }
/* Page « Menu » (téléphone) : mêmes liens qu'en bas de la colonne, un peu plus grands pour le doigt */
.ws .menu-legal { margin: 1.5rem .6rem 0; font-size: .8125rem; text-align: center; }
.ws .menu-legal a { display: inline-block; padding: .35rem .15rem; color: var(--ink-3) !important; font-weight: 400 !important; }
.auth-legal { margin-top: .5rem; }
.auth-legal a { color: var(--ink-3); }

/* Annexes */
.pv-annexes-liste { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.pv-annexe { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.pv-annexe .field.grow { flex: 1 1 18rem; }
.pv-annexe-num { padding-top: .8rem; font-weight: 700; color: var(--yellow-800); white-space: nowrap; }
.pv-annexe .pv-point-act { padding-top: .35rem; }

/* Enregistrement et « Qui parle ? » */
.pv-audio-bar { width: 100%; margin-top: .6rem; }
.pv-audio-etat { margin-top: .4rem; color: var(--ink-2); }
.pv-audio-rappel { display: flex; align-items: flex-start; gap: .4rem; }
.pv-audio-rappel .ic { width: 16px; height: 16px; margin-top: .15rem; }
.pv-voix-ia { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--ink-2); }
.pv-extrait { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; }
.pv-extrait audio { max-width: 100%; height: 40px; }
.pv-extrait p { flex: 1 1 16rem; margin: 0; }
.pv-voix-choix { margin-top: 1rem; }
.pv-voix-act .hint { flex-basis: 100%; }
/* « Qui parle ? » : participants repérés dans la convocation et les notes */
.pv-voix-liste h2 { margin: 0 0 .4rem; }
.pv-voix-liste h3 { margin: .9rem 0 .3rem; color: var(--ink-2); }
.pv-voix-liste ul { margin: 0; padding-left: 1.2rem; }
.pv-voix-liste li { margin: .15rem 0; }

/* Rédaction par l'IA */
.pv-docs .pv-ratt { flex: 1 1 100%; margin-top: 0; padding-top: .25rem; border-top: 0; }
.pv-ratt-points { display: grid; gap: .5rem; }
.pv-docs-point { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .75rem; color: var(--ink-2); }
.pv-docs-point .ic { width: 18px; height: 18px; }
.pv-notes { padding: 1rem; border: 1px dashed var(--ink-3); border-radius: 12px; background: var(--soft); }
.pv-notes .txt { background: var(--white); }
.pv-notes-act { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .9rem; }
.pv-rediger { padding: 1.25rem; border-radius: 12px; background: var(--yellow-50); border: 1px solid var(--yellow-100); }
.pv-rediger p:first-child { margin-bottom: .9rem; }
.pv-rediger .hint { margin-top: .75rem; }
.pv-rchoix { margin-bottom: 1rem; }
.pv-rprop, .pv-ractuel { display: grid; gap: .75rem; padding: 1rem 1.1rem; border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; background: var(--yellow-50); line-height: 1.6; }
.pv-ractuel { border-left-color: var(--line); background: var(--soft); margin-top: .75rem; }
.pv-rprop p, .pv-ractuel p { margin: 0; }
.pv-rprop .a-completer .ic, .pv-ractuel .a-completer .ic { width: 18px; height: 18px; vertical-align: -3px; }
.pv-rchiffres { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.pv-rdec { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.pv-texte-lu { max-height: 24rem; overflow: auto; margin: 1rem 0 0; padding: 1rem; border-radius: 10px; background: var(--soft); font: .875rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Sécurité : QR code et codes de secours ---------- */

.qr { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; }
.qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.secret { display: inline-block; padding: .5rem .75rem; border-radius: 8px; background: var(--soft); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.125rem; }
.codes li { padding: .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); text-align: center; letter-spacing: .06em; }
.method { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.method:last-of-type { border-bottom: 0; }
.method .ph-ic { width: 44px; height: 44px; }
.method-txt { flex: 1 1 14rem; }
.method-txt p { color: var(--ink-2); font-size: .9375rem; margin-top: .15rem; }
details.confirm > summary { list-style: none; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { display: none; }
.confirm-box { display: grid; gap: .75rem; margin-top: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }

/* ---------- Pages d'accueil : connexion, invitation… ---------- */

.auth-wrap { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 2rem 1rem 3rem; isolation: isolate; overflow: hidden; }
.auth-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 15% 20%, rgba(105, 197, 156, .16), transparent 70%),
    radial-gradient(38% 45% at 85% 15%, rgba(248, 199, 106, .18), transparent 70%),
    radial-gradient(30% 40% at 70% 90%, rgba(246, 133, 119, .09), transparent 70%);
}
.auth-deco { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.auth-deco.ring { width: 260px; aspect-ratio: 1; left: -110px; bottom: 8%; border: 40px solid var(--green-100); }
.auth-deco.disc { width: 18px; aspect-ratio: 1; right: 14%; top: 12%; background: var(--coral); }
.auth-wrap { min-height: 100dvh; }
@media (max-width: 640px) {
  .auth-deco { display: none; }
  /* Sur téléphone, la carte commence en haut de l'écran au lieu d'être centrée dans un grand vide */
  .auth-wrap { place-items: start center; padding: max(1.75rem, calc(env(safe-area-inset-top) + 1rem)) 1rem max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem)); }
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.auth-card.wide { max-width: 640px; }
.auth-card::before, .auth-card::after { content: ""; position: absolute; top: -5px; height: 10px; border-radius: 10px; }
.auth-card::before { left: calc(50% - 44px); width: 64px; background: var(--yellow); }
.auth-card::after { left: calc(50% + 28px); width: 10px; background: var(--coral); }
.auth-logo { display: block; width: fit-content; margin: 0 auto 1.5rem; }
.auth-logo img { height: 34px; width: auto; }
.auth-card h1 { text-align: center; }
.auth-lead { margin: .5rem 0 1.5rem; color: var(--ink-2); text-align: center; }
.auth-foot { margin-top: 1.5rem; color: var(--ink-2); font-size: .9375rem; text-align: center; }
.auth-foot p + p { margin-top: .4rem; }
.auth-note { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.5rem; color: var(--ink-3); font-size: .8125rem; text-align: center; }
.auth-note .ic { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .auth-note { display: block; }
  .auth-note .ic { display: inline-block; margin-right: .3rem; vertical-align: -2px; }
  .auth-legal a { white-space: nowrap; }
}
.auth-card .form { margin-top: .5rem; }
.auth-card .flashes { margin-bottom: 1rem; }
.big-code { display: block; margin: 1rem auto; }
.links-col { display: grid; gap: .35rem; justify-items: center; }
.form-legal { margin-top: .25rem; color: var(--ink-3); font-size: .8125rem; line-height: 1.45; text-align: center; }
.form-legal a { color: var(--ink-2); }

/* ---------- Heures de délégation ---------- */

.hd-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.hd-mois { display: flex; align-items: center; gap: .4rem; }
.hd-mois h2 { margin: 0 .35rem; font-size: 1.25rem; min-width: 10rem; text-align: center; }
.hd-liens { display: flex; flex-wrap: wrap; gap: .4rem; }
.hd-general { margin-bottom: 1.5rem; }
.hd-stats { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; }
.hd-stats li { display: grid; gap: .15rem; padding: .75rem .9rem; border-radius: 12px; background: var(--green-50); }
.hd-stats span { color: var(--ink-2); font-size: .8125rem; }
.hd-stats b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.hd-stats li.neg { background: var(--coral-50); }
.hd-stats li.neg b, .hd-tbl td.neg, .hd-reste.neg b { color: var(--coral-700); }
.hd-bar { height: 10px; margin: .5rem 0 .75rem; }
progress.bar.hd-mini { height: 5px; margin: .3rem 0 0; min-width: 5rem; }
.hd-tbl td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.hd-tbl tr.actif td { background: var(--green-50); }
.hd-section { margin-bottom: 1.5rem; padding: 0; }
.hd-titre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.hd-titre h2 { margin: 0; font-size: 1.1875rem; }
.hd-choix { display: flex; gap: .4rem; }
.hd-credits { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.hd-credit { display: grid; align-content: start; gap: .5rem; margin: 0; }
.hd-credit.alerte { border-color: var(--coral-100); box-shadow: inset 3px 0 0 var(--coral); }
.hd-credit-tete { display: flex; align-items: center; gap: .75rem; }
.hd-credit-tete h3 { margin: 0; font-size: 1.0625rem; }
.hd-credit-tete p { margin: .1rem 0 0; }
.hd-reste { display: flex; align-items: baseline; gap: .5rem; margin-top: .25rem; }
.hd-reste b { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--green-700); }
.hd-reste span { color: var(--ink-2); }
.hd-detail { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin: 0; font-size: .9375rem; }
.hd-detail dt { color: var(--ink-2); }
.hd-detail dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hd-alerte, .hd-info { display: flex; gap: .45rem; align-items: flex-start; margin: .2rem 0 0; padding: .5rem .65rem; border-radius: 10px; font-size: .875rem; }
.hd-alerte { background: var(--coral-50); color: var(--coral-700); }
.hd-info { background: var(--yellow-50); color: var(--yellow-800); }
.hd-alerte .ic, .hd-info .ic { width: 16px; height: 16px; flex: none; margin-top: .1rem; }
.hd-credit > .btn { justify-self: start; margin-top: .25rem; }
.hd-date { display: grid; place-items: center; width: 48px; height: 52px; flex: none; border-radius: 10px; background: var(--green-50); color: var(--green-700); font-size: .6875rem; line-height: 1.1; text-transform: uppercase; }
.hd-date b { font-size: 1.25rem; }
.hd-reglages { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hd-reglages > li { margin: 0; }
.hd-reglages h3 { margin: 0; }
.hd-reg-credit { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.hd-reg-txt { display: grid; gap: .15rem; min-width: 0; }
.hd-reg-txt > span { color: var(--ink-2); font-size: .9375rem; }
.hd-reg-act { flex: 1 1 100%; }
.hd-reg-act > summary, .hd-ajout > summary { list-style: none; cursor: pointer; }
.hd-reg-act > summary::-webkit-details-marker, .hd-ajout > summary::-webkit-details-marker { display: none; }
.hd-reg-act:not([open]) { flex: 0 0 auto; }
.hd-reg-form { align-items: flex-end; margin: .6rem 0; }
.hd-ajout { padding-top: .75rem; border-top: 1px solid var(--line); }
.hd-ajout > summary { display: inline-flex; align-items: center; gap: .35rem; color: var(--green-700); font-weight: 600; }
.hd-ajout > summary .ic { width: 16px; height: 16px; }
/* Tableau de bord : carte « Mes heures de délégation » */
.tb-heures-liens { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-heures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem 1.5rem; }
.tb-heures li { display: grid; gap: .35rem; margin: 0; }
.tb-heures li.alerte { padding-left: .75rem; box-shadow: inset 3px 0 0 var(--coral); }
.tb-heures-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; }
.tb-heures .hd-reste { margin: 0; }
.tb-heures .hd-reste b { font-size: 1.5rem; }
.tb-heures p { margin: 0; }
@media (max-width: 44rem) {
  .hd-mois h2 { min-width: 0; font-size: 1.0625rem; }
  .hd-reste b { font-size: 1.75rem; }
}

/* ---------- Agenda ---------- */

/* Une couleur par type, prises dans la charte (texte toujours lisible, jamais la couleur seule : le type est écrit) */
.c-reu    { --ag-fond: var(--green-700); --ag-texte: #fff; }
.c-cssct  { --ag-fond: var(--green); --ag-texte: var(--ink); }
.c-com    { --ag-fond: var(--green-100); --ag-texte: var(--green-700); }
.c-perm   { --ag-fond: var(--ink-2); --ag-texte: #fff; }
.c-sortie { --ag-fond: var(--yellow); --ag-texte: var(--ink); }
.c-form   { --ag-fond: var(--coral-100); --ag-texte: var(--coral-700); }
.c-conges { --ag-fond: var(--line); --ag-texte: var(--ink-2); }
.c-autre  { --ag-fond: var(--yellow-50); --ag-texte: var(--yellow-800); }

.ag-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.ag-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.ag-nav h2 { margin: 0 0 0 .5rem; font-size: 1.125rem; }
.ag-vues { display: flex; gap: .35rem; }

.ag-mois { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ag-sem { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-sem + .ag-sem { border-top: 1px solid var(--line); }
.ag-entete span { padding: .4rem .5rem; color: var(--ink-3); font-size: .8125rem; text-align: center; background: var(--green-50); }
.ag-j { position: relative; min-height: 6.5rem; padding: .35rem .35rem 1.6rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ag-j + .ag-j { border-left: 1px solid var(--line); }
.ag-j.hors { background: #FAFAFB; }
.ag-j.hors .ag-num { color: var(--ink-3); }
.ag-num { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-jour-long { display: none; }
.ag-j.auj .ag-jour-court { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--green-700); color: #fff; }
.ag-e { display: block; padding: .15rem .4rem; border-radius: 6px; background: var(--ag-fond); color: var(--ag-texte) !important; font-size: .8125rem; line-height: 1.35;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-e:hover { filter: brightness(.95); }
.ag-e.annule { text-decoration: line-through; opacity: .6; }
.ag-h { font-weight: 700; font-variant-numeric: tabular-nums; }
/* « + » : invisible (un clic sur le jour suffit), il ne sert qu'au clavier */
.ag-plus { position: absolute; right: .35rem; bottom: .25rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 999px;
  color: var(--ink-3); text-decoration: none; opacity: 0; }
.ag-plus:focus-visible { opacity: 1; background: var(--green-50); }
.ag-mois[data-ag-periode] .ag-j:hover:not(.ag-sel) { background: var(--green-50); }
.ag-mois[data-ag-periode] .ag-j:has(.ag-e:hover):not(.ag-sel) { background: transparent; }

.ag-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ag-jl h3 { margin: 0 0 .4rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.ag-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .3rem 0; }
.ag-ligne .ag-e { white-space: normal; font-size: .9375rem; padding: .3rem .6rem; }

.ag-legende { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1rem 0 0; padding: 0; color: var(--ink-2); font-size: .8125rem; }
.ag-legende li { display: flex; align-items: center; gap: .4rem; }
.ag-pastille { width: .8rem; height: .8rem; border-radius: 4px; background: var(--ag-fond); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.ph-ic.ag-pastille-grande { background: var(--ag-fond); color: var(--ag-texte); }
.ag-desc { white-space: normal; }
.ag-rappels { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ag-portee { display: flex; flex-direction: column; gap: .5rem; }
dl.ag-kv { margin-top: .75rem; }
.ag-astuce { margin: -.25rem 0 .75rem; }
.ag-mois[data-ag-periode] .ag-j { cursor: cell; }
.ag-mois.ag-selection { user-select: none; }
.ag-j.ag-sel { background: var(--green-100); box-shadow: inset 0 0 0 1px var(--green); }
.ag-bulle { position: absolute; z-index: 60; padding: .35rem .6rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .8125rem; pointer-events: none; white-space: nowrap; }
@media (max-width: 44rem), (pointer: coarse) { .ag-astuce { display: none; } }
.ag-form > div[data-ag-sauf]:not([hidden]), .ag-form > div[data-ag-si]:not([hidden]) { display: grid; gap: 1.25rem; }
.ag-docs-form .ag-ajout { margin-top: .35rem; }
.ag-docs-intro { margin: .15rem 0 0; }
.ag-choisis { list-style: none; margin: .6rem 0 0; padding: .6rem .75rem; display: grid; gap: .3rem; border-radius: 10px; background: var(--green-50); font-size: .9375rem; }
.ag-choisis li { overflow-wrap: anywhere; }
.ag-choisis b { color: var(--green-700); font-weight: 600; }
.ag-coffre { margin-top: .25rem; }
.ag-coffre-liste { display: grid; gap: .45rem; max-height: 16rem; overflow-y: auto; margin: .6rem 0 0; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.ag-coffre-liste .check span { overflow-wrap: anywhere; }
.ag-ajout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; margin-top: 1rem; }
.ag-ajout-fichiers { position: relative; display: flex; gap: .5rem; }
.fichier-cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fichier-cache:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.ag-ajout-coffre { flex: 1 1 22rem; min-width: 0; }
.ag-ajout-coffre > summary { list-style: none; cursor: pointer; }
.ag-ajout-coffre > summary::-webkit-details-marker { display: none; }
.ag-ajout-coffre[open] > summary { background: var(--green-50); }
.ag-ajout-ligne { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.ag-ajout-ligne .sel { flex: 1 1 16rem; min-width: 0; }
#documents .rows + .ag-ajout, #documents .stack + .ag-ajout { margin-top: 1.25rem; }
#documents .hint { margin-top: .6rem; }
.copie { display: flex; gap: .5rem; }
.copie .inp { flex: 1; min-width: 0; font-size: .875rem; }

/* Téléphone : le mois devient la liste des jours occupés */
@media (max-width: 44rem) {
  .ag-mois { border: 0; border-radius: 0; }
  .ag-sem { display: block; }
  .ag-sem.ag-entete { display: none; }
  .ag-sem + .ag-sem { border-top: 0; }
  .ag-j { min-height: 0; padding: .6rem 0; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .ag-j.vide, .ag-j.hors { display: none; }
  .ag-jour-long { display: inline; }
  .ag-jour-court { display: none !important; }
  .ag-j.auj .ag-num::after { content: " · aujourd'hui"; color: var(--green-700); }
  .ag-e { white-space: normal; font-size: .9375rem; padding: .35rem .6rem; }
  .ag-plus { display: none; }
  .ag-nav h2 { width: 100%; margin: .25rem 0 0; }
}

/* ---------- Courriers (la lettre elle-même : courrier.css) ---------- */

.ct-section { margin-bottom: 1.75rem; padding: 0; } /* annule l'espacement des sections de la vitrine (oddy.css) */
.ct-section > h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
.ct-modeles { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .75rem; }
.ct-modeles li { margin: 0; }
.ct-modele { display: flex; align-items: flex-start; gap: .85rem; height: 100%; margin: 0; padding: 1rem; color: var(--ink) !important; font-weight: 400 !important;
  text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ct-modele:hover { border-color: var(--yellow); box-shadow: 0 6px 18px -10px rgba(27, 31, 36, .25); }
.ct-modele .ph-ic { width: 44px; height: 44px; flex: none; }
.ct-modele-txt { display: grid; gap: .2rem; min-width: 0; }
.ct-modele-txt b { line-height: 1.3; }
.ct-modele-txt span { color: var(--ink-3); font-size: .875rem; line-height: 1.4; }
.ct-liste { padding-top: .25rem; padding-bottom: .25rem; }
.ct-liste .theme-ic { width: 40px; height: 40px; }

/* Éditeur : tous les champs sur la page, en cartes (deux colonnes sur grand écran) ; l'aperçu s'ouvre dans une fenêtre */
.ct-form { margin: 0; }
.ct-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.ws .ct-champs > .ct-carte { display: grid; align-content: start; gap: .9rem; margin: 0; } /* sans l'espacement entre cartes successives */
.ct-carte h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .1rem; font-size: 1.0625rem; }
.ct-carte h2 .ic { width: 20px; height: 20px; color: var(--yellow-800); }
.ct-carte .hint { margin: 0; }
.ct-carte .hint .btn-text { padding: 0; font-size: inherit; }
.ct-large { grid-column: 1 / -1; }
.ct-carte-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
/* « Améliorer avec l'IA » : jaune, comme la famille des documents et la pastille Mistral AI de la vitrine */
.ct-ia-btn { background: var(--yellow-50); color: var(--yellow-800); border-color: var(--yellow); }
.ct-ia-btn:hover { background: var(--yellow); color: var(--ink); }
.ct-ia-btn .ic { width: 18px; height: 18px; }
.ct-ia-btn[disabled] { opacity: .6; }
.ct-ia { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem 1rem; padding: .75rem .9rem; border-radius: 12px;
  background: var(--yellow-50); border: 1px solid var(--yellow); }
.ct-ia.fait, .ct-ia.annule { background: var(--green-50); border-color: var(--green-100); }
.ct-ia.erreur { background: var(--coral-50); border-color: var(--coral-100); color: var(--coral-700); }
.ct-ia-txt { display: grid; gap: .2rem; flex: 1 1 18rem; min-width: 0; font-size: .9375rem; }
.ct-ia-txt span { color: var(--ink-2); }
.ct-ia.erreur .ct-ia-txt span { color: inherit; }
.ct-ia.attente .ct-ia-txt b::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .45em; border: 2px solid var(--yellow-800);
  border-right-color: transparent; border-radius: 50%; vertical-align: -.05em; animation: ct-tourne .8s linear infinite; }
@keyframes ct-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ct-ia.attente .ct-ia-txt b::before { animation: none; } }
.ct-ia-remarques { margin: .35rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .875rem; }
.ct-ia-act { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-champs textarea[readonly], .ct-champs input[readonly] { background: var(--soft); }
.ct-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem 1rem; }
.ct-corps { min-height: 22rem; line-height: 1.55; resize: vertical; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.ct-actions .push { margin-left: auto; }
.ct-haut { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-champs[disabled] .inp, .ct-champs[disabled] .txt, .ct-champs[disabled] .sel { background: var(--soft); }
@media (max-width: 56rem) {
  .ct-champs { grid-template-columns: minmax(0, 1fr); }
}

/* Envoi par e-mail : formulaire à gauche, courrier joint et envois précédents à droite */
.ct-envoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.25rem; align-items: start; }
.ct-envoi > .card { margin: 0; }
.ct-envoi .form h2, .ct-envoi-cote h2 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.ws .ct-envoi-cote > .card { display: grid; gap: .75rem; margin: 0 0 1rem; }
.ct-joint { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.ct-joint > div { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.ct-envoi-cote .btn { justify-self: start; }
.ct-envois { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9375rem; }
.ct-envois li { display: grid; gap: .1rem; margin: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ct-envois li:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-envois span { color: var(--ink-2); }
@media (max-width: 56rem) {
  .ct-envoi { grid-template-columns: minmax(0, 1fr); }
}

/* Fenêtre « Voir le courrier » */
.ct-dialogue { width: min(58rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 16px;
  background: var(--soft); color: var(--ink); overflow: auto; box-shadow: 0 24px 60px -20px rgba(27, 31, 36, .5); }
.ct-dialogue::backdrop { background: rgba(27, 31, 36, .55); }
/* Aperçu d'un PV dans la page : le document (A4) défile dans la fenêtre */
.pv-dialogue[open] { display: flex; flex-direction: column; height: calc(100vh - 2rem); overflow: hidden; }
.pv-cadre { flex: 1; width: 100%; min-height: 0; border: 0; background: #E9EBEE; }
/* Page du CSE : photo en grand, sur fond sombre, flèches de part et d'autre */
.pg-vue { width: min(72rem, calc(100vw - 2rem)); }
.pg-vue[open] { display: flex; flex-direction: column; height: calc(100vh - 2rem); overflow: hidden; }
.pg-vue-scene { position: relative; flex: 1; min-height: 0; background: #1B1F24; }
.pg-vue-img { position: absolute; inset: 0; display: block; margin: auto; max-width: calc(100% - 9rem); max-height: calc(100% - 2rem); border-radius: 6px; user-select: none; }
.pg-vue-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.pg-vue-nav:hover { background: #FFFFFF; }
.pg-vue-nav:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.pg-vue-nav.prec { left: 1rem; }
.pg-vue-nav.suiv { right: 1rem; }
.pg-vue.seule .pg-vue-nav { display: none; }
.pg-vue.seule .pg-vue-img { max-width: calc(100% - 2rem); }
.pg-photo { cursor: zoom-in; }
@media (max-width: 44rem) {
  .pg-vue { width: 100vw; }
  .pg-vue[open] { height: 100vh; height: 100dvh; }
  .pg-vue [data-pg-onglet] { display: none; }
  .pg-vue-img { inset: .5rem .5rem 4.75rem; max-width: calc(100% - 1rem); max-height: calc(100% - 5.25rem); }
  .pg-vue.seule .pg-vue-img { inset: .5rem; max-height: calc(100% - 1rem); }
  .pg-vue-nav { top: auto; bottom: 1rem; margin-top: 0; width: 44px; height: 44px; }
}
.ct-dialogue-barre { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem 1rem;
  background: var(--white); border-bottom: 1px solid var(--line); }
.ct-dialogue-barre b { margin-right: auto; }
.ct-feuille { container-type: inline-size; width: calc(100% - 2.5rem); max-width: 52rem; margin: 1.25rem auto 0; border: 1px solid var(--line); border-radius: 4px;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(27, 31, 36, .06), 0 18px 40px -24px rgba(27, 31, 36, .35); overflow: hidden; }
.ct-apercu-note { width: calc(100% - 2.5rem); max-width: 52rem; margin: .6rem auto 1.25rem; }
@media (max-width: 44rem) {
  .ct-dialogue { width: 100vw; max-height: 100vh; border-radius: 0; }
  .ct-feuille, .ct-apercu-note { width: calc(100% - 1rem); }
}

/* ---------- Affiches (créées par l'IA, d'après Yllo Creative Studio) ---------- */

/* Liste */
.af-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.1rem; }
.af-liste li { margin: 0; display: flex; flex-direction: column; }
.af-liste li > .af-carte { flex: none; height: auto; }
.af-item > .af-carte-txt { margin-top: .6rem; }
/* Liste : croix de suppression au survol, crayon devant le nom (renommage sur place) */
.af-item { position: relative; }
.af-sup-form { position: absolute; top: .55rem; right: .55rem; z-index: 2; opacity: 0; transform: scale(.85); transition: opacity .15s ease, transform .15s ease; }
.af-item:hover .af-sup-form, .af-item:focus-within .af-sup-form { opacity: 1; transform: none; }
@media (hover: none) { .af-sup-form { opacity: 1; transform: none; } }
.af-sup {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid rgba(27, 31, 36, .08); border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink-2);
  box-shadow: 0 4px 12px -4px rgba(27, 31, 36, .35);
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.af-sup svg { width: 16px; height: 16px; }
.af-sup:hover, .af-sup:focus-visible { background: var(--coral-700); border-color: var(--coral-700); color: var(--white); }
.af-nom { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.af-liste .af-nom-lien { min-width: 0; color: var(--ink) !important; font-weight: 700 !important; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.af-liste .af-nom-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.af-crayon, .af-nom-ok, .af-nom-annuler {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer;
}
.af-crayon .ic, .af-nom-ok .ic { width: 16px; height: 16px; }
.af-nom-annuler svg { width: 15px; height: 15px; }
.af-crayon:hover, .af-nom-annuler:hover { background: var(--soft); color: var(--ink); }
.af-nom-ok { background: var(--green-700); color: var(--white); }
.af-nom-ok:hover { background: #196845; }
.af-nom-form { display: flex; align-items: center; gap: .25rem; flex: 1; min-width: 0; }
.af-nom-form[hidden], .af-crayon[hidden], .af-nom-lien[hidden] { display: none; }
.af-nom-champ {
  flex: 1; min-width: 0; padding: .2rem .45rem; border: 1px solid var(--green); border-radius: 8px;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 700; line-height: 1.3;
  box-shadow: 0 0 0 3px var(--green-50);
}
.af-nom-champ:focus { outline: none; }
.af-cadre .card-head { margin-bottom: 1.25rem; }
.af-carte { position: relative; display: grid; gap: .6rem; height: 100%; color: var(--ink) !important; font-weight: 400 !important; text-decoration: none; }
.af-carte-image { display: grid; place-items: center; aspect-ratio: 1 / 1.1; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: #E9EBEE; overflow: hidden;
  transition: border-color .15s, box-shadow .15s; }
.af-carte-image img { display: block; max-width: 100%; max-height: 100%; box-shadow: 0 6px 18px -8px rgba(27, 31, 36, .45); background: #FFFFFF; }
.af-carte:hover .af-carte-image { border-color: var(--coral); box-shadow: 0 8px 22px -14px rgba(27, 31, 36, .35); }
.af-carte-vide { display: grid; justify-items: center; gap: .4rem; color: var(--ink-3); font-size: .875rem; font-weight: 600; }
.af-carte-vide .ic { width: 26px; height: 26px; color: var(--coral-700); }
.af-carte-txt { display: grid; gap: .1rem; min-width: 0; }
.af-carte-txt b { overflow-wrap: anywhere; line-height: 1.3; }
.af-carte-txt span { color: var(--ink-3); font-size: .875rem; }
.af-carte-pastille { position: absolute; top: .6rem; left: .6rem; }

/* Page d'une affiche : une seule colonne, étapes numérotées */
.af { display: grid; gap: 1.25rem; }
.ws .af > .card { margin: 0; }
.af-bloc { display: grid; gap: .9rem; min-width: 0; border: 1px solid var(--line); }
.af-bloc > legend { float: left; width: 100%; padding: 0; }
.af-bloc > legend + * { clear: both; }
.af-bloc > p { margin: 0; }
.af-etape { display: flex; align-items: center; gap: .6rem; margin: 0 0 .25rem; font-size: 1.125rem; font-weight: 800; }
.af-etape span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--coral-50); color: var(--coral-700); font-size: .9375rem; }

.af-formats-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
.af-format { position: relative; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.af-format input, .af-qualite input { position: absolute; opacity: 0; pointer-events: none; }
.af-format:has(input:checked), .af-qualite:has(input:checked) { border-color: var(--coral); background: var(--coral-50); }
.af-format:has(input:focus-visible), .af-qualite:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.af-format-forme { flex: none; width: 2.2rem; border: 2px solid var(--ink-2); border-radius: 3px; background: var(--white); }
.af-f-a4p.af-format-forme { height: 3.1rem; }
.af-f-a4l.af-format-forme { width: 3.1rem; height: 2.2rem; }
.af-f-carre.af-format-forme { height: 2.2rem; }
.af-f-story.af-format-forme { width: 1.8rem; height: 3.2rem; }
.af-format-txt { display: grid; gap: .1rem; }
.af-format-txt span { color: var(--ink-3); font-size: .8125rem; line-height: 1.35; }
.af-qualites { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
.af-qualite { position: relative; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.af-qualite span { display: grid; gap: .1rem; color: var(--ink-3); font-size: .8125rem; line-height: 1.35; }
.af-qualite b { color: var(--ink); font-size: .9375rem; }

.af-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; gap: .8rem; }
.af-champ { display: grid; gap: .45rem; align-content: start; padding: .8rem .9rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.af-champ-tete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.6rem; }
.af-champ-nom { color: var(--ink-2); font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.af-champ-perso { flex: 1; min-width: 0; padding: .15rem 0; border: 0; border-bottom: 1.5px dashed var(--line); background: none; color: var(--coral-700);
  font: 800 .8125rem var(--font); letter-spacing: .04em; text-transform: uppercase; }
.af-champ-perso:focus { outline: none; border-bottom-color: var(--coral); }
.af-champ-sup { flex: none; width: 1.7rem; height: 1.7rem; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink-3); font: 700 1.1rem/1 var(--font); cursor: pointer; }
.af-champ-sup:hover, .af-champ-sup:focus-visible { border-color: var(--coral-100); background: var(--white); color: var(--coral-700); }
.af-champ .inp, .af-champ .txt { width: 100%; background: var(--white); }
.af-champ .txt { resize: vertical; line-height: 1.45; }
.af-ajout { max-width: 22rem; margin: 0; }
.af-ajout .sel { border-style: dashed; color: var(--green-700); font-weight: 600; }

.af-creer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.af-nom { flex: 1 1 18rem; margin: 0; }
.af-creer-action { display: grid; justify-items: end; gap: .4rem; }
.af-creer-action p { margin: 0; text-align: right; }
.af-creer-action .btn[disabled] { opacity: .7; }

/* Résultat : attente, erreur, aperçu et versions */
.af-resultat { display: grid; gap: 1rem; }
.af-attente { display: grid; justify-items: center; gap: 1.25rem; padding: 2.5rem 1rem; text-align: center; }
.af-attente p { max-width: 26rem; margin: 0; color: var(--ink-2); line-height: 1.6; }
.af-attente-ic { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--coral-50); color: var(--coral-700); animation: af-pouls 1.8s ease-in-out infinite; }
.af-attente-ic .ic { width: 28px; height: 28px; }
@keyframes af-pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.af-barre-attente { position: relative; width: min(22rem, 85%); height: 6px; overflow: hidden; border-radius: 99px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.af-barre-attente::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--coral), transparent);
  animation: af-glisse 1.3s ease-in-out infinite; }
@keyframes af-glisse { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .af-attente-ic, .af-barre-attente::before { animation-duration: 3s; } }
.af-apercu { display: grid; justify-items: center; gap: 1rem; }
.af-apercu > .alert { width: 100%; max-width: 40rem; margin: 0; }
.af-image { width: 100%; max-width: 38rem; padding: 1rem; border-radius: 14px; background: #E4E6EA; }
.af-image img { display: block; width: 100%; height: auto; box-shadow: 0 16px 40px -18px rgba(27, 31, 36, .55); background: #FFFFFF; }
.af-image-info { margin: 0; }
/* Sous l'affiche : date et « Recréer » sur une ligne, puis les usages de l'affiche en grille régulière (2 × 2) */
.af-image-bas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; }
.af-image-bas .af-image-info { margin: 0; }
.af-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: 100%; max-width: 36rem; margin: 0 auto; }
.af-actions form { display: flex; margin: 0; }
.af-actions .btn { width: 100%; justify-content: center; }
.af-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .af-actions { grid-template-columns: 1fr; } }
.af-versions { width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); }
.af-versions h3 { margin: 0 0 .2rem; font-size: 1rem; }
.af-versions-liste { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.af-version { display: grid; justify-items: center; gap: .3rem; width: 7.5rem; padding: .4rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--ink-3); font: 600 .6875rem/1.3 var(--font); cursor: pointer; }
.af-version img { display: block; max-width: 100%; height: 8rem; object-fit: contain; }
.af-version.actif, .af-version:hover { border-color: var(--coral); color: var(--ink); }
.af-bas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.af-bas .af-sup-fiche { margin-left: auto; color: var(--coral-700); white-space: nowrap; }
@media (max-width: 44rem) {
  .af-creer-action { justify-items: stretch; }
  .af-creer-action p { text-align: left; }
}
/* ---------- Utilisation de l'IA (plafonds mensuels) ---------- */

.ia-jauge { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.ia-l { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: .9375rem; }
.ia-l b { font-variant-numeric: tabular-nums; }
progress.bar.plein::-webkit-progress-value { background: var(--coral-700); }
progress.bar.plein::-moz-progress-bar { background: var(--coral-700); }
progress.bar.haut::-webkit-progress-value { background: var(--yellow); }
progress.bar.haut::-moz-progress-bar { background: var(--yellow); }

/* ---------- Convention de bêta-test ---------- */

.conv-bref { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.conv { max-width: 52rem; line-height: 1.6; }
.conv h1 { font-size: 1.375rem; }
.conv h2 { font-size: 1.0625rem; margin: 1.6rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.conv h3 { margin: 1rem 0 .35rem; }
.conv p, .conv li { margin: 0 0 .5rem; }
.conv ul { padding-left: 1.2rem; }
.conv-sous, .conv-note { color: var(--ink-3); font-size: .875rem; }
.conv-tbl { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .875rem; }
.conv-tbl th, .conv-tbl td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.conv-tbl th { background: var(--paper, #f6f5f2); }
@media (max-width: 40rem) { .conv-tbl { display: block; overflow-x: auto; } }

/* ---------- Pages du compte (profil, sécurité) ---------- */

.compte-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: .5rem clamp(1rem, 3vw, 2rem); background: var(--white); border-bottom: 1px solid var(--line); }
.compte-top .logo img { height: 28px; width: auto; }
.compte-top .spacer { margin-left: auto; }
.compte-top .logo { flex: none; }
.compte-retour-court { display: none; }
/* Téléphone : le logo garde sa taille ; bouton de retour raccourci, prénom masqué (les initiales restent) */
@media (max-width: 640px) {
  .compte-top { gap: .6rem; }
  .compte-top .btn { white-space: nowrap; }
  .compte-retour-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compte-retour-court { display: inline; }
  .compte-top .menu-name { display: none; }
}
.compte-main { width: 100%; max-width: 820px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 4rem; }
.tabs-line { display: flex; gap: .25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-line a { display: block; padding: .7rem .9rem; border-bottom: 3px solid transparent; color: var(--ink-2) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs-line a[aria-current="page"] { color: var(--green-700) !important; border-bottom-color: var(--green-700); }

/* ---------- Back-office ---------- */

.admin-band { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .35rem 1rem; background: var(--ink); color: var(--white); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
.admin-band .ic { width: 16px; height: 16px; color: var(--yellow); }
body.admin .side { top: 31px; height: calc(100vh - 31px); }

/* ---------- Liste de diffusion (espace et pages des salariés) ---------- */

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.df-cse { margin: 0 0 .25rem; text-align: center; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.df-lead { white-space: normal; }
.insecable { white-space: nowrap; }
.df-canaux, .df-groupes { display: flex; flex-direction: column; gap: .5rem; }
.df-qr { margin: 1.25rem 0 .5rem; text-align: center; }
.df-qr .qr { width: 180px; height: 180px; margin: 0 auto .5rem; display: block; }
.df-bloc { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.df-bloc h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: 1.0625rem; }
.df-bloc h2 .ic { width: 20px; height: 20px; color: var(--ink-3); }
.df-bloc p { margin: 0 0 .75rem; }
.df-bloc .form .field { margin-bottom: .75rem; }
.df-chiffre { display: flex; align-items: baseline; gap: .5rem; margin: .25rem 0 1rem; }
.df-chiffre b { font-size: 2.5rem; line-height: 1; color: var(--ink); }
.df-chiffre span { color: var(--ink-2); }
.df-stats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.df-stats li { display: flex; align-items: center; gap: .5rem; }
.df-stats .ic { width: 18px; height: 18px; color: var(--ink-3); }
.df-qr-espace { margin: 0; }
.df-qr-espace .qr { width: 150px; height: 150px; }
/* Haut de page : deux cartes de même hauteur (la seconde, plus riche, un peu plus large) */
.df-haut { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: stretch; }
.df-haut.inverse { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.df-haut + .card { margin-top: 1.25rem; }
.df-carte { display: flex; flex-direction: column; }
.df-carte > .actions-row { margin-top: auto; padding-top: 1rem; }
.df-partage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-top: auto; padding-top: 1rem; }
.df-partage .field { margin-bottom: .75rem; }
/* Page du CSE : adresse personnalisée (le début de l'adresse est écrit devant le champ) */
.pg-adresse { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.pg-adresse-champ { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pg-adresse-debut { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.pg-adresse-champ .inp { flex: 1 1 11rem; min-width: 0; }
@media (max-width: 1100px) { .df-haut { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .df-partage { grid-template-columns: 1fr; justify-items: start; } }
.df-recherche { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.df-recherche .inp { flex: 1 1 14rem; min-width: 0; }
.df-recherche .end { margin-left: auto; }
.df-contacts .end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.df-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; }
.df-groupe .inp { flex: 1 1 12rem; min-width: 0; }
.df-groupes-liste { margin-bottom: 1rem; }
.df-groupe-ajout { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.df-groupe-ajout .field { flex: 1 1 14rem; margin-bottom: 0; }
.df-titre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 3.25rem 0 1rem; }
.df-titre h2 { margin: 0; }
.df-canaux.df-ligne { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; }
.df-choix-groupes { margin-left: 1.75rem; }
.df-compte { margin: .25rem 0 0; padding: .75rem 1rem; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-weight: 600; }
.df-programmer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.df-programmer .field { margin-bottom: 0; }
.df-apercu { margin-top: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.df-apercu p { margin: 0 0 .75rem; }
.df-apercu p:last-child { margin-bottom: 0; }
.df-avancement progress { width: 100%; }
.df-form .card h2 { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: 1.0625rem; }
.df-form .card h2 .ic { width: 20px; height: 20px; color: var(--coral-700); }
.df-form .ct-carte-tete { margin-bottom: .5rem; }
.df-form .ct-carte-tete h2 { margin: 0; }

/* ---------- Page du CSE (pages publiques des salariés et outil de l'espace) ---------- */

body.pg { background: var(--soft); }
.pg-wrap { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.pg-tete { background: var(--white); border-bottom: 1px solid var(--line); }
.pg-tete-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.pg-marque { display: flex; align-items: center; gap: .75rem; min-width: 0; color: var(--ink); text-decoration: none; }
.pg-marque b { display: block; font-size: 1.25rem; line-height: 1.2; }
.pg-logo { flex: none; width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.pg-logo-vide { display: grid; place-items: center; background: var(--coral-50); color: var(--coral-700); }
.pg-logo-vide .ic { width: 26px; height: 26px; }
/* Photo ronde et image de couverture */
.pg-avatar { border-radius: 50%; object-fit: cover; }
.pg-couverture { overflow: hidden; aspect-ratio: 3 / 1; border-radius: 0 0 18px 18px; background: var(--soft); }
.pg-couverture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avec-couverture .pg-tete-in { padding-top: 0; }
.avec-couverture .pg-marque { align-items: flex-end; padding-left: 1.25rem; }
.avec-couverture .pg-logo { width: 104px; height: 104px; margin-top: -40px; border: 4px solid var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.avec-couverture .pg-avatar { border-radius: 50%; }
.avec-couverture .pg-marque > span { padding-bottom: .35rem; }
@media (max-width: 640px) {
  .pg-couverture { aspect-ratio: 5 / 2; }
  .avec-couverture .pg-logo { width: 80px; height: 80px; margin-top: -30px; }
  .avec-couverture .pg-marque { padding-left: .75rem; }
  /* Nom du CSE et cloche centrés verticalement entre la couverture et le fil ; la photo ronde reste à la même place */
  .avec-couverture .pg-tete-in { align-items: center; padding-top: .75rem; padding-bottom: .75rem; }
  .avec-couverture .pg-marque { align-items: center; }
  .avec-couverture .pg-logo { align-self: flex-start; margin-top: calc(-30px - .75rem); }
  .avec-couverture .pg-marque > span { padding-bottom: 0; }
}
/* « Recevoir les informations » : cloche ronde à droite du nom (intitulé pour les lecteurs d'écran et au survol) */
.pg-tete-in { flex-wrap: nowrap; }
.pg-inscrire { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-700); color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(31, 122, 83, .6); transition: transform .15s ease, background .15s ease; }
.pg-inscrire:hover { background: var(--green-800, #17603F); transform: translateY(-1px); }
.pg-inscrire:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pg-inscrire .ic { width: 24px; height: 24px; }
.avec-couverture .pg-inscrire { align-self: flex-end; margin-bottom: .2rem; }
@media (max-width: 640px) {
  .pg-inscrire { width: 44px; height: 44px; }
  .pg-inscrire .ic { width: 21px; height: 21px; }
  .avec-couverture .pg-inscrire { align-self: center; margin-bottom: 0; }
}
.pg-sur { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.pg-main { padding-top: 1.5rem; padding-bottom: 2rem; }
.pg .card { margin-bottom: 1.25rem; }
.pg section { padding: 0; margin: 0; }
.pg-form .ct-champs .card { margin: 0; }
.pg-form .field.stack { margin-top: 1rem; }
.pg-intro { margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.pg-acces p { margin: 0 0 .75rem; }
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .875rem; color: var(--ink-3); }
.pg-meta .chip .ic { width: 14px; height: 14px; margin-right: .25rem; vertical-align: -2px; }
.pg-titre { margin: 0 0 .6rem; font-size: 1.375rem; line-height: 1.25; }
.pg-titre a { color: inherit; text-decoration: none; }
.pg-titre a:hover { text-decoration: underline; }
.pg-date { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; padding: .6rem .8rem; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-weight: 600; }
.pg-date .ic { flex: none; width: 20px; height: 20px; }
.pg-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .75rem 0; }
.pg-photo { display: block; }
.pg-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.pg-photos .premiere { grid-column: 1 / -1; }
.pg-photos .premiere img { max-height: 80vh; object-fit: contain; background: var(--soft); }
.pg-photo:not(.premiere) img { aspect-ratio: 1; object-fit: cover; }
.pg-texte p { margin: 0 0 .75rem; line-height: 1.65; }
.pg-docs { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.pg-docs a { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.pg-docs a:hover { border-color: var(--green); }
.pg-docs .ic { width: 20px; height: 20px; color: var(--yellow-800); }
.pg-reactions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.pg-reaction { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.pg-reaction:hover { border-color: var(--yellow); }
.pg-reaction[aria-pressed="true"] { background: var(--yellow-50); border-color: var(--yellow); font-weight: 700; }
.pg-code { display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-code .inp { flex: 1 1 10rem; max-width: 16rem; text-transform: uppercase; letter-spacing: .15em; }
.pg-verrou p { margin: 0 0 .75rem; }
.pg-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; }
.pg-pied { padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); text-align: center; font-size: .8125rem; color: var(--ink-3); }
.pg-pied p { margin: .25rem 0; }
.pg-pied a { color: var(--ink-2); }
.pg-pied .ic { display: inline-block; width: 14px; height: 14px; margin-right: .3rem; vertical-align: -2px; }
.ws .card .pg-code-affiche, .pg-code-affiche { margin: .25rem 0 .5rem; font-family: Consolas, 'Courier New', monospace; font-size: 2rem; font-weight: 700; letter-spacing: .3em; color: var(--ink); }
/* Espace : aperçu de l'en-tête (tel que sur la page, à la largeur du fil) puis les deux dépôts, alignés */
.pg-apercu { max-width: 760px; margin: 1.25rem auto 0; padding: 0 0 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.pg-apercu-couv { display: grid; place-items: center; aspect-ratio: 3 / 1; background: repeating-linear-gradient(135deg, var(--soft) 0 12px, #EEF1F4 12px 24px); color: var(--ink-3); font-size: .875rem; text-align: center; }
.pg-apercu-couv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-apercu-couv span { padding: 0 1rem; }
.pg-apercu-bas { display: flex; align-items: flex-end; gap: .75rem; padding: 0 1.25rem; }
.pg-apercu-rond { flex: none; display: grid; place-items: center; width: 96px; height: 96px; margin-top: -36px; border: 4px solid var(--white); border-radius: 50%; background: var(--white); box-shadow: var(--shadow); object-fit: cover; }
.pg-apercu-rond.logo { border-radius: 20px; object-fit: contain; }
.pg-apercu-rond.vide { border-radius: 20px; background: var(--coral-50); color: var(--coral-700); }
.pg-apercu-rond.vide .ic { width: 36px; height: 36px; }
.pg-apercu-bas > span { padding-bottom: .3rem; min-width: 0; }
.pg-apercu-bas small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.pg-apercu-bas b { display: block; font-size: 1.125rem; line-height: 1.25; }
.pg-visuels { align-items: stretch; margin-top: 1.5rem; }
.pg-visuel { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.ws .card .pg-visuel h3 { margin: 0; font-size: 1rem; }
.pg-visuel p { margin: 0; }
.pg-visuel .file { background: var(--white); }
.pg-visuel .actions-row { margin-top: auto; padding-top: .25rem; }
@media (max-width: 640px) {
  .pg-apercu-rond { width: 72px; height: 72px; margin-top: -26px; }
  .pg-apercu-bas { padding: 0 .75rem; }
}
.pg-vignette { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.pg-medias { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.pg-medias li { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; max-width: 150px; }
.pg-medias img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.pg-doc-ic .ic { width: 28px; height: 28px; color: var(--yellow-800); }
.pg-joint { display: flex; align-items: center; gap: .75rem; }
.pg-joint img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pg-compte { white-space: nowrap; margin-right: .5rem; }

/* ---------- Impression (codes de secours) ---------- */

@media print {
  .side, .top, .tabbar, .compte-top, .no-print, .flashes, .admin-band { display: none !important; }
  body { background: #FFFFFF; }
  .card { box-shadow: none !important; border: 0 !important; }
}
