/* =====================================================================
 * InterfaZ Pro — feuille de style du socle. Préfixe az-. Charte InterfaZ : bleu nuit, or, crème.
 * Jetons de couleur dans :root : les modules les réutilisent (var(--az-…)) pour rester dans la charte.
 * ===================================================================== */
:root {
  --az-nuit: #0E1B33; --az-nuit-2: #1A2D52; --az-or: #F5B82E; --az-or-2: #FFD36E; --az-or-f: #B9831A;
  --az-fond: #F4F2EC; --az-surface: #FFFFFF; --az-pale: #F7F6F2; --az-texte: #18243A; --az-gris: #5E6B80; --az-trait: #E3E0D7;
  --az-ok: #2F7A57; --az-ok-p: #E3F2EA; --az-ko: #B6402B; --az-ko-p: #FBE7E2; --az-info: #29497F; --az-info-p: #E6EDF8;
  --az-rayon: 16px; --az-ombre: 0 10px 30px -18px rgba(14, 27, 51, .45);
  --az-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* rôles (changent avec le thème) */
  --az-titre: #0E1B33; --az-plein: #0E1B33; --az-plein-t: #FFFFFF; --az-bandeau: #0E1B33; --az-haut-bg: rgba(244, 242, 236, .92);
  --az-survol: rgba(14, 27, 51, .06); --az-nouv: #FFF9EA; --az-or-p: #FDF1D8; --az-or-t: #9A6A0E; --az-ombre-f: rgba(14, 27, 51, .5);
  color-scheme: light;
}
/* Thème sombre : choisi (data-theme="sombre") ou réglage du système quand le choix est « Automatique » */
:root[data-theme="sombre"] {
  --az-fond: #0A1222; --az-surface: #121C30; --az-pale: #18233A; --az-texte: #D9E1EE; --az-gris: #96A3B9; --az-trait: #253250;
  --az-ok: #5BC894; --az-ok-p: rgba(91, 200, 148, .14); --az-ko: #F2836D; --az-ko-p: rgba(242, 131, 109, .15); --az-info: #8CB2F0; --az-info-p: rgba(140, 178, 240, .14);
  --az-ombre: 0 12px 32px -18px rgba(0, 0, 0, .8);
  --az-titre: #F1F4FA; --az-plein: #F1F4FA; --az-plein-t: #0E1B33; --az-bandeau: #1C2E52; --az-haut-bg: rgba(10, 18, 34, .9);
  --az-survol: rgba(255, 255, 255, .07); --az-nouv: rgba(245, 184, 46, .07); --az-or-p: rgba(245, 184, 46, .14); --az-or-t: #F2C35B; --az-ombre-f: rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]):not([data-theme="sombre"]) {
    --az-fond: #0A1222; --az-surface: #121C30; --az-pale: #18233A; --az-texte: #D9E1EE; --az-gris: #96A3B9; --az-trait: #253250;
    --az-ok: #5BC894; --az-ok-p: rgba(91, 200, 148, .14); --az-ko: #F2836D; --az-ko-p: rgba(242, 131, 109, .15); --az-info: #8CB2F0; --az-info-p: rgba(140, 178, 240, .14);
    --az-ombre: 0 12px 32px -18px rgba(0, 0, 0, .8);
    --az-titre: #F1F4FA; --az-plein: #F1F4FA; --az-plein-t: #0E1B33; --az-bandeau: #1C2E52; --az-haut-bg: rgba(10, 18, 34, .9);
    --az-survol: rgba(255, 255, 255, .07); --az-nouv: rgba(245, 184, 46, .07); --az-or-p: rgba(245, 184, 46, .14); --az-or-t: #F2C35B; --az-ombre-f: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.az { font: 400 15px/1.55 var(--az-sans); color: var(--az-texte); background: var(--az-fond); -webkit-font-smoothing: antialiased; }
a { color: var(--az-info); }
:focus-visible { outline: 3px solid var(--az-or); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--az-titre); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.12rem; font-weight: 800; }
code { font: 500 .82em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--az-pale); padding: 1px 6px; border-radius: 6px; }
.az-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.az-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.az-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.az-saut { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--az-nuit); color: #fff; padding: 8px 14px; border-radius: 10px; }
.az-saut:focus { left: 8px; }

/* Logo */
.az-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.az-logo b { color: var(--az-or); }
.az-logo small { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--az-nuit); background: var(--az-or); border-radius: 6px; padding: 2px 6px; }
.az-logo__z { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, var(--az-or-2), var(--az-or)); color: var(--az-nuit); font-size: 1.15rem; }
.az-logo--grand { font-size: 1.6rem; }

/* Cadre */
.az-cadre { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.az-cote { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--az-nuit); color: #DDE4F1; padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.az-cote__t { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 6px; }
.az-cote .az-cote__f { display: none; }
.az-espace { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .08); }
.az-espace:hover { background: rgba(255, 255, 255, .1); }
.az-espace__a { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--az-or); color: var(--az-nuit); font-weight: 800; }
.az-espace__a--grand { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
.az-espace__n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-espace__n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-espace__n small { color: #A9B6CC; font-size: .78rem; }
.az-nav { display: flex; flex-direction: column; gap: 2px; }
.az-nav--bas { margin-top: auto; }
.az-nav__g { margin: 14px 10px 6px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7F8DA6; }
.az-nav__vide { margin: 6px 10px; font-size: .82rem; color: #8F9CB4; }
.az-nav__l { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #DDE4F1; text-decoration: none; font-weight: 600; }
.az-nav__l:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.az-nav__l.is-on { background: var(--az-or); color: var(--az-nuit); }
.az-principal { min-width: 0; display: flex; flex-direction: column; }
.az-haut { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 32px); background: var(--az-haut-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--az-trait); }
.az-haut__t { flex: 1; margin: 0; font-size: 1.35rem; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-haut .az-haut__m { display: none; }
.az-contenu { padding: clamp(16px, 3vw, 32px); max-width: 1560px; width: 100%; }
.az-voile { display: none; }

/* Menu utilisateur */
.az-moi { position: relative; }
.az-moi summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 999px; }
.az-moi summary::-webkit-details-marker { display: none; }
.az-moi summary:hover { background: var(--az-survol); }
.az-moi__a { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--az-nuit); color: var(--az-or); font-weight: 800; font-size: .85rem; }
.az-moi__n { font-weight: 700; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-moi__p { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; padding: 8px; border-radius: 14px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: 0 24px 50px -20px rgba(14, 27, 51, .5); }
.az-moi__p a, .az-moi__p button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--az-texte); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.az-moi__p a:hover, .az-moi__p button:hover { background: var(--az-pale); }
.az-moi__p form { margin: 0; }
.az-moi__e { margin: 4px 10px 8px; color: var(--az-gris); font-size: .82rem; word-break: break-all; }

/* Boutons */
.az-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; white-space: nowrap; }
.az-b--p { background: var(--az-or); color: var(--az-nuit); box-shadow: 0 3px 0 var(--az-or-f); }
.az-b--p:hover { background: var(--az-or-2); }
.az-b--p:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--az-or-f); }
.az-b--s { background: var(--az-surface); color: var(--az-titre); border-color: var(--az-trait); }
.az-b--s:hover { border-color: var(--az-titre); }
.az-b--t { background: none; color: var(--az-info); padding: 0 8px; }
.az-b--d { background: var(--az-ko); color: #fff; }
.az-b--plein { width: 100%; }
.az-btn-ic { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-surface); color: var(--az-titre); cursor: pointer; }
.az-cote .az-btn-ic { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.az-lien { font-weight: 700; color: var(--az-info); }

/* Cartes, textes */
.az-carte { background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: var(--az-rayon); padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--az-ombre); min-width: 0; }
.az-carte + .az-carte { margin-top: 16px; }
.az-carte--etroite { max-width: 720px; }
.az-sous { color: var(--az-gris); margin: 0 0 16px; }
.az-petit { color: var(--az-gris); font-size: .86rem; margin: 6px 0; }
.az-vide { color: var(--az-gris); margin: 4px 0; }
.az-chiffre { font-size: 2.4rem; font-weight: 800; color: var(--az-titre); margin: 0; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.az-g2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.az-flash { padding: 12px 16px; border-radius: 12px; font-weight: 650; margin-bottom: 14px; }
.az-flash--ok { background: var(--az-ok-p); color: var(--az-ok); }
.az-flash--ko { background: var(--az-ko-p); color: var(--az-ko); }
.az-flash--info { background: var(--az-info-p); color: var(--az-info); }
.az-pastille { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--az-pale); color: var(--az-gris); font-size: .74rem; font-weight: 800; white-space: nowrap; border: 1px solid var(--az-trait); }
.az-pastille--traite { background: var(--az-ok-p); color: var(--az-ok); }
.az-pastille--refuse, .az-pastille--erreur { background: var(--az-ko-p); color: var(--az-ko); }

/* Formulaires */
.az-form { display: flex; flex-direction: column; gap: 14px; }
.az-champ { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--az-titre); min-width: 0; }
.az-champ input, .az-champ select, .az-champ textarea, .az-membre__f select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-surface); color: var(--az-texte); font: 400 15px var(--az-sans); }
.az-champ input:focus, .az-champ select:focus, .az-champ textarea:focus { border-color: var(--az-or); outline: 3px solid rgba(245, 184, 46, .25); }
.az-champ input:disabled { background: var(--az-pale); color: var(--az-gris); }
.az-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.az-grille2__pleine { grid-column: 1 / -1; }
.az-bloc { border: 1px solid var(--az-trait); border-radius: 14px; padding: 14px 16px 6px; margin: 4px 0; display: flex; flex-direction: column; gap: 12px; }
.az-bloc legend { font-weight: 800; color: var(--az-titre); padding: 0 6px; }
.az-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Connexion */
.az-auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 90% -10%, rgba(245, 184, 46, .18), transparent 60%), var(--az-fond); }
.az-auth__b { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(14, 27, 51, .6); background: var(--az-surface); }
.az-auth__p { background: var(--az-nuit); color: #DDE4F1; padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.az-auth__p h2 { color: #fff; font-size: 1.7rem; margin-top: 24px; }
.az-auth__p ul { padding-left: 1.1em; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.az-auth__f { padding: clamp(24px, 5vw, 48px); }
.az-auth__f h1 { font-size: 1.6rem; }

/* Espaces */
.az-espaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 16px; }
.az-espace-c { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--az-trait); background: var(--az-surface); text-align: left; font: inherit; cursor: pointer; color: var(--az-texte); }
.az-espace-c:hover, .az-espace-c.is-on { border-color: var(--az-or); box-shadow: 0 0 0 3px rgba(245, 184, 46, .2); }
.az-espace-c span:last-child { display: flex; flex-direction: column; min-width: 0; }
.az-espace-c small { color: var(--az-gris); }

/* Tableau de bord (0.40) : grille 12 colonnes qui suit sa propre largeur, widgets S / M / L / XL, store, glisser-déposer */
.az-tb__t { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.az-tb__salut { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; margin: 0 0 2px; }
.az-tb__t .az-sous { margin: 0; }
.az-tb__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.az-tb__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: -4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--az-or-p); border: 1px solid rgba(245, 184, 46, .45); }
.az-tb__barre[hidden] { display: none; }
.az-tb__barre > p { display: flex; gap: 8px; align-items: flex-start; margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--az-or-t); }
.az-tb__barre-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.az-tb__barre-a form { margin: 0; }
.az-tb__modele { position: relative; }
.az-tb__modele > summary { list-style: none; cursor: pointer; }
.az-tb__modele > summary::-webkit-details-marker { display: none; }
.az-tb__modele[open] > form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(360px, 86vw); background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: 14px; padding: 14px; box-shadow: 0 24px 50px -24px var(--az-ombre-f); }
.az-tb { container: tb / inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.az-w { --w-ac: var(--az-nuit-2); --w-ac-p: var(--az-pale); position: relative; grid-column: span 6; min-width: 0; display: flex; flex-direction: column; background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: var(--az-rayon); box-shadow: var(--az-ombre); padding: 14px 16px 16px; }
.az-w--s { grid-column: span 3; } .az-w--m { grid-column: span 6; } .az-w--l { grid-column: span 9; } .az-w--xl { grid-column: 1 / -1; }
@container tb (max-width: 1100px) { .az-w--s { grid-column: span 4; } .az-w--m { grid-column: span 8; } .az-w--l, .az-w--xl { grid-column: 1 / -1; } }
@container tb (max-width: 820px) { .az-w--s, .az-w--m { grid-column: span 6; } .az-w--l, .az-w--xl { grid-column: 1 / -1; } }
@container tb (max-width: 560px) { .az-w, .az-w--s, .az-w--m, .az-w--l, .az-w--xl { grid-column: 1 / -1; } }
.az-w-c--bleu { --w-ac: #2E62B8; --w-ac-p: #E6EEFB; } .az-w-c--or { --w-ac: #B9831A; --w-ac-p: #FDF1D8; } .az-w-c--vert { --w-ac: #2F7A57; --w-ac-p: #E3F2EA; }
.az-w-c--rouge { --w-ac: #B6402B; --w-ac-p: #FBE7E2; } .az-w-c--violet { --w-ac: #6A4BB0; --w-ac-p: #EEE8FA; }
:root[data-theme="sombre"] .az-w-c--bleu, :root[data-theme="sombre"] .az-w-c--or, :root[data-theme="sombre"] .az-w-c--vert, :root[data-theme="sombre"] .az-w-c--rouge, :root[data-theme="sombre"] .az-w-c--violet { --w-ac-p: color-mix(in srgb, var(--w-ac) 22%, transparent); }
:root[data-theme="sombre"] .az-w-c--bleu { --w-ac: #8CB2F0; } :root[data-theme="sombre"] .az-w-c--or { --w-ac: #F2C35B; } :root[data-theme="sombre"] .az-w-c--vert { --w-ac: #5BC894; } :root[data-theme="sombre"] .az-w-c--rouge { --w-ac: #F2836D; } :root[data-theme="sombre"] .az-w-c--violet { --w-ac: #B9A2F0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .az-w-c--bleu { --w-ac: #8CB2F0; } :root:not([data-theme]) .az-w-c--or { --w-ac: #F2C35B; } :root:not([data-theme]) .az-w-c--vert { --w-ac: #5BC894; } :root:not([data-theme]) .az-w-c--rouge { --w-ac: #F2836D; } :root:not([data-theme]) .az-w-c--violet { --w-ac: #B9A2F0; }
  :root:not([data-theme]) [class*="az-w-c--"] { --w-ac-p: color-mix(in srgb, var(--w-ac) 22%, transparent); }
}
.az-w__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 36px; }
.az-w__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--w-ac-p); color: var(--w-ac); }
.az-w__ic .az-i { width: 18px; height: 18px; }
.az-w__ti { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-w__ti h2 { margin: 0; font-size: .97rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-w__ti small { color: var(--az-gris); font-size: .76rem; line-height: 1.2; }
.az-w__o { display: none; align-items: center; gap: 4px; }
.az-tb.is-perso .az-w__o { display: flex; }
.az-tb.is-perso .az-w { outline: 1px dashed color-mix(in srgb, var(--az-or) 70%, transparent); outline-offset: 3px; }
.az-w__o .az-btn-ic { width: 32px; height: 32px; border-radius: 9px; }
.az-w__poignee { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--az-trait); background: var(--az-pale); color: var(--az-texte); cursor: grab; touch-action: none; }
.az-w__poignee:active { cursor: grabbing; }
.az-w__tailles { display: inline-flex; border: 1px solid var(--az-trait); border-radius: 9px; overflow: hidden; }
.az-w__tailles button { min-width: 28px; height: 30px; border: 0; background: none; color: var(--az-gris); font: 700 .7rem/1 var(--az-sans); cursor: pointer; }
.az-w__tailles button + button { border-left: 1px solid var(--az-trait); }
.az-w__tailles button[aria-pressed="true"] { background: var(--az-plein); color: var(--az-plein-t); }
.az-w__c { container: w / inline-size; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.az-w.is-glisse { position: fixed; z-index: 200; margin: 0; pointer-events: none; transform: rotate(1.2deg) scale(1.02); box-shadow: 0 30px 60px -20px var(--az-ombre-f); opacity: .96; }
.az-w--place { background: var(--az-or-p); border: 2px dashed var(--az-or); box-shadow: none; min-height: 140px; }
.az-w.is-signale { animation: az-signale 1.6s ease; }
@keyframes az-signale { 0%, 100% { box-shadow: var(--az-ombre); } 25% { box-shadow: 0 0 0 4px rgba(245, 184, 46, .55); } }
@media (prefers-reduced-motion: reduce) { .az-w.is-signale { animation: none; } .az-w.is-glisse { transform: none; } }
body.az-glisse { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.az-tb__vide { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 2px dashed var(--az-trait); border-radius: var(--az-rayon); }
.az-tb__vide[hidden] { display: none; }
.az-tb__vide-i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--az-or-p); color: var(--az-or-t); margin-bottom: 10px; }
.az-tb__vide-i .az-i { width: 26px; height: 26px; }
/* store */
.az-store { position: fixed; inset: 0; z-index: 300; }
.az-store[hidden] { display: none; }
.az-store__fond { position: absolute; inset: 0; background: rgba(8, 14, 28, .5); }
.az-store__p { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--az-fond); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .55); animation: az-store-in .22s ease-out; }
@keyframes az-store-in { from { transform: translateX(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .az-store__p { animation: none; } }
body.az-store-ouvert { overflow: hidden; }
.az-store__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; }
.az-store__h h2 { margin: 0; font-size: 1.3rem; }
.az-store__h p { margin: 2px 0 0; }
.az-store__f { padding: 4px 18px 12px; border-bottom: 1px solid var(--az-trait); display: flex; flex-direction: column; gap: 10px; }
.az-store__q { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--az-surface); border: 1px solid var(--az-trait); color: var(--az-gris); }
.az-store__q input { flex: 1; border: 0; background: none; font: inherit; color: var(--az-texte); outline: none; min-width: 0; }
.az-store__q:focus-within { border-color: var(--az-or); box-shadow: 0 0 0 3px rgba(245, 184, 46, .2); }
.az-store__mods { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.az-store__mods button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte); font: 600 .82rem/1 var(--az-sans); cursor: pointer; }
.az-store__mods button[aria-pressed="true"] { background: var(--az-plein); border-color: var(--az-plein); color: var(--az-plein-t); }
.az-store__l { flex: 1; overflow-y: auto; padding: 8px 18px 24px; overscroll-behavior: contain; }
.az-store__g[hidden], .az-store__w[hidden] { display: none; }
.az-store__g h3 { margin: 16px 0 8px; font-size: .8rem; font-weight: 800; color: var(--az-gris); display: flex; gap: 6px; align-items: center; }
.az-store__g h3 small { font-weight: 700; background: var(--az-pale); border-radius: 999px; padding: 1px 7px; }
.az-store__g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.az-store__w { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--az-surface); border: 1px solid var(--az-trait); }
.az-store__w.is-ajoute { border-color: color-mix(in srgb, var(--az-ok) 45%, var(--az-trait)); }
.az-store__w.is-ajoute [data-tb-ajouter] { color: var(--az-ok); border-color: color-mix(in srgb, var(--az-ok) 45%, var(--az-trait)); }
.az-store__d b { display: block; color: var(--az-titre); font-size: .93rem; }
.az-store__d p { margin: 2px 0 6px; font-size: .84rem; color: var(--az-gris); line-height: 1.4; }
.az-store__t { display: flex; gap: 4px; }
.az-store__t i { font: 700 .66rem/1 var(--az-sans); font-style: normal; color: var(--az-gris); border: 1px solid var(--az-trait); border-radius: 5px; padding: 3px 5px; }
.az-store__pied { margin-top: 18px; }

/* composants des widgets (Az\Core\Wk) */
.az-wk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.az-wk-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--az-pale); color: inherit; text-decoration: none; }
a.az-wk-kpi:hover { background: var(--az-survol); }
.az-wk-kpi__v { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--az-titre); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-wk-kpi__v small { font-size: .55em; font-weight: 700; margin-left: 3px; color: var(--az-gris); letter-spacing: 0; }
.az-wk-kpi__l { font-size: .8rem; color: var(--az-gris); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.az-wk-kpi__n { font-size: .74rem; color: var(--az-gris); }
.az-wk-kpi--grand { background: none; padding: 0; }
.az-wk-kpi--grand .az-wk-kpi__v { font-size: 2.5rem; }
@container w (max-width: 260px) { .az-wk-kpi--grand .az-wk-kpi__v { font-size: 2rem; } .az-wk-kpi__v { font-size: 1.35rem; } }
.az-wk-kpi--ok .az-wk-kpi__v { color: var(--az-ok); } .az-wk-kpi--ko .az-wk-kpi__v { color: var(--az-ko); } .az-wk-kpi--alerte .az-wk-kpi__v { color: var(--az-or-t); }
.az-wk-kpi--ko { background: var(--az-ko-p); } .az-wk-kpi--alerte { background: var(--az-or-p); }
.az-wk-ev { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.az-wk-ev--bien { color: var(--az-ok); background: var(--az-ok-p); } .az-wk-ev--mal { color: var(--az-ko); background: var(--az-ko-p); } .az-wk-ev--neutre { color: var(--az-gris); background: var(--az-pale); }
.az-wk-courbe { margin: 0; }
.az-wk-courbe svg { display: block; width: 100%; height: 72px; overflow: visible; }
.az-wk-courbe__a { fill: color-mix(in srgb, var(--wk-c) 16%, transparent); stroke: none; }
.az-wk-courbe__t { fill: none; stroke: var(--wk-c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.az-wk-courbe__p { fill: var(--az-surface); stroke: var(--wk-c); stroke-width: 2.2; }
.az-wk-courbe figcaption, .az-wk-cols__l { display: flex; justify-content: space-between; font-size: .72rem; color: var(--az-gris); margin-top: 4px; }
.az-wk--or { --wk-c: var(--az-or-f); } .az-wk--ok { --wk-c: var(--az-ok); } .az-wk--info { --wk-c: var(--az-info); } .az-wk--ko { --wk-c: var(--az-ko); } .az-wk--alerte { --wk-c: #D46A1E; } .az-wk--gris { --wk-c: var(--az-gris); }
.az-wk-cols { margin: 0; }
.az-wk-cols svg { display: block; width: 100%; height: 84px; }
.az-wk-col { fill: color-mix(in srgb, var(--w-ac, var(--az-info)) 30%, transparent); }
.az-wk-col.is-actif { fill: var(--w-ac, var(--az-info)); }
.az-wk-cols__l span { flex: 1; text-align: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.az-wk-cols__l span b { display: block; color: var(--az-texte); font-size: .74rem; }
.az-wk-cols__l span.is-actif { color: var(--az-titre); font-weight: 700; }
@container w (max-width: 300px) { .az-wk-cols__l.n14 span:nth-child(odd), .az-wk-cols__l.n30 span:not(:nth-child(5n)), .az-wk-cols__l.n31 span:not(:nth-child(5n)) { visibility: hidden; } }
.az-wk-barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.az-wk-barres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline; font-size: .86rem; }
.az-wk-barres__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-wk-barres__l a { color: inherit; text-decoration: none; } .az-wk-barres__l a:hover { text-decoration: underline; }
.az-wk-barres b { font-variant-numeric: tabular-nums; font-size: .84rem; }
.az-wk-barres svg { grid-column: 1 / -1; width: 100%; height: 6px; display: block; }
.az-wk-piste { fill: var(--az-pale); stroke: var(--az-pale); }
.az-wk-rempli { fill: var(--w-ac, var(--az-info)); stroke: var(--w-ac, var(--az-info)); }
.az-wk-barres .az-wk--ko .az-wk-rempli { fill: var(--az-ko); } .az-wk-barres .az-wk--alerte .az-wk-rempli { fill: var(--az-or); } .az-wk-barres .az-wk--ok .az-wk-rempli { fill: var(--az-ok); }
.az-wk-anneau { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; position: relative; }
.az-wk-anneau svg { grid-row: 1 / 3; width: 76px; height: 76px; }
.az-wk-anneau .az-wk-piste { fill: none; stroke: var(--az-pale); }
.az-wk-anneau .az-wk-rempli { fill: none; stroke: var(--wk-c); }
.az-wk-anneau > b { position: absolute; left: 0; top: 50%; width: 76px; text-align: center; transform: translateY(-50%); font-size: 1.05rem; font-weight: 800; color: var(--az-titre); font-variant-numeric: tabular-nums; }
.az-wk-anneau > span { grid-row: 1 / 3; font-size: .86rem; color: var(--az-gris); }
.az-wk-anneau > span small { display: block; font-size: .78rem; }
.az-wk-rep svg { display: block; width: 100%; height: 10px; }
.az-wk-seg { fill: var(--wk-c); }
.az-wk-rep ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--az-gris); }
.az-wk-rep li { display: flex; align-items: center; gap: 6px; }
.az-wk-rep li i { width: 9px; height: 9px; border-radius: 3px; background: var(--wk-c); }
.az-wk-rep li b { color: var(--az-texte); font-variant-numeric: tabular-nums; }
.az-wk-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.az-wk-liste li + li { border-top: 1px solid var(--az-trait); }
.az-wk-liste li > a, .az-wk-liste li > div { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: inherit; text-decoration: none; border-radius: 8px; }
.az-wk-liste li > a:hover { background: var(--az-survol); }
.az-wk-liste__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-wk-liste__t b { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-wk-liste__t small { font-size: .76rem; color: var(--az-gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-wk-liste__v { font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.az-wk-ini { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font: 800 .72rem/1 var(--az-sans); background: var(--w-ac-p, var(--az-pale)); color: var(--w-ac, var(--az-texte)); }
.az-wk-pas { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--az-pale); color: var(--az-gris); white-space: nowrap; }
.az-wk-pas.az-wk--ok { background: var(--az-ok-p); color: var(--az-ok); } .az-wk-pas.az-wk--ko { background: var(--az-ko-p); color: var(--az-ko); } .az-wk-pas.az-wk--alerte { background: var(--az-or-p); color: var(--az-or-t); } .az-wk-pas.az-wk--info { background: var(--az-info-p); color: var(--az-info); }
@container w (max-width: 240px) { .az-wk-pas { display: none; } }
.az-wk-alerte { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 11px; border-radius: 11px; font-size: .85rem; background: var(--az-or-p); color: var(--az-or-t); }
.az-wk-alerte span { flex: 1; }
.az-wk-alerte a { font-weight: 700; color: inherit; white-space: nowrap; }
.az-wk-alerte.az-wk--ko { background: var(--az-ko-p); color: var(--az-ko); } .az-wk-alerte.az-wk--ok { background: var(--az-ok-p); color: var(--az-ok); } .az-wk-alerte.az-wk--info { background: var(--az-info-p); color: var(--az-info); }
.az-wk-vide { padding: 14px; border-radius: 12px; background: var(--az-pale); text-align: center; }
.az-wk-vide p { margin: 0 0 8px; color: var(--az-gris); font-size: .88rem; }
.az-wk-vide p:last-child { margin: 0; }
.az-wk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 4px; }
.az-wk-plus { margin: 0; font-size: .84rem; }
.az-wk-plus a { font-weight: 600; }
.az-wk-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
@container w (max-width: 420px) { .az-wk-2 { grid-template-columns: minmax(0, 1fr); } }
.az-wk-cache-etroit { }
@container w (max-width: 300px) { .az-wk-cache-etroit { display: none; } }
.az-bienv { display: flex; gap: 14px; align-items: center; }
.az-bienv__n { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--az-titre); }
.az-bienv__s { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.az-bienv__s .az-i { color: var(--az-ok); width: 16px; height: 16px; }

/* Équipe */
.az-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.az-membre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--az-trait); }
.az-membre:first-child { border-top: 0; }
.az-membre.is-off { opacity: .6; }
.az-membre__i { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.az-membre__i small { color: var(--az-gris); overflow-wrap: anywhere; }
.az-membre__f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.az-membre__f select { width: auto; min-height: 40px; }
.az-membre form { margin: 0; }
.az-provisoire { background: var(--az-or-p); border: 1px solid var(--az-or); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.az-provisoire p { margin: 0 0 8px; }
.az-provisoire__m { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.az-provisoire__m code { font-size: 1.15rem; padding: 6px 12px; background: var(--az-surface); }

/* Rôles et modules */
.az-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.az-role { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: var(--az-rayon); text-decoration: none; color: var(--az-texte); box-shadow: var(--az-ombre); flex-wrap: wrap; }
a.az-role:hover { border-color: var(--az-or); }
.az-role__i { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--az-pale); color: var(--az-titre); }
.az-role__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-role__t small { color: var(--az-gris); }
.az-role__n { width: 100%; color: var(--az-gris); font-size: .82rem; font-weight: 700; }
.az-mod.is-on { border-color: var(--az-ok); }
.az-mod.is-on .az-role__i { background: var(--az-ok-p); color: var(--az-ok); }
.az-mod form { margin: 0; }
.az-droits { border: 1px solid var(--az-trait); border-radius: 14px; padding: 8px 14px 12px; margin: 0 0 12px; }
.az-droits legend { font-weight: 800; color: var(--az-titre); padding: 0 6px; }
.az-case { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px dashed var(--az-trait); cursor: pointer; }
.az-case:first-of-type { border-top: 0; }
.az-case input { width: 20px; height: 20px; accent-color: var(--az-titre); }
.az-case span { flex: 1; font-weight: 600; min-width: 160px; }
.az-case code { color: var(--az-gris); }
.az-vide-g { text-align: center; padding: 40px 20px; }
.az-vide-g__i { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--az-pale); color: var(--az-or-f); }
.az-vide-g__i .az-i { width: 30px; height: 30px; }
.az-vide-g p { color: var(--az-gris); max-width: 520px; margin: 0 auto; }

/* Journal */
.az-onglets { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.az-onglets a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--az-surface); border: 1px solid var(--az-trait); color: var(--az-titre); text-decoration: none; font-weight: 700; }
.az-onglets a.is-on { background: var(--az-plein); color: var(--az-plein-t); border-color: var(--az-plein); }
.az-tab { position: relative; overflow-x: auto; border: 1px solid var(--az-trait); border-radius: 12px; }   /* relative : les libellés masqués (az-cache) restent dans la zone qui défile */
.az-tab table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.az-tab th { text-align: left; background: var(--az-pale); color: var(--az-gris); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px; }
.az-tab td { padding: 10px; border-top: 1px solid var(--az-trait); vertical-align: top; }

/* Erreurs */
.az-erreur { max-width: 520px; text-align: center; background: var(--az-surface); border-radius: 24px; padding: 32px 24px; box-shadow: 0 40px 80px -40px rgba(14, 27, 51, .6); }
.az-erreur .az-logo { color: var(--az-titre); }
.az-erreur__c { font-size: 3.6rem; font-weight: 800; margin: 12px 0 0; color: var(--az-or-f); }
.az-erreur__d { text-align: left; white-space: pre-wrap; background: var(--az-pale); padding: 10px; border-radius: 10px; font-size: .8rem; overflow: auto; }

/* Fenêtre de confirmation (aucune boîte native du navigateur) */
.az-dlg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 28, .55); }
.az-dlg[hidden] { display: none; }
.az-dlg__b { width: min(440px, 100%); background: var(--az-surface); border-radius: 18px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.az-dlg__a { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Tablette et téléphone */
@media (max-width: 1100px) {
  .az-g2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .az-cadre { grid-template-columns: 1fr; }
  .az-cote { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .25s ease; }
  .az-cote.is-ouvert { transform: none; box-shadow: 30px 0 60px -20px rgba(0, 0, 0, .5); }
  .az-cote .az-cote__f, .az-haut .az-haut__m { display: inline-grid; }
  .az-voile.is-ouvert { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 28, .5); }
  .az-auth__b { grid-template-columns: 1fr; }
  .az-auth__p { padding-bottom: 24px; }
  .az-auth__p ul, .az-auth__p p { display: none; }
  .az-auth__p h2 { margin-top: 8px; font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .az-grille2 { grid-template-columns: 1fr; }
  .az-moi__n { display: none; }
  .az-haut__t { font-size: 1.12rem; }
  .az-roles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .az-cote { transition: none; } }

/* ===== Console InterfaZ ===== */
.az-espace--console { cursor: default; }
.az-espace--console .az-espace__a { background: var(--az-or); color: var(--az-nuit); }
.az-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.az-kpi { display: flex; flex-direction: column; gap: 2px; background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: var(--az-rayon); padding: 16px 18px; box-shadow: var(--az-ombre); color: inherit; text-decoration: none; min-width: 0; }
a.az-kpi:hover { border-color: var(--az-or); }
.az-kpi small { color: var(--az-gris); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.az-kpi b { font-size: 1.7rem; font-weight: 800; color: var(--az-titre); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.2; }
.az-kpi span { color: var(--az-gris); font-size: .82rem; }
.az-kpi--ko { border-color: var(--az-ko); background: var(--az-ko-p); }
.az-kpi--ko b { color: var(--az-ko); }
.az-alertes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.az-alerte { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--az-ko-p); color: var(--az-ko); text-decoration: none; border: 1px solid transparent; }
.az-alerte:hover { border-color: currentColor; }
.az-alerte span { display: flex; flex-direction: column; font-size: .85rem; color: var(--az-texte); }
.az-alerte b { color: var(--az-ko); }
.az-alerte--info { background: var(--az-info-p); color: var(--az-info); }
.az-alerte--info b { color: var(--az-info); }
.az-barres { margin: 0; }
.az-barres svg { width: 100%; height: 80px; display: block; }
.az-barres__b { fill: var(--az-titre); }
.az-barres__b:hover { fill: var(--az-or); }
.az-barres__z { fill: var(--az-trait); }
.az-barres figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--az-gris); margin-top: 6px; }
.az-liste--serree > li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--az-trait); flex-wrap: wrap; }
.az-liste--serree > li:first-child { border-top: 0; }
.az-controles li span { display: flex; align-items: center; gap: 8px; }
.az-controles li span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--az-ok); flex: none; }
.az-controles li.is-ko span::before { background: var(--az-ko); }
.az-controles li.is-ko b { color: var(--az-ko); }
.az-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.az-pastille--support { background: var(--az-info-p); color: var(--az-info); }
.az-enligne { display: flex; gap: 6px; flex-wrap: wrap; }
.az-enligne input { min-width: 0; flex: 1 1 160px; padding: 7px 10px; border: 1px solid var(--az-trait); border-radius: 10px; font: inherit; font-size: .85rem; background: var(--az-surface); color: var(--az-texte); }
.az-enligne .az-champ input { flex: none; }   /* dans un champ (colonne), la base 160px deviendrait une hauteur */
.az-recherche { display: flex; gap: 8px; margin-bottom: 14px; }
.az-recherche input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--az-trait); border-radius: 12px; font: inherit; background: var(--az-surface); color: var(--az-texte); }
.az-case--retrait { padding-left: 26px; }
.az-tab--compacte { min-width: 480px !important; }
.az-def { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .84rem; margin: 16px 0 0; }
.az-def dt { font-weight: 800; color: var(--az-titre); }
.az-def dd { margin: 0; color: var(--az-gris); }
.az-bandeau { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--az-bandeau); color: #fff; margin-bottom: 16px; }
.az-bandeau p { flex: 1 1 260px; margin: 0; font-size: .9rem; }
.az-bandeau .az-i { color: var(--az-or); }
.az-bandeau--support { background: var(--az-info); }
.az-support { margin-bottom: 18px; border-color: var(--az-info); }
.az-support h2 { display: flex; align-items: center; gap: 8px; }
.az-pile { display: grid; gap: 18px; }
@media (max-width: 600px) { .az-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .az-kpi { padding: 12px 14px; } .az-kpi b { font-size: 1.35rem; } }

/* ===== Centre de notifications ===== */
.az-notif { position: relative; }
.az-notif summary { list-style: none; position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--az-titre); }
.az-notif summary::-webkit-details-marker { display: none; }
.az-notif summary:hover, .az-notif[open] summary { background: var(--az-survol); }
.az-notif summary .az-i { width: 22px; height: 22px; }
.az-notif__n { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--az-ko); color: #fff; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center; border: 2px solid var(--az-fond); font-variant-numeric: tabular-nums; }
.az-notif__n[hidden] { display: none; }
.az-notif.is-nouv summary .az-i { animation: az-sonne .8s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes az-sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.az-np { position: absolute; right: -52px; top: calc(100% + 8px); z-index: 40; width: min(400px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 90px)); display: flex; flex-direction: column; border-radius: 18px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: 0 30px 60px -24px rgba(14, 27, 51, .55); overflow: hidden; }
.az-np > [data-az-notif-panneau] { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.az-np__f { display: none; }
.az-np__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--az-trait); }
.az-np__h h2 { margin: 0; font-size: 1rem; }
.az-np__h form { margin: 0; }
.az-np__h .az-b { min-height: 44px; font-size: .85rem; }
.az-np .az-nts { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.az-np__p { display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--az-trait); background: var(--az-pale); }
.az-np__p a { font-weight: 700; text-decoration: none; padding: 6px 0; }
.az-np__vide { display: flex; gap: 14px; align-items: flex-start; padding: 28px 20px; color: var(--az-gris); }
.az-np__vide .az-i { width: 28px; height: 28px; color: var(--az-or-t); flex: none; }
.az-np__vide p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.az-np__vide b { color: var(--az-titre); }
.az-nts { list-style: none; margin: 0; padding: 0; }
.az-nt { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--az-trait); }
.az-nt:last-child { border-bottom: 0; }
.az-nt__o { flex: 1; min-width: 0; margin: 0; }
.az-nt__o button { display: flex; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.az-nt__o button:hover { background: var(--az-pale); }
.az-nt.is-nouv { background: var(--az-nouv); }
.az-nt.is-nouv::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--az-or); }
.az-nt__i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--az-info-p); color: var(--az-info); }
.az-nt__i .az-i { width: 18px; height: 18px; }
.az-nt--succes .az-nt__i { background: var(--az-ok-p); color: var(--az-ok); }
.az-nt--alerte .az-nt__i { background: var(--az-or-p); color: var(--az-or-t); }
.az-nt--urgent .az-nt__i { background: var(--az-ko-p); color: var(--az-ko); }
.az-nt__c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.az-nt__c b { color: var(--az-titre); font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.az-nt:not(.is-nouv) .az-nt__c b { font-weight: 600; }
.az-nt__t { color: var(--az-texte); font-size: .88rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.az-nt__c small { color: var(--az-gris); font-size: .76rem; }
.az-nt__x { display: inline-block; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--az-plein); color: var(--az-plein-t); font-size: .7rem; vertical-align: 2px; }
.az-nt__a { display: flex; align-items: center; gap: 4px; padding: 0 12px 0 0; }
.az-nt__a form { margin: 0; }
.az-nt__a .az-btn-ic { width: 44px; height: 44px; border-color: transparent; background: none; color: var(--az-gris); }
.az-nt__a .az-btn-ic:hover { background: var(--az-pale); color: var(--az-titre); }
.az-carte--nts { padding: 6px 0; }
.az-nts__j { margin: 14px 20px 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--az-gris); }
.az-nts--page { border-top: 1px solid var(--az-trait); }
.az-nts--page .az-nt__o button { padding: 14px 20px; }
.az-carte--nts > p { padding: 12px 20px; margin: 0; }
.az-ntb { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.az-ntb__d { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.az-ntb__d form { margin: 0; }
.az-ntb__d select { min-height: 44px; padding: 0 12px; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-surface); color: var(--az-texte); font: inherit; }
.az-compte { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--az-ko); color: #fff; font-size: .72rem; font-weight: 800; }
.az-onglets a.is-on .az-compte { background: var(--az-or); color: var(--az-nuit); }
.az-espace-c .az-compte { margin-left: auto; }
.az-interr { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--az-trait); cursor: pointer; min-height: 56px; }
.az-interr:first-of-type { border-top: 0; }
.az-interr > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.az-interr small { color: var(--az-gris); font-size: .84rem; }
.az-interr .az-pastille { align-self: flex-start; }
.az-interr em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--az-gris); }
.az-interr input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: var(--az-trait); position: relative; cursor: pointer; transition: background .15s; }
.az-interr input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(14, 27, 51, .3); transition: transform .15s; }
.az-interr input[type=checkbox]:checked { background: var(--az-ok); }
.az-interr input[type=checkbox]:checked::after { transform: translateX(20px); }
.az-interr input[type=checkbox]:disabled { opacity: .6; cursor: not-allowed; }
.az-interr.is-fixe { cursor: default; }
@media (max-width: 600px) {
  .az-np { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; border: 0; z-index: 80; }
  .az-np__f { display: inline-grid; position: absolute; top: 8px; right: 10px; z-index: 2; }
  .az-np__h { padding-right: 60px; min-height: 58px; }
  .az-ntb, .az-ntb__d { width: 100%; }
  .az-ntb__d form:first-child, .az-ntb__d select { flex: 1 1 100%; width: 100%; }
  .az-nt__a { flex-direction: column; justify-content: center; padding: 0 4px 0 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .az-notif.is-nouv summary .az-i { animation: none; } .az-interr input[type=checkbox], .az-interr input[type=checkbox]::after { transition: none; } }

/* ===== Responsive : tableaux en cartes et cibles tactiles (téléphone) ===== */
.az-case { min-height: 44px; }
@media (max-width: 700px) {
  .az-tab { border: 0; overflow: visible; }
  .az-tab table, .az-tab tbody, .az-tab tr, .az-tab td { display: block; width: 100%; min-width: 0 !important; }
  .az-tab--compacte { min-width: 0 !important; }   /* 0.47 : le cadre lui-même ne déborde plus du téléphone */
  .az-tab tfoot, .az-tab tfoot tr, .az-tab tfoot th { display: block; width: 100%; }
  .az-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .az-tab tr { border: 1px solid var(--az-trait); border-radius: 14px; padding: 6px 14px; margin-bottom: 10px; background: var(--az-surface); }
  .az-tab td { border-top: 1px solid var(--az-trait); padding: 8px 0; display: grid; grid-template-columns: minmax(90px, 34%) 1fr; gap: 10px; overflow-wrap: anywhere; }
  .az-tab td:first-child { border-top: 0; }
  .az-tab td::before { content: attr(data-l); color: var(--az-gris); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
  .az-tab td:not([data-l])::before, .az-tab td[data-l=""]::before { content: none; }
  .az-tab td:not([data-l]), .az-tab td[data-l=""] { grid-template-columns: 1fr; }
  .az-tab td > * { min-width: 0; }
  .az-enligne { flex-direction: column; align-items: stretch; }
  .az-enligne input { flex: none; width: 100%; min-height: 44px; }
  .az-b--t, .az-b--s { min-height: 44px; }
  .az-case input, .az-droits input[type=checkbox] { width: 24px; height: 24px; }
}
@media (max-width: 600px) { .az-haut { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--az-fond); } }   /* sinon le panneau plein écran serait limité à l'en-tête */
.az-tab td > .az-pastille { justify-self: start; }

/* ===== Menu latéral v0.4 : sélecteur d'espace, recherche, groupes repliables, sous-menus, mode réduit ===== */
.az-cadre { transition: grid-template-columns .22s ease; }
.az-cote { background: linear-gradient(180deg, #0F1D37 0%, #0B1629 100%); padding: 16px 12px 14px; gap: 10px; border-right: 1px solid rgba(255, 255, 255, .04); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; overflow-x: hidden; }
.az-cote__t { min-height: 44px; padding: 0 6px; }
.az-logo__m { white-space: nowrap; }
/* sélecteur d'espace */
.az-sel { border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.az-sel[open] { background: rgba(255, 255, 255, .07); }
.az-sel__s { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; cursor: pointer; border-radius: 14px; min-height: 56px; }
.az-sel__s::-webkit-details-marker { display: none; }
.az-sel__s:hover { background: rgba(255, 255, 255, .05); }
.az-sel__a { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #2A4677, #1B3159); color: #fff; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.az-sel__s .az-sel__a, .az-sel__e.is-on .az-sel__a { background: linear-gradient(160deg, var(--az-or-2), var(--az-or)); color: var(--az-nuit); box-shadow: none; }
.az-sel__a--z { background: linear-gradient(160deg, var(--az-or-2), var(--az-or)); color: var(--az-nuit); }
.az-sel__n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.az-sel__n b { color: #fff; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-sel__n small { color: #94A3BD; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-sel__c { color: #7F8DA6; width: 18px; height: 18px; }
.az-sel__p { padding: 4px 6px 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.az-sel__g { margin: 8px 6px 4px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7F8DA6; }
.az-sel__l { margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.az-sel__e { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; min-height: 48px; }
.az-sel__e .az-sel__a { width: 30px; height: 30px; border-radius: 8px; font-size: .82rem; }
.az-sel__e:hover { background: rgba(255, 255, 255, .07); }
.az-sel__ok { color: var(--az-or); width: 18px; height: 18px; }
.az-sel__tous { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 8px; border-radius: 10px; color: #C9D3E5; text-decoration: none; font-size: .86rem; font-weight: 600; border-top: 1px solid rgba(255, 255, 255, .07); }
.az-sel__tous:hover { background: rgba(255, 255, 255, .07); color: #fff; }
/* recherche */
.az-rech { position: relative; display: flex; align-items: center; }
.az-rech > .az-i { position: absolute; left: 12px; width: 18px; height: 18px; color: #7F8DA6; pointer-events: none; }
.az-rech input { width: 100%; height: 42px; padding: 0 64px 0 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: .9rem; }
.az-rech input::placeholder { color: #8391AA; }
.az-rech input:focus { outline: none; border-color: var(--az-or); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px rgba(245, 184, 46, .18); }
.az-rech input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.az-rech kbd { position: absolute; right: 10px; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); color: #8391AA; font: 700 .66rem/1.4 var(--az-sans); pointer-events: none; }
.az-rech input:focus ~ kbd, .az-rech input:not(:placeholder-shown) ~ kbd { display: none; }
.az-rech__b { display: none; }
.az-rech__vide { margin: 8px 12px; color: #8F9CB4; font-size: .86rem; }
/* groupes */
.az-nav { gap: 4px; flex: 1; }
.az-grp + .az-grp { margin-top: 6px; }
.az-grp__t { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px 6px; border: 0; background: none; color: #7F8DA6; font: 800 .66rem/1 var(--az-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 8px; min-height: 30px; }
.az-grp__t span:first-child { flex: 1; text-align: left; }
.az-grp__t:hover { color: #C9D3E5; }
.az-grp__t .az-i { width: 14px; height: 14px; transition: transform .18s ease; }
.az-grp__t[aria-expanded="false"] .az-i { transform: rotate(-90deg); }
.az-grp__p { width: 7px; height: 7px; border-radius: 50%; background: var(--az-ko); }
.az-grp__l, .az-nav__s { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.az-grp__l[hidden], .az-nav__s[hidden] { display: none; }
/* liens */
.az-nav__l { position: relative; min-height: 42px; padding: 0 12px; gap: 12px; border-radius: 11px; color: #C9D3E5; font-weight: 600; font-size: .93rem; transition: background .12s, color .12s; }
.az-nav__l .az-i { color: #8FA0BD; transition: color .12s; }
.az-nav__l:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.az-nav__l:hover .az-i { color: #fff; }
.az-nav__l.is-on { background: linear-gradient(90deg, rgba(245, 184, 46, .2), rgba(245, 184, 46, .05)); color: #fff; }
.az-nav__l.is-on .az-i { color: var(--az-or); }
.az-nav__l.is-on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--az-or); box-shadow: 0 0 12px rgba(245, 184, 46, .55); }
.az-nav__l:focus-visible { outline-offset: -2px; }
.az-nav__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-pill { flex: none; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .12); color: #fff; }
.az-pill--ko { background: var(--az-ko); }
.az-pill--or { background: var(--az-or); color: var(--az-nuit); }
.az-nav__vide { display: flex; gap: 10px; align-items: flex-start; margin: 2px 4px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .14); color: #94A3BD; font-size: .82rem; }
.az-nav__vide b { display: block; color: #DDE4F1; font-size: .86rem; margin-bottom: 2px; }
.az-nav__vide a { color: var(--az-or); font-weight: 700; text-decoration: none; }
.az-nav__vide a:hover { text-decoration: underline; }
.az-nav__vi { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--az-or); }
.az-nav__vi .az-i { width: 18px; height: 18px; }
/* sous-menus des modules */
.az-nav__mh { display: flex; align-items: center; gap: 2px; }
.az-nav__mh .az-nav__l { flex: 1; min-width: 0; }
.az-nav__mb { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: #8FA0BD; cursor: pointer; }
.az-nav__mb:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.az-nav__mb .az-i { width: 16px; height: 16px; transition: transform .18s ease; }
.az-nav__mb[aria-expanded="false"] .az-i { transform: rotate(-90deg); }
.az-nav__s { margin: 2px 0 4px 23px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .1); }
.az-nav__l--s { min-height: 36px; font-size: .88rem; padding: 0 10px; }
.az-nav__l--s .az-i { width: 16px; height: 16px; }
.az-nav__l--s.is-on::before { left: -14px; }
/* bas du menu */
.az-cote__b { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.az-nav__l--console .az-i { color: var(--az-or); }
.az-reduire { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: none; color: #94A3BD; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left; }
.az-reduire:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.az--compact .az-reduire .az-i { transform: scaleX(-1); }
/* infobulle du mode réduit */
.az-bulle { position: fixed; z-index: 90; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--az-nuit); font-size: .82rem; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); pointer-events: none; white-space: nowrap; transform: translateY(-50%); }
.az-bulle::before { content: ""; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: #fff; }
.az-bulle[hidden] { display: none; }
/* mode réduit (ordinateur seulement) */
@media (min-width: 901px) {
  .az--compact .az-cadre { grid-template-columns: 78px minmax(0, 1fr); }
  .az--compact .az-cote { padding: 16px 12px 14px; align-items: stretch; }
  .az--compact .az-cote__t { justify-content: center; padding: 0; }
  .az--compact .az-logo__m, .az--compact .az-logo small, .az--compact .az-sel__n, .az--compact .az-sel__c, .az--compact .az-nav__t, .az--compact .az-rech,
  .az--compact .az-nav__s, .az--compact .az-nav__mb, .az--compact .az-grp__t span, .az--compact .az-grp__t .az-i, .az--compact .az-nav__vide > span:last-child { display: none; }
  .az--compact .az-sel { background: none; border-color: transparent; }
  .az--compact .az-sel__s { justify-content: center; padding: 6px 0; }
  .az--compact .az-sel[open] { background: rgba(255, 255, 255, .05); }
  .az--compact .az-sel__p { display: none; }
  .az--compact .az-rech__b { display: grid; place-items: center; height: 42px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #94A3BD; cursor: pointer; }
  .az--compact .az-rech__b:hover { color: #fff; background: rgba(255, 255, 255, .09); }
  .az--compact .az-grp__t { justify-content: center; padding: 0; min-height: 14px; cursor: default; pointer-events: none; }
  .az--compact .az-grp__t::after { content: ""; width: 24px; height: 1px; background: rgba(255, 255, 255, .12); }
  .az--compact .az-grp__l[hidden] { display: flex; }
  .az--compact .az-nav__l, .az--compact .az-reduire { justify-content: center; padding: 0; }
  .az--compact .az-nav__l.is-on::before { left: -12px; }
  .az--compact .az-pill { position: absolute; top: 4px; right: 6px; min-width: 0; height: 10px; width: 10px; padding: 0; font-size: 0; border: 2px solid #0E1B33; }
  .az--compact .az-pill .az-cache { font-size: initial; }
  .az--compact .az-nav__vide { justify-content: center; padding: 8px; border-style: dashed; }
}
@media (max-width: 900px) {
  .az-cote { width: min(320px, 88vw); }
  .az-bloque { overflow: hidden; }
  .az-cote.is-ouvert { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) { .az-cadre, .az-grp__t .az-i, .az-nav__mb .az-i, .az-nav__l { transition: none; } }
@media (max-width: 900px) { .az-reduire, .az-rech kbd { display: none; } .az-cote__b:not(:has(a)) { display: none; } }
@media (hover: none) { .az-rech kbd { display: none; } }

/* ===== Recherche (palette Ctrl K), aide des raccourcis, thème ===== */
.az-chercher { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; height: 42px; padding: 0 10px 0 12px; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-surface); color: var(--az-gris); font: inherit; font-size: .9rem; cursor: pointer; box-shadow: 0 1px 0 rgba(14, 27, 51, .03); }
.az-chercher span { flex: 1; text-align: left; }
.az-chercher:hover { border-color: var(--az-or); color: var(--az-texte); }
.az-chercher .az-i { width: 18px; height: 18px; }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--az-trait); border-bottom-width: 2px; background: var(--az-pale); color: var(--az-gris); font: 700 .7rem/1.5 var(--az-sans); text-align: center; white-space: nowrap; }
.az-cote kbd { background: none; border-color: rgba(255, 255, 255, .16); color: #8391AA; }
/* bouton de recherche du menu (remplace le champ) */
.az-rech { width: 100%; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .05); color: #8391AA; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.az-rech:hover { border-color: rgba(245, 184, 46, .6); color: #DDE4F1; background: rgba(255, 255, 255, .08); }
.az-rech > .az-i { position: static; width: 18px; height: 18px; }
.az-rech kbd { position: static; }
@media (min-width: 901px) { .az--compact .az-rech { display: grid; place-items: center; padding: 0; } .az--compact .az-rech kbd { display: none; } }
.az-rech__b { display: none !important; }
/* palette */
.az-pal { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.az-pal[hidden] { display: none; }
.az-pal__v { position: absolute; inset: 0; background: rgba(8, 14, 28, .55); backdrop-filter: blur(3px); animation: az-fondu .12s ease-out; }
.az-pal__b { position: relative; width: min(680px, 100%); max-height: min(620px, 80vh); display: flex; flex-direction: column; border-radius: 18px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); overflow: hidden; animation: az-pal .14s ease-out; }
@keyframes az-pal { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes az-fondu { from { opacity: 0; } }
.az-pal__h { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--az-trait); }
.az-pal__h > .az-i { color: var(--az-or-t); width: 22px; height: 22px; }
.az-pal__h input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: none; color: var(--az-titre); font: 600 1.08rem var(--az-sans); }
.az-pal__h input::placeholder { color: var(--az-gris); font-weight: 500; }
.az-pal__x { border: 0; background: none; padding: 6px; cursor: pointer; }
.az-pal__ch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--az-trait); border-top-color: var(--az-or); animation: az-tourne .7s linear infinite; }
.az-pal__ch[hidden] { display: none; }
@keyframes az-tourne { to { transform: rotate(360deg); } }
.az-pal__l { flex: 1; overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.az-pal__gt { margin: 12px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--az-gris); }
.az-pal__o { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; min-height: 52px; }
.az-pal__o.is-on { background: var(--az-or-p); }
.az-pal__i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--az-pale); color: var(--az-titre); border: 1px solid var(--az-trait); }
.az-pal__o.is-on .az-pal__i { background: var(--az-or); color: #0E1B33; border-color: transparent; }
.az-pal__i .az-i { width: 18px; height: 18px; }
.az-pal__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-pal__t b { color: var(--az-titre); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-pal__t small { color: var(--az-gris); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-pal__t mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--az-or); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.az-pal__e { width: 18px; height: 18px; color: var(--az-gris); opacity: 0; }
.az-pal__o.is-on .az-pal__e { opacity: 1; }
.az-pal__vide { display: flex; flex-direction: column; gap: 4px; padding: 34px 20px; text-align: center; color: var(--az-gris); }
.az-pal__vide b { color: var(--az-titre); }
.az-pal__p { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--az-trait); background: var(--az-pale); color: var(--az-gris); font-size: .76rem; }
.az-pal__p span { display: inline-flex; align-items: center; gap: 4px; }
/* aide des raccourcis */
.az-aide { z-index: 210; }
.az-aide__b { width: min(720px, 100%); max-height: 86vh; overflow-y: auto; }
.az-aide__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.az-aide__h h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.az-aide__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 28px; }
.az-aide__g h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--az-gris); margin: 14px 0 6px; }
.az-aide__g dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; align-items: center; }
.az-aide__g dt { white-space: nowrap; }
.az-aide__g dd { margin: 0; color: var(--az-texte); font-size: .9rem; }
/* message bref */
.az-toast { position: fixed; left: 50%; bottom: 24px; z-index: 220; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--az-plein); color: var(--az-plein-t); font-weight: 700; font-size: .9rem; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); transition: opacity .18s, transform .18s; pointer-events: none; }
.az-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.az-repere { animation: az-repere 1.8s ease-out; border-radius: 12px; }
@keyframes az-repere { 0%, 40% { box-shadow: 0 0 0 4px rgba(245, 184, 46, .55); } 100% { box-shadow: 0 0 0 0 rgba(245, 184, 46, 0); } }
/* choix du thème (menu du compte) */
.az-theme { margin: 6px 0 2px; padding: 8px 10px 4px; border-top: 1px solid var(--az-trait); }
.az-theme__t { margin: 0 0 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--az-gris); }
.az-theme__c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 12px; background: var(--az-pale); border: 1px solid var(--az-trait); }
.az-moi__p .az-theme__c button { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 4px; min-height: 52px; border-radius: 9px; font-size: .76rem; font-weight: 700; color: var(--az-gris); text-align: center; }
.az-moi__p .az-theme__c button .az-i { width: 18px; height: 18px; }
.az-moi__p .az-theme__c button[aria-pressed="true"] { background: var(--az-surface); color: var(--az-titre); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .35); }
/* thème sombre : finitions */
:root[data-theme="sombre"] .az-moi__a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
:root[data-theme="sombre"] .az-cote { border-right-color: var(--az-trait); }
:root[data-theme="sombre"] .az-b--s:hover { border-color: var(--az-or); }
:root[data-theme="sombre"] .az-provisoire { border-color: rgba(245, 184, 46, .5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .az-moi__a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); } :root:not([data-theme]) .az-cote { border-right-color: var(--az-trait); } }
@media (max-width: 900px) { .az-chercher { min-width: 0; width: 44px; padding: 0; justify-content: center; border-radius: 50%; border-color: transparent; background: none; } .az-chercher span, .az-chercher kbd { display: none; } .az-chercher .az-i { width: 22px; height: 22px; color: var(--az-titre); } }
@media (max-width: 600px) {
  .az-pal { padding: 0; }
  .az-pal__b { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .az-pal__p { display: none; }
  .az-pal__o { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .az-pal__b, .az-pal__v, .az-toast, .az-repere { animation: none; transition: none; } }

/* ===== API et webhooks ===== */
.az-compte--n { background: var(--az-pale); color: var(--az-gris); border: 1px solid var(--az-trait); }
.az-onglets a.is-on .az-compte--n { background: rgba(255, 255, 255, .2); color: inherit; border-color: transparent; }
.az-cles > li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--az-trait); }
.az-cles > li:first-child { border-top: 0; }
.az-cle.is-off { opacity: .6; }
.az-cle__i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--az-or-p); color: var(--az-or-t); }
.az-cle__c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.az-cle__c b { color: var(--az-titre); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.az-cle__c small { color: var(--az-gris); font-size: .82rem; overflow-wrap: anywhere; }
.az-droits__g { margin: 12px 0 2px !important; color: var(--az-gris) !important; }
.az-droits .az-case code, .az-evts .az-case code { margin-left: auto; font-size: .72rem; color: var(--az-gris); }
.az-code { margin: 10px 0; padding: 14px 16px; border-radius: 12px; background: #0B1529; color: #D6E0F0; overflow-x: auto; font: 500 .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid #1C2A45; }
.az-code code { background: none; padding: 0; color: inherit; font: inherit; white-space: pre; }
.az-doc { display: grid; gap: 18px; }
.az-doc h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--az-titre); }
.az-g2--code { gap: 12px; }
.az-g2--code .az-code { margin: 0; }
.az-etapes { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.az-meth { display: inline-block; min-width: 58px; padding: 2px 8px; border-radius: 6px; font: 800 .7rem/1.6 ui-monospace, monospace; text-align: center; background: var(--az-info-p); color: var(--az-info); }
.az-meth--post { background: var(--az-ok-p); color: var(--az-ok); }
.az-meth--patch { background: var(--az-or-p); color: var(--az-or-t); }
.az-meth--delete { background: var(--az-ko-p); color: var(--az-ko); }
.az-hook { margin-bottom: 18px; }
.az-hook__h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.az-hook__h h2 { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 1.05rem; }
.az-hook .az-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.az-hook .az-actions form { margin: 0; }
.az-livs > li { border-top: 1px solid var(--az-trait); }
.az-livs > li:first-child { border-top: 0; }
.az-liv summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; border-radius: 10px; min-height: 56px; }
.az-liv summary::-webkit-details-marker { display: none; }
.az-liv summary:hover { background: var(--az-survol); }
.az-liv__s { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--az-gris); }
.az-liv__s--livre { background: var(--az-ok); }
.az-liv__s--echec { background: var(--az-or); }
.az-liv__s--abandonne { background: var(--az-ko); }
.az-liv__c { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.az-liv__c small { color: var(--az-gris); font-size: .8rem; }
.az-liv__d { padding: 0 4px 14px 26px; }
.az-liv__d .az-code { max-height: 260px; }
@media (max-width: 600px) { .az-cles > li { flex-wrap: wrap; } .az-cles > li > form, .az-cles > li > .az-b { width: 100%; } .az-cles > li > form .az-b { width: 100%; } .az-liv__d { padding-left: 4px; } }

/* ===== E-mails (0.7) ===== */
.az-pastille--attente { background: var(--az-or-p); color: var(--az-or-t); }
.az-pastille--simule { background: var(--az-info-p); color: var(--az-info); }
.az-filtres { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto; gap: 10px 12px; align-items: end; margin-bottom: 14px; }
.az-filtres .az-champ { margin: 0; }
.az-filtres__b { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1240px) { .az-filtres { grid-template-columns: 1fr 1fr; } .az-filtres__q, .az-filtres__b { grid-column: 1 / -1; } }
.az-num { text-align: right; font-variant-numeric: tabular-nums; }
.az-pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 4px; color: var(--az-gris); font-size: .86rem; }
.az-g2--large { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 980px) { .az-g2--large { grid-template-columns: 1fr; } }
.az-def--large { grid-template-columns: max-content 1fr; font-size: .9rem; margin: 0 0 8px; }
.az-def--large dd { overflow-wrap: anywhere; }
.az-chrono { list-style: none; margin: 8px 0 14px; padding: 0 0 0 18px; border-left: 2px solid var(--az-trait); }
.az-chrono li { position: relative; padding: 0 0 12px 6px; font-size: .88rem; }
.az-chrono li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--az-surface); border: 2px solid var(--az-gris); }
.az-chrono--ok::before { border-color: var(--az-ok) !important; background: var(--az-ok) !important; }
.az-chrono--ko::before { border-color: var(--az-ko) !important; background: var(--az-ko) !important; }
.az-chrono--attente::before { border-color: var(--az-or) !important; }
.az-chrono time { color: var(--az-gris); font-size: .8rem; }
.az-chrono small { color: var(--az-gris); overflow-wrap: anywhere; }
.az-apercu__cadre { width: 100%; height: 640px; max-height: 75vh; border: 1px solid var(--az-trait); border-radius: var(--az-rayon); background: #fff; display: block; }
.az-comptes td { vertical-align: middle; }
.az-comptes__a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.az-comptes__a form { margin: 0; }
.az-jauge { display: block; width: 100%; min-width: 80px; height: 6px; margin-top: 4px; }
.az-jauge rect:first-child { fill: var(--az-trait); }
.az-jauge rect + rect { fill: var(--az-ok); }
.az-jauge--moyen rect + rect { fill: var(--az-or); }
.az-jauge--plein rect + rect { fill: var(--az-ko); }
.az-dev { border: 1px dashed var(--az-or); border-radius: 10px; padding: 8px 12px; }
.az-form--ligne { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--az-trait); }
@media (max-width: 760px) { .az-cache-mobile { display: none; } .az-comptes__a { justify-content: flex-start; } }
.az-b--danger-t { color: var(--az-ko); }
.az-form--ligne > .az-b { justify-self: start; width: auto; }
.az-barres + h3, .az-pastilles + h3, .az-liste + h3, .az-vide + h3 { margin-top: 20px; }

/* ===== Tâches planifiées (0.8) ===== */
.az-ligne-off td { opacity: .62; }
.az-comptes__a--g { justify-content: flex-start; margin-top: 14px; }
.az-taches td:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 760px) { .az-taches td:last-child { width: auto; white-space: normal; } }
#azCron { white-space: pre-wrap; word-break: break-all; }
.az-taches .az-comptes__a { flex-wrap: nowrap; }
@media (max-width: 760px) { .az-taches .az-comptes__a { flex-wrap: wrap; } }

/* ===== SMS (0.9) ===== */
.az-sms-bulle { background: var(--az-info-p); color: var(--az-titre); border-radius: 18px 18px 18px 4px; padding: 14px 16px; max-width: 420px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.az-sms-compte { margin: -6px 0 10px; font-size: .84rem; color: var(--az-gris); font-variant-numeric: tabular-nums; }
.az-sms-compte.is-ko { color: var(--az-ko); font-weight: 700; }
.az-choix { border: 1px solid var(--az-trait); border-radius: var(--az-rayon); padding: 10px 14px; margin: 0 0 12px; }
.az-choix legend { font-weight: 800; font-size: .84rem; padding: 0 6px; color: var(--az-titre); }
.az-ligne-nouv td { background: var(--az-nouv); }
.az-composer { max-width: 760px; }
.az-test-sms { display: flex; gap: 6px; margin: 8px 0 0; justify-content: flex-end; flex-wrap: wrap; }
.az-test-sms input { width: 150px; font: inherit; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte, inherit); }
.az-quotas .az-test-sms input { width: 100px; }
.az-rappels td { border-top: 0 !important; padding-top: 0 !important; }
.az-rappel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; font-size: .8rem; }
.az-rappel span { color: var(--az-gris); min-width: 170px; }
.az-rappel code { overflow-wrap: anywhere; word-break: break-all; }
@media (max-width: 760px) { .az-test-sms { justify-content: flex-start; } .az-rappels td:first-child { display: none; } }
@media (max-width: 480px) { .az-test-sms input { width: auto; flex: 1 1 100px; min-width: 0; } .az-rappel span { min-width: 0; } .az-comptes__a { min-width: 0; } }

/* Abonnement et offres (0.10) */
.az-abo__t { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.az-abo__t > div { flex: 1 1 260px; min-width: 0; }
.az-abo__t small { color: var(--az-gris); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.az-abo__t h2 { margin: 2px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.az-abo__t p { margin: 0; color: var(--az-gris); }
.az-abo__i { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--az-nuit); color: var(--az-or); }
.az-abo__i .az-i { width: 22px; height: 22px; }
.az-abo--ko { border-color: var(--az-ko); }
.az-abo--ko .az-abo__i { background: var(--az-ko); color: #fff; }
.az-abo__a { margin-left: auto; }
.az-abo__d { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 0; }
.az-abo__d div { background: var(--az-fond); border: 1px solid var(--az-trait); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.az-abo__d dt { color: var(--az-gris); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.az-abo__d dd { margin: 2px 0 0; font-weight: 700; color: var(--az-titre); overflow-wrap: anywhere; }
.az-offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: stretch; padding-top: 10px; }
.az-offre { position: relative; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--az-trait); border-radius: var(--az-rayon); padding: 22px 20px 18px; background: var(--az-surface); min-width: 0; }
.az-offre h3 { margin: 0; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; color: var(--az-titre); }
.az-offre p { margin: 0; }
.az-offre--avant { border: 2px solid var(--az-or); box-shadow: var(--az-ombre); }
.az-offre--ici { background: var(--az-nouv); }
.az-offre__ruban { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--az-or); color: var(--az-nuit); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 12px; }
.az-offre__t { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--az-trait); }
.az-offre__p { margin-top: 2px; }
.az-offre__p b { font-size: 2.1rem; font-weight: 800; color: var(--az-titre); letter-spacing: -.03em; line-height: 1.1; }
.az-offre__p span { color: var(--az-gris); font-size: .86rem; }
.az-offre__an { color: var(--az-gris); font-size: .84rem; min-height: 1.3em; }
.az-offre__essai { justify-self: start; margin-top: 4px; padding: 3px 10px; border-radius: 99px; background: var(--az-ok-p); color: var(--az-ok); font-size: .78rem; font-weight: 700; }
.az-offre__d { color: var(--az-gris); font-size: .88rem; line-height: 1.5; }
.az-offre__faits { list-style: none; margin: 0; padding: 12px; display: grid; gap: 10px; border-radius: 12px; background: var(--az-pale); }
.az-offre__faits li { display: flex; gap: 10px; align-items: flex-start; }
.az-offre__faits .az-i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--az-titre); opacity: .75; }
.az-offre__faits span { display: grid; min-width: 0; }
.az-offre__faits b { font-size: .92rem; color: var(--az-titre); }
.az-offre__faits small { font-size: .78rem; color: var(--az-gris); overflow-wrap: anywhere; }
.az-offre__l { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.az-offre__l li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.az-offre__l .az-i { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--az-ok); }
.az-offre__vide { flex: 1; }
.az-offre__f, .az-offre__f form { display: grid; gap: 8px; }
.az-offre__ici { display: flex; gap: 6px; align-items: center; justify-content: center; font-weight: 700; color: var(--az-ok); }
.az-offre__ici .az-i { width: 18px; height: 18px; }
.az-aller__i { width: 40px; height: 40px; color: var(--az-or); margin: 18px auto 0; display: block; }
.az-offre-ed { border-top: 1px solid var(--az-trait); padding-top: 14px; margin-top: 14px; }
@media (max-width: 600px) { .az-abo__a { margin-left: 0; width: 100%; } .az-abo__a .az-b { width: 100%; } }
.az-ligne-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.az-abo-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.az-abo-act select, .az-abo-act input { width: auto; min-width: 0; flex: 0 1 130px; font: inherit; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte, inherit); }
@media (max-width: 760px) { .az-abo-act { justify-content: flex-start; } }
/* Inscription en ligne des fournisseurs */
.az-insc { width: min(1040px, 100%); grid-template-columns: minmax(250px, .8fr) minmax(0, 1.4fr); }
.az-insc--large { width: min(1320px, 100%); grid-template-columns: minmax(210px, .42fr) minmax(0, 2fr); }
.az-insc__p .az-logo { text-decoration: none; }
.az-insc__etapes { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.az-insc__etapes li { display: flex; align-items: center; gap: 10px; color: #9FAEC8; font-weight: 600; }
.az-insc__etapes li span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #3A4A68; font-size: .85rem; font-weight: 800; }
.az-insc__etapes li span .az-i { width: 15px; height: 15px; }
.az-insc__etapes li.is-ici { color: #fff; }
.az-insc__etapes li.is-ici span { background: var(--az-or); border-color: var(--az-or); color: var(--az-nuit); }
.az-insc__etapes li.is-fait { color: #DDE4F1; }
.az-insc__etapes li.is-fait span { background: var(--az-ok); border-color: var(--az-ok); color: #fff; }
.az-insc__plus { margin-top: auto !important; padding-top: 12px; font-size: .92rem; }
.az-insc__f { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.az-insc__f h1 { margin: 0; }
.az-insc__f .az-sous { margin: -6px 0 0; }
.az-insc__n { margin: 0; color: var(--az-gris); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.az-insc__cherche { border: 1px solid var(--az-trait); border-radius: var(--az-rayon); padding: 12px 16px; }
.az-insc__cherche summary { cursor: pointer; font-weight: 700; color: var(--az-info); }
.az-insc__cherche[open] summary { margin-bottom: 12px; }
.az-insc__g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.az-insc__res { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.az-insc__res li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--az-trait); flex-wrap: wrap; }
.az-insc__res li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.az-insc__fiche { border: 1px solid var(--az-trait); border-radius: var(--az-rayon); padding: 14px 16px; background: var(--az-pale); display: flex; flex-direction: column; gap: 8px; }
.az-insc__fiche-t { display: flex; gap: 10px; align-items: flex-start; }
.az-insc__fiche-t > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.az-insc__fiche-t b { font-size: 1.05rem; color: var(--az-titre); overflow-wrap: anywhere; }
.az-insc__ok { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--az-ok); color: #fff; display: grid; place-items: center; }
.az-insc__ok .az-i { width: 15px; height: 15px; }
.az-insc__dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 16px; margin: 0; }
.az-insc__dl div { min-width: 0; }
.az-insc__dl dt { font-size: .75rem; font-weight: 700; color: var(--az-gris); text-transform: uppercase; letter-spacing: .05em; }
.az-insc__dl dd { margin: 0; overflow-wrap: anywhere; }
.az-insc__src { margin: 0; }
.az-insc__offres { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 6px; }
.az-insc__formule { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px dashed var(--az-or); border-radius: var(--az-rayon); padding: 10px 14px; }
.az-insc__case { border-top: 0; align-items: flex-start; padding: 2px 0; }
.az-insc__case span { font-weight: 500; }
.az-insc__case input { margin-top: 2px; flex: none; }
.az-insc__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.az-insc__rec { margin: 0; }
.az-insc__rec button { background: none; border: 0; padding: 0; font: inherit; font-size: .86rem; color: var(--az-gris); text-decoration: underline; cursor: pointer; }
.az-insc__deja { margin: 0; }
.az-insc__mail { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--az-pale); color: var(--az-or-f); }
.az-insc__mail .az-i { width: 30px; height: 30px; }
.az-ligne-f { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.az-ligne-f .az-champ { flex: 1 1 220px; }
@media (max-width: 760px) {
  .az-insc, .az-insc--large { grid-template-columns: 1fr; }
  .az-insc__etapes { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; font-size: .85rem; }
  .az-insc__etapes li:not(.is-ici) { font-size: 0; gap: 0; }
  .az-insc__etapes li:not(.is-ici) span { font-size: .8rem; }
  .az-insc__plus { display: none; }
}
@media (max-width: 520px) { .az-insc__g { grid-template-columns: 1fr; } }

.az-auth__insc { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--az-trait); font-size: .92rem; }
.az-auth__insc a { font-weight: 700; }
.az-auth__marque { margin: 16px 0 0; font-size: .74rem; color: var(--az-gris); text-align: center; } .az-auth__marque sup { font-size: .6em; }
.az-petit.is-ko { color: var(--az-ko); font-weight: 600; }
/* Menu réduit (v0.12) : une seule tuile de marque, l'espace en pastille distincte, recherche et encart alignés sur les liens */
.az-nav__vide-c { display: none; }
@media (min-width: 901px) {
  .az--compact .az-cote { gap: 8px; }
  .az--compact .az-cote__t { min-height: 40px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .az--compact .az-logo__z { width: 32px; height: 32px; border-radius: 9px; font-size: 1.05rem; }
  .az--compact .az-sel__s { min-height: 48px; padding: 4px 0; border-radius: 12px; }
  .az--compact .az-sel__s:hover { background: rgba(255, 255, 255, .06); }
  .az--compact .az-sel__s .az-sel__a { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, #2A4677, #1B3159); color: #fff; font-size: .9rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 2px #0F1D37, 0 0 0 3.5px var(--az-or); }
  .az--compact .az-sel__s .az-sel__a--z { background: linear-gradient(160deg, var(--az-or-2), var(--az-or)); color: var(--az-nuit); }
  .az--compact .az-rech { height: 42px; border-color: transparent; background: none; color: #8FA0BD; border-radius: 11px; }
  .az--compact .az-rech:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: transparent; }
  .az--compact .az-nav__vide { display: none; }
  .az--compact .az-nav__vide-c { display: block; }
  .az--compact .az-nav__vide-c .az-i { color: var(--az-or); }
  .az--compact .az-grp + .az-grp { margin-top: 2px; }
}
@media (min-width: 901px) {
  .az--compact .az-cote__t:has(+ .az-sel) { display: none; }
  .az--compact .az-sel { padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }
}
.az-nts__vide { padding: 56px 20px 60px; }
.az-nts__vide h2 { margin: 0 0 6px; font-size: 1.15rem; }
.az-nts__vide .az-vide-g__i { width: 72px; height: 72px; border-radius: 50%; background: var(--az-pale); box-shadow: 0 0 0 10px color-mix(in srgb, var(--az-pale) 45%, transparent); }
.az-nts__vide-a { margin-top: 18px !important; }
/* Console : tarifs des modules ; bouton large (catalogue des modules : marketplace.css) */
.az-cm-tarifs { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; }
.az-cm-tarifs > div { flex: 1 1 380px; }
.az-cm-tarifs h2 { margin: 0 0 4px; }
.az-cm-tarifs form { align-items: flex-end; flex: 0 1 auto; }
.az-cm-tarifs .az-champ { width: 270px; max-width: 100%; }
.az-cm-tarif form { flex-wrap: nowrap; }
.az-cm-tarif select { min-width: 104px; min-height: 40px; }
.az-cm-tarif input, .az-cm-tarif button { min-height: 40px; }
@media (max-width: 700px) { .az-cm-tarif form { flex-wrap: wrap; } }
.az-cm-prix { width: 84px !important; text-align: right; }
.az-b--grand { min-height: 50px; font-size: 1rem; padding: 0 22px; }

/* relations entre entreprises */
.az-rel h2 { display: flex; align-items: center; gap: 8px; }
.az-rel__l { list-style: none; margin: 8px 0 0; padding: 0; }
.az-rel__i { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--az-trait); }
.az-rel__i:first-child { border-top: 0; }
.az-rel__i--passe { opacity: .8; }
.az-rel__a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--az-pale); color: var(--az-titre); }
.az-rel__a--on { background: var(--az-ok-p); color: var(--az-ok); }
.az-rel__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.az-rel__t small { color: var(--az-gris); }
.az-rel__t q { margin-top: 4px; color: var(--az-texte); font-style: italic; }
.az-rel__b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.az-rel__b form { margin: 0; }
.az-rel--demandes { border-color: var(--az-or); }
.az-vide-m { display: flex; gap: 14px; align-items: center; padding: 8px 0; color: var(--az-gris); }
.az-vide-m p { margin: 0; }
@media (max-width: 600px) { .az-rel__i { grid-template-columns: 44px minmax(0, 1fr); } .az-rel__b { grid-column: 1 / -1; justify-content: flex-start; } }

/* Console › Modules : installation depuis un zip (0.17) */
.az-depot { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.az-depot__z { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--az-trait); border-radius: 16px; background: var(--az-pale); color: var(--az-gris); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.az-depot__z .az-i { width: 28px; height: 28px; color: var(--az-or-f); }
.az-depot__z b { color: var(--az-titre); }
.az-depot__z input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.az-depot__z.is-survol, .az-depot__z:hover, .az-depot__z:focus-within { border-color: var(--az-or); background: color-mix(in srgb, var(--az-or) 8%, var(--az-pale)); }
.az-cm-zip { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 28px; }
.az-cm-zip h2 { margin: 0 0 6px; }
@media (max-width: 860px) { .az-cm-zip { grid-template-columns: 1fr; } }
.az-cm-fichiers { max-height: 320px; overflow: auto; margin: 0; padding: 10px 14px; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-pale); font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.az-cm-confirmer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.az-cm-confirmer .az-champ { flex: 0 1 280px; }
.az-cm-sauv summary { cursor: pointer; font-weight: 600; }
.az-cm-sauv form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.az-cm-sauv input[type=password] { width: 190px; max-width: 100%; }
.az-cm-zip__plein { grid-column: 1 / -1; }
.az-cm-zip__plein h3 { margin: 4px 0 6px; font-size: 1rem; }
.az-cm-empreinte { word-break: break-all; font-size: .8rem; }

/* Page intégrée dans une fenêtre de l'application (Vue::integree) */
body.az--integree { margin: 0; min-height: 100dvh; background: var(--az-fond); }
.az-integree { min-height: 100dvh; }

/* Lien public invalide ou expiré (pages publiques des modules) */
.az-lien-ko { max-width: 520px; margin: 12vh auto; padding: 32px 24px; text-align: center; background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: 22px; box-shadow: var(--az-ombre); }
.az-lien-ko__i { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--az-or-p); color: var(--az-or-t); }
.az-lien-ko__i .az-i { width: 30px; height: 30px; }
.az-lien-ko h1 { margin: 16px 0 8px; font-size: 1.4rem; color: var(--az-titre); }
.az-lien-ko p { color: var(--az-gris); line-height: 1.55; }
@media (max-width: 600px) { .az-lien-ko { margin: 24px 16px; } }

/* Achats des restaurateurs (0.19) */
.az-achats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.az-achats__f { margin: 0; display: grid; gap: 10px; align-content: start; }
.az-achats__f header { display: flex; gap: 12px; align-items: center; }
.az-achats__f h2 { margin: 0; font-size: 1.05rem; }
.az-achats__f header small { color: var(--az-gris); }
.az-achats__o { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--az-trait); background: var(--az-pale); color: var(--az-texte); text-decoration: none; transition: border-color .15s, transform .15s; }
.az-achats__o:hover { border-color: var(--az-or); transform: translateY(-1px); }
.az-achats__o > .az-i { width: 22px; height: 22px; color: var(--az-or-f); flex: none; }
.az-achats__o span { flex: 1; display: grid; }
.az-achats__o small { color: var(--az-gris); font-size: .8rem; }
.az-achats__c { width: 16px !important; height: 16px !important; color: var(--az-gris) !important; }
.az-vide-page { text-align: center; padding: 36px 22px; display: grid; justify-items: center; gap: 6px; }
.az-vide-page h2 { margin: 6px 0 0; }
.az-vide-page p { max-width: 560px; color: var(--az-gris); }
.az-vide-page__i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--az-or-p); color: var(--az-or-f); }
.az-vide-page__i .az-i { width: 30px; height: 30px; }

/* Codes-barres et QR codes (0.20) */
.az-codes h2 { display: flex; align-items: center; gap: 8px; }
.az-codes h2 .az-i { color: var(--az-or-f); }
.az-codes__iz { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; }
.az-codes__qr { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--az-trait); background: #fff; line-height: 0; }
.az-codes__qr img, .az-codes__b, .az-codes__l img { background: #fff; }
.az-codes__qr img { width: 116px; height: 116px; }
.az-codes__iz > div { display: grid; gap: 6px; min-width: 0; }
.az-codes__v { font: 700 1.05rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--az-titre); }
.az-codes__iz small { color: var(--az-gris); line-height: 1.45; }
.az-codes__b { max-width: 100%; height: 38px; width: auto; border-radius: 4px; justify-self: start; }
.az-codes__l { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.az-codes__l li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-pale); }
.az-codes__l img { max-width: 132px; height: auto; max-height: 56px; border-radius: 4px; padding: 2px; }
.az-codes__l span { display: grid; min-width: 0; }
.az-codes__l b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; color: var(--az-titre); }
.az-codes__l small { color: var(--az-gris); }
.az-codes__l form { margin: 0; }
.az-codes__aj { margin-top: 12px; }
.az-codes__aj summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; color: var(--az-or-t); }
.az-codes__aj summary .az-i { width: 18px; height: 18px; }
.az-codes__f { display: grid; gap: 10px; margin-top: 8px; }
.az-codes__f .az-champ { margin: 0; }
.az-codes__f .az-b { justify-self: start; }
.az-codes__a { margin: 14px 0 0; }
.az-pal__cam { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.az-pal__cam .az-i { width: 20px; height: 20px; }

.az-lecture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 24px; align-items: start; margin-bottom: 16px; }
.az-lecture__t h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.az-lecture__t h2 .az-i { color: var(--az-or-f); }
.az-lecture__f { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.az-lecture__f .az-champ { margin: 0; }
.az-lecture__f input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.az-lecture__r { grid-column: 1 / -1; }
.az-lecture__r:empty { display: none; }
.az-lecture__c { margin: 0 0 6px; color: var(--az-gris); }
.az-codes-t img { vertical-align: middle; background: #fff; border-radius: 3px; padding: 1px; margin-right: 6px; }
.az-codes-t code { overflow-wrap: anywhere; }
.az-codes-t__c { width: 44px; text-align: center; }
.az-codes-t__c input { width: 20px; height: 20px; }
.az-codes-t__l { display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
.az-codes-lot { margin: 0; }
.az-codes-lot__b { margin: 14px 0 0; }
.az-codes-lien { max-width: 680px; }
.az-etq { max-width: 860px; }
.az-etq h2 { display: flex; align-items: center; gap: 8px; }
.az-etq__f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; margin: 8px 0 12px; }
.az-etq__f .az-champ { margin: 0; }
.az-etq__l, .az-etq__b { grid-column: 1 / -1; }
.az-etq__f [hidden] { display: none; }

/* Fenêtre de lecture à l'appareil photo */
.az-cam { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 26, .78); }
.az-cam__b { width: min(560px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; padding: 14px; border-radius: 20px; background: var(--az-surface); color: var(--az-texte); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.az-cam__h { display: flex; align-items: center; gap: 8px; }
.az-cam__h b { flex: 1; color: var(--az-titre); }
.az-cam__lampe[aria-pressed="true"] { background: var(--az-or-p); border-color: var(--az-or); }
.az-cam__v { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; min-height: 0; }
.az-cam__v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.az-cam__cadre { position: absolute; inset: 22% 12%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28); transition: border-color .2s; }
.az-cam.is-lu .az-cam__cadre { border-color: #3DD68C; }
.az-cam__etat { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: .85rem; text-align: center; }
.az-cam__l { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.az-cam__l:empty { display: none; }
.az-cam__l li { padding: 4px 10px; border-radius: 999px; background: var(--az-ok-p); color: var(--az-ok); font: 600 .8rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.az-cam__f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; }
.az-cam__f input { min-height: 44px; padding: 0 12px; border: 1px solid var(--az-trait); border-radius: 12px; background: var(--az-pale); color: var(--az-titre); font: 600 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-width: 0; }
@media (max-width: 1280px) {
  .az-lecture { grid-template-columns: minmax(0, 1fr); }
}
.az-codes-lot__b .az-b, .az-etq__b .az-b, .az-codes__a .az-b { white-space: normal; text-align: center; }
@media (max-width: 560px) {
  .az-lecture__f { grid-template-columns: minmax(0, 1fr) auto; }
  .az-lecture__f .az-champ { grid-column: 1 / -1; }
  .az-etq__f { grid-template-columns: minmax(0, 1fr); }
  .az-codes__iz { grid-template-columns: 96px minmax(0, 1fr); }
  .az-codes__qr img { width: 96px; height: 96px; }
  .az-cam { padding: 0; }
  .az-cam__b { width: 100%; height: 100dvh; max-height: none; border-radius: 0; grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .az-cam__v { aspect-ratio: auto; }
}
/* utilisateurs au-delà de l'offre (Équipe) */
.az-places { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--az-pale); border: 1px solid var(--az-trait); }
.az-places p { margin: 0 0 6px; }
.az-places.is-supp { background: var(--az-info-p); border-color: transparent; }
.az-places.is-ko { background: var(--az-ko-p); color: var(--az-ko); border-color: transparent; }
.az-membre__acc { flex-basis: 100%; font-size: .85rem; }
/* abonnement : au-delà de l'offre */
.az-supp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.az-supp__b { padding: 14px 16px; border: 1px solid var(--az-trait); border-radius: 14px; background: var(--az-surface); min-width: 0; }
.az-supp__b h3 { margin: 0 0 6px; }
.az-supp__jauge { display: block; width: 100%; height: 8px; margin: 8px 0; border: 0; border-radius: 99px; background: var(--az-pale); overflow: hidden; -webkit-appearance: none; appearance: none; accent-color: var(--az-ok); }
.az-supp__jauge::-webkit-progress-bar { background: var(--az-pale); border-radius: 99px; }
.az-supp__jauge::-webkit-progress-value { background: var(--az-ok); border-radius: 99px; }
.az-supp__jauge::-moz-progress-bar { background: var(--az-ok); border-radius: 99px; }
.az-supp ul { margin: 6px 0; padding-left: 18px; }
.az-supp form { margin-top: 10px; }
@media (max-width: 900px) { .az-supp { grid-template-columns: minmax(0, 1fr); } }
.az-paliers { border: 1px solid var(--az-trait); border-radius: 14px; padding: 10px 14px 12px; margin: 8px 0 12px; }
.az-paliers legend { padding: 0 6px; font-weight: 700; color: var(--az-titre); }
.az-paliers small { color: var(--az-gris); }

.az-carte code { overflow-wrap: anywhere; }
@media (max-width: 720px) { .az-tab .az-pastille { white-space: normal; max-width: 100%; } }

/* ---- InterfaZ Pro resto : accueil et « Mes commandes » d'un espace restaurateur (0.22) ---- */
.az-ra-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; padding: 20px 22px; border-radius: var(--az-rayon); background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: var(--az-ombre); }
.az-ra-hero h2 { margin: 0; font-size: 1.45rem; }
.az-ra-hero p { margin: 4px 0 0; color: var(--az-gris); }
.az-ra-hero__b { display: flex; gap: 10px; flex-wrap: wrap; }
.az-ra-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-bottom: 14px; }
.az-ra-g > .az-carte { margin: 0; min-width: 0; }
.az-ra-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.az-ra-t h2 { margin: 0; font-size: 1.05rem; }
.az-ra-t a { font-size: .85rem; font-weight: 700; }
.az-rcs { list-style: none; margin: 0; padding: 0; display: grid; }
.az-rc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "d t s" "d a a"; align-items: center; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--az-trait); }
.az-rc:first-child { border-top: 0; }
.az-rc__d { grid-area: d; display: grid; justify-items: center; align-content: center; width: 58px; min-height: 62px; border-radius: 14px; background: var(--az-or-p); color: var(--az-or-t); text-decoration: none; line-height: 1.05; }
.az-rc__d b { font-size: 1.35rem; font-weight: 800; color: var(--az-titre); }
.az-rc__d small { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.az-rc__t { grid-area: t; display: grid; min-width: 0; }
.az-rc__t a { color: var(--az-titre); text-decoration: none; overflow-wrap: anywhere; }
.az-rc__t span { color: var(--az-gris); font-size: .85rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.az-rc > .az-pastille { grid-area: s; justify-self: end; }
.az-rc__a { grid-area: a; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.az-rc__a .az-b { min-height: 40px; padding: 8px 14px; font-size: .86rem; }
.az-ra-f { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.az-ra-f li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--az-trait); border-radius: 14px; background: var(--az-pale); }
.az-ra-f li > span:nth-child(2) { flex: 1 1 140px; display: grid; min-width: 0; }
.az-ra-f li small { color: var(--az-gris); }
.az-ra-filtres { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; margin-bottom: 4px; }
.az-ra-sel { display: flex; align-items: end; gap: 8px; margin-bottom: 14px; }
.az-ra-sel .az-champ { margin: 0; min-width: 220px; }
@media (min-width: 900px) {
  .az-rcs--large .az-rc { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "d t s a"; gap: 4px 18px; }
  .az-rcs--large .az-rc__a { flex-wrap: nowrap; }
}
@media (max-width: 560px) {
  .az-rc { grid-template-areas: "d t" "d s" "a a"; grid-template-columns: auto minmax(0, 1fr); }
  .az-rc > .az-pastille { justify-self: start; }
  .az-rc__a { justify-content: flex-start; }
  .az-ra-hero__b, .az-ra-hero__b .az-b { width: 100%; }
  .az-ra-sel { width: 100%; } .az-ra-sel .az-champ { flex: 1; min-width: 0; }
}
.az-ra-f .az-rel__a { flex: none; background: var(--az-or-p); color: var(--az-or-t); }
/* type d'espace au-dessus du logo (0.22) */
.az-acces { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0 6px -2px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; border: 1px solid; }
.az-acces .az-i { width: 14px; height: 14px; flex: none; }
.az-acces--resto { color: #7FE0AE; background: rgba(46, 179, 113, .14); border-color: rgba(46, 179, 113, .35); }
.az-acces--fournisseur { color: var(--az-or); background: rgba(245, 184, 46, .12); border-color: rgba(245, 184, 46, .32); }
.az-acces--console { color: #A9C1FF; background: rgba(110, 150, 255, .14); border-color: rgba(110, 150, 255, .38); }
@media (min-width: 901px) {
  .az--compact .az-acces { align-self: center; margin: 0; padding: 6px; }
  .az--compact .az-acces span { display: none; }
}
.az-rc__n { color: var(--az-ok); }
.az-champ textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }

/* Barre de progression des opérations longues (console : zip, installation, migrations) */
.az-prog { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 28, .62); }
.az-prog[hidden] { display: none; }
.az-prog__b { width: min(480px, 100%); background: var(--az-surface); color: var(--az-texte); border-radius: 18px; padding: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.az-prog__t { margin: 0 0 4px; font-size: 1.15rem; }
.az-prog__e { margin: 0 0 16px; min-height: 1.5em; color: var(--az-gris); overflow-wrap: anywhere; }
.az-prog__barre { position: relative; height: 12px; border-radius: 99px; background: var(--az-pale); overflow: hidden; }
.az-prog__barre span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--az-or, #F5B82E); transition: width .25s linear; }
.az-prog__barre span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: az-prog-reflet 1.4s linear infinite; }
.az-prog.is-ok .az-prog__barre span { background: var(--az-ok, #1E7A4F); }
.az-prog.is-ko .az-prog__barre span { background: var(--az-ko, #B42318); }
.az-prog.is-ok .az-prog__barre span::after, .az-prog.is-ko .az-prog__barre span::after { display: none; }
.az-prog__pct { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.az-prog__pct small { color: var(--az-gris); }
.az-prog__n { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--az-pale); font-size: .86rem; }
.az-prog.is-ko .az-prog__e { color: var(--az-ko, #B42318); font-weight: 600; }
.az-prog__a { display: flex; justify-content: flex-end; margin-top: 16px; }
.az-prog__a[hidden], .az-prog__n[hidden] { display: none; }
@keyframes az-prog-reflet { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .az-prog__barre span { transition: none; } .az-prog__barre span::after { animation: none; display: none; } }

/* ========== Aide des modules (0.27) : bouton Aide, « Pour bien démarrer », vidéo, visite guidée ========== */
.az-ma { position: relative; }
.az-ma__b { list-style: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-titre); font-weight: 600; cursor: pointer; }
.az-ma__b::-webkit-details-marker { display: none; }
.az-ma__b:hover, .az-ma[open] .az-ma__b { border-color: var(--az-titre); }
.az-ma__b .az-i { width: 20px; height: 20px; }
.az-ma__pt { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--az-or); box-shadow: 0 0 0 2px var(--az-surface); }
.az-ma__p { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(420px, calc(100vw - 24px)); max-height: min(680px, calc(100vh - 90px)); overflow-y: auto; overscroll-behavior: contain; padding: 18px; border-radius: 18px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: 0 30px 60px -24px rgba(14, 27, 51, .55); }
.az-ma__t { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; color: var(--az-titre); }
.az-ma__i { margin: 0 0 14px; color: var(--az-gris); font-size: .9rem; }
.az-ma__actions { display: grid; gap: 8px; margin-bottom: 16px; }
.az-ma__a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; text-align: left; border: 1px solid var(--az-trait); border-radius: 14px; background: var(--az-pale); color: var(--az-texte); cursor: pointer; font: inherit; }
.az-ma__a:hover { border-color: var(--az-titre); }
.az-ma__a img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; flex: none; }
.az-ma__a span { display: grid; gap: 1px; }
.az-ma__a span .az-i { width: 22px; height: 22px; color: var(--az-or-f); }
.az-ma__a small { color: var(--az-gris); }
.az-ma__a--v { padding: 12px; }
.az-ma__a--v span { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.az-ma__a--v span .az-i { grid-row: span 2; color: var(--az-info); }
.az-ma__d { border-top: 1px solid var(--az-trait); padding-top: 14px; }
.az-ma__st { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.az-ma__st span { color: var(--az-gris); font-size: .85rem; font-variant-numeric: tabular-nums; }
.az-ma__barre { height: 6px; border-radius: 99px; background: var(--az-pale); overflow: hidden; margin-bottom: 12px; }
.az-ma__barre span { display: block; height: 100%; border-radius: inherit; background: var(--az-ok); }
.az-ma-w0 { width: 0%; }
.az-ma-w5 { width: 5%; }
.az-ma-w10 { width: 10%; }
.az-ma-w15 { width: 15%; }
.az-ma-w20 { width: 20%; }
.az-ma-w25 { width: 25%; }
.az-ma-w30 { width: 30%; }
.az-ma-w35 { width: 35%; }
.az-ma-w40 { width: 40%; }
.az-ma-w45 { width: 45%; }
.az-ma-w50 { width: 50%; }
.az-ma-w55 { width: 55%; }
.az-ma-w60 { width: 60%; }
.az-ma-w65 { width: 65%; }
.az-ma-w70 { width: 70%; }
.az-ma-w75 { width: 75%; }
.az-ma-w80 { width: 80%; }
.az-ma-w85 { width: 85%; }
.az-ma-w90 { width: 90%; }
.az-ma-w95 { width: 95%; }
.az-ma-w100 { width: 100%; }
.az-ma__etapes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; counter-reset: e; }
.az-ma__etapes li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .9rem; }
.az-ma__etapes li > span:last-child { display: grid; gap: 1px; }
.az-ma__etapes small { color: var(--az-gris); line-height: 1.4; }
.az-ma__etapes a { color: var(--az-titre); text-decoration: underline; text-decoration-color: var(--az-or); text-underline-offset: 3px; }
.az-ma__c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--az-trait); display: grid; place-items: center; margin-top: 1px; }
.az-ma__etapes li.is-fait .az-ma__c { background: var(--az-ok); border-color: var(--az-ok); color: #fff; }
.az-ma__c .az-i { width: 13px; height: 13px; stroke-width: 3; }
.az-ma__etapes li.is-fait b { color: var(--az-gris); text-decoration: line-through; text-decoration-color: var(--az-trait); }

.az-demarrer { position: relative; margin: 0 0 18px; padding: 16px 52px 14px 16px; border-radius: 18px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: inset 4px 0 0 var(--az-or); }
.az-demarrer__tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.az-demarrer__anneau { position: relative; width: 52px; height: 52px; flex: none; }
.az-demarrer__anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.az-demarrer__anneau circle { fill: none; stroke: var(--az-pale); stroke-width: 4; }
.az-demarrer__anneau .az-demarrer__arc { stroke: var(--az-ok); stroke-linecap: round; }
.az-demarrer__anneau b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--az-titre); }
.az-demarrer__txt { flex: 1 1 260px; min-width: 0; }
.az-demarrer__txt h2 { margin: 0 0 2px; font-size: 1rem; }
.az-demarrer__txt p { margin: 0; color: var(--az-gris); font-size: .9rem; }
.az-demarrer__txt a { color: var(--az-titre); }
.az-demarrer__b { display: flex; gap: 8px; flex-wrap: wrap; }
.az-demarrer__d { margin-top: 10px; }
.az-demarrer__d summary { cursor: pointer; color: var(--az-info); font-size: .88rem; font-weight: 600; width: max-content; }
.az-demarrer__d .az-ma__etapes { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.az-demarrer__m.az-btn-ic { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-color: transparent; background: transparent; }
.az-demarrer--replie { padding: 0; box-shadow: inset 3px 0 0 var(--az-or); }
.az-demarrer--replie > summary { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; list-style: none; font-size: .88rem; color: var(--az-gris); }
.az-demarrer--replie > summary::-webkit-details-marker { display: none; }
.az-demarrer--replie > summary b { color: var(--az-titre); }
.az-demarrer__mini { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--az-pale); color: var(--az-titre); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .78rem; }
.az-demarrer--replie[open] { padding-bottom: 12px; }
.az-demarrer--replie[open] > .az-ma__etapes, .az-demarrer--replie[open] > p { margin: 4px 14px 0; }
.az-demarrer--replie .az-ma__etapes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.az-video { z-index: 1050; }
.az-video__b { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--az-surface); border-radius: 18px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.az-video__tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; }
.az-video__t { margin: 0; font-weight: 700; color: var(--az-titre); }
.az-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.az-video__ch { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.az-video__ch button { display: inline-flex; gap: 6px; align-items: baseline; min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--az-trait); background: var(--az-pale); color: var(--az-texte); font: inherit; font-size: .84rem; cursor: pointer; }
.az-video__ch button span { color: var(--az-gris); font-variant-numeric: tabular-nums; }
.az-video__ch button.is-cur { border-color: var(--az-or); background: var(--az-or-p); }
body.az-fige { overflow: hidden; }

.az-visite__voile { position: fixed; z-index: 1060; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8, 14, 28, .58); outline: 3px solid var(--az-or); outline-offset: 0; pointer-events: none; transition: top .2s, left .2s, width .2s, height .2s; }
.az-visite__voile.is-centre { outline: none; }
.az-visite { position: fixed; z-index: 1061; width: min(360px, calc(100vw - 20px)); padding: 14px 16px 12px; border-radius: 16px; background: var(--az-surface); color: var(--az-texte); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.az-visite.is-centre { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.az-visite__h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; }
.az-visite__h .az-btn-ic { width: 32px; height: 32px; border-color: transparent; }
.az-visite__n { font-size: .8rem; color: var(--az-gris); font-variant-numeric: tabular-nums; }
.az-visite__t { margin: 0 0 4px; font-weight: 700; color: var(--az-titre); font-size: 1rem; }
.az-visite__x { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; }
.az-visite__a { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.az-visite__a [hidden] { display: none; }

.az-invite { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: inset 4px 0 0 var(--az-info); }
.az-invite__i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--az-or-p); color: var(--az-or-t); }
.az-invite p { margin: 0; display: grid; font-size: .9rem; }
.az-invite p span { color: var(--az-gris); }
.az-invite__a { display: flex !important; justify-content: flex-end; gap: 8px; }
@media (max-width: 600px) { .az-invite { grid-template-columns: auto 1fr; } .az-invite__a { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .az-ma__b span { display: none; }
  .az-ma__b { width: 40px; padding: 0; justify-content: center; }
  .az-ma__p { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .az-demarrer { padding-right: 44px; }
  .az-demarrer__b { width: 100%; }
  .az-ma__a img { width: 88px; }
}
@media (prefers-reduced-motion: reduce) { .az-visite__voile { transition: none; } }

/* Menu (0.27) : rubriques des modules en accordéon */
.az-grp--acc .az-grp__t { min-height: 34px; padding: 8px 10px; }
.az-grp--acc .az-grp__t:hover { background: rgba(255, 255, 255, .05); }
.az-grp--acc .az-grp__t[aria-expanded="true"] { color: #E4EAF4; }
.az-grp__n { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #AFBBD0; font: 700 .68rem/18px var(--az-sans); letter-spacing: 0; text-align: center; }
.az-grp__n[hidden] { display: none; }
.az-grp--acc + .az-grp--acc { margin-top: 0; }
.az-grp--acc .az-grp__l { padding-bottom: 6px; }
@media (min-width: 901px) { .az--compact .az-grp__n { display: none; } }
.az-grp__p[hidden] { display: none; }

/* Console › Socle et mises à jour (0.29) */
.az-cs-encours { border-color: var(--az-or, #F2B631); }
.az-cs-encours h2 { margin: 0 0 6px; }
.az-cs-etapes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: cs; }
.az-cs-etapes > li { position: relative; display: grid; gap: 6px; padding: 2px 0 2px 40px; counter-increment: cs; justify-items: start; }
.az-cs-etapes > li::before { content: counter(cs); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--az-pale); color: var(--az-gris); border: 1px solid var(--az-trait); }
.az-cs-etapes > li.is-fait::before { content: '✓'; background: var(--az-ok-p, #E3F4EA); color: var(--az-ok, #1E7A46); border-color: transparent; }
.az-cs-etapes > li.is-encours::before { background: var(--az-or, #F2B631); color: #10203A; border-color: transparent; }
.az-cs-etapes > li > span { color: var(--az-gris); font-size: .9rem; }
.az-cs-etapes form { margin-top: 4px; }
.az-cs-quoi { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.az-cs-notes { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 3px; }
.az-cs-fichiers { margin-top: 8px; } .az-cs-fichiers summary { cursor: pointer; font-weight: 600; padding: 4px 0; }

/* Relations : le restaurateur ajoute son fournisseur, ouverture de compte (0.30) */
.az-rel__a--or { background: var(--az-or-p); color: var(--az-or-t); }
.az-rel__f { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 4px; }
.az-rel__f .az-champ { flex: 1 1 280px; }
.az-rel__rien { margin: 12px 0 0; color: var(--az-gris); }
.az-rel--chercher { border-color: var(--az-or); }
.az-rel--ouverture { border: 2px solid var(--az-or); background: linear-gradient(180deg, var(--az-or-p), var(--az-carte, #fff) 120px); }
.az-rel--ouverture h2 { gap: 12px; }
.az-rel__mot { display: block; margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--az-or); background: var(--az-pale); border-radius: 0 10px 10px 0; font-style: italic; }
.az-rel__ouv, .az-rel__acc { display: grid; gap: 12px; margin-top: 10px; }
.az-rel__modes, .az-rel__via { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.az-rel__modes legend, .az-rel__via legend { font-weight: 700; font-size: .86rem; color: var(--az-titre); margin-bottom: 6px; padding: 0; }
.az-rel__via { display: grid; gap: 8px; }
.az-rel__mode { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--az-trait); border-radius: 12px; cursor: pointer; background: var(--az-carte, #fff); min-height: 44px; }
.az-rel__mode:has(input:checked) { border-color: var(--az-or); background: var(--az-or-p); }
.az-rel__mode input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--az-titre); flex: none; }
.az-rel__mode span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.az-rel__mode small { color: var(--az-gris); font-weight: 400; }
.az-rel__plus { border-top: 1px dashed var(--az-trait); padding-top: 8px; }
.az-rel__plus > summary { cursor: pointer; font-weight: 700; color: var(--az-titre); padding: 6px 0; min-height: 32px; }
.az-rel__plus[open] > summary { margin-bottom: 6px; }
.az-rel__b--g { justify-content: flex-start; margin-top: 10px; }
.az-rel__i--large { grid-template-columns: 44px minmax(0, 1fr); }
.az-rel__i--large > .az-rel__dec, .az-rel__i--large > .az-rel__b { grid-column: 2 / -1; justify-content: flex-start; }
.az-rel__dec { display: grid; gap: 8px; }
.az-rel__connu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--az-ok-p); }
.az-rel__connu p { margin: 0; flex: 1 1 260px; }
.az-rel__pub { margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--az-or); background: var(--az-or-p); }
.az-rel__pub > b { display: block; color: var(--az-titre); margin-bottom: 6px; }
.az-rel__pub ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }
.az-rel__rep { display: grid; gap: 4px; margin: 8px 0 0; }
.az-rel__rep div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.az-rel__rep dt { color: var(--az-gris); font-size: .84rem; } .az-rel__rep dd { margin: 0; }
.az-case small { flex-basis: 100%; color: var(--az-gris); font-weight: 400; padding-left: 30px; }
@media (max-width: 600px) { .az-rel__i--large > .az-rel__dec, .az-rel__i--large > .az-rel__b { grid-column: 1 / -1; } }

/* Comptabilité (0.31) */
.az-cpt-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.az-cpt-ligne .az-champ { margin: 0; min-width: 180px; }
.az-cpt-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.az-cpt-plus { margin: 12px 0; }
.az-cpt-plus > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.az-cpt-off td { opacity: .55; }
.az-cpt-n { background: var(--az-info); }
.az-cpt-res { margin: 14px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; line-height: 1.5; }
.az-cpt-res--ok { background: var(--az-ok-p, #e6f6ec); color: var(--az-texte); border-color: var(--az-ok, #1f8a4c); }
.az-cpt-res--ko { background: var(--az-ko-p); color: var(--az-texte); border-color: var(--az-ko); }
.az-cpt-res--info { background: var(--az-info-p); color: var(--az-texte); }
.az-cpt-res b { display: inline-block; margin-bottom: 2px; }
@media (max-width: 640px) { .az-cpt-ligne { flex-direction: column; align-items: stretch; } }
.az-cpt-ligne input[type=date] { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--az-trait); background: var(--az-fond, transparent); color: inherit; }

/* Mode test (0.33) : bandeau permanent */
.az-bandeau--test { background: #FDECEC; border: 1px solid #D7263D; color: #7A1020; }
.az-bandeau--test .az-i { color: #D7263D; }
.az-bandeau--test b { color: #B3122A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .az-bandeau--test { background: rgba(215, 38, 61, .16); color: #FFD7DC; } :root:not([data-theme="light"]) .az-bandeau--test b { color: #FF8C9A; } }
:root[data-theme="dark"] .az-bandeau--test { background: rgba(215, 38, 61, .16); color: #FFD7DC; }
:root[data-theme="dark"] .az-bandeau--test b { color: #FF8C9A; }
.az-dem__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.az-dem__g h3 { margin: 0 0 6px; }
.az-dem__l { list-style: none; margin: 0; padding: 0; }
.az-dem__l li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--az-trait); font-size: .92rem; }
.az-dem__l li b { white-space: nowrap; }
.az-dem__choix { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--az-trait); }
.az-dem__choix > span { flex: 1 1 220px; }

/* 0.33 : sociétés sans titulaire, relevés conservés hors d'InterfaZ */
.az-cpt-orphelines { padding: 14px 16px; border-radius: 14px; background: var(--az-ko-p); border: 1px solid var(--az-ko); margin: 0 0 18px; font-size: .9rem; }
.az-cpt-orphelines form { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--az-ko) 30%, transparent); }
.az-cpt-orphelines input { min-width: 260px; }
.az-cpt-releve { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--az-bord, #D5D2C8); border-radius: 14px; }
.az-cpt-releve h3 { margin: 0 0 8px; font-size: 1rem; }
@media (max-width: 640px) { .az-cpt-orphelines input { min-width: 0; } }
/* 0.34 : démarrage par société */
.az-dem__socs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.az-dem__soc { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--az-trait); background: var(--az-surface); text-decoration: none; color: var(--az-texte); min-width: 180px; }
.az-dem__soc--ici { border-color: var(--az-ko); box-shadow: inset 4px 0 0 var(--az-ko); }
.az-dem__bloque { border-color: var(--az-ko); }
.az-dem__bloque ul { margin: 0; padding-left: 1.2em; }
.az-dem__verif { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .9rem; }
.az-dem__verif input { margin-top: 3px; }
.az-dem__serie { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.az-dem__serie .az-champ { margin: 0; min-width: 120px; }
@media (max-width: 640px) { .az-dem__soc { min-width: 0; flex: 1 1 100%; } }
.az-cpt-mode { border: 1px solid var(--az-trait); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.az-cpt-mode legend { font-weight: 700; padding: 0 6px; }
.az-radio { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: .9rem; }
.az-radio input { margin-top: 3px; }
.az-cpt-modes h3 { margin: 14px 0 4px; font-size: .95rem; }
.az-dem__det summary { cursor: pointer; font-size: .85rem; color: var(--az-gris); margin: 4px 0; }
/* 0.35 : société de travail (bandeau) et page « indisponible pendant l'essai » */
.az-bandeau--reel { background: var(--az-info-p); color: var(--az-info); border: 1px solid var(--az-trait); }
.az-bandeau--reel .az-i { color: var(--az-info); }
.az-bandeau__soc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-left: auto; }
.az-bandeau__soc label { display: flex; align-items: center; gap: 6px; font-size: .9em; }
.az-bandeau__soc select { min-height: 36px; max-width: 260px; }
.az-bandeau__conf input { width: 18px; height: 18px; }
.az-essai-ko__f { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid var(--az-trait); border-radius: 10px; }
@media (max-width: 640px) { .az-bandeau__soc { margin-left: 0; width: 100%; } .az-bandeau__soc select { max-width: 100%; flex: 1; } }
.az-dem__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.az-dem__cat { border: 1px solid var(--az-trait); border-radius: 12px; padding: 12px 14px; background: var(--az-surface); }
.az-dem__cat h3 { margin: 0 0 6px; font-size: 1rem; }
.az-dem__cat--ko { border-color: #D7263D; }
.az-dem__chiffres { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; font-size: .9rem; }
.az-dem__ko { color: #B3122A; font-weight: 700; }
.az-dem__att { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--az-trait); }
.az-ecr { border: 1px solid var(--az-trait); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.az-ecr header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.az-num { text-align: right; white-space: nowrap; }
.az-ecr__orig { color: var(--az-gris); font-size: .78rem; }
/* widget « Accès rapides » */
.az-wk-acces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.az-wk-acces a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; text-decoration: none; color: var(--az-texte); font-size: .8rem; font-weight: 600; text-align: center; border: 1px solid var(--az-trait); }
.az-wk-acces a:hover { background: var(--az-survol); border-color: var(--az-or); }
.az-wk-acces .az-w__ic { background: var(--az-pale); color: var(--az-titre); }
/* personnalisation : commandes du widget sur leur propre ligne, le titre reste lisible même en petite taille */
.az-tb.is-perso .az-w__h { flex-wrap: wrap; }
.az-tb.is-perso .az-w__o { order: -1; flex-basis: 100%; justify-content: space-between; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px dashed var(--az-trait); }
.az-tb.is-perso .az-w__o .az-w__tailles { margin-right: auto; margin-left: 8px; }
.az-w-c--nuit { --w-ac: #1A2D52; --w-ac-p: #E8ECF4; }
:root[data-theme="sombre"] .az-w-c--nuit { --w-ac: #C9D4EA; --w-ac-p: rgba(201, 212, 234, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .az-w-c--nuit { --w-ac: #C9D4EA; } }
@container tb (max-width: 560px) { .az-w__tailles { display: none !important; } }
.az-wk-titre { margin: 0 0 4px; font-size: .78rem; font-weight: 800; color: var(--az-gris); letter-spacing: .01em; }
.az-wk-titre small { font-weight: 600; }
/* colonnes nombreuses : un libellé sur deux (14 jours), un sur cinq (30 jours) */
.az-wk-cols__l.n14 span:nth-child(even), .az-wk-cols__l.n12 span:nth-child(even) { visibility: hidden; }
.az-wk-cols__l.n30 span:not(:nth-child(5n + 1)), .az-wk-cols__l.n31 span:not(:nth-child(5n + 1)) { visibility: hidden; }
.az-wk-cols__l.n14 span.is-actif, .az-wk-cols__l.n30 span.is-actif, .az-wk-cols__l.n31 span.is-actif { visibility: visible; }

/* jauge, état en direct, sources, fil chronologique (Wk, 0.40.1) */
.az-wk-st--ok { stop-color: var(--az-ok); } .az-wk-st--ko { stop-color: var(--az-ko); } .az-wk-st--or { stop-color: var(--az-or); }
.az-wk-jauge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.az-wk-jauge svg { width: 100%; max-width: 230px; height: auto; display: block; overflow: visible; }
.az-wk-jauge__f { stroke: var(--az-pale); }
.az-wk-jauge__p { fill: var(--az-surface); stroke: var(--az-titre); stroke-width: 3; }
.az-wk-jauge__v { margin-top: -38px; font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--az-titre); font-variant-numeric: tabular-nums; }
.az-wk-jauge__l { margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--az-texte); }
.az-wk-jauge__l small { display: block; font-weight: 500; color: var(--az-gris); font-size: .76rem; }
.az-wk-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .84rem; }
.az-wk-direct i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--wk-c); flex: none; }
.az-wk-direct i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--wk-c); opacity: 0; animation: az-pouls 2.4s ease-out infinite; }
@keyframes az-pouls { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .az-wk-direct i::after { animation: none; } }
.az-wk-direct b { color: var(--wk-c); letter-spacing: .01em; }
.az-wk-direct span { color: var(--az-gris); font-size: .8rem; }
.az-wk-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.az-wk-sources li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 7px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--az-ok-p); color: var(--az-ok); }
.az-wk-sources li .az-i { width: 14px; height: 14px; stroke-width: 2.6; }
.az-wk-sources li.is-off { background: var(--az-pale); color: var(--az-gris); }
.az-wk-fil { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; display: flex; flex-direction: column; }
.az-wk-fil::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--az-trait); }
.az-wk-fil li { position: relative; }
.az-wk-fil li::before { content: ""; position: absolute; left: -14px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--az-surface); border: 2px solid var(--wk-c, var(--az-gris)); }
.az-wk-fil li > a, .az-wk-fil li > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 6px 8px; border-radius: 9px; color: inherit; text-decoration: none; }
.az-wk-fil li > a:hover { background: var(--az-survol); }
.az-wk-fil__q { font-size: .72rem; color: var(--az-gris); font-variant-numeric: tabular-nums; }
.az-wk-fil__t b { font-size: .87rem; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-wk-fil__t small { font-size: .77rem; color: var(--az-gris); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* widget premium : carte sombre teintée (0.40.2). Teintes : nuit (bleu nuit et or, Protect), ocean, foret, bordeaux, aubergine, ardoise, cuivre.
   Mêmes couleurs en thème clair et sombre ; les composants Wk s'y adaptent par leurs variables. */
.az-w--premium { --pr-bg1: #142A55; --pr-bg2: #0B1834; --pr-ac: #F5B82E; --pr-ac2: #F7C75A; --pr-ac-p: rgba(245, 184, 46, .16); --pr-halo: rgba(66, 112, 214, .25); --pr-encre: #0E1B33;
  --az-titre: #FFFFFF; --az-texte: #DCE3F0; --az-gris: #A3AFCB; --az-pale: rgba(255, 255, 255, .07); --az-trait: rgba(255, 255, 255, .12); --az-survol: rgba(255, 255, 255, .06);
  --az-surface: var(--pr-bg1); --az-ok: #6FD6A3; --az-ok-p: rgba(111, 214, 163, .14); --az-ko: #FF8E78; --az-ko-p: rgba(255, 142, 120, .16); --az-or: var(--pr-ac); --az-or-f: var(--pr-ac); --az-or-p: var(--pr-ac-p); --az-or-t: var(--pr-ac2); --az-info: #9CC0FF; --az-info-p: rgba(156, 192, 255, .14);
  --w-ac: var(--pr-ac); --w-ac-p: var(--pr-ac-p);
  color: var(--az-texte); border-color: color-mix(in srgb, var(--pr-ac) 38%, transparent);
  background: radial-gradient(120% 90% at 100% 0%, var(--pr-ac-p) 0%, transparent 55%), radial-gradient(80% 70% at 0% 100%, var(--pr-halo) 0%, transparent 60%), linear-gradient(160deg, var(--pr-bg1) 0%, var(--pr-bg2) 100%);
  box-shadow: 0 22px 50px -26px rgba(8, 14, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.az-w--t-ocean { --pr-bg1: #123A6B; --pr-bg2: #081C3A; --pr-ac: #6FB8FF; --pr-ac2: #A9D4FF; --pr-ac-p: rgba(111, 184, 255, .16); --pr-halo: rgba(40, 190, 220, .18); --pr-encre: #06203F; }
.az-w--t-foret { --pr-bg1: #134736; --pr-bg2: #08241B; --pr-ac: #5FD69C; --pr-ac2: #9BE8C1; --pr-ac-p: rgba(95, 214, 156, .15); --pr-halo: rgba(245, 184, 46, .12); --pr-encre: #062217; }
.az-w--t-bordeaux { --pr-bg1: #551B2A; --pr-bg2: #260A12; --pr-ac: #FF9C86; --pr-ac2: #FFC2B3; --pr-ac-p: rgba(255, 156, 134, .16); --pr-halo: rgba(245, 184, 46, .14); --pr-encre: #2A0A10; }
.az-w--t-aubergine { --pr-bg1: #33215F; --pr-bg2: #150C30; --pr-ac: #C2A8FF; --pr-ac2: #DCCDFF; --pr-ac-p: rgba(194, 168, 255, .16); --pr-halo: rgba(255, 120, 190, .14); --pr-encre: #1A0F38; }
.az-w--t-ardoise { --pr-bg1: #253241; --pr-bg2: #10161F; --pr-ac: #5ED3D3; --pr-ac2: #A2E8E8; --pr-ac-p: rgba(94, 211, 211, .15); --pr-halo: rgba(110, 140, 255, .16); --pr-encre: #0B1A1E; }
.az-w--t-cuivre { --pr-bg1: #4A2E12; --pr-bg2: #1F1206; --pr-ac: #FFB86B; --pr-ac2: #FFD6A6; --pr-ac-p: rgba(255, 184, 107, .17); --pr-halo: rgba(255, 110, 70, .14); --pr-encre: #241405; }
.az-w--premium .az-w__ic { background: linear-gradient(160deg, var(--pr-ac2), var(--pr-ac)); color: var(--pr-encre); box-shadow: 0 6px 16px -8px var(--pr-ac); }
.az-w--premium .az-w__ti small { color: var(--pr-ac2); font-weight: 700; letter-spacing: .02em; }
.az-w--premium a { color: var(--pr-ac2); }
.az-w--premium .az-b { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.az-w--premium .az-b--p { background: var(--pr-ac); border-color: var(--pr-ac); color: var(--pr-encre); }
.az-w--premium .az-wk-kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.az-w--premium .az-wk-kpi--ko { background: rgba(255, 142, 120, .14); }
.az-w--premium .az-wk-jauge__p { fill: var(--pr-bg2); stroke: #fff; }
.az-w--premium .az-w__poignee, .az-w--premium .az-w__tailles { background: rgba(255, 255, 255, .06); }
.az-w--premium .az-wk-fil li::before { background: var(--pr-bg1); }
.az-w--premium .az-wk-col { fill: color-mix(in srgb, var(--pr-ac) 50%, transparent); } .az-w--premium .az-wk-col.is-actif { fill: var(--pr-ac); }
.az-w--premium .az-wk-courbe__a { fill: color-mix(in srgb, var(--wk-c) 22%, transparent); }
.az-w--premium .az-wk-phrase em { color: var(--pr-ac2); }
.az-w--premium .az-wk-alerte:not(.az-wk--ko):not(.az-wk--ok):not(.az-wk--info) { background: var(--pr-ac-p); color: var(--pr-ac2); }
.az-w--premium .az-wk-vide { background: rgba(255, 255, 255, .05); }
.az-store__w--premium { border-color: rgba(245, 184, 46, .55); background: linear-gradient(160deg, var(--az-surface), var(--az-or-p)); }
.az-wk-heros { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 18px; align-items: center; }
@container w (max-width: 460px) { .az-wk-heros { grid-template-columns: minmax(0, 1fr); } }
.az-wk-phrase { margin: 0; font-size: 1.02rem; line-height: 1.45; color: var(--az-titre); font-weight: 600; }
.az-wk-phrase em { font-style: normal; color: var(--az-or-t); }
.az-wk-cols__l.n30 span, .az-wk-cols__l.n31 span { overflow: visible; text-overflow: clip; }
/* tableau vide à composer (0.40.3) */
.az-tb__vide > p { max-width: 62ch; margin: 6px auto 0; color: var(--az-gris); }
.az-tb__sugg-t { margin: 22px 0 10px; font-size: .82rem; font-weight: 800; color: var(--az-gris); }
.az-tb__sugg { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; text-align: left; max-width: 980px; }
.az-tb__sugg .az-store__w.is-ajoute { opacity: .7; }
.az-tb__vide-a { justify-content: center; margin-top: 18px !important; flex-wrap: wrap; }
.az-store__neuf { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .66rem; font-weight: 800; vertical-align: middle; background: var(--az-or); color: #0E1B33; }

/* ===== Nouveautés (0.42) ===== */
.az-nav__l--nv small { margin-left: 4px; color: #8FA0BD; font-weight: 500; font-size: .76rem; font-variant-numeric: tabular-nums; }
.az-nav__nv { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--az-or); color: var(--az-nuit); font-size: .72rem; font-weight: 800; }
.az--compact .az-nav__nv { position: absolute; top: 4px; right: 4px; min-width: 9px; height: 9px; padding: 0; font-size: 0; }
.az-moi__a { position: relative; }
.az-moi__pt { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--az-or); box-shadow: 0 0 0 2px var(--az-fond); }
.az-moi__nb { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--az-or); color: var(--az-nuit); font-size: .72rem; font-weight: 800; }

.az-nv { --nv-nouveau: #B9831A; --nv-nouveau-p: #FDF1D8; --nv-ameliore: #29497F; --nv-ameliore-p: #E6EDF8; --nv-corrige: #2F7A57; --nv-corrige-p: #E3F2EA; --nv-securite: #6A4BB0; --nv-securite-p: #EEE8FA;
  max-width: 1080px; margin: 0 auto; }
:root[data-theme="sombre"] .az-nv { --nv-nouveau: #F2C35B; --nv-nouveau-p: rgba(242, 195, 91, .14); --nv-ameliore: #8CB2F0; --nv-ameliore-p: rgba(140, 178, 240, .14); --nv-corrige: #5BC894; --nv-corrige-p: rgba(91, 200, 148, .14); --nv-securite: #B9A2F0; --nv-securite-p: rgba(185, 162, 240, .15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .az-nv { --nv-nouveau: #F2C35B; --nv-nouveau-p: rgba(242, 195, 91, .14); --nv-ameliore: #8CB2F0; --nv-ameliore-p: rgba(140, 178, 240, .14); --nv-corrige: #5BC894; --nv-corrige-p: rgba(91, 200, 148, .14); --nv-securite: #B9A2F0; --nv-securite-p: rgba(185, 162, 240, .15); } }
.az-nv--nouveau { --nv-c: var(--nv-nouveau); --nv-p: var(--nv-nouveau-p); } .az-nv--ameliore { --nv-c: var(--nv-ameliore); --nv-p: var(--nv-ameliore-p); }
.az-nv--corrige { --nv-c: var(--nv-corrige); --nv-p: var(--nv-corrige-p); } .az-nv--securite { --nv-c: var(--nv-securite); --nv-p: var(--nv-securite-p); }

/* bandeau d'ouverture : bleu nuit et or, comme les widgets premium */
.az-nv__une { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 30px 32px; margin-bottom: 18px; border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(245, 184, 46, .22), transparent 55%), linear-gradient(140deg, #0E1B33 0%, #1A2D52 100%); color: #DCE3F0; box-shadow: var(--az-ombre); }
.az-nv__une::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(245, 184, 46, .18); pointer-events: none; }
.az-nv__ver { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(245, 184, 46, .14); color: #FFD36E; font-weight: 700; font-size: .84rem; font-variant-numeric: tabular-nums; }
.az-nv__ver .az-i { width: 16px; height: 16px; color: #F5B82E; }
.az-nv__h { margin: 0 0 8px; color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.az-nv__chapo { margin: 0 0 20px; color: #A3AFCB; max-width: 60ch; }
.az-nv__last { position: relative; z-index: 1; display: grid; gap: 3px; max-width: 560px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #DCE3F0; text-decoration: none; transition: background .15s, border-color .15s; }
.az-nv__last:hover { background: rgba(255, 255, 255, .1); border-color: rgba(245, 184, 46, .45); }
.az-nv__last:focus-visible { outline: 2px solid #F5B82E; outline-offset: 2px; }
.az-nv__last-l { color: #FFD36E; font-size: .8rem; font-weight: 600; }
.az-nv__last b { color: #fff; font-size: 1.02rem; }
.az-nv__last span:last-child:not(.az-nv__last-l) { color: #A3AFCB; font-size: .9rem; }
.az-nv__chiffres { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(118px, 1fr)); gap: 8px; margin: 0; }
.az-nv__ch { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.az-nv__ch dt { display: flex; align-items: center; gap: 7px; color: #A3AFCB; font-size: .8rem; font-weight: 600; }
.az-nv__ch dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nv-c); }
.az-nv__une .az-nv--nouveau { --nv-c: #F5B82E; } .az-nv__une .az-nv--ameliore { --nv-c: #9CC0FF; } .az-nv__une .az-nv--corrige { --nv-c: #6FD6A3; } .az-nv__une .az-nv--securite { --nv-c: #C3AEF7; }
.az-nv__ch dd { margin: 4px 0 0; color: #fff; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }

/* outils de filtre */
.az-nv__outils { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin-bottom: 22px; border-radius: 16px; background: var(--az-haut-bg); backdrop-filter: blur(10px); border: 1px solid var(--az-trait); }
.az-nv__portee, .az-nv__types { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--az-pale); border: 1px solid var(--az-trait); }
.az-nv__portee button, .az-nv__types button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--az-gris); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.az-nv__portee button:hover, .az-nv__types button:hover { color: var(--az-titre); }
.az-nv__portee button[aria-pressed="true"], .az-nv__types button[aria-pressed="true"] { background: var(--az-surface); color: var(--az-titre); box-shadow: 0 1px 3px rgba(14, 27, 51, .12); }
.az-nv__types i { width: 8px; height: 8px; border-radius: 50%; background: var(--nv-c); }
.az-nv__mod select { min-height: 40px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--az-trait); background-color: var(--az-surface); color: var(--az-texte); font: inherit; font-size: .88rem; }
.az-nv__q { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--az-trait); background: var(--az-surface); }
.az-nv__q:focus-within { border-color: var(--az-or); box-shadow: 0 0 0 3px var(--az-or-p); }
.az-nv__q .az-i { color: var(--az-gris); flex: none; }
.az-nv__q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--az-texte); font: inherit; }

/* fil des versions : date à gauche, cartes à droite, reliées par un trait */
.az-nv__jour { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; position: relative; padding-bottom: 26px; }
.az-nv__jour::before { content: ""; position: absolute; left: 182px; top: 8px; bottom: 0; width: 2px; background: var(--az-trait); }
.az-nv__date { position: sticky; top: 210px; align-self: start; margin: 4px 0 0; padding-right: 10px; text-align: right; color: var(--az-titre); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.az-nv__date::after { content: ""; position: absolute; right: -19px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--az-fond); border: 3px solid var(--az-or); }
.az-nv__cartes { display: grid; gap: 12px; padding-left: 12px; }
.az-nv__v { scroll-margin-top: 230px; padding: 18px 20px; border-radius: 18px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: 0 1px 2px rgba(14, 27, 51, .04); }
.az-nv__v.is-majeure { border-color: color-mix(in srgb, var(--az-or) 55%, var(--az-trait)); box-shadow: inset 4px 0 0 var(--az-or), var(--az-ombre); }
.az-nv__v.is-neuf { background: linear-gradient(180deg, var(--az-nouv), var(--az-surface) 70%); }
.az-nv__v:target { outline: 2px solid var(--az-or); outline-offset: 3px; }
.az-nv__vt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.az-nv__ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--w-ac-p, var(--az-pale)); color: var(--w-ac, var(--az-titre)); }
.az-nv__ic .az-i { width: 17px; height: 17px; }
.az-nv__mn { color: var(--az-gris); font-size: .86rem; font-weight: 600; }
.az-nv__num { padding: 2px 8px; border-radius: 7px; background: var(--az-pale); border: 1px solid var(--az-trait); color: var(--az-titre); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.az-nv__badge { padding: 2px 9px; border-radius: 999px; background: var(--az-or); color: var(--az-nuit); font-size: .74rem; font-weight: 800; }
.az-nv__pub { padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(47, 91, 191, .12); color: #2F5BBF; white-space: nowrap; }
.az-nv__pub--restaurateur { background: rgba(196, 87, 12, .13); color: #B04E0B; }
.az-nv__pub--tous { background: var(--az-pale); color: var(--az-gris); }
small.az-nv__pub { display: inline-block; margin-left: 4px; vertical-align: 1px; }
.az-nv__off { padding: 2px 9px; border-radius: 999px; border: 1px dashed var(--az-trait); color: var(--az-gris); font-size: .74rem; font-weight: 600; }
.az-nv__v h3 { margin: 0 0 4px; color: var(--az-titre); font-size: 1.12rem; letter-spacing: -.01em; }
.az-nv__v.is-majeure h3 { font-size: 1.24rem; }
.az-nv__res { margin: 0 0 10px; color: var(--az-gris); max-width: 70ch; }
.az-nv__pts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.az-nv__pts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; line-height: 1.5; }
.az-nv__tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 999px; background: var(--nv-p); color: var(--nv-c); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.az-nv__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.az-nv__act { margin: 12px 0 0; font-size: .9rem; }
.az-nv__act a { color: var(--az-info); font-weight: 600; }

@media (max-width: 900px) {
  .az-nv__une { grid-template-columns: 1fr; padding: 24px 20px; }
  .az-nv__chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .az-nv__outils { top: 56px; }
  .az-nv__jour { grid-template-columns: 1fr; gap: 10px; padding-left: 22px; }
  .az-nv__jour::before { left: 5px; top: 10px; }
  .az-nv__date { position: static; padding-right: 0; text-align: left; }
  .az-nv__date::after { right: auto; left: -22px; top: 3px; }
  .az-nv__cartes { padding-left: 0; }
}
@media (max-width: 560px) {
  .az-nv__chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-nv__ch dd { font-size: 1.3rem; }
  .az-nv__outils { position: static; padding: 8px; }
  .az-nv__v { scroll-margin-top: 80px; }
  .az-nv__portee, .az-nv__types { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .az-nv__portee button { flex: 1; justify-content: center; }
  .az-nv__mod, .az-nv__mod select { width: 100%; }
  .az-nv__v { padding: 16px; }
  .az-nv__pts li { grid-template-columns: 1fr; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { .az-nv__last { transition: none; } }

/* ===== Rôles et droits (0.43) ===== */
.az-dr { --dr-1: #2F7A57; --dr-1p: #E3F2EA; --dr-2: #29497F; --dr-2p: #E6EDF8; --dr-3: #9A6A0E; --dr-3p: #FDF1D8; --dr-4: #B6402B; --dr-4p: #FBE7E2; }
.az-dr, .az-dr__cmp, .az-roles2 { --dr-1: #2F7A57; --dr-1p: #E3F2EA; --dr-2: #29497F; --dr-2p: #E6EDF8; --dr-3: #9A6A0E; --dr-3p: #FDF1D8; --dr-4: #B6402B; --dr-4p: #FBE7E2; }
:root[data-theme="sombre"] :is(.az-dr, .az-dr__cmp) { --dr-1: #5BC894; --dr-1p: rgba(91, 200, 148, .14); --dr-2: #8CB2F0; --dr-2p: rgba(140, 178, 240, .14); --dr-3: #F2C35B; --dr-3p: rgba(242, 195, 91, .14); --dr-4: #F2836D; --dr-4p: rgba(242, 131, 109, .15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) :is(.az-dr, .az-dr__cmp) { --dr-1: #5BC894; --dr-1p: rgba(91, 200, 148, .14); --dr-2: #8CB2F0; --dr-2p: rgba(140, 178, 240, .14); --dr-3: #F2C35B; --dr-3p: rgba(242, 195, 91, .14); --dr-4: #F2836D; --dr-4p: rgba(242, 131, 109, .15); } }
.az-dr__n { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.az-dr__n small { font-weight: 600; opacity: .8; }
.az-dr__n--1 { background: var(--dr-1p); color: var(--dr-1); } .az-dr__n--2 { background: var(--dr-2p); color: var(--dr-2); }
.az-dr__n--3 { background: var(--dr-3p); color: var(--dr-3); } .az-dr__n--4 { background: var(--dr-4p); color: var(--dr-4); }

/* fiche : colonne de modules + aperçu collant */
.az-dr { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.az-dr__main { display: grid; gap: 12px; min-width: 0; }
.az-dr__id .az-grille2 { margin-bottom: 0; }
.az-dr__dep { margin: 14px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.az-dr__dep legend { margin-bottom: 8px; color: var(--az-titre); font-weight: 700; font-size: .9rem; }
.az-dr__choix { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--az-trait); border-radius: 12px; cursor: pointer; }
.az-dr__choix:has(input:checked) { border-color: var(--az-or); background: var(--az-nouv); }
.az-dr__choix span { display: grid; } .az-dr__choix small { color: var(--az-gris); }
.az-dr__mod { grid-column: 1 / -1; margin: 0; }
.az-dr__suit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--az-or-p); color: var(--az-texte); font-size: .92rem; }
.az-dr__suit .az-i { color: var(--az-or-f); flex: none; } .az-dr__suit span { flex: 1 1 240px; }
.az-dr__outils { margin-top: 8px; } .az-dr__outils h2 { margin: 0 0 2px; font-size: 1.1rem; } .az-dr__outils .az-sous { margin: 0; }

.az-dr__m { background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: 16px; overflow: hidden; }
.az-dr__mt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; }
.az-dr__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--w-ac-p, var(--az-pale)); color: var(--w-ac, var(--az-titre)); }
.az-dr__ic .az-i { width: 18px; height: 18px; }
.az-dr__mt h3 { flex: 1 1 160px; min-width: 0; margin: 0; color: var(--az-titre); font-size: .98rem; }
.az-dr__niv { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 3px; border-radius: 11px; background: var(--az-pale); border: 1px solid var(--az-trait); }
.az-dr__niv button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: var(--az-gris); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.az-dr__niv button:hover:not(:disabled) { color: var(--az-titre); }
.az-dr__niv button[aria-checked="true"] { background: var(--az-surface); color: var(--az-titre); box-shadow: 0 1px 3px rgba(14, 27, 51, .14); }
.az-dr__niv button[aria-checked="true"][data-dr-niv="0"] { color: var(--az-gris); }
.az-dr__niv button:disabled { cursor: default; }
.az-dr__perso { padding: 0 10px; color: var(--az-or-t); font-size: .8rem; font-weight: 700; }
.az-dr__det { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--az-info); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.az-dr__det .az-i { width: 16px; height: 16px; transition: transform .15s; }
.az-dr__det[aria-expanded="true"] .az-i { transform: rotate(180deg); }
.az-dr__l { list-style: none; margin: 0; padding: 4px 14px 10px; border-top: 1px solid var(--az-trait); background: var(--az-pale); }
.az-dr__d { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--az-trait); cursor: pointer; }
.az-dr__l li:last-child .az-dr__d { border-bottom: 0; }
.az-dr__d input { width: 18px; height: 18px; accent-color: var(--az-nuit); }
.az-dr__dl { color: var(--az-texte); font-size: .92rem; } .az-dr__dl small { display: block; color: var(--az-gris); font-size: .78rem; }
.az-dr__tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.az-dr__s { padding: 2px 8px; border-radius: 999px; background: var(--az-ko-p); color: var(--az-ko); font-style: normal; font-size: .72rem; font-weight: 700; }

.az-dr__ap { position: sticky; top: 84px; }
.az-dr__ap-in { padding: 18px; border-radius: 18px; color: #DCE3F0; background: linear-gradient(160deg, #0E1B33, #1A2D52); box-shadow: var(--az-ombre); }
.az-dr__ap h2 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.az-dr__compte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.az-dr__compte div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.az-dr__compte dt { color: #A3AFCB; font-size: .74rem; font-weight: 600; } .az-dr__compte dd { margin: 2px 0 0; color: #fff; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.az-dr__compte-s dd { color: #FF9C88; }
.az-dr__ap-t { margin: 0 0 6px; color: #FFD36E; font-size: .78rem; font-weight: 700; }
.az-dr__menu, .az-dr__sens ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.az-dr__menu li { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid rgba(245, 184, 46, .5); font-size: .84rem; }
.az-dr__menu b { color: #fff; font-size: .82rem; } .az-dr__menu span { color: #A3AFCB; }
.az-dr__ap-v { margin: 0 0 14px; color: #A3AFCB; font-size: .86rem; }
.az-dr__sens li { display: grid; font-size: .84rem; color: #fff; } .az-dr__sens small { color: #FF9C88; font-size: .76rem; }
.az-dr__act { display: flex; flex-wrap: wrap; gap: 8px; }
.az-dr__act .az-b--p { flex: 1; justify-content: center; }
.az-dr__act .az-b--t { color: #DCE3F0; }
.az-dr__suppr { margin-top: 16px; }

/* liste des rôles */
.az-dr__orph { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--az-info-p); color: var(--az-texte); }
.az-dr__orph > .az-i { color: var(--az-info); flex: none; margin-top: 2px; }
.az-dr__orph p { margin: 2px 0 6px; color: var(--az-gris); font-size: .9rem; }
.az-dr__orph ul { margin: 0; padding-left: 18px; font-size: .88rem; }
.az-roles2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.az-role2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 16px; border-radius: 16px; background: var(--az-surface); border: 1px solid var(--az-trait); color: var(--az-texte); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.az-role2:hover { border-color: color-mix(in srgb, var(--az-or) 60%, var(--az-trait)); box-shadow: var(--az-ombre); }
.az-role2:focus-visible { outline: 2px solid var(--az-or); outline-offset: 2px; }
.az-role2.is-admin { background: linear-gradient(160deg, #0E1B33, #1A2D52); border-color: transparent; color: #DCE3F0; }
.az-role2.is-admin .az-role2__t b { color: #fff; } .az-role2.is-admin .az-role2__t small, .az-role2.is-admin .az-role2__m { color: #A3AFCB; }
.az-role2.is-admin .az-role2__i { background: rgba(245, 184, 46, .16); color: #F5B82E; }
.az-role2__i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--az-pale); color: var(--az-titre); }
.az-role2__t { display: grid; } .az-role2__t b { color: var(--az-titre); } .az-role2__t small { color: var(--az-gris); font-size: .86rem; line-height: 1.4; }
.az-role2__m { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--az-gris); font-size: .8rem; font-weight: 600; margin-top: 4px; }
.az-role2__s { color: var(--az-ko); } .az-role2__mo { color: var(--az-or-t); }
.az-dr__cmp header h2 { margin: 0 0 2px; font-size: 1.05rem; } .az-dr__cmp header .az-sous { margin: 0 0 12px; }
.az-dr__cmp-s { overflow-x: auto; border-radius: 12px; border: 1px solid var(--az-trait); }
.az-dr__cmp-s:focus-visible { outline: 2px solid var(--az-or); }
.az-dr__tab { width: 100%; border-collapse: collapse; font-size: .86rem; }
.az-dr__tab th, .az-dr__tab td { padding: 9px 10px; border-bottom: 1px solid var(--az-trait); text-align: center; white-space: nowrap; }
.az-dr__tab thead th { position: sticky; top: 0; background: var(--az-pale); color: var(--az-titre); font-size: .8rem; }
.az-dr__tab thead a { color: inherit; text-decoration: none; } .az-dr__tab thead a:hover { text-decoration: underline; }
.az-dr__tab tbody th { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--az-surface); font-weight: 600; color: var(--az-titre); }
.az-dr__tab tbody tr:last-child > * { border-bottom: 0; }
.az-dr__tm { display: inline-flex; align-items: center; gap: 8px; } .az-dr__tm .az-i { width: 16px; height: 16px; color: var(--w-ac, var(--az-gris)); }
.az-dr__vide { color: var(--az-trait); font-weight: 800; }

@media (max-width: 1100px) {
  .az-dr { grid-template-columns: 1fr; }
  .az-dr__ap { position: static; }
  .az-dr__menu { max-height: 160px; }
}
@media (max-width: 560px) {
  .az-dr__dep { grid-template-columns: 1fr; }
  .az-dr__mt h3 { flex-basis: calc(100% - 60px); }
  .az-dr__niv { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .az-dr__niv button { flex: 1 0 auto; }
  .az-dr__d { grid-template-columns: auto minmax(0, 1fr); }
  .az-dr__tags { grid-column: 2; justify-content: flex-start; }
}
.az-dr__nb { color: var(--az-gris); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* E-mails simulés : raison et renvoi (0.43.1) */
.az-mail-motif { color: var(--az-gris); font-size: .76rem; }
.az-mail-bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.az-mail-bandeau p { margin: 0; flex: 1 1 320px; }
.az-mail-renvoi { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: inset 4px 0 0 var(--az-info), var(--az-ombre); }
.az-mail-renvoi.is-ok { box-shadow: inset 4px 0 0 var(--az-or), var(--az-ombre); }
.az-mail-renvoi > div { flex: 1 1 320px; min-width: 0; }
.az-mail-renvoi h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--az-titre); }
.az-mail-renvoi p { margin: 0 0 4px; color: var(--az-texte); }
.az-mail-renvoi__i { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--az-info-p); color: var(--az-info); }
.az-mail-renvoi.is-ok .az-mail-renvoi__i { background: var(--az-or-p); color: var(--az-or-f); }
@media (max-width: 560px) { .az-mail-renvoi form, .az-mail-renvoi .az-b { width: 100%; justify-content: center; } }

/* ===== Mon entreprise (0.44) ===== */
.az-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.az-badge--ko { background: var(--az-ko); color: #fff; }
.az-ent { max-width: 860px; }
.az-ent__t { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.az-ent__sceau { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--az-pale); color: var(--az-gris); border: 1px solid var(--az-trait); }
.az-ent__sceau.is-ok { background: linear-gradient(150deg, #0E1B33, #1A2D52); color: #F5B82E; border-color: transparent; }
.az-ent__nom h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--az-titre); }
.az-ent__nom p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.az-ent__note { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--az-pale); color: var(--az-gris); font-size: .9rem; }
.az-ent__verif { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 0 0 16px; padding: 14px; border-radius: 14px; background: var(--az-or-p); }
.az-ent__verif p { margin: 2px 0 0; } .az-ent__verif .az-champ { margin: 0; }
.az-ent input[readonly] { background: var(--az-pale); color: var(--az-gris); cursor: not-allowed; }
.az-ent-alerte { border-left: 4px solid var(--az-or); }
.az-ent-ecarts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.az-ent-ecarts li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--az-trait); }
.az-ent-ecarts li > b { flex: 1 1 180px; color: var(--az-titre); }
.az-ent-diff { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.az-ent-diff del { color: var(--az-gris); } .az-ent-diff ins { text-decoration: none; font-weight: 700; color: var(--az-ok, #2F7A57); }
.az-ent-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.az-ent-choix .az-b { max-width: 100%; white-space: normal; text-align: left; }
/* 0.63 : Mon entreprise › Règlements */
.az-regl__moyens { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.az-regl__moyens legend { font-weight: 700; margin-bottom: 8px; }
.az-regl__moyen { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--az-bord, #D5D2C8); border-radius: 12px; cursor: pointer; }
.az-regl__moyen:has(input[type=checkbox]:checked) { background: var(--az-pale); }
.az-regl__moyen span { display: grid; gap: 2px; } .az-regl__moyen small { color: var(--az-gris); font-size: .85rem; }
.az-regl__def { display: flex !important; align-items: center; gap: 4px; font-size: .85rem; color: var(--az-gris); white-space: nowrap; }
.az-regl__t { margin: 18px 0 6px; font-size: 1rem; }
@media (max-width: 520px) { .az-regl__moyen { grid-template-columns: auto 1fr; } .az-regl__def { grid-column: 2; } }
@media (max-width: 760px) { .az-ent__verif { grid-template-columns: 1fr; } .az-ent__verif .az-b { width: 100%; justify-content: center; } }
.az-cpt-ident { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--az-pale); } .az-cpt-ident p { margin: 0 0 4px; }

/* ===== Idées et bugs (0.45) ===== */
.az-ma__idee { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--az-trait); }
.az-ma__idee a { display: inline-flex; align-items: center; gap: 8px; color: var(--az-info); font-weight: 600; font-size: .88rem; text-decoration: none; }
.az-ma__idee a:hover { text-decoration: underline; }
.az-idees__une { position: relative; overflow: hidden; margin-bottom: 16px; padding: 24px 26px; border-radius: 20px; color: #DCE3F0;
  background: radial-gradient(110% 140% at 100% 0%, rgba(245, 184, 46, .24), transparent 55%), linear-gradient(140deg, #0E1B33, #1A2D52); }
.az-idees__une h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); letter-spacing: -.02em; }
.az-idees__une p { margin: 0; max-width: 70ch; color: #A3AFCB; }
.az-onglets a small { margin-left: 2px; padding: 0 7px; border-radius: 999px; background: var(--az-pale); color: var(--az-titre); font-size: .74rem; }
.az-onglets a.is-on small { background: rgba(255, 255, 255, .2); color: inherit; }
.az-idees__form { max-width: 860px; }
.az-idees__types { margin: 0 0 14px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.az-idees__types legend { margin-bottom: 8px; font-weight: 700; color: var(--az-titre); }
.az-idees__type { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--az-trait); background: var(--az-surface); cursor: pointer; }
.az-idees__type input { position: absolute; opacity: 0; pointer-events: none; }
.az-idees__type:has(input:checked) { border-color: var(--az-or); box-shadow: 0 0 0 3px var(--az-or-p); }
.az-idees__type:has(input:focus-visible) { outline: 2px solid var(--az-or); outline-offset: 2px; }
.az-idees__type span:last-child { display: grid; gap: 2px; } .az-idees__type small { color: var(--az-gris); line-height: 1.4; }
.az-idees__ti { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--az-or-p); color: var(--az-or-f); }
.az-idees__type--fonction .az-idees__ti, .az-idees__item--fonction .az-idees__ti { background: var(--az-info-p); color: var(--az-info); }
.az-idees__type--bug .az-idees__ti, .az-idees__item--bug .az-idees__ti { background: var(--az-ko-p); color: var(--az-ko); }
.az-idees__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 980px; }
.az-idees__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--az-surface); border: 1px solid var(--az-trait); }
.az-idees__corps { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--az-texte); text-decoration: none; }
a.az-idees__corps:hover b { text-decoration: underline; }
.az-idees__corps b { color: var(--az-titre); } .az-idees__corps p { margin: 2px 0; color: var(--az-texte); font-size: .92rem; } .az-idees__corps small { color: var(--az-gris); }
.az-idees__vote button { display: grid; justify-items: center; gap: 0; min-width: 52px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--az-trait); background: var(--az-pale); color: var(--az-gris); font: inherit; cursor: pointer; }
.az-idees__vote button b { color: var(--az-titre); font-variant-numeric: tabular-nums; }
.az-idees__vote button[aria-pressed="true"] { border-color: var(--az-or); background: var(--az-or-p); color: var(--az-or-f); }
.az-idees__vote button:disabled { cursor: default; opacity: .7; }
.az-idees__fiche { max-width: 860px; } .az-idees__fiche h2 { margin: 0 0 8px; }
.az-idees__texte { white-space: normal; line-height: 1.6; }
.az-idees__etapes { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: e; }
.az-idees__etapes li { position: relative; padding: 10px 8px 0; border-top: 4px solid var(--az-trait); color: var(--az-gris); font-size: .82rem; font-weight: 600; }
.az-idees__etapes li.is-fait { border-color: var(--az-or); color: var(--az-texte); }
.az-idees__etapes li.is-ici { border-color: var(--az-or); color: var(--az-titre); font-weight: 800; }
.az-idees__fil { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.az-idees__fil li { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--az-pale); }
.az-idees__fil li.is-equipe { margin-left: auto; background: var(--az-or-p); }
.az-idees__fil li p { margin: 4px 0 0; } .az-idees__fil small { color: var(--az-gris); }
.az-idees__ctx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 14px 0; }
.az-idees__ctx dt { color: var(--az-gris); font-size: .78rem; font-weight: 700; } .az-idees__ctx dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .az-idees__types { grid-template-columns: 1fr; }
  .az-idees__item { flex-wrap: wrap; } .az-idees__item .az-pastille { margin-left: 50px; }
  .az-idees__etapes { grid-template-columns: 1fr; } .az-idees__etapes li { border-top: 0; border-left: 4px solid var(--az-trait); padding: 4px 0 4px 10px; }
  .az-idees__etapes li.is-fait, .az-idees__etapes li.is-ici { border-left-color: var(--az-or); }
  .az-idees__fil li { max-width: 100%; }
}

/* 0.46 : espace d'essai (Mon entreprise) — un bac à sable, pas une seconde société */
.az-essai { max-width: 860px; border: 1px dashed var(--az-or); background: repeating-linear-gradient(135deg, transparent 0 14px, var(--az-or-p) 14px 15px), var(--az-surface); }
.az-essai.is-dedans { border-style: solid; box-shadow: 0 0 0 3px var(--az-or-p); }
.az-essai__t { display: flex; gap: 14px; align-items: flex-start; }
.az-essai__t h2 { margin: 0 0 4px; }
.az-essai__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--az-or-p); color: var(--az-or-t); }
.az-essai__infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 14px 0; }
.az-essai__infos div { margin: 0; } .az-essai__infos dt { font-size: .8rem; color: var(--az-gris); } .az-essai__infos dd { margin: 2px 0 0; color: var(--az-titre); }
.az-essai__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.az-essai__actions form { margin: 0; }
.az-essai__suppr { margin-top: 16px; border-top: 1px solid var(--az-trait); padding-top: 10px; }
.az-essai__suppr summary { cursor: pointer; color: var(--az-ko); font-weight: 600; width: fit-content; }
.az-essai__suppr form { display: grid; gap: 10px; max-width: 520px; margin-top: 10px; }
.az-essai__suppr .az-champ { margin: 0; }
@media (max-width: 560px) { .az-essai__actions .az-b { flex: 1 1 100%; justify-content: center; } }

/* Console › Modules (0.52) : synthèse, installation, liste groupée qui s'ouvre sur le tarif, les sauvegardes et le blocage */
.az-cmod-synth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.az-cmod-synth div { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--az-surface); border: 1px solid var(--az-trait); }
.az-cmod-synth b { font-size: 1.7rem; font-weight: 800; color: var(--az-titre); letter-spacing: -.03em; line-height: 1.1; }
.az-cmod-synth span { color: var(--az-gris); font-size: .86rem; }
.az-cmod-synth .is-alerte { background: var(--az-or-p); border-color: transparent; } .az-cmod-synth .is-alerte b { color: var(--az-or-t); }
.az-cmod-synth .is-ok b { color: var(--az-ok); }
.az-cmod-info { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--az-info-p); color: var(--az-texte); font-size: .9rem; line-height: 1.5; }
.az-cmod-info .az-i { flex: none; color: var(--az-info); margin-top: 1px; }
.az-cmod-haut { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 18px; }
.az-cmod-haut .az-carte { margin: 0; }
.az-cmod-haut h2 { margin: 0 0 10px; font-size: 1.02rem; }
.az-cmod-haut h3 { margin: 14px 0 6px; font-size: .92rem; }
.az-cmod-depot { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 8px; }
.az-cmod-depot .az-depot__z { flex: 1 1 260px; }
.az-cmod-depot > .az-b { align-self: center; }
.az-cmod-regle .az-petit { margin: 0 0 12px; }
.az-cmod-defaut { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.az-cmod-defaut .az-champ { margin: 0; flex: 1 1 220px; }
.az-cmod-euro { display: flex; align-items: center; border: 1px solid var(--az-trait); border-radius: 10px; background: var(--az-surface); overflow: hidden; }
.az-cmod-euro input { border: 0 !important; width: 90px; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; background: transparent; box-shadow: none !important; }
.az-cmod-euro i { font-style: normal; padding: 0 12px 0 6px; color: var(--az-gris); font-size: .84rem; white-space: nowrap; }
.az-cmod-euro:focus-within { outline: 3px solid rgba(245, 184, 46, .3); border-color: var(--az-or); }
.az-cmod-barre { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 0; background: var(--az-fond); }
.az-cmod-rech { position: relative; flex: 0 1 300px; }
.az-cmod-rech .az-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--az-gris); pointer-events: none; }
.az-cmod-rech input { width: 100%; height: 42px; padding: 0 12px 0 38px; border-radius: 12px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte); font: inherit; }
.az-cmod-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.az-cmod-filtres button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte); font: 600 .86rem var(--az-sans); cursor: pointer; }
.az-cmod-filtres button span { font-size: .74rem; color: var(--az-gris); }
.az-cmod-filtres button.is-alerte { border-color: color-mix(in srgb, var(--az-or) 55%, var(--az-trait)); }
.az-cmod-filtres button.is-on { background: var(--az-plein); border-color: var(--az-plein); color: var(--az-plein-t); }
.az-cmod-filtres button.is-on span { color: var(--az-or); }
.az-cmod-g { margin-top: 14px; }
.az-cmod-g > h3 { margin: 0 0 8px; font-size: .9rem; color: var(--az-gris); font-weight: 700; }
.az-cmod-g > h3 span { font-weight: 600; }
.az-cmod-liste { border: 1px solid var(--az-trait); border-radius: 16px; overflow: hidden; background: var(--az-surface); }
.az-cmod-l + .az-cmod-l { border-top: 1px solid var(--az-trait); }
.az-cmod-l > summary { display: grid; grid-template-columns: 40px minmax(0, 1.6fr) minmax(110px, .7fr) minmax(150px, .8fr) minmax(120px, auto) 20px; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.az-cmod-l > summary::-webkit-details-marker { display: none; }
.az-cmod-l > summary:hover { background: var(--az-survol); }
.az-cmod-l[open] > summary { background: var(--az-pale); }
.az-cmod-l.is-retire { opacity: .65; }
.az-cmod-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.az-cmod-ic .az-i { width: 20px; height: 20px; }
.az-cmod-ic--or { background: linear-gradient(145deg, #FFD36E, #E9A512); color: #3A2A05; } .az-cmod-ic--bleu { background: linear-gradient(145deg, #5B8CE6, #2A4F9A); }
.az-cmod-ic--vert { background: linear-gradient(145deg, #4CC38A, #23825A); } .az-cmod-ic--violet { background: linear-gradient(145deg, #9B7BEA, #5C3FB3); }
.az-cmod-ic--rouge { background: linear-gradient(145deg, #F2836D, #C2412D); } .az-cmod-ic--cyan { background: linear-gradient(145deg, #45C6D8, #1A8296); }
.az-cmod-ic--orange { background: linear-gradient(145deg, #FFA45C, #D9621B); }
.az-cmod-nom { display: grid; min-width: 0; }
.az-cmod-esp, .az-cmod-prix { display: block; min-width: 0; white-space: nowrap; }
.az-cmod-esp small, .az-cmod-prix small { display: block; white-space: normal; }
.az-cmod-nom b { color: var(--az-titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-cmod-nom small, .az-cmod-esp small, .az-cmod-prix small { color: var(--az-gris); font-size: .78rem; }
.az-cmod-esp { font-size: .9rem; } .az-cmod-esp b { font-variant-numeric: tabular-nums; }
.az-cmod-prix { font-size: .9rem; font-variant-numeric: tabular-nums; }
.az-cmod-prix b { color: var(--az-titre); }
.az-cmod-prix small.is-ko { color: var(--az-or-t); font-weight: 700; } .az-cmod-prix small.is-ok { color: var(--az-ok); }
.az-cmod-gratuit { color: var(--az-ok); font-weight: 700; }
.az-cmod-etat { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.az-cmod-chev { width: 10px; height: 10px; border-right: 2px solid var(--az-gris); border-bottom: 2px solid var(--az-gris); transform: rotate(45deg); justify-self: center; margin-top: -4px; transition: transform .15s; }
.az-cmod-l[open] .az-cmod-chev { transform: rotate(225deg); margin-top: 4px; }
.az-cmod-det { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 26px; padding: 16px 20px 20px 70px; background: var(--az-pale); border-top: 1px dashed var(--az-trait); }
.az-cmod-det h4 { margin: 0 0 8px; font-size: .8rem; color: var(--az-gris); font-weight: 700; }
.az-cmod-det p { margin: 0 0 8px; font-size: .88rem; line-height: 1.5; }
.az-cmod-det__d { grid-column: span 2; } .az-cmod-motif { color: var(--az-ko); }
.az-cmod-tarif { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.az-cmod-tarif .az-champ { margin: 0; }
.az-cmod-tarif select { min-height: 40px; }
.az-cmod-sauv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.az-cmod-sauv form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.az-cmod-sauv span { display: grid; min-width: 96px; } .az-cmod-sauv small { color: var(--az-gris); font-size: .76rem; }
.az-cmod-sauv input[type=password] { width: 150px; min-height: 36px; }
.az-cmod-bloq { display: flex; gap: 8px; flex-wrap: wrap; } .az-cmod-bloq input { flex: 1 1 180px; min-height: 38px; }
.az-cmod-l[hidden], .az-cmod-g[hidden] { display: none; }
@media (max-width: 1100px) { .az-cmod-haut { grid-template-columns: 1fr; } .az-cmod-det__d { grid-column: auto; } }
@media (max-width: 900px) {
  .az-cmod-synth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-cmod-l > summary { grid-template-columns: 40px minmax(0, 1fr) 20px; row-gap: 6px; }
  .az-cmod-esp, .az-cmod-prix, .az-cmod-etat { grid-column: 2; justify-content: flex-start; }
  .az-cmod-chev { grid-column: 3; grid-row: 1; }
  .az-cmod-det { padding: 14px 16px; }
  .az-cmod-barre { position: static; }
}
.az-cmod-export { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.az-cmod-export p { margin: 0; flex: 1 1 360px; max-width: 70ch; }
.az-cmod-export .az-b { display: inline-flex; align-items: center; gap: 8px; }
.az-cmod-export .az-i { width: 17px; height: 17px; }
.az-cs-auto { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--az-info-p); color: var(--az-info); font-weight: 600; font-size: .9rem; }
.az-cs-ko { color: var(--az-ko) !important; font-weight: 600; }

/* 0.52.3 : voyant de la surveillance des reconstructions Docker (Console › Socle). */
.az-voyant { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .4em; vertical-align: .12em; background: var(--az-gris); }
.az-kpi--sv-active .az-voyant { background: var(--az-ok, #1E7A46); box-shadow: 0 0 0 .22em var(--az-ok-p, #E3F4EA); }
.az-kpi--sv-active { border-color: var(--az-ok, #1E7A46); }
.az-kpi--sv-reconstruction .az-voyant { background: var(--az-or, #F2B631); }
.az-kpi--sv-arretee .az-voyant { background: var(--az-ko); }
@media (prefers-reduced-motion: no-preference) { .az-kpi--sv-active .az-voyant { animation: az-pouls 2.4s ease-in-out infinite; } }
@keyframes az-pouls { 50% { box-shadow: 0 0 0 .38em transparent; } }

/* =====================================================================
 * Barre du bas (0.54) : téléphone (≤ 860 px) et application InterfaZ. Toujours bleu nuit, quel que soit le thème,
 * comme le menu. --az-bas : place réservée en bas, reprise par les barres d'action et les toasts des modules.
 * ===================================================================== */
.az-barre, .az-tiroir { display: none; }
@media (max-width: 860px) { body.az--barre { --az-bas: calc(86px + env(safe-area-inset-bottom)); } }
body.az--barre.az--appli { --az-bas: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) { body.az--barre .az-barre { display: grid; } body.az--barre .az-tiroir:not([hidden]) { display: block; } }
body.az--barre.az--appli .az-barre { display: grid; }
body.az--barre.az--appli .az-tiroir:not([hidden]) { display: block; }
body.az--barre .az-contenu { padding-bottom: calc(var(--az-bas, 0px) + 24px); }
/* 0.57 : un champ amené en vue (clavier, champ invalide, lien d'ancre) s'arrête au-dessus de la barre du bas et des barres d'action */
@media (max-width: 860px) { html:has(> body.az--barre) { scroll-padding-bottom: calc(160px + env(safe-area-inset-bottom)); } }
html:has(> body.az--barre.az--appli) { scroll-padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

.az-barre {
  --b-fond: #0E1B33; --b-texte: #A9B6CE; --b-on: #F5B82E;
  position: fixed; z-index: 75; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: 66px; padding: 0 6px 7px; margin: 0 auto; max-width: 560px;
  border-radius: 24px; background: linear-gradient(180deg, rgba(26, 45, 82, .96), rgba(14, 27, 51, .97));
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 18px 40px -12px rgba(8, 14, 28, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  font-family: var(--az-sans); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
:root[data-theme="sombre"] .az-barre { background: linear-gradient(180deg, rgba(32, 51, 90, .96), rgba(19, 32, 58, .97)); border-color: rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]):not([data-theme="sombre"]) .az-barre { background: linear-gradient(180deg, rgba(32, 51, 90, .96), rgba(19, 32, 58, .97)); border-color: rgba(255, 255, 255, .12); } }
.az-barre__vide { display: block; }
.az-barre__l, .az-barre__c { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; height: 100%;
  padding: 0; border: 0; background: none; color: var(--b-texte); font: 600 .69rem/1.1 var(--az-sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; }
.az-barre__t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-barre__i { position: relative; display: grid; place-items: center; width: 52px; height: 32px; border-radius: 16px; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.az-barre__i .az-i { width: 23px; height: 23px; stroke-width: 1.9; }
.az-barre__l.is-on { color: var(--b-on); }
.az-barre__l.is-on .az-barre__i .az-i { stroke-width: 2.3; }
.az-barre__l:active .az-barre__i, .az-barre__c:active .az-barre__disque { transform: scale(.88); }
.az-barre__l:focus-visible, .az-barre__c:focus-visible { outline: none; }
.az-barre__l:focus-visible .az-barre__i, .az-barre__c:focus-visible .az-barre__disque { outline: 3px solid var(--az-or); outline-offset: 2px; }
/* Pastille dorée derrière l'icône active : elle glisse d'une place à l'autre au changement de page (app.js) */
.az-barre__pastille { position: absolute; z-index: 0; top: 10px; left: 0; width: 52px; height: 32px; border-radius: 16px; opacity: 0;
  background: linear-gradient(180deg, rgba(245, 184, 46, .26), rgba(245, 184, 46, .14)); box-shadow: inset 0 0 0 1px rgba(245, 184, 46, .28); }
.az-barre__pastille.is-pret { opacity: 1; }
.az-barre__pastille.is-glisse { transition: transform .42s cubic-bezier(.34, 1.4, .5, 1), opacity .2s; }
.az-barre:not(.is-js) .az-barre__l.is-on .az-barre__i { background: rgba(245, 184, 46, .18); }
/* Bouton central : l'action du métier */
.az-barre__c { color: #fff; }
.az-barre__disque { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; color: var(--az-nuit);
  background: radial-gradient(circle at 32% 26%, #FFE7A6 0, var(--az-or-2) 22%, var(--az-or) 58%, var(--az-or-f) 100%);
  box-shadow: 0 0 0 6px #13234A, 0 14px 26px -8px rgba(245, 184, 46, .75), inset 0 -3px 6px rgba(120, 76, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .55);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.az-barre__disque::before { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 184, 46, 0), rgba(255, 211, 110, .55), rgba(245, 184, 46, 0) 40%, rgba(255, 211, 110, .4) 70%, rgba(245, 184, 46, 0));
  filter: blur(6px); animation: az-halo 6s linear infinite; }
.az-barre__disque .az-i { width: 27px; height: 27px; stroke-width: 2.2; }
.az-barre__c .az-barre__t { color: #fff; font-weight: 700; }
.az-barre__c.is-on .az-barre__t { color: var(--b-on); }
@keyframes az-halo { to { transform: rotate(360deg); } }
/* Pastilles de nombre */
.az-barre__n { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: #E5484D; color: #fff; font: 800 .66rem/1 var(--az-sans); box-shadow: 0 0 0 2px #13234A; animation: az-pop .45s cubic-bezier(.3, 1.8, .5, 1) both; }
.az-barre__disque .az-barre__n { top: -2px; right: -4px; }
@keyframes az-pop { from { transform: scale(0); } }
/* Effet de touche */
.az-barre__onde { position: absolute; z-index: -1; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 211, 110, .22); pointer-events: none; animation: az-onde .5s ease-out forwards; }
@keyframes az-onde { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Tiroir « Plus » */
.az-tiroir { position: fixed; inset: 0; z-index: 90; }
.az-tiroir__v { position: absolute; inset: 0; background: rgba(8, 14, 28, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: az-fondu .25s ease both; }
.az-tiroir__p { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; margin: 0 auto; max-width: 620px;
  padding: 6px max(18px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-radius: 28px 28px 0 0; color: #E6ECF7; background: radial-gradient(120% 70% at 100% 0%, rgba(245, 184, 46, .16), transparent 55%), linear-gradient(180deg, #1A2D52, #0E1B33 60%);
  box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, .5); animation: az-monte .38s cubic-bezier(.2, 1.2, .4, 1) both; }
.az-tiroir.is-ferme .az-tiroir__p { animation: az-descend .22s ease-in both; }
.az-tiroir.is-ferme .az-tiroir__v { animation: az-fondu .22s ease reverse both; }
@keyframes az-monte { from { transform: translateY(100%); } }
@keyframes az-descend { to { transform: translateY(100%); } }
@keyframes az-fondu { from { opacity: 0; } }
.az-tiroir__poignee { display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.az-tiroir__poignee i { width: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.az-tiroir__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 2px 0 16px; }
.az-tiroir__h h2 { margin: 0 0 4px; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.az-tiroir__h p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #A9B6CE; font-size: .86rem; }
.az-tiroir__metier { padding: 2px 9px; border-radius: 99px; background: rgba(245, 184, 46, .16); color: var(--az-or-2); font-weight: 700; font-size: .76rem; }
.az-tiroir__x { color: #C9D3E6; }
.az-tiroir__g { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.az-tuile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 14px 6px 12px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .05); color: #E6ECF7; font: 600 .78rem/1.2 var(--az-sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease; animation: az-tuile .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.az-tiroir__g li:nth-child(2) .az-tuile { animation-delay: .03s; } .az-tiroir__g li:nth-child(3) .az-tuile { animation-delay: .06s; } .az-tiroir__g li:nth-child(4) .az-tuile { animation-delay: .09s; }
.az-tiroir__g li:nth-child(n+5) .az-tuile { animation-delay: .12s; }
@keyframes az-tuile { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.az-tuile:active { transform: scale(.95); background: rgba(255, 255, 255, .1); }
.az-tuile.is-on { border-color: rgba(245, 184, 46, .5); background: rgba(245, 184, 46, .1); }
.az-tuile__i { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: var(--az-or-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.az-tuile__i .az-i { width: 24px; height: 24px; }
.az-tuile__i .az-barre__n { top: -6px; right: -8px; box-shadow: 0 0 0 2px #142650; }
.az-tuile__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.az-tiroir__pied { display: flex; gap: 10px; }
.az-tiroir__pied .az-b { flex: 1; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .12); }
body.az-tiroir-ouvert { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .az-barre__disque::before, .az-barre__n, .az-barre__onde, .az-tiroir__p, .az-tiroir__v, .az-tuile { animation: none; }
  .az-barre__pastille.is-glisse { transition: none; }
}
/* Ce qui était collé en bas d'écran remonte au-dessus de la barre */
body.az--barre .az-toast, body.az--barre .ms-toast, body.az--barre .rp-toast, body.az--barre .co-toast { bottom: calc(var(--az-bas, 0px) + 12px); }
body.az--barre .cat-barre, body.az--barre .cl-barre, body.az--barre .fo-cmd__pied, body.az--barre .lv-barre-bas, body.az--barre .vh-barre-bas, body.az--barre .cd-barre-bas, body.az--barre .dp-barre-bas, body.az--barre .do-ed__pied, body.az--barre .of-actions { bottom: var(--az-bas, 0px); }
body.az--barre .cd-tete__a, body.az--barre .co-tete__a { bottom: calc(var(--az-bas, 0px) + 12px); }
body.az--barre .cd-saisie .cd-panier .cd-valider { bottom: calc(var(--az-bas, 0px) + 8px); }
body.az--barre .cd-saisie .cd-totaux__ttc { bottom: calc(var(--az-bas, 0px) + 72px); }
body.az--barre .azd { bottom: var(--az-bas, 0px); }
body.az--barre .rp-az { bottom: calc(var(--az-bas, 0px) + 10px); }
@media (pointer: coarse) { body.az--barre.az-saisie .az-barre { transform: translateY(140%); } }
.az-barre { transition: transform .25s ease; }
.az-tiroir__r { margin: 4px 2px 10px; color: #8E9CB6; font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.az-tiroir .az-tiroir__x { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #E6ECF7; }
/* 0.54.1 : page demandée depuis la barre — filet doré immédiat, contenu estompé si la réponse tarde (réseau mobile) */
body.az-navigue::before { content: ""; position: fixed; z-index: 2000; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--az-or-f), var(--az-or-2), var(--az-or)); box-shadow: 0 0 10px rgba(245, 184, 46, .7); animation: az-filet 2.4s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes az-filet { from { transform: scaleX(.05); } 40% { transform: scaleX(.6); } to { transform: scaleX(.92); } }
body.az-navigue--lent .az-contenu { opacity: .45; transition: opacity .25s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.az-navigue::before { animation: none; transform: scaleX(.6); } }
/* 0.54.2 : sur téléphone, « Ajouter des widgets » et « Personnaliser » deviennent deux boutons ronds à droite du bonjour */
@media (max-width: 640px) {
  .az-tb__t { flex-wrap: nowrap; align-items: center; }
  .az-tb__t > div:first-child { min-width: 0; }
  .az-tb__btns { flex-wrap: nowrap; flex: none; gap: 8px; }
  .az-tb__btns .az-b { width: 42px; height: 42px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; gap: 0; }
  .az-tb__btns .az-b .az-i { width: 20px; height: 20px; }
  .az-tb__lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .az-tb__ajout { background: var(--az-plein); color: var(--az-plein-t); border-color: var(--az-plein); }
  .az-tb__perso[aria-pressed="true"] { background: var(--az-or); color: var(--az-nuit); border-color: var(--az-or); }
}
/* 0.57 : règle commune des en-têtes sur téléphone.
 * 1. Onglets des modules (toute barre d'onglets du contenu : nav dont un lien est l'onglet ouvert) : une seule ligne qui défile
 *    au doigt au lieu de 3 ou 4 lignes ; l'onglet ouvert est amené en vue (app.js). Les menus « Plus » (details) s'ouvrent
 *    sous la barre, hors de la zone qui défile.
 * 2. .az-ronds : les boutons à icône du groupe deviennent des boutons ronds de 42 px, comme sur l'accueil et le Répertoire ;
 *    le libellé reste lu par les lecteurs d'écran et s'affiche en info-bulle (title ajouté par app.js).
 * 3. .az-rangee : les boutons du groupe restent libellés, plus bas (36 px), côte à côte ; .az-pc : précision masquée sur téléphone.
 * 4. .az-defile : pastilles (jours, filtres) sur une seule ligne qui défile au doigt. */
@media (max-width: 640px) {
  .az-contenu nav:is(:has(> a.is-on), :has(> a[aria-current="page"])) { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scrollbar-width: none; max-width: 100%; flex: 1 1 100%; }
  .az-contenu nav:is(:has(> a.is-on), :has(> a[aria-current="page"]))::-webkit-scrollbar { display: none; }
  .az-contenu nav:is(:has(> a.is-on), :has(> a[aria-current="page"])) > :is(a, details) { flex: none; }
  .az-contenu nav:is(:has(> a.is-on), :has(> a[aria-current="page"])):has(> details) { position: static; }
  .az-contenu :has(> nav > details) { position: relative; }
  .az-contenu nav:is(:has(> a.is-on), :has(> a[aria-current="page"])) > details { position: static; }
  .az-contenu .az-ronds { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
  .az-contenu .az-ronds .az-b:has(> .az-i) { flex: none; width: 42px; height: 42px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; gap: 0; font-size: 0; line-height: 0; }
  .az-contenu .az-ronds .az-b:has(> .az-i) > .az-i { width: 20px; height: 20px; margin: 0; }
  .az-contenu .az-ronds .az-b--p:has(> .az-i) { background: var(--az-plein); color: var(--az-plein-t); border-color: var(--az-plein); box-shadow: none; }
  .az-contenu .az-rangee { display: flex; flex-wrap: wrap; gap: 8px; }
  .az-contenu .az-rangee .az-b { min-height: 36px; padding: 0 12px; font-size: .86rem; gap: 6px; }
  .az-contenu .az-rangee .az-b > .az-i { width: 16px; height: 16px; }
  .az-pc { display: none; }
  .az-contenu .az-defile { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; max-width: 100%; }
  .az-contenu .az-defile::-webkit-scrollbar { display: none; }
  .az-contenu .az-defile > * { flex: none; }
}
}

/* =====================================================================
 * Transitions entre les pages (0.55) : l'en-tête, le menu et la barre du bas restent en place, seul le contenu bouge.
 * Barre du bas : la page glisse dans le sens de l'onglet touché, bord d'attaque éclairé d'or. Tiroir « Plus » : la page
 * jaillit du bas. Autres liens : la page monte doucement. Retour arrière : glisse vers la droite.
 * Navigateurs sans transitions entre documents : le contenu apparaît en fondu (voir @supports plus bas).
 * ===================================================================== */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html { background: var(--az-fond); }
.az-haut { view-transition-name: az-haut; }
.az-cote { view-transition-name: az-cote; }
.az-barre { view-transition-name: az-barre; }
::view-transition-group(az-haut), ::view-transition-group(az-cote), ::view-transition-group(az-barre) { z-index: 2; }
::view-transition-old(az-barre) { display: none; }                         /* la nouvelle barre est déjà là ; sa pastille glisse */
::view-transition-new(az-barre) { animation: none; }
::view-transition-old(az-cote), ::view-transition-new(az-cote) { animation-duration: .18s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* onglet plus à droite : l'ancienne page recule vers la gauche, la nouvelle arrive de la droite */
html:active-view-transition-type(glisse-droite)::view-transition-old(root) { animation: az-vt-recule-g .34s cubic-bezier(.4, 0, .2, 1) both; }
html:active-view-transition-type(glisse-droite)::view-transition-new(root) { animation: az-vt-arrive-d .46s cubic-bezier(.16, 1, .3, 1) both; }
html:active-view-transition-type(glisse-gauche)::view-transition-old(root),
html:active-view-transition-type(retour)::view-transition-old(root) { animation: az-vt-recule-d .34s cubic-bezier(.4, 0, .2, 1) both; }
html:active-view-transition-type(glisse-gauche)::view-transition-new(root),
html:active-view-transition-type(retour)::view-transition-new(root) { animation: az-vt-arrive-g .46s cubic-bezier(.16, 1, .3, 1) both; }
/* tuile du tiroir : la page jaillit depuis le bas, comme si elle sortait du tiroir */
html:active-view-transition-type(zoom)::view-transition-old(root) { animation: az-vt-efface .26s ease both; }
html:active-view-transition-type(zoom)::view-transition-new(root) { animation: az-vt-jaillit .5s cubic-bezier(.16, 1, .3, 1) both; }
/* autres liens : montée douce */
html:active-view-transition-type(monte)::view-transition-old(root) { animation: az-vt-efface .2s ease both; }
html:active-view-transition-type(monte)::view-transition-new(root) { animation: az-vt-monte .34s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes az-vt-recule-g { to { transform: translateX(-24%) scale(.94); opacity: 0; filter: saturate(.6) blur(1.5px); } }
@keyframes az-vt-recule-d { to { transform: translateX(24%) scale(.94); opacity: 0; filter: saturate(.6) blur(1.5px); } }
@keyframes az-vt-arrive-d {
  from { transform: translateX(72%); opacity: .2; box-shadow: -40px 0 60px -18px rgba(245, 184, 46, .75), -2px 0 0 rgba(255, 211, 110, .9); }
  55% { opacity: 1; }
  to { transform: none; opacity: 1; box-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes az-vt-arrive-g {
  from { transform: translateX(-72%); opacity: .2; box-shadow: 40px 0 60px -18px rgba(245, 184, 46, .75), 2px 0 0 rgba(255, 211, 110, .9); }
  55% { opacity: 1; }
  to { transform: none; opacity: 1; box-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes az-vt-jaillit {
  from { transform: translateY(42%) scale(.86); opacity: 0; border-radius: 28px; box-shadow: 0 -30px 60px -20px rgba(245, 184, 46, .6); }
  to { transform: none; opacity: 1; border-radius: 0; box-shadow: 0 0 0 transparent; }
}
@keyframes az-vt-efface { to { opacity: 0; transform: scale(.97); } }
@keyframes az-vt-monte { from { opacity: 0; transform: translateY(14px); } }

/* sans transitions entre documents (navigateurs plus anciens) : simple fondu du contenu à l'arrivée */
@supports not (view-transition-name: none) {
  .az-contenu { animation: az-vt-monte .3s cubic-bezier(.2, .8, .2, 1) both; }
  @media (prefers-reduced-motion: reduce) { .az-contenu { animation: none; } }
}
.az-moi__p [hidden] { display: none; }
.az-moi__nouv { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--az-or-p); color: var(--az-or-t); font-size: .7rem; font-weight: 800; }

/* 0.56 : ouverture en cercle depuis la barre du bas et le tiroir « Plus ».
 * L'ancienne page s'enfonce (rétrécit, s'assombrit, se floute) ; la nouvelle s'ouvre en cercle depuis l'icône touchée,
 * avec une légère profondeur ; un anneau d'or lumineux court sur le bord du cercle puis s'éteint. */
.az-vt-anneau { position: fixed; z-index: 3000; pointer-events: none; border-radius: 50%; view-transition-name: az-anneau;
  border: 3px solid #FFD36E; box-shadow: 0 0 18px 4px rgba(245, 184, 46, .85), inset 0 0 22px 2px rgba(245, 184, 46, .55); }
::view-transition-group(az-anneau) { z-index: 1; animation: none; }
::view-transition-new(az-anneau) { animation: az-vt-anneau .66s cubic-bezier(.65, 0, .15, 1) both; }
html:active-view-transition-type(cercle)::view-transition-group(root) { animation: none; }
html:active-view-transition-type(cercle)::view-transition-old(root) { animation: az-vt-enfonce .66s cubic-bezier(.4, 0, .2, 1) both; transform-origin: var(--vt-x, 50%) var(--vt-y, 100%); }
html:active-view-transition-type(cercle)::view-transition-new(root) { animation: az-vt-cercle .66s cubic-bezier(.65, 0, .15, 1) both; transform-origin: var(--vt-x, 50%) var(--vt-y, 100%); }
@keyframes az-vt-enfonce { to { transform: scale(.9); filter: brightness(.35) saturate(.6) blur(4px); } }
@keyframes az-vt-cercle {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 100%)); transform: scale(1.1); filter: brightness(1.25) saturate(1.2); }
  to { clip-path: circle(var(--vt-r, 150%) at var(--vt-x, 50%) var(--vt-y, 100%)); transform: none; filter: none; }
}
@keyframes az-vt-anneau {
  from { transform: scale(0); opacity: 1; }
  80% { opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .az-vt-anneau { display: none; } }

/* =====================================================================
 * Connexion par empreinte ou visage (0.58) : bouton de la page de connexion, appareils dans Mon profil.
 * ===================================================================== */
.az-cle-connexion { margin-top: 14px; display: grid; gap: 10px; }
.az-cle-connexion[hidden] { display: none; }
.az-cle-connexion__ou { display: flex; align-items: center; gap: 12px; color: var(--az-gris); font-size: .82rem; font-weight: 700; }
.az-cle-connexion__ou::before, .az-cle-connexion__ou::after { content: ""; flex: 1; height: 1px; background: var(--az-trait); }
.az-cle-connexion { min-width: 0; }
.az-cle-connexion__b { min-height: 48px; justify-content: center; gap: 10px; white-space: normal; text-align: center; min-width: 0; max-width: 100%; line-height: 1.25; }
.az-cle-connexion__b .az-i { width: 24px; height: 24px; color: var(--az-or-f, #B7860B); }
.az-cle-connexion__etat, .az-cles [data-az-cles-etat] { margin: 0; min-height: 1.2em; }
.az-cle-connexion__etat.is-ko, .az-cles [data-az-cles-etat].is-ko { color: var(--az-ko, #B42318); font-weight: 600; }
.az-cles { margin-top: 18px; }
.az-cles__t { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 6px; }
.az-cles__t .az-i { width: 22px; height: 22px; color: var(--az-or-f, #B7860B); }
.az-cles__l { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.az-cles__l li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--az-trait); border-radius: 14px; background: var(--az-surface); }
.az-cles__l form { margin: 0 0 0 auto; }
.az-cles__i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--az-pale); color: var(--az-titre); }
.az-cles__i .az-i { width: 20px; height: 20px; }
.az-cles__n { display: grid; min-width: 0; } .az-cles__n small { color: var(--az-gris); font-size: .8rem; }
.az-cles__a { margin-top: 14px; display: grid; gap: 8px; justify-items: start; }

/* =====================================================================
 * Notifications sur cet appareil (0.59) : préférences, sons, invitation discrète.
 * ===================================================================== */
.az-push { margin-top: 18px; }
.az-push__t { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 6px; }
.az-push__t .az-i { width: 22px; height: 22px; color: var(--az-or-f); }
.az-push__a { display: grid; gap: 8px; justify-items: start; margin: 12px 0 16px; }
.az-push__a p { margin: 0; }
.az-push[data-etat="actif"] [data-az-push-etat] { color: var(--az-ok); font-weight: 700; }
.az-push__sons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.az-push__son { display: flex; align-items: flex-end; gap: 8px; }
.az-push__son .az-champ { flex: 1; min-width: 0; }
.az-push__son .az-btn-ic { flex: none; width: 44px; height: 44px; }
.az-push__st { font-size: .95rem; margin: 18px 0 0; }
.az-push-inv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(120deg, var(--az-nuit), var(--az-nuit-2)); color: #fff; box-shadow: var(--az-ombre); }
.az-push-inv__i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(245, 184, 46, .16); color: var(--az-or); }
.az-push-inv__i .az-i { width: 22px; height: 22px; }
.az-push-inv p { flex: 1 1 220px; margin: 0; display: grid; gap: 2px; min-width: 0; }
.az-push-inv p b { color: #fff; } .az-push-inv p span { color: #C9D3E6; font-size: .88rem; }
.az-push-inv .az-b--t { color: #C9D3E6; }
@media (max-width: 640px) { .az-push-inv .az-b { flex: 1; } }

/* ===================================================================== 0.60 : mise à jour programmée */
.az-puce { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte); font: 600 .84rem var(--az-sans); cursor: pointer; }
.az-puce:hover { border-color: var(--az-or); }
.az-puce.is-on { background: var(--az-nuit); border-color: var(--az-nuit); color: #fff; }
.az-puce:focus-visible { outline: 3px solid var(--az-or); outline-offset: 2px; }
.az-cs-prog { border-color: var(--az-or); background: linear-gradient(180deg, rgba(245, 184, 46, .07), transparent 140px), var(--az-surface); }
.az-cs-prog__t { display: flex; gap: 14px; align-items: flex-start; }
.az-cs-prog__t h2 { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.az-cs-prog__ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--az-nuit); color: var(--az-or); }
.az-cs-prog__ic .az-i { width: 22px; height: 22px; }
.az-cs-prog__st { padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--az-pale); color: var(--az-gris); }
.az-cs-prog--programmee .az-cs-prog__st { background: rgba(245, 184, 46, .2); color: #8A5A0B; }
.az-cs-prog--en_cours .az-cs-prog__st, .az-cs-prog--installee .az-cs-prog__st { background: var(--az-info-p); color: var(--az-info); }
.az-cs-prog--terminee .az-cs-prog__st { background: var(--az-ok-p, #E3F4EA); color: var(--az-ok, #1E7A46); }
.az-cs-prog--bloquee .az-cs-prog__st, .az-cs-prog--echec .az-cs-prog__st { background: rgba(229, 72, 77, .14); color: var(--az-ko); }
.az-cs-prog__quand { margin: 0; color: var(--az-texte); }
.az-cs-prog__cpt { margin-left: 4px; font-weight: 800; color: #8A5A0B; font-variant-numeric: tabular-nums; }
.az-cs-prog__f { display: grid; gap: 14px; margin-top: 14px; }
.az-cs-prog__sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--az-gris); }
.az-cs-prog__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .az-cs-prog__g { grid-template-columns: 1fr 1fr; } .az-cs-prog__g > :last-child { grid-column: 1 / -1; } }
.az-cs-prog__f textarea { padding: 10px 12px; min-height: 76px; resize: vertical; }
.az-cs-prog__opts { display: grid; }
.az-cs-prog__pub { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--az-pale); font-size: .9rem; }
.az-cs-prog__pub .az-i { flex: none; width: 20px; height: 20px; color: var(--az-gris); margin-top: 1px; }
.az-cs-prog__ap { margin: 10px 0 0; font-size: .88rem; color: var(--az-gris); }
.az-cs-prog__b { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.az-cs-prog__b .az-champ { flex: 1 1 220px; }
.az-cs-prog__act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--az-trait); }
.az-cs-prog__d { flex: 1 1 100%; }
.az-cs-prog__d > summary { list-style: none; display: inline-flex; }
.az-cs-prog__d > summary::-webkit-details-marker { display: none; }
.az-cs-estim { border: 1px solid var(--az-trait); border-radius: 12px; padding: 10px 14px; background: var(--az-surface); }
.az-cs-estim summary { cursor: pointer; } .az-cs-estim summary span { color: var(--az-gris); font-size: .86rem; }
.az-cs-estim ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.az-cs-estim li { display: flex; justify-content: space-between; gap: 12px; } .az-cs-estim li span { color: var(--az-gris); }
.az-cs-fil { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.az-cs-fil > li { position: relative; display: grid; gap: 2px; padding: 0 0 12px 30px; }
.az-cs-fil > li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--az-trait); background: var(--az-surface); }
.az-cs-fil > li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 20px; bottom: 2px; width: 2px; background: var(--az-trait); }
.az-cs-fil > li.is-fait::before { background: var(--az-ok, #1E7A46); border-color: var(--az-ok, #1E7A46); }
.az-cs-fil > li.is-off { opacity: .55; }
.az-cs-fil > li span { color: var(--az-gris); font-size: .86rem; }

/* bandeau des espaces avant la mise à jour */
.az-maj { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; color: #E6ECF7;
  background: radial-gradient(120% 140% at 100% 0%, rgba(245, 184, 46, .22), transparent 55%), linear-gradient(135deg, #1A2D52, #0E1B33); box-shadow: 0 14px 30px -18px rgba(8, 14, 28, .7); }
.az-maj[hidden] { display: none; }
.az-maj__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(245, 184, 46, .18); color: var(--az-or); }
.az-maj p { flex: 1; margin: 0; display: grid; gap: 2px; min-width: 0; }
.az-maj p b { color: #fff; } .az-maj p > span { color: #B8C4D8; font-size: .88rem; }
.az-maj__cpt { color: #FFD36E; font-weight: 700; font-variant-numeric: tabular-nums; }
.az-maj .az-b--s { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.az-maj__x { color: #B8C4D8; }
.az-maj--proche { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 211, 110, .35), transparent 60%), linear-gradient(135deg, #5A3A06, #2A1E06); }
@media (max-width: 640px) { .az-maj { position: relative; flex-wrap: wrap; padding-right: 46px; } .az-maj p { flex-basis: calc(100% - 60px); }
  .az-maj .az-b--s { flex: 1 1 100%; } .az-maj__x { position: absolute; top: 6px; right: 6px; } }

/* page « Mise à jour » */
.az-maj-p { position: relative; overflow: hidden; margin-bottom: 22px; padding: clamp(18px, 3vw, 28px); border-radius: 22px; color: #E6ECF7;
  background: radial-gradient(90% 120% at 100% 0%, rgba(245, 184, 46, .22), transparent 55%), linear-gradient(160deg, #1A2D52, #0E1B33 65%); }
.az-maj-p h2 { margin: 2px 0 6px; color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.2; }
.az-maj-p p { margin: 0; color: #C7D1E2; }
.az-maj-p b { color: #fff; }
.az-maj-p__h { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.az-maj-p__t { flex: 1 1 320px; min-width: 0; }
.az-maj-p__sur { font-size: .82rem; font-weight: 700; color: var(--az-or) !important; }
.az-maj-p__jour { flex: none; display: grid; justify-items: center; width: 86px; padding: 8px 0; border-radius: 18px; background: #fff; color: var(--az-nuit); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.az-maj-p__jour small { font-size: .74rem; font-weight: 800; text-transform: capitalize; color: #8A5A0B; }
.az-maj-p__jour b { font-size: 2.3rem; line-height: 1; color: var(--az-nuit); }
.az-maj-p__cpt { flex: 0 0 auto; padding: 10px 16px; border-radius: 14px; background: rgba(245, 184, 46, .16); border: 1px solid rgba(245, 184, 46, .35); color: #FFD36E; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.az-maj-p__cpt:empty { display: none; }
.az-maj-p__b { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.az-maj-p .az-b--s { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.az-maj-p__trois { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; counter-reset: mj; }
.az-maj-p__trois li { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); counter-increment: mj; }
.az-maj-p__trois li b::before { content: counter(mj) '. '; color: var(--az-or); }
.az-maj-p__trois li span { color: #B8C4D8; font-size: .88rem; line-height: 1.5; }
@media (max-width: 760px) { .az-maj-p__trois { grid-template-columns: 1fr; } }
.az-maj-p__mot { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--az-or); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .06); color: #E6ECF7; }
.az-maj-p__mot small { display: block; margin-bottom: 4px; color: #FFD36E; font-weight: 800; font-size: .76rem; }
.az-maj-p__ct { margin: 4px 0 12px; }
.az-maj-p--vide { text-align: center; display: grid; justify-items: center; gap: 10px; }
.az-maj-p__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(47, 191, 113, .18); color: #6FE3A5; }

/* page d'attente pendant la mise à jour */
.az-attente { width: min(520px, 100%); margin: 10px auto 0; text-align: left; }
.az-attente h1 { margin: 2px 0 8px; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.az-attente__sur { margin: 0; font-weight: 700; font-size: .86rem; color: #8A5A0B; }
:root[data-theme="sombre"] .az-attente__sur { color: var(--az-or); }
.az-attente__retour { margin: 0 0 16px; font-size: 1.05rem; }
.az-attente__barre { position: relative; height: 10px; border-radius: 99px; background: var(--az-pale); border: 1px solid var(--az-trait); overflow: hidden; }
.az-attente__barre i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--az-or-f, #C98F12), var(--az-or), #FFD36E); transition: width .9s ease; }
@media (prefers-reduced-motion: no-preference) { .az-attente__barre i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: az-reflet 1.8s linear infinite; } }
@keyframes az-reflet { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.az-attente__etapes { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 8px; }
.az-attente__etapes li { position: relative; padding-left: 30px; color: var(--az-gris); }
.az-attente__etapes li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--az-trait); box-sizing: border-box; }
.az-attente__etapes li.is-fait { color: var(--az-texte); }
.az-attente__etapes li.is-fait::before { background: var(--az-ok, #1E7A46) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--az-ok, #1E7A46); }
.az-attente__etapes li.is-encours { color: var(--az-titre); font-weight: 700; }
.az-attente__etapes li.is-encours::before { border-color: var(--az-or); border-top-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .az-attente__etapes li.is-encours::before { animation: az-tourne 1s linear infinite; } }
@keyframes az-tourne { to { transform: rotate(360deg); } }
.az-attente__n { margin: 0; color: var(--az-gris); font-size: .92rem; }
.az-attente.is-fini h1 { color: var(--az-ok, #1E7A46); }

/* 0.61 : accès suspendu par une garde (ex. pointer son arrivée) */
.az-suspendu { width: min(560px, 100%); margin: clamp(10px, 6vh, 60px) auto 0; padding: clamp(20px, 4vw, 34px); border-radius: 24px; text-align: center; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: var(--az-ombre); }
.az-suspendu__ic { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; color: var(--az-nuit); background: radial-gradient(circle at 32% 26%, #FFE7A6 0, var(--az-or-2) 22%, var(--az-or) 60%, var(--az-or-f) 100%); box-shadow: 0 14px 26px -10px rgba(245, 184, 46, .7); }
.az-suspendu__ic .az-i { width: 32px; height: 32px; }
.az-suspendu h2 { margin: 16px 0 8px; font-size: clamp(1.3rem, 3vw, 1.6rem); color: var(--az-titre); }
.az-suspendu > p { margin: 0 auto 6px; max-width: 46ch; color: var(--az-texte); line-height: 1.55; }
.az-suspendu__act { color: var(--az-ko) !important; font-weight: 700; }
.az-suspendu__b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 4px; }
.az-suspendu__l { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--az-trait); text-align: left; }
.az-suspendu__l h3 { margin: 0 0 8px; font-size: .86rem; color: var(--az-gris); }
.az-suspendu__l ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.az-suspendu__l a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: var(--az-pale); color: var(--az-titre); font-weight: 600; text-decoration: none; }
.az-suspendu__l a:hover { background: var(--az-survol); }
.az-suspendu__l .az-i { width: 18px; height: 18px; color: var(--az-gris); }

/* ===================================================================== 0.62 : assistant de mise en route d'un module */
.as { width: min(880px, 100%); margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--az-surface); border: 1px solid var(--az-trait); box-shadow: var(--az-ombre); }
.as-h { display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3vw, 30px); color: #E6ECF7;
  background: radial-gradient(90% 140% at 100% 0%, rgba(245, 184, 46, .25), transparent 55%), linear-gradient(150deg, #1A2D52, #0E1B33 70%); }
.as-h__ic { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--az-nuit);
  background: radial-gradient(circle at 32% 26%, #FFE7A6 0, var(--az-or-2) 22%, var(--az-or) 60%, var(--az-or-f) 100%); box-shadow: 0 12px 24px -10px rgba(245, 184, 46, .7); }
.as-h__ic .az-i { width: 28px; height: 28px; }
.as-h h2 { margin: 2px 0 6px; color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.2; }
.as-h__sur { margin: 0; color: var(--az-or); font-weight: 700; font-size: .84rem; }
.as-h__i { margin: 0; color: #C7D1E2; max-width: 60ch; line-height: 1.55; }
.as-pas { list-style: none; display: flex; gap: 6px; margin: 0; padding: 14px clamp(16px, 3vw, 30px); border-bottom: 1px solid var(--az-trait); overflow-x: auto; scrollbar-width: none; }
.as-pas::-webkit-scrollbar { display: none; }
.as-pas li { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; color: var(--az-gris); font-size: .84rem; white-space: nowrap; }
.as:not(.is-js) .as-pas { display: none; }
.as.is-js .as-pas li { cursor: pointer; }
.as-pas li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--az-pale); border: 1px solid var(--az-trait); font-weight: 800; font-size: .8rem; }
.as-pas li.is-on { background: var(--az-pale); color: var(--az-titre); }
.as-pas li.is-on span { background: var(--az-or); border-color: var(--az-or); color: var(--az-nuit); }
.as-pas li.is-fait span { background: var(--az-ok); border-color: var(--az-ok); color: #fff; }
.as-e { padding: clamp(18px, 3vw, 30px); }
.as:not(.is-js) .as-e + .as-e { border-top: 1px solid var(--az-trait); }
.as-e h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.2rem; color: var(--az-titre); outline: none; }
.as-e__n { padding: 2px 9px; border-radius: 999px; background: var(--az-pale); color: var(--az-gris); font-size: .76rem; font-weight: 800; }
.as-e__t { margin: 0 0 16px; color: var(--az-gris); max-width: 66ch; line-height: 1.55; }
.as-e__c { display: grid; gap: 12px; }
.as-e__c > .az-champ { max-width: 520px; }
.as-e__c > [hidden] { display: none !important; }
/* oui / non */
.as-oui { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--az-trait); border-radius: 16px; cursor: pointer; }
.as-oui input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.as-oui__i { flex: none; position: relative; width: 46px; height: 28px; margin-top: 1px; border-radius: 99px; background: var(--az-trait); transition: background .15s; }
.as-oui__i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.as-oui input:checked + .as-oui__i { background: var(--az-ok); } .as-oui input:checked + .as-oui__i::after { transform: translateX(18px); }
.as-oui input:focus-visible + .as-oui__i { outline: 3px solid var(--az-or); outline-offset: 2px; }
.as-oui:has(input:checked) { border-color: var(--az-ok); background: var(--az-ok-p); }
.as-oui__t { display: grid; gap: 2px; } .as-oui__t b { color: var(--az-titre); } .as-oui__t small, .as-choix > small, .as-e .az-champ small { color: var(--az-gris); font-size: .84rem; font-weight: 400; line-height: 1.45; }
/* choix */
.as-choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.as-choix legend { margin-bottom: 6px; font-weight: 700; color: var(--az-titre); }
.as-choix__l { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.as-choix__o { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--az-trait); border-radius: 14px; cursor: pointer; }
.as-choix__o input { margin-top: 3px; accent-color: var(--az-or-f); width: 18px; height: 18px; flex: none; }
.as-choix__o span { display: grid; gap: 2px; } .as-choix__o b { color: var(--az-titre); font-size: .94rem; } .as-choix__o small { color: var(--az-gris); font-size: .8rem; line-height: 1.4; }
.as-choix__o:has(input:checked) { border-color: var(--az-or); background: rgba(245, 184, 46, .1); box-shadow: inset 0 0 0 1px var(--az-or); }
/* nombres */
.as-num__c { display: flex; align-items: center; gap: 8px; } .as-num__c input { max-width: 160px; } .as-num__c i { font-style: normal; color: var(--az-gris); font-weight: 700; }
/* circuit */
.as-circuit { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 4px 0 0; padding: 0; counter-reset: c; }
.as-circuit__e { position: relative; display: grid; gap: 4px; align-content: start; justify-items: start; padding: 14px 18px 14px 14px; margin-right: 14px; border-radius: 16px; border: 2px dashed var(--az-trait); background: var(--az-surface); color: var(--az-gris); transition: border-color .15s, background .15s, opacity .15s; }
.as-circuit__e:not(:last-child)::after { content: ''; position: absolute; right: -16px; top: 50%; width: 14px; height: 2px; background: var(--az-trait); }
.as-circuit__e.is-on { border-style: solid; border-color: var(--az-or); background: rgba(245, 184, 46, .08); color: var(--az-texte); }
.as-circuit__e.is-fixe { border-color: var(--az-nuit); background: var(--az-pale); }
.as-circuit__e:not(.is-on) { opacity: .7; }
.as-circuit__e:not(.is-on) b { text-decoration: line-through; text-decoration-color: var(--az-gris); }
.as-circuit__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--az-nuit); color: #fff; font-weight: 800; font-size: .82rem; }
.as-circuit__e.is-on:not(.is-fixe) .as-circuit__n { background: var(--az-or); color: var(--az-nuit); }
.as-circuit__e b { color: var(--az-titre); }
.as-circuit__e small { font-size: .78rem; line-height: 1.4; }
.as-circuit__f { margin-top: 4px; font-size: .74rem; font-weight: 800; color: var(--az-gris); }
.as-bascule { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; cursor: pointer; font-size: .82rem; font-weight: 700; }
.as-bascule input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--az-or-f); }
@media (max-width: 640px) { .as-circuit { grid-template-columns: 1fr; } .as-circuit__e { margin: 0 0 12px; } .as-circuit__e:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -14px; width: 2px; height: 12px; } }
/* récap et pied */
.as-recap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 0 0 14px; border: 1px solid var(--az-trait); border-radius: 14px; overflow: hidden; }
.as-recap dt, .as-recap dd { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--az-trait); font-size: .9rem; }
.as-recap dt { color: var(--az-gris); } .as-recap dd { font-weight: 700; color: var(--az-titre); }
.as-recap dt:nth-last-child(2), .as-recap dd:last-child { border-bottom: 0; }
.as-b { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px clamp(16px, 3vw, 30px); border-top: 1px solid var(--az-trait); background: var(--az-surface); }
.as-b__esp { flex: 1; }
.as-b [hidden] { display: none; }
@media (max-width: 860px) { body.az--barre .as-b { bottom: var(--az-bas, 0px); } }
@media (max-width: 520px) { .as { border-radius: 18px; } .as-b { flex-wrap: wrap; } .as-b__plus { order: 9; width: 100%; } .as-b .az-b--p, .as-b .az-b--s { flex: 1; } .as-b__esp { display: none; } .as-recap { grid-template-columns: 1fr; } .as-recap dt { border-bottom: 0; padding-bottom: 0; } }
/* premiers pas après l'assistant */
.as-apres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--az-ok-p); border: 1px solid var(--az-ok); }
.as-apres b { color: var(--az-titre); } .as-apres__l { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Fil des documents (0.65) : commande → bons → facture → règlement, reliés ===== */
.az-fil { overflow-x: auto; margin: 0; padding: 2px 0 6px; scrollbar-width: thin; }
.az-fil ol { list-style: none; margin: 0; padding: 0; display: flex; min-width: min-content; }
.az-fil__e { position: relative; flex: 1 0 128px; max-width: 220px; padding-right: 10px; }
.az-fil__e::before { content: ""; position: absolute; top: 16px; left: 34px; right: 0; height: 2px; background: var(--az-trait); }
.az-fil__e:last-child::before { display: none; }
.az-fil__e--fait::before { background: var(--az-ok); }
.az-fil__c { position: relative; display: grid; gap: 6px; color: inherit; text-decoration: none; border-radius: 10px; padding: 0 4px 4px 0; }
a.az-fil__c:hover .az-fil__t b, a.az-fil__c:focus-visible .az-fil__t b { text-decoration: underline; }
a.az-fil__c:focus-visible { outline: 2px solid var(--az-info); outline-offset: 2px; }
.az-fil__p { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .66rem; font-weight: 800; letter-spacing: .02em;
  background: var(--az-surface); border: 2px dashed var(--az-trait); color: var(--az-gris); position: relative; z-index: 1; }
.az-fil__e--fait .az-fil__p { background: var(--az-ok); border: 2px solid var(--az-ok); color: #fff; }
.az-fil__e--cours .az-fil__p { background: var(--az-or); border: 2px solid var(--az-or-f); color: #1B1405; }
.az-fil__e--ko .az-fil__p { background: var(--az-ko); border: 2px solid var(--az-ko); color: #fff; }
.az-fil__e--sans { opacity: .55; }
.az-fil__e.is-courant .az-fil__p { box-shadow: 0 0 0 4px var(--az-info-p), 0 0 0 5px var(--az-info); }
.az-fil__t { display: grid; gap: 1px; font-size: .84rem; line-height: 1.3; min-width: 0; }
.az-fil__t b { color: var(--az-titre); font-size: .86rem; }
.az-fil__n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--az-texte); white-space: nowrap; font-size: .8rem; }
.az-fil__t small { color: var(--az-gris); font-size: .76rem; }
.az-fil__e--attente .az-fil__t b { color: var(--az-gris); }
.az-fil__e--ko .az-fil__t small { color: var(--az-ko); font-weight: 600; }
@media (max-width: 720px) {
  .az-fil { overflow: visible; }
  .az-fil ol { flex-direction: column; min-width: 0; }
  .az-fil__e { flex: none; max-width: none; padding: 0 0 12px; min-width: 0; }
  .az-fil__e::before { top: 34px; bottom: 0; left: 16px; right: auto; width: 2px; height: auto; }
  .az-fil__c { grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; }
}

/* 0.66.16 — fenêtre « session désactivée » (session.js) */
.az-fin { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 28, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: az-fin-f .25s ease-out; }
.az-fin__b { width: min(440px, 100%); background: var(--az-surface); color: var(--az-texte); border-radius: 22px; padding: 30px 28px 26px; text-align: center; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); border-top: 4px solid var(--az-or); animation: az-fin-b .32s cubic-bezier(.2, .9, .3, 1.2); }
.az-fin__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--az-or-p, #FDF1D8); color: var(--az-nuit, #0E1B33); margin-bottom: 14px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--az-or) 14%, transparent); }
.az-fin__ic .az-i { width: 30px; height: 30px; }
.az-fin__t { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.25; color: var(--az-titre); }
.az-fin__d { margin: 0 0 10px; font-size: .98rem; line-height: 1.55; }
.az-fin__n { margin: 0 0 4px; font-size: .84rem; line-height: 1.5; color: var(--az-gris); }
.az-fin__a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; min-height: 48px; font-size: 1rem; }
.az-fin-ouverte, .az-fin-ouverte body { overflow: hidden; }
@keyframes az-fin-f { from { opacity: 0; } to { opacity: 1; } }
@keyframes az-fin-b { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .az-fin, .az-fin__b { animation: none; } }

/* Préparation de l'espace (0.66.18) : première connexion d'un administrateur, modules essentiels activés un par un */
.az-prep { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, rgba(26, 45, 82, .78), rgba(8, 14, 28, .86)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: az-fin-f .3s ease-out; }
.az-prep[hidden], .az-prep [hidden] { display: none !important; }
.az-prep__b { position: relative; width: min(500px, 100%); background: var(--az-surface); color: var(--az-texte); border-radius: 26px; padding: 34px 32px 28px; text-align: center;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .8); animation: az-fin-b .45s cubic-bezier(.2, .9, .3, 1.15); }
.az-prep__scene { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; display: grid; place-items: center; }
.az-prep__anneau { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--az-or-2) 75%, var(--az-or) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: az-prep-tour 1.1s linear infinite; }
.az-prep__scene::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--az-pale); }
.az-prep__z { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; color: var(--az-nuit);
  background: linear-gradient(160deg, var(--az-or-2), var(--az-or)); box-shadow: 0 14px 30px -14px rgba(185, 131, 26, .9); animation: az-prep-souffle 2.2s ease-in-out infinite; transition: transform .4s, opacity .3s; }
.az-prep__ok { position: absolute; width: 84px; height: 84px; opacity: 0; transform: scale(.6); transition: opacity .3s .1s, transform .45s .1s cubic-bezier(.2, .9, .3, 1.3); }
.az-prep__ok circle { fill: var(--az-ok); }
.az-prep__ok path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.az-prep.is-pret .az-prep__anneau { animation: none; opacity: 0; transition: opacity .3s; }
.az-prep.is-pret .az-prep__z { transform: scale(.4); opacity: 0; animation: none; }
.az-prep.is-pret .az-prep__ok { opacity: 1; transform: none; }
.az-prep.is-pret .az-prep__ok path { animation: az-prep-trait .45s .35s ease-out forwards; }
.az-prep.is-panne .az-prep__anneau { animation-play-state: paused; opacity: .35; }
.az-prep.is-panne .az-prep__z { animation: none; filter: saturate(.3); }

.az-prep__tuiles { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 0 0 20px; padding: 0; }
.az-prep__tuile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--az-gris); background: var(--az-pale);
  outline: 2px dashed var(--az-trait); outline-offset: -2px; transition: background .35s, color .35s, outline-color .35s, box-shadow .35s; }
.az-prep__tuile .az-i { width: 21px; height: 21px; opacity: .55; transition: opacity .3s; }
.az-prep__tuile.is-cours { outline-color: var(--az-or); animation: az-prep-attente 1s ease-in-out infinite; }
.az-prep__tuile.is-on { outline-color: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 16px -10px rgba(14, 27, 51, .7); animation: az-prep-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.az-prep__tuile.is-on .az-i { opacity: 1; }
.az-prep__tuile--or.is-on { background: linear-gradient(145deg, #FFD36E, #E9A512); color: #3A2A05; }
.az-prep__tuile--bleu.is-on { background: linear-gradient(145deg, #5B8CE6, #2A4F9A); }
.az-prep__tuile--vert.is-on { background: linear-gradient(145deg, #4CC38A, #23825A); }
.az-prep__tuile--violet.is-on { background: linear-gradient(145deg, #9B7BEA, #5C3FB3); }
.az-prep__tuile--rouge.is-on { background: linear-gradient(145deg, #F2836D, #C2412D); }
.az-prep__tuile--cyan.is-on { background: linear-gradient(145deg, #45C6D8, #1A8296); }
.az-prep__tuile--orange.is-on { background: linear-gradient(145deg, #FFA45C, #D9621B); }

.az-prep__sur { margin: 0 0 4px; font-size: .92rem; font-weight: 650; color: var(--az-or-t); }
.az-prep__t { margin: 0 0 8px; font-size: 1.42rem; line-height: 1.2; color: var(--az-titre); outline: none; }
.az-prep__d { margin: 0 auto; max-width: 38ch; font-size: .97rem; line-height: 1.55; color: var(--az-gris); }
.az-prep__barre { height: 6px; margin: 22px 0 16px; border-radius: 6px; background: var(--az-pale); overflow: hidden; }
.az-prep__barre span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--az-or), var(--az-or-2), var(--az-or)); background-size: 200% 100%;
  animation: az-prep-reflet 1.4s linear infinite; transition: width .5s cubic-bezier(.3, .8, .3, 1); }
.az-prep.is-pret .az-prep__barre span { background: var(--az-ok); animation: none; }
.az-prep__l { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 2px; }
.az-prep__l li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--az-gris); transition: background .3s, color .3s; }
.az-prep__l li.is-cours { background: var(--az-nouv); color: var(--az-texte); }
.az-prep__l li.is-fait { color: var(--az-texte); }
.az-prep__n { display: grid; font-weight: 600; line-height: 1.35; padding-top: 1px; }
.az-prep__n small { font-weight: 500; font-size: .8rem; color: var(--az-gris); }
.az-prep__n small:empty { display: none; }
.az-prep__e { flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--az-trait); }
.az-prep__l li.is-cours .az-prep__e { box-shadow: inset 0 0 0 2px var(--az-or-p); }
.az-prep__l li.is-cours .az-prep__e::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--az-or); border-right-color: var(--az-or); animation: az-prep-tour .7s linear infinite; }
.az-prep__l li.is-fait .az-prep__e { background: var(--az-ok); box-shadow: none; animation: az-prep-pop .35s cubic-bezier(.2, .9, .3, 1.4); }
.az-prep__l li.is-fait .az-prep__e::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.az-prep__l li.is-saute .az-prep__e { box-shadow: inset 0 0 0 2px var(--az-trait); }
.az-prep__l li.is-saute .az-prep__e::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--az-gris); }
.az-prep__a { display: grid; gap: 10px; margin-top: 22px; }
.az-prep__a .az-b { width: 100%; min-height: 50px; font-size: 1.02rem; }
.az-prep__lien { justify-self: center; background: none; border: 0; padding: 6px 10px; font: inherit; font-weight: 650; color: var(--az-info); text-decoration: none; cursor: pointer; border-radius: 8px; }
.az-prep__lien:hover { text-decoration: underline; }
@keyframes az-prep-tour { to { transform: rotate(360deg); } }
@keyframes az-prep-souffle { 50% { transform: scale(1.05); } }
@keyframes az-prep-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes az-prep-attente { 50% { transform: translateY(-3px); } }
@keyframes az-prep-reflet { to { background-position: -200% 0; } }
@keyframes az-prep-trait { to { stroke-dashoffset: 0; } }
@media (max-width: 520px) {
  .az-prep { align-items: end; padding: 0; }
  .az-prep__b { border-radius: 24px 24px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); }
  .az-prep__scene { width: 88px; height: 88px; } .az-prep__z { width: 58px; height: 58px; font-size: 1.8rem; border-radius: 18px; }
  .az-prep__tuile { width: 40px; height: 40px; border-radius: 12px; }
  .az-prep__t { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .az-prep, .az-prep__b, .az-prep__z, .az-prep__tuile, .az-prep__l li .az-prep__e, .az-prep__barre span { animation: none !important; }
  .az-prep__anneau { animation-duration: 3s; }
  .az-prep.is-pret .az-prep__ok path { animation: none; stroke-dashoffset: 0; }
}

/* Packs de SMS (0.66.20) */
.sms-essai { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sms-packs__intro { max-width: 70ch; color: var(--az-gris); margin: 0 0 16px; }
.sms-packs__l { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.sms-pack { display: grid; gap: 4px; padding: 18px 16px 16px; border: 1px solid var(--az-trait); border-radius: 16px; background: var(--az-surface); text-align: center; }
.sms-pack:hover { border-color: var(--az-or); box-shadow: var(--az-ombre); }
.sms-pack p { margin: 0; }
.sms-pack__n { font-size: .95rem; color: var(--az-gris); } .sms-pack__n b { display: block; font-size: 2rem; line-height: 1.1; color: var(--az-titre); letter-spacing: -.02em; }
.sms-pack__p { font-size: 1.15rem; font-weight: 800; color: var(--az-titre); } .sms-pack__p small { font-size: .75rem; font-weight: 600; color: var(--az-gris); }
.sms-pack__u { font-size: .78rem; color: var(--az-gris); margin-bottom: 8px !important; }
.sms-pack .az-b { width: 100%; }
.sms-packs__total { margin: 0 0 10px; } .sms-packs__total b { font-size: 1.2rem; color: var(--az-titre); }
.sms-pack--fini td { color: var(--az-gris); }
@media (max-width: 420px) { .sms-packs__l { grid-template-columns: 1fr 1fr; gap: 8px; } .sms-pack { padding: 14px 10px 12px; } .sms-pack__n b { font-size: 1.6rem; } }

/* Équipe : accès aux sociétés choisis à l'invitation (0.66.21) */
.az-acces-soc { border: 1px solid var(--az-trait); border-radius: 14px; padding: 12px 14px 6px; margin: 4px 0 12px; }
.az-acces-soc legend { font-weight: 750; padding: 0 6px; color: var(--az-titre); }
.az-acces-soc .az-petit { margin: 0 0 8px; }
.az-acces-soc__l { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--az-trait); font-weight: 600; }
.az-acces-soc__l select { min-height: 38px; border-radius: 10px; border: 1px solid var(--az-trait); padding: 0 10px; background: var(--az-surface); color: var(--az-texte); font: inherit; }
.az-acces-soc__l small { color: var(--az-gris); font-weight: 500; }
.az-membre__soc { display: inline-block; margin-top: 3px; font-size: .8rem; font-weight: 650; color: var(--az-info); text-decoration: none; }
.az-membre__soc.is-vide { color: var(--az-ko); }
.az-membre__soc:hover { text-decoration: underline; }
@media (max-width: 520px) { .az-acces-soc__l { flex-direction: column; align-items: stretch; gap: 6px; } }

/* 0.66.29 — champ « fichier » de toute l'application (habillé par app.js ; sans JavaScript, le bouton natif est au moins stylé) */
input[type=file]::file-selector-button { margin-right: 10px; min-height: 36px; padding: 0 14px; border: 1px solid var(--az-trait); border-radius: 10px; background: var(--az-surface); color: var(--az-titre); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--az-or); }
.az-fic { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 8px 8px 10px; border: 1.5px dashed var(--az-trait); border-radius: 14px; background: var(--az-pale); color: var(--az-texte); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; box-sizing: border-box; font-weight: 400; }
.az-fic:hover, .az-fic:focus-within, .az-fic.is-survol { border-color: var(--az-or); background: color-mix(in srgb, var(--az-or) 7%, var(--az-pale)); }
.az-fic:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--az-or) 22%, transparent); }
.az-fic__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--az-surface); border: 1px solid var(--az-trait); color: var(--az-or-f, var(--az-or)); }
.az-fic__ic .az-i { width: 18px; height: 18px; }
.az-fic__t { display: grid; flex: 1 1 auto; min-width: 0; gap: 1px; line-height: 1.3; }
.az-fic__t b { color: var(--az-titre); font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-fic__t small { color: var(--az-gris); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-fic__t small:empty { display: none; }
.az-fic__b { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--az-surface); border: 1px solid var(--az-trait); color: var(--az-titre); font-weight: 700; font-size: .84rem; white-space: nowrap; }
.az-fic:hover .az-fic__b { border-color: var(--az-or); }
.az-fic__x { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--az-gris); cursor: pointer; }
.az-fic__x:hover { background: var(--az-surface); color: var(--az-texte); }
.az-fic__x .az-i { width: 16px; height: 16px; }
.az-fic__x[hidden] { display: none; }
.az-fic__in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; font-size: 0; }
.az-fic.is-plein { border-style: solid; border-color: color-mix(in srgb, var(--az-ok, #1E7A4F) 45%, var(--az-trait)); background: var(--az-surface); }
.az-fic.is-plein .az-fic__ic { background: color-mix(in srgb, var(--az-ok, #1E7A4F) 12%, var(--az-surface)); border-color: transparent; color: var(--az-ok, #1E7A4F); }
.az-fic.is-off { opacity: .55; cursor: not-allowed; }
.az-champ > .az-fic, label > .az-fic { margin-top: 6px; }
@media (max-width: 520px) { .az-fic__b { display: none; } }
.az-depot__z.is-plein { border-style: solid; border-color: color-mix(in srgb, var(--az-ok) 45%, var(--az-trait)); background: var(--az-surface); } .az-depot__z.is-plein span { color: var(--az-texte); font-weight: 600; }

/* =====================================================================
   0.66.30 — Uniformité des modules : même en-tête que la Facturation et le Recouvrement
   (barre d'onglets compacte, onglet actif foncé, action principale à droite). Les règles
   ciblent les classes propres à chaque module ; « body.az .az-contenu » l'emporte sur leurs styles.
   ===================================================================== */
body.az .az-contenu :is(.ac-tete, .af-tete, .cat-tete, .cl-tete, .cd-tete, .co-tete, .cm-tete, .dp-tete, .do-tete, .en-tete-nav, .fi-tete-nav, .hy-tete, .lv-tete, .pv-tete-nav, .pr-tete, .pd-tete, .rt-tete-nav, .rh-tete, .st-tete, .st-tete-nav, .tf-tete-nav, .vh-tete) {
  display: flex; flex-wrap: nowrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 0; background: none; border: 0; box-shadow: none; }
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .rh-nav, .st-nav, .tf-nav, .vh-nav) {
  display: flex; flex: 0 1 auto; flex-wrap: nowrap; gap: 4px; width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 4px; border: 1px solid var(--az-trait); border-radius: 14px; background: var(--az-surface); box-shadow: none; overflow-x: auto; scrollbar-width: none; }
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .st-nav, .tf-nav, .vh-nav)::-webkit-scrollbar { display: none; }
body.az .az-contenu .rh-nav { overflow: visible; flex-wrap: wrap; }   /* menu « Plus » déroulant */
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .rh-nav, .st-nav, .tf-nav, .vh-nav) > a,
body.az .az-contenu .rh-nav .rh-plus > summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--az-gris); font-weight: 700; font-size: .87rem; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: none; }
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .rh-nav, .st-nav, .tf-nav, .vh-nav) > a .az-i { width: 16px; height: 16px; color: currentColor; }
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .rh-nav, .st-nav, .tf-nav, .vh-nav) > a:hover { color: var(--az-titre); background: var(--az-pale); }
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .rh-nav, .st-nav, .tf-nav, .vh-nav) > a.is-on,
body.az .az-contenu .rh-nav .rh-plus.is-on > summary { background: var(--az-nuit); color: #fff; }
body.az .az-contenu :is(.ac-nav, .af-nav, .cat-nav, .cl-nav, .cd-nav, .co-nav, .cm-nav, .dp-nav, .do-nav, .en-nav, .fi-nav, .hy-nav, .lv-nav, .pv-nav, .pr-nav, .pd-nav, .rt-nav, .rh-nav, .st-nav, .tf-nav, .vh-nav) > a.is-on .az-i { color: var(--az-or); }
body.az .az-contenu :is(.cat-tete__a, .cl-tete__a, .cd-tete__a, .co-tete__a, .dp-tete__a, .hy-tete__a, .vh-tete__a) { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; flex: none; }
/* le groupe d'actions à droite de la barre reste sur une ligne (la barre d'onglets défile à sa place) */
body.az .az-contenu :is(.ac-tete, .af-tete, .cat-tete, .cl-tete, .cd-tete, .co-tete, .cm-tete, .dp-tete, .do-tete, .en-tete-nav, .fi-tete-nav, .hy-tete, .lv-tete, .pv-tete-nav, .pr-tete, .pd-tete, .rt-tete-nav, .rh-tete, .st-tete, .st-tete-nav, .tf-tete-nav, .vh-tete) > :not(nav) { display: flex; flex-wrap: nowrap; gap: 8px; flex: none; margin: 0; }
@media (max-width: 760px) {
  body.az .az-contenu :is(.ac-tete, .af-tete, .cat-tete, .cl-tete, .cd-tete, .co-tete, .cm-tete, .dp-tete, .do-tete, .en-tete-nav, .fi-tete-nav, .hy-tete, .lv-tete, .pv-tete-nav, .pr-tete, .pd-tete, .rt-tete-nav, .rh-tete, .st-tete, .st-tete-nav, .tf-tete-nav, .vh-tete) { flex-direction: column; align-items: stretch; }
}
body.az .az-contenu :is(.ac-tete, .af-tete, .cat-tete, .cl-tete, .cd-tete, .co-tete, .cm-tete, .dp-tete, .do-tete, .en-tete-nav, .fi-tete-nav, .hy-tete, .lv-tete, .pv-tete-nav, .pr-tete, .pd-tete, .rt-tete-nav, .rh-tete, .st-tete, .st-tete-nav, .tf-tete-nav, .vh-tete) { container-type: inline-size; }
@container (max-width: 1180px) {
  body.az .az-contenu :is(.af-nav, .cd-nav, .co-nav, .lv-nav, .rh-nav, .st-nav) > a .az-i { display: none; }
  body.az .az-contenu :is(.af-nav, .cd-nav, .co-nav, .lv-nav, .rh-nav, .st-nav) > a { padding: 0 11px; }
}

/* 0.66.30 — fiche d'un objet (client, commande, article, salarié, véhicule…) : le dossier à gauche, la situation à droite,
   comme la fiche client du Recouvrement et l'éditeur de facture. Sur téléphone, la situation vient en premier. */
.az-fiche-c { container-type: inline-size; }
.az-fiche { display: flex; flex-direction: column; }
.az-fiche__doc { display: grid; align-content: start; gap: 16px; min-width: 0; }
.az-fiche__doc > * { margin-top: 0; margin-bottom: 0; }
.az-fiche__recap { display: grid; align-content: start; gap: 16px; margin-bottom: 16px; order: -1; }
/* écran étroit : l'identité de l'objet (.az-fiche__tete) d'abord, puis la situation, puis le reste du dossier */
@container (max-width: 999.98px) {
  .az-fiche:has(.az-fiche__tete) { display: grid; gap: 16px; }
  .az-fiche:has(.az-fiche__tete) > .az-fiche__doc { display: contents; }
  .az-fiche:has(.az-fiche__tete) .az-fiche__tete { order: -2; }
  .az-fiche:has(.az-fiche__tete) > .az-fiche__recap { display: contents; }
  .az-fiche:has(.az-fiche__tete) > .az-fiche__recap > .az-sit { order: -1; }
  .az-fiche:has(.az-fiche__tete) > :is(.az-fiche__doc, .az-fiche__recap) > * { margin: 0; min-width: 0; }
  .az-sit .az-sit__a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-sit__a > :first-child { grid-column: 1 / -1; }
  .az-sit__a > .az-b, .az-sit__a > form > .az-b { padding-inline: 8px; font-size: .85rem; }
}
@container (min-width: 1000px) {
  .az-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
  .az-fiche__recap { position: sticky; top: 84px; order: 2; margin: 0; }
}
.az-sit { background: var(--az-surface); border: 1px solid var(--az-trait); border-radius: 18px; overflow: hidden; box-shadow: var(--az-ombre); }
.az-sit__haut { display: grid; gap: 2px; padding: 18px 20px; background: var(--az-bandeau, var(--az-nuit)); color: #fff; text-decoration: none; }
a.az-sit__haut:hover { filter: brightness(1.08); }
.az-sit__haut span { color: #B8C4D8; font-weight: 700; font-size: .85rem; }
.az-sit__haut b { font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.az-sit__haut small { color: #D5DCE8; font-size: .85rem; }
.az-sit__haut--ko b { color: #FF8E80; } .az-sit__haut--ok b { color: #6FD8A4; } .az-sit__haut--or b { color: var(--az-or); }
.az-sit__dl { margin: 0; padding: 14px 20px 4px; display: grid; gap: 9px; }
.az-sit__dl > div, .az-sit__dl > a { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: inherit; text-decoration: none; }
.az-sit__dl > a:hover dd { color: var(--az-info); }
.az-sit__dl dt { color: var(--az-gris); }
.az-sit__dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.az-sit__dl dd.is-ko { color: var(--az-ko); } .az-sit__dl dd.is-ok { color: var(--az-ok); }
.az-sit__note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; background: var(--az-pale); font-size: .85rem; color: var(--az-gris); }
.az-sit__note .az-i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.az-sit__note b { color: var(--az-texte); }
.az-sit .az-sit__a { display: grid; gap: 8px; padding: 16px 20px 20px; align-items: stretch; justify-content: stretch; flex-wrap: initial; }
.az-sit .az-sit__a:not(:has(*)) { display: none; }
.az-sit__a > details { margin: 0; }
.az-sit__a > details { grid-column: 1 / -1; }
.az-sit__a > details > summary { list-style: none; }
.az-sit__a > .az-b, .az-sit__a > form > .az-b, .az-sit__a > details > summary.az-b { justify-content: center; width: 100%; }
.az-sit__a > form { margin: 0; }
.az-sit__a > .az-b:not(.az-b--p), .az-sit__a > form > .az-b:not(.az-b--p), .az-sit__a > details > summary.az-b { border: 1px solid var(--az-trait); background: var(--az-surface); color: var(--az-texte); }
.az-sit__a > .az-b:not(.az-b--p):hover { border-color: var(--az-gris); }
.az-sit__a .az-i { width: 16px; height: 16px; }
.az-sit__pied { padding: 0 20px 16px; margin: -6px 0 0; color: var(--az-gris); font-size: .78rem; }

/* 0.66.30 — barre d'onglets qui défile : bord estompé du côté des onglets cachés (classes posées par app.js) */
.az-contenu nav.az-def-d { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.az-contenu nav.az-def-g { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.az-contenu nav.az-def-g.az-def-d { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.az-sit__a > form > select, .az-sit__a > form > label + select { width: 100%; min-height: 42px; }
.az-sit .az-sit__a { margin-top: 0; }
/* menus déroulants d'une carte de situation : ils s'ouvrent dans la carte, pas en surimpression */
.az-sit .az-sit__a details { position: static; }
.az-sit .az-sit__a details > form, .az-sit .az-sit__a details > div { position: static; width: auto; margin-top: 8px; box-shadow: none; z-index: auto; }
.az-sit .az-sit__a details > summary { display: flex; justify-content: center; width: 100%; }
.az-sit__dl small { display: block; font-weight: 500; color: var(--az-gris); }
.az-sit__dl dt { flex: none; max-width: 55%; }
