/* Espace client Ax2lan — feuille de style (session ECZ, 12/11/2026).
   Grammaire des maquettes validées par Laurent le 12/11 (DESIGN-SITE-AX2LAN/maquettes-validees-2026-11-12 : Main, Accueil,
   Propositions, Apercu, Pied) et du site Ax2lan (site-public/assets/site.css) : Poppins partout, couleurs du logo seulement,
   fond « aurore », libellés « // SECTION », mot-clé en dégradé vert d'eau, cartes à rayon 20 px colorées par famille
   (propositions vert d'eau, factures bleu, échéances et utilisateurs bleu du logo, support or ; contre-recette V2 : plus de violet,
   absent de la liste fermée des couleurs du site, DESIGN-SITE-AX2LAN/LISEZ-MOI-DESIGN.md règle 2), séparateur à losange, pied de page commun.
   Aucun style ni script en ligne dans les pages (CSP stricte).
   Contrastes (WCAG 2.1 AA) calculés sur #0a1626 : #f4f8fc 17,0 · #cdd9e6 12,5 · #a9bccf 9,2 · #8da3b8 6,6 · #54bca4 8,2 ·
   #7fe3c8 11,9 · #e4bc29 9,9 · #2e8fd8 5,3 ; texte #04261d sur le bouton vert : 7,6.
   #6b8099 (4,6 sur #081320) ne sert de texte que dans le pied de page ; #0066a9 ne sert jamais de texte. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/polices/poppins-400.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/polices/poppins-500.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/polices/poppins-600.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/polices/poppins-700.ttf") format("truetype"); }

:root {
  --ax-bg: #0a1626; --ax-bg-deep: #081320; --ax-bar: #060f1b; --ax-surface: #0f2138;
  --ax-line: rgba(255,255,255,.08); --ax-line-strong: rgba(255,255,255,.16); --ax-surface-soft: rgba(255,255,255,.04);
  --ax-teal: #54bca4; --ax-teal-hover: #63c9b1; --ax-on-teal: #04261d; --ax-teal-light: #7fe3c8;
  --ax-gold: #e4bc29; --ax-blue: #2e8fd8; --ax-blue-logo: #0066a9;
  --ax-title: #f4f8fc; --ax-title-2: #f2f6fa; --ax-text: #eaf1f8; --ax-text-2: #cdd9e6; --ax-text-3: #a9bccf; --ax-text-4: #8da3b8; --ax-text-5: #6b8099;
  --ax-font: "Poppins", system-ui, sans-serif;
  --ax-radius-card: 20px; --ax-radius-field: 10px; --ax-radius-button: 11px; --ax-radius-pill: 100px; --ax-max: 1240px;
  --ax-cible: 44px;
  --ax-grad-mot: linear-gradient(120deg, #54bca4, #7fe3c8);
  --ax-carte-fond: linear-gradient(160deg, rgba(84,188,164,.08), rgba(15,33,56,.66));
  --famille: 84,188,164; --famille-texte: var(--ax-teal);
}
*, *::before, *::after { box-sizing: border-box; }
*, *::before, *::after { font-family: var(--ax-font); }
html { background: var(--ax-bg); color: var(--ax-text); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; background: var(--ax-bg); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
::selection { background: var(--ax-teal); color: var(--ax-on-teal); }
a { color: var(--ax-teal); text-underline-offset: 3px; }
a:hover { color: var(--ax-teal-light); }
:focus-visible { outline: 2px solid var(--ax-gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ax-title); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.02em; }
h3 { font-size: 19px; }
p { margin: 0 0 .75em; }
svg { flex: none; }
.ec-vert { color: var(--ax-teal); }
.ec-or { color: var(--ax-gold); }
.ec-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ec-evitement { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ax-teal); color: var(--ax-on-teal); padding: 10px 16px; border-radius: var(--ax-radius-field); font-weight: 600; text-decoration: none; }
.ec-evitement:focus { top: 8px; }
/* Mot-clé en dégradé vert d'eau (titres) ; la couleur pleine reste le repli et la valeur mesurée des contrastes. */
.ax-mot-cle { color: var(--ax-teal); background: var(--ax-grad-mot); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Fond « aurore » (halos flous vert d'eau et bleu, dérive lente comme auroraDrift du site) ---------- */
.ec-aurore { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ec-aurore span { position: absolute; border-radius: 50%; filter: blur(56px); will-change: transform; }
.ec-aurore span:nth-child(1) { top: 1%; left: -8%; width: 680px; height: 680px; background: radial-gradient(circle at center, rgba(84,188,164,.40), transparent 66%); }
.ec-aurore span:nth-child(2) { top: 10%; right: -8%; width: 660px; height: 660px; background: radial-gradient(circle at center, rgba(0,102,169,.38), transparent 66%); }
.ec-aurore span:nth-child(3) { top: 44%; left: 10%; width: 620px; height: 620px; background: radial-gradient(circle at center, rgba(84,188,164,.26), transparent 66%); }
.ec-aurore span:nth-child(4) { top: 64%; right: 2%; width: 640px; height: 640px; background: radial-gradient(circle at center, rgba(0,102,169,.30), transparent 66%); }

/* ---------- Barre supérieure fine « ● AX2LAN / ESPACE CLIENT · info · ● ACTIF » ---------- */
.ec-barre { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 24px; background: rgba(6,15,27,.86); border-bottom: 1px solid rgba(84,188,164,.18); font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--ax-text-4); }
.ec-barre-marque, .ec-barre-etat { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.ec-barre-marque strong { color: var(--ax-title); font-weight: 500; }
.ec-barre-info { flex: 1; min-width: 0; text-align: center; color: var(--ax-teal); white-space: nowrap; }
.ec-barre-etat { color: var(--ax-teal); }
.ec-point { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ax-teal); box-shadow: 0 0 8px rgba(84,188,164,.9); flex: none; }

/* ---------- Bandeau : logo 52 px, menu texte souligné, identité et déconnexion ---------- */
.ec-entete { position: relative; z-index: 20; background: var(--ax-bg); border-bottom: 1px solid var(--ax-line); }
.ec-entete-contenu { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 32px; min-height: 88px; }
.ec-marque { display: inline-flex; align-items: center; flex: none; min-height: var(--ax-cible); }
.ec-marque img { display: block; height: 52px; width: auto; }
.ec-nav { display: flex; align-items: center; gap: 30px; }
.ec-nav a { position: relative; display: inline-flex; align-items: center; min-height: var(--ax-cible); color: #fff; text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap; }
.ec-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
.ec-nav a:hover::after { background: rgba(84,188,164,.45); }
.ec-nav a[aria-current="page"] { text-shadow: 0 0 14px rgba(84,188,164,.55); }
.ec-nav a[aria-current="page"]::after { background: var(--ax-teal); box-shadow: 0 0 10px rgba(84,188,164,.6); }
.ec-entete-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.ec-identite { display: flex; flex-direction: column; justify-content: center; min-height: var(--ax-cible); text-align: right; line-height: 1.3; text-decoration: none; }
.ec-identite-nom { font-size: 14px; font-weight: 600; color: var(--ax-title-2); white-space: nowrap; }
.ec-identite-societe { font-size: 12.5px; color: var(--ax-text-4); white-space: nowrap; }
.ec-identite:hover .ec-identite-nom, .ec-identite[aria-current="page"] .ec-identite-nom { color: var(--ax-teal); }
.ec-entete-actions .ec-bouton { min-height: var(--ax-cible); height: var(--ax-cible); min-width: 150px; padding: 0 18px; font-size: 14.5px; border-radius: 9px; }
/* Contre-audit ECX : l'ancien nom de société de la barre (élément retiré) ne revient pas ; l'identité ci-dessus a sa propre règle. */
.ec-entete-client { display: none; }
.ec-menu { display: none; }
.ec-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--ax-cible); min-width: 110px; padding: 0 18px; border: 1px solid var(--ax-line-strong); border-radius: 9px; color: var(--ax-title); font-weight: 600; font-size: 14.5px; background: rgba(255,255,255,.05); }
.ec-menu summary::-webkit-details-marker { display: none; }
.ec-menu[open] summary { border-color: var(--ax-teal); color: var(--ax-teal); }
.ec-menu-liens { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: rgba(8,19,32,.98); border-bottom: 1px solid rgba(84,188,164,.25); padding: 12px 18px 22px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.ec-menu-liens a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: var(--ax-radius-field); color: var(--ax-text); text-decoration: none; font-size: 17px; font-weight: 500; border-left: 2px solid transparent; }
.ec-menu-liens a[aria-current="page"] { color: var(--ax-teal); border-left-color: var(--ax-teal); background: rgba(84,188,164,.08); }
.ec-menu-liens .ec-bouton { margin-top: 12px; width: 100%; }
.ec-menu-liens form { display: block; }

/* ---------- Boutons : plein vert d'eau avec halo, ou contour sombre ; même largeur dans une même zone (UI-02) ---------- */
.ec-bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: var(--ax-radius-button); border: 1px solid var(--ax-teal); background: var(--ax-teal); color: var(--ax-on-teal); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.25; box-shadow: 0 10px 26px rgba(84,188,164,.38); transition: box-shadow .25s, background .2s, border-color .2s; }
.ec-bouton:hover { background: var(--ax-teal-hover); border-color: var(--ax-teal-hover); color: var(--ax-on-teal); box-shadow: 0 12px 30px rgba(84,188,164,.5); }
.ec-bouton-secondaire, .ec-bouton-or, .ec-bouton-apercu { background: rgba(255,255,255,.05); color: var(--ax-text); border-color: var(--ax-line-strong); box-shadow: none; }
.ec-bouton-secondaire:hover, .ec-bouton-or:hover, .ec-bouton-apercu:hover { background: rgba(255,255,255,.08); color: var(--ax-title); border-color: var(--ax-teal); box-shadow: none; }
.ec-bouton-or { border-color: rgba(228,188,41,.55); }
.ec-bouton-or:hover { border-color: var(--ax-gold); }
.ec-bouton-apercu { border-color: rgba(84,188,164,.5); background: rgba(84,188,164,.12); color: var(--ax-teal-light); }
.ec-bouton-grand { min-height: 54px; font-size: 16px; }
.ec-bouton[aria-disabled="true"], .ec-bouton:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.ec-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 240px)); gap: 12px; margin-top: 20px; }
.ec-actions .ec-bouton { width: 100%; }
.ec-actions form { display: contents; }
/* N2 : dans une cellule de tableau (décisions de la quarantaine), deux colonnes égales : la grille auto-fit y donnait 90 / 170 px. */
.ec-tableau td .ec-actions { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.ec-actions-carte { margin-top: auto; padding-top: 22px; }
.ec-actions-pdf { display: inline-grid; grid-template-columns: 136px 136px; gap: 10px; }
.ec-actions-pdf .ec-bouton { min-height: var(--ax-cible); height: var(--ax-cible); padding: 0 12px; font-size: 14px; border-radius: 9px; width: 100%; }

/* ---------- Pages ---------- */
.ec-principal { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: var(--ax-max); margin: 0 auto; padding: 72px 32px 44px; }
.ec-principal > :last-child, .ec-principal > :last-child > :last-child { margin-bottom: 0; }
.ec-titre-page { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.ec-titre-page > div:first-child { min-width: 0; max-width: 100%; }
.ec-titre-page .ec-sous-titre { flex: 1 1 300px; max-width: 44ch; margin: 0; }
.ec-titre-page > div:first-child .ec-sous-titre { margin-top: 18px; }
.ec-surtitre { display: block; color: var(--ax-teal); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.ec-surtitre-or { color: var(--ax-gold); }
.ec-sous-titre { color: var(--ax-text-3); font-size: 16px; line-height: 1.6; margin: 18px 0 0; max-width: 60ch; }
.ec-fil { font-size: 13px; color: var(--ax-text-4); margin-bottom: 22px; }
.ec-fil a { color: var(--ax-text-4); text-decoration: none; }
.ec-fil a:hover { color: var(--ax-teal); }
.ec-fil [aria-current="page"] { color: var(--ax-text-2); }
.ec-section { margin-top: 48px; }
.ec-section > h2 { margin-bottom: 20px; }
.ec-sep { margin: 64px 0; }
.ax-sep-line { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(84,188,164,0) 6%, rgba(84,188,164,.85) 28%, rgba(84,188,164,1) 50%, rgba(84,188,164,.85) 72%, rgba(84,188,164,0) 94%, transparent); }
.ax-sep-line::before { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; transform: translate(-50%,-50%) rotate(45deg); background: var(--ax-teal); border-radius: 2px; box-shadow: 0 0 12px 2px rgba(84,188,164,.75), 0 0 0 4px rgba(10,22,38,.9); }

/* ---------- Cartes : rayon 20 px, dégradé et liseré à la couleur de la famille ---------- */
.ec-carte { position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(var(--famille),.10), rgba(15,33,56,.62)); border: 1px solid rgba(255,255,255,.09); border-radius: var(--ax-radius-card); padding: 30px; box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.ec-carte > h2:first-child, .ec-carte > h1:first-child { margin-bottom: 12px; }
.ec-carte h2 { font-size: 23px; }
.ec-carte p { color: var(--ax-text-2); }
.ec-famille-propositions, .ec-famille-documents { --famille: 84,188,164; --famille-texte: var(--ax-teal); }
.ec-famille-factures { --famille: 46,143,216; --famille-texte: var(--ax-blue); }
.ec-famille-echeances, .ec-famille-utilisateurs { --famille: 0,102,169; --famille-texte: var(--ax-blue); }
.ec-famille-support { --famille: 228,188,41; --famille-texte: var(--ax-gold); }
.ec-carte[class*="ec-famille-"] { border-color: rgba(var(--famille),.32); }
.ec-carte-tete { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.ec-icone { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--famille),.16); border: 1px solid rgba(var(--famille),.42); color: var(--famille-texte); flex: none; }
.ec-numero { font-size: 13px; color: var(--ax-text-4); font-variant-numeric: tabular-nums; }
.ec-carte-famille h2 { font-size: 23px; margin: 0 0 6px; }
.ec-carte-famille > p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--ax-text-3); }
.ec-lien-fleche { display: inline-flex; align-items: center; gap: 7px; min-height: var(--ax-cible); font-size: 14px; font-weight: 600; color: var(--famille-texte); text-decoration: none; }
.ec-lien-fleche:hover { color: var(--ax-title); }
.ec-carte-famille .ec-lien-fleche { margin-top: auto; padding-top: 14px; align-self: flex-start; }
.ec-grille { display: grid; gap: 18px; }
.ec-grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-grille-familles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }

/* Chiffres clés de l'accueil : en or, sur une ligne, séparés par des filets verticaux (tuiles cliquables). */
.ec-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 44px; border-top: 1px solid rgba(127,227,200,.22); }
.ec-tuile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 26px 26px 6px; color: var(--ax-text); text-decoration: none; border-left: 1px solid rgba(127,227,200,.22); }
.ec-chiffres > .ec-tuile:first-child { border-left: 0; padding-left: 0; }
a.ec-tuile:hover .ec-tuile-libelle { color: var(--ax-teal); }
.ec-tuile-valeur { order: 1; font-weight: 600; line-height: 1.2; color: var(--ax-gold); font-variant-numeric: tabular-nums; }
.ec-tuile-libelle { order: 2; font-size: 13px; color: var(--ax-text-3); }
.ec-tuile-detail { order: 3; font-size: 13px; color: var(--ax-text-4); }
/* Contre-audit ECX : un montant n'est jamais coupé (« 4 800,00 € TT / C » à 1440 px). La taille suit la largeur de la carte. */
.ec-grille > .ec-carte, .ec-tuile { container-type: inline-size; }
.ec-tuile-valeur { white-space: nowrap; overflow-wrap: normal; font-size: min(2rem, 10.5cqi); }
/* L4T : tuile d'un module pas encore ouvert, même structure et même taille que les autres (relecture design). */
.ec-tuile-bloquee .ec-tuile-valeur { color: var(--ax-text-4); }
.ec-tuile-or .ec-tuile-valeur, .ec-tuile-vert .ec-tuile-valeur { color: var(--ax-gold); }

/* Bandeau de message d'Ax2lan (F11) et encadrés d'information */
.ec-message { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(46,143,216,.45); background: rgba(46,143,216,.10); margin: 0 0 24px; color: var(--ax-text-2); }
.ec-message-important { border-color: rgba(228,188,41,.5); background: rgba(228,188,41,.10); }
.ec-message strong { color: var(--ax-title); font-weight: 600; }
.ec-message p { margin: 0; }
.ec-donnee-ancienne { font-size: 14px; color: var(--ax-gold); margin: 0 0 14px; }
/* Origine et fraîcheur des données sous chaque liste et chaque détail (session ECS). */
.ec-ligne-quarantaine .ec-cellule-titre span { color: var(--ax-text-2); }
.ec-origine { font-size: 12.5px; line-height: 1.5; color: var(--ax-text-2); margin: 28px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ec-avertissement, .ec-alerte { display: block; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(228,188,41,.42); background: rgba(228,188,41,.08); color: var(--ax-text); font-size: 14px; line-height: 1.5; margin: 0; }
.ec-info { display: block; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(84,188,164,.42); background: rgba(84,188,164,.10); color: var(--ax-text); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.ec-carte-connexion .ec-alerte { margin: 0 0 18px; }
.ec-carte-pied-liens { display: flex; justify-content: center; }
.ec-note { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: rgba(84,188,164,.08); border: 1px solid rgba(84,188,164,.25); font-size: 13.5px; line-height: 1.5; color: var(--ax-text-2); }
/* Un avertissement qui suit une grille de cartes en reste séparé du même écart que les cartes (contre-audit ECX, écran Factures). */
.ec-grille + .ec-avertissement { margin-top: 16px; }

/* ---------- Pastilles d'état (libellé toujours écrit, jamais la couleur seule) ---------- */
.ec-pastille { --p: 205,217,230; display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 2px 12px; border-radius: var(--ax-radius-pill); font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: nowrap; border: 1px solid rgba(var(--p),.4); background: rgba(var(--p),.12); color: var(--ax-text-2); }
.ec-pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--p)); flex: none; }
.ec-pastille-ok { --p: 84,188,164; color: var(--ax-teal-light); }
.ec-pastille-attente { --p: 228,188,41; color: var(--ax-gold); }
.ec-pastille-info { --p: 46,143,216; color: var(--ax-text-2); }
.ec-pastille-neutre { --p: 205,217,230; background: rgba(255,255,255,.05); border-color: var(--ax-line-strong); }
.ec-mention { display: block; font-size: 13px; color: var(--ax-text-4); margin-top: 2px; }

/* ---------- Filtres : puces arrondies, options d'un groupe de même largeur (UI-03) ---------- */
.ec-filtres { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; justify-content: space-between; margin: 0 0 20px; }
.ec-filtre-groupe { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ec-filtre-groupe > span, .ec-filtre-groupe > label { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ax-teal); }
.ec-segments { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.ec-segments a { display: flex; align-items: center; justify-content: center; min-height: var(--ax-cible); padding: 0 20px; border-radius: var(--ax-radius-pill); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--ax-text-2); text-decoration: none; font-size: 14px; font-weight: 500; text-align: center; white-space: nowrap; }
.ec-segments a:hover { border-color: rgba(84,188,164,.55); color: var(--ax-title); }
.ec-segments a[aria-current="true"] { border-color: rgba(84,188,164,.6); background: rgba(84,188,164,.16); color: var(--ax-teal-light); font-weight: 600; box-shadow: 0 0 18px rgba(84,188,164,.25); }
.ec-segments-or a[aria-current="true"] { border-color: rgba(228,188,41,.55); background: rgba(228,188,41,.12); color: var(--ax-gold); box-shadow: none; }
.ec-recherche { min-width: min(100%, 360px); }
.ec-recherche-ligne { display: flex; gap: 10px; }
.ec-recherche-ligne input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--ax-radius-field); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--ax-text); font-size: 15px; }
.ec-recherche-ligne input:focus { outline: none; border-color: var(--ax-teal); box-shadow: 0 0 0 3px rgba(84,188,164,.22); }
.ec-recherche-ligne .ec-bouton { flex: none; min-height: 50px; width: 150px; }

/* ---------- Tableaux (UI-07) : carte vitrée, en-têtes capitales, lignes de 76 px ---------- */
.ec-tableau-cadre { border-radius: var(--ax-radius-card); background: linear-gradient(170deg, rgba(var(--famille),.08), rgba(15,33,56,.66)); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 50px rgba(0,0,0,.3); overflow: hidden; }
.ec-tableau { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ec-tableau caption { text-align: left; padding: 14px 22px 0; color: var(--ax-text-3); font-size: 13.5px; caption-side: top; }
.ec-tableau th { text-align: left; font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ax-text-4); padding: 18px 22px; border-bottom: 1px solid var(--ax-line); white-space: nowrap; }
.ec-tableau td { height: 76px; padding: 12px 22px; vertical-align: middle; border-top: 1px solid rgba(255,255,255,.06); color: var(--ax-text-2); }
.ec-tableau tbody tr:first-child td { border-top: 0; }
.ec-tableau tbody tr:hover td { background: rgba(255,255,255,.025); }
.ec-tableau .ec-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-tableau td.ec-num { color: var(--ax-text-2); }
.ec-tableau td.ec-num-fort { color: var(--ax-title-2); font-weight: 600; }
.ec-tableau td.ec-cellule-titre, .ec-tableau td.ec-cellule-titre strong { color: var(--ax-title-2); font-weight: 600; }
.ec-tableau td.ec-cellule-actions { text-align: right; white-space: nowrap; }
.ec-tableau tfoot td { font-weight: 600; }
.ec-tableau a { font-weight: 500; }
.ec-tableau-pied { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; font-size: 13.5px; color: var(--ax-text-4); border-top: 1px solid rgba(255,255,255,.06); }
.ec-tableau-pied a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ec-lien-ligne { color: var(--ax-title-2); font-weight: 600; text-decoration: none; }
.ec-lien-ligne:hover { color: var(--ax-teal); text-decoration: underline; }
.ec-tableau-lignes td { height: 64px; }

/* ---------- Fiche d'un document ---------- */
.ec-fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.ec-fiche div { min-width: 0; }
.ec-fiche dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ax-text-4); margin-bottom: 4px; }
.ec-fiche dd { margin: 0; color: var(--ax-text); }
.ec-fiche-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-totaux { margin: 22px 0 0 auto; width: min(100%, 380px); display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; font-variant-numeric: tabular-nums; }
.ec-totaux dt { color: var(--ax-text-3); }
.ec-totaux dd { margin: 0; text-align: right; color: var(--ax-text); }
.ec-totaux .ec-total-final { color: var(--ax-title); font-weight: 600; border-top: 1px solid var(--ax-line-strong); padding-top: 10px; }
.ec-totaux dd.ec-total-final { color: var(--ax-gold); }
.ec-texte-long { white-space: pre-line; color: var(--ax-text-2); }
.ec-bloc-reglement { display: flex; flex-direction: column; gap: 4px; }
.ec-iban { font-variant-numeric: tabular-nums; letter-spacing: .03em; color: var(--ax-title); font-weight: 500; }

/* ---------- États vides, erreurs, pages centrées ---------- */
.ec-vide { padding: 34px 38px; }
.ec-vide p { color: var(--ax-text-2); max-width: 62ch; }
.ec-vide .ec-actions { margin-top: 14px; }
.ec-erreur { --famille: 228,188,41; border-color: rgba(228,188,41,.45); }
.ec-bloc-centre { max-width: 620px; margin: 4vh auto 0; padding: 38px 38px 34px; }
.ec-bloc-centre h1 { font-size: clamp(24px, 2.2vw, 30px); }

/* ---------- Connexion (maquette Main) : deux colonnes, garanties à gauche, carte formulaire à droite ---------- */
.ec-accueil-public { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; padding-top: 32px; }
.ec-accueil-public > section:first-child { flex: 1 1 440px; min-width: 0; }
.ec-accueil-public h1 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.12; }
.ec-accueil-public .ec-sous-titre { font-size: 17px; line-height: 1.65; max-width: 46ch; margin-top: 24px; }
.ec-garanties { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 38px 0 0; padding: 0; }
.ec-garanties li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--ax-text-2); }
.ec-garanties .ec-icone { width: 34px; height: 34px; border-radius: 10px; }
.ec-carte-connexion { flex: 0 1 500px; min-width: 0; padding: 38px 38px 34px; }
.ec-carte-connexion h2 { font-size: 28px; margin: 0 0 8px; }
.ec-carte-connexion > p { font-size: 15px; line-height: 1.6; color: var(--ax-text-3); margin: 0 0 26px; }
.ec-carte-connexion .ec-actions { grid-template-columns: 1fr; margin-top: 0; }
.ec-carte-connexion .ec-bouton { min-height: 54px; font-size: 16px; }
.ec-carte-connexion .ec-note { margin-top: 20px; }
.ec-carte-pied { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ax-line); font-size: 14px; line-height: 1.6; color: var(--ax-text-4); }
.ec-carte-pied a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ec-carte-etroite { max-width: 560px; margin: 4vh auto 0; padding: 38px 38px 34px; }

/* ---------- Formulaires ---------- */
.ec-formulaire { display: grid; gap: 20px; max-width: 680px; margin: 0; }
.ec-carte-connexion .ec-formulaire, .ec-carte-etroite .ec-formulaire { max-width: none; }
.ec-champ { display: flex; flex-direction: column; gap: 8px; }
.ec-champ > label, .ec-champ > legend { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ax-teal); }
.ec-champ > label:has(input[type="checkbox"]) { text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 400; color: var(--ax-text-2); display: flex; align-items: center; gap: 10px; min-height: var(--ax-cible); }
.ec-champ input:not([type="checkbox"]):not([type="file"]), .ec-champ select { width: 100%; height: 50px; padding: 0 16px; border-radius: var(--ax-radius-field); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--ax-text); font-size: 15px; }
.ec-champ select option { background: var(--ax-surface); color: var(--ax-text); }
.ec-champ textarea { width: 100%; min-height: 150px; padding: 14px 16px; border-radius: var(--ax-radius-field); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--ax-text); font-size: 15px; line-height: 1.55; resize: vertical; }
.ec-champ input[type="file"] { width: 100%; min-height: 50px; padding: 10px 12px; border-radius: var(--ax-radius-field); border: 1px dashed rgba(84,188,164,.4); background: rgba(84,188,164,.05); color: var(--ax-text-2); font-size: 14px; }
.ec-champ input[type="file"]::file-selector-button { margin-right: 14px; min-height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--ax-line-strong); background: rgba(255,255,255,.06); color: var(--ax-text); font-weight: 600; cursor: pointer; }
.ec-champ input:focus, .ec-champ select:focus, .ec-champ textarea:focus { outline: none; border-color: var(--ax-teal); box-shadow: 0 0 0 3px rgba(84,188,164,.22); }
.ec-champ input::placeholder, .ec-recherche-ligne input::placeholder { color: var(--ax-text-4); }
.ec-champ .ec-aide, .ec-aide { font-size: 13.5px; color: var(--ax-text-3); margin: 0; }
.ec-case { display: flex; align-items: center; gap: 10px; min-height: var(--ax-cible); margin: 0; color: var(--ax-text-2); font-size: 14.5px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ax-teal); flex: none; margin: 0; }
.ec-deconnexion { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 280px)); gap: 12px; margin-top: 20px; }
.ec-deconnexion .ec-bouton { width: 100%; }
.ec-bouton-discret { background: rgba(255,255,255,.05); color: var(--ax-text); border-color: var(--ax-line-strong); box-shadow: none; }
.ec-bouton-discret:hover { background: rgba(255,255,255,.08); color: var(--ax-title); border-color: var(--ax-teal); box-shadow: none; }

/* ---------- Échanges de support, listes simples ---------- */
.ec-echange { margin-bottom: 14px; padding: 22px 26px; }
.ec-echange-ax2lan { --famille: 84,188,164; border-color: rgba(84,188,164,.35); }
.ec-liste-simple { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ec-liste-simple li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ax-text-2); }
.ec-liste-simple li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--famille-texte); }
.ec-liste-simple .ec-ligne-texte { flex: 1; min-width: 0; }
.ec-liste-simple .ec-ligne-droite { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ax-title-2); white-space: nowrap; }
.ec-liste-simple .ec-mention { margin-top: 0; }
.ec-liste-encadree li { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--ax-line); }
.ec-liste-encadree .ec-lien-ligne { display: block; }
.ec-liste-points { margin: 0; padding-left: 20px; color: var(--ax-text-2); }
.ec-liste-points li { margin-bottom: 6px; }

/* ---------- Aperçu PDF (maquette Apercu) : fenêtre au-dessus de la page ---------- */
.ec-apercu-fond { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(4,10,18,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ec-apercu-fond[hidden] { display: none; }
.ec-apercu { width: 100%; max-width: 1180px; max-height: calc(100vh - 56px); display: flex; flex-direction: column; border-radius: var(--ax-radius-card); background: linear-gradient(170deg, #0f2138, #0a1626); border: 1px solid rgba(84,188,164,.32); box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(84,188,164,.08); color: var(--ax-text); overflow: hidden; }
.ec-apercu-tete { flex: none; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--ax-line); }
.ec-apercu-titre { flex: 1 1 300px; min-width: 0; }
.ec-apercu-titre h2 { margin: 0; font-size: 19px; }
.ec-apercu-titre p { margin: 2px 0 0; font-size: 13px; color: var(--ax-text-4); }
.ec-zoom { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: var(--ax-radius-button); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.ec-zoom button { width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; color: var(--ax-text-2); font-size: 20px; cursor: pointer; }
.ec-zoom button:hover { background: rgba(255,255,255,.06); color: var(--ax-title); }
.ec-zoom output { width: 60px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ax-text); font-variant-numeric: tabular-nums; }
.ec-apercu-boutons { display: grid; grid-template-columns: 200px 200px; gap: 10px; }
.ec-apercu-boutons .ec-bouton { min-height: 46px; height: 46px; font-size: 14.5px; border-radius: 10px; width: 100%; }
.ec-apercu-fermer { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--ax-line-strong); background: rgba(255,255,255,.05); color: var(--ax-text); cursor: pointer; }
.ec-apercu-fermer:hover { border-color: var(--ax-teal); }
.ec-apercu-corps { display: flex; min-height: 0; flex: 1 1 auto; height: 830px; overflow: hidden; }
.ec-apercu-pages { flex: none; width: 150px; padding: 20px 18px; border-right: 1px solid var(--ax-line); display: flex; flex-direction: column; gap: 16px; background: rgba(6,15,27,.4); overflow-y: auto; }
.ec-apercu-pages button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: .72; border-radius: 4px; }
.ec-apercu-pages button[aria-current="page"] { opacity: 1; outline: 2px solid var(--ax-teal); outline-offset: 4px; box-shadow: 0 0 18px rgba(84,188,164,.35); }
.ec-apercu-pages canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 3px; }
.ec-apercu-pages span { display: block; margin-top: 7px; font-size: 12px; color: var(--ax-text-3); text-align: center; }
.ec-apercu-vue { flex: 1; min-width: 0; overflow: auto; background: radial-gradient(ellipse at top, rgba(84,188,164,.08), transparent 60%), var(--ax-bg-deep); padding: 34px 24px 40px; }
.ec-apercu-vue canvas { display: block; margin: 0 auto 24px; background: #fff; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.ec-apercu-etat { margin: 40px auto; max-width: 52ch; text-align: center; color: var(--ax-text-2); }
.ec-apercu-pied { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid rgba(84,188,164,.3); background: var(--ax-surface); }
.ec-apercu-pied[hidden] { display: none; }
.ec-apercu-pied p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--ax-teal-light); }
html.ec-fenetre-ouverte { overflow: hidden; }

/* ---------- Pied de page commun (maquette Pied) ---------- */
.ec-pied { position: relative; z-index: 1; flex: none; margin-top: 0; background: var(--ax-bg-deep); color: var(--ax-text-2); padding: 0 0 170px; overflow: hidden; }
.ec-pied::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(84,188,164,.55) 30%, rgba(46,143,216,.55) 70%, transparent); }
.ec-pied-halo { position: absolute; top: -220px; left: 50%; width: 900px; height: 440px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(84,188,164,.16), transparent 70%); filter: blur(30px); pointer-events: none; }
.ec-pied-contenu { position: relative; z-index: 1; max-width: var(--ax-max); margin: 0 auto; padding: 64px 32px 0; }
.ec-pied-aide { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 34px 38px; border-radius: var(--ax-radius-card); background: linear-gradient(120deg, rgba(84,188,164,.16), rgba(0,102,169,.14) 60%, rgba(15,33,56,.6)); border: 1px solid rgba(84,188,164,.32); box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.ec-pied-aide > div:first-child { flex: 1 1 420px; min-width: 0; }
.ec-pied .ec-pied-aide-titre { text-transform: none; margin: 0; font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -.02em; color: var(--ax-title); margin: 0; }
.ec-pied-aide p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ax-text-3); }
.ec-pied-boutons { display: grid; grid-template-columns: 250px 250px; gap: 12px; }
.ec-pied-boutons .ec-bouton { min-height: 54px; font-size: 15.5px; width: 100%; }
.ec-pied-colonnes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; align-items: start; margin-top: 48px; }
.ec-pied-marque { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--ax-line); }
.ec-pied-marque p { flex: 1 1 360px; max-width: 520px; }
.ec-pied-marque .ec-reperes { margin: 0 0 0 auto; }
.ec-pied-marque img { height: 44px; width: auto; display: block; margin: 0; }
.ec-pied-marque p { font-size: 14.5px; line-height: 1.65; color: var(--ax-text-4); margin: 0; }
.ec-reperes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ec-reperes li { --p: 46,143,216; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px; border-radius: var(--ax-radius-pill); border: 1px solid rgba(var(--p),.42); background: rgba(var(--p),.1); font-size: 12.5px; color: var(--ax-text-2); white-space: nowrap; }
.ec-reperes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--p)); }
.ec-reperes li:nth-child(2) { --p: 0,102,169; }
.ec-reperes li:nth-child(3) { --p: 228,188,41; }
.ec-pied-colonne { display: flex; flex-direction: column; min-width: 0; }
.ec-pied-colonne ul.ec-pied-liens { gap: 4px; }
#pied-votre-espace + ul.ec-pied-liens { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 36px; row-gap: 4px; }
.ec-pied-liens a, .ec-pied-contact > a { white-space: nowrap; }
.ec-pied-colonne-large { min-width: 0; }
.ec-pied h2 { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--ax-text-4); text-transform: uppercase; margin: 0 0 18px; }
.ec-pied ul.ec-pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ec-pied-liens a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ax-text-2); text-decoration: none; font-size: 14.5px; }
.ec-pied-liens a:hover { color: var(--ax-teal); }
.ec-puce { width: 5px; height: 5px; border-radius: 50%; background: var(--ax-teal); flex: none; }
.ec-puce-bleu { background: var(--ax-blue); }
.ec-puce-logo { background: var(--ax-blue-logo); }
.ec-puce-or { background: var(--ax-gold); }
.ec-pied-contact { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; font-style: normal; }
.ec-pied-contact > div, .ec-pied-contact > a { display: flex; gap: 12px; align-items: center; color: var(--ax-text-2); text-decoration: none; line-height: 1.5; }
.ec-pied-contact > a:hover { color: var(--ax-teal); }
.ec-pied-contact .ec-icone { width: 32px; height: 32px; border-radius: 9px; }
.ec-pied-mentions { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--ax-line); display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13px; color: var(--ax-text-5); text-align: center; }
.ec-pied-mentions p { margin: 0; color: var(--ax-text-5); }
.ec-pied-mentions a { color: var(--ax-text-5); text-decoration: none; }
.ec-pied-mentions a:hover { color: var(--ax-teal); }
.ec-vague { position: absolute; left: -1%; bottom: 0; width: 102%; height: 118px; pointer-events: none; line-height: 0; }
.ec-vague img { display: block; width: 100%; height: 100%; object-fit: fill; }

/* ---------- Grands écrans ---------- */
@media (min-width: 1900px) { html { font-size: 17px; } }
@media (min-width: 2400px) { html { font-size: 19px; } }

/* ---------- Tablette et téléphone ---------- */
/* Menu repliable dès que logo 52 px + six liens + identité + bouton (1 180 px utiles) ne tiennent plus (contre-audit ECX). */
@media (max-width: 1200px) {
  .ec-nav, .ec-entete-actions { display: none; }
  .ec-menu { display: block; }
}
@media (max-width: 1080px) {
  .ec-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tableaux : une carte par ligne, sans défilement horizontal */
  .ec-tableau-cadre { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .ec-tableau, .ec-tableau tbody, .ec-tableau tr, .ec-tableau td, .ec-tableau tfoot { display: block; width: 100%; }
  .ec-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ec-tableau tbody tr { border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: linear-gradient(170deg, rgba(var(--famille),.08), rgba(15,33,56,.66)); margin-bottom: 12px; padding: 8px 0; }
  .ec-tableau tbody tr:hover td { background: none; }
  .ec-tableau td { height: auto; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 8px 18px; border-top: 0; }
  .ec-tableau td::before { content: attr(data-libelle); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ax-text-4); padding-top: 2px; }
  .ec-tableau td > * { grid-column: 2; }
  .ec-tableau td.ec-num { text-align: left; }
  .ec-tableau td.ec-cellule-titre { display: block; padding-top: 12px; font-size: 16px; }
  .ec-tableau td.ec-cellule-titre > * { grid-column: auto; }
  .ec-tableau td.ec-cellule-titre::before, .ec-tableau td.ec-cellule-actions::before { display: none; }
  .ec-tableau td.ec-cellule-actions { display: block; padding-top: 12px; padding-bottom: 12px; text-align: left; }
  .ec-tableau td.ec-cellule-actions .ec-actions-pdf { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ec-tableau tfoot td { background: none; }
  .ec-tableau-pied { border-top: 0; padding: 8px 4px; }
  .ec-apercu-corps { height: auto; flex-direction: column; }
  .ec-apercu-pages { width: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--ax-line); padding: 12px 16px; overflow-x: auto; }
  .ec-apercu-pages button { width: 56px; flex: none; }
  .ec-apercu-vue { flex: 1 1 auto; min-height: 0; padding: 20px 12px; }
}
@media (max-width: 880px) {
  .ec-barre-info { display: none; }
  .ec-entete-contenu { padding: 14px 18px; min-height: 72px; }
  .ec-marque img { height: 40px; }
  .ec-principal { padding: 40px 18px 28px; }
  .ec-grille-3, .ec-grille-2 { grid-template-columns: 1fr; }
  .ec-actions { grid-template-columns: 1fr; }
  .ec-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 8px; }
  .ec-segments a { min-width: 0; padding: 0 8px; font-size: 13.5px; }
  .ec-filtres { gap: 16px; }
  .ec-filtre-groupe { width: 100%; }
  .ec-recherche-ligne .ec-bouton { width: 130px; }
  .ec-pied { padding-bottom: 120px; }
  .ec-pied-contenu { padding: 48px 18px 0; }
  .ec-pied-aide { padding: 26px 22px; }
  .ec-pied-boutons { grid-template-columns: 1fr; width: 100%; }
  .ec-pied-colonnes { grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 44px; }
  .ec-pied-colonnes > nav:first-of-type { grid-column: 1 / -1; }
  .ec-pied-marque .ec-reperes { margin-left: 0; }
  .ec-vague { height: 80px; }
  .ec-accueil-public { gap: 40px; padding-top: 0; }
  .ec-carte-connexion, .ec-bloc-centre, .ec-carte-etroite { padding: 28px 22px 24px; }
  .ec-sep { margin: 44px 0; }
  .ec-apercu-fond { padding: 0; }
  .ec-apercu { max-height: 100vh; height: 100vh; border-radius: 0; }
  .ec-apercu-tete { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 12px; padding: 14px 16px; }
  .ec-apercu-tete > .ec-icone { grid-row: 1; grid-column: 1; }
  .ec-apercu-titre { grid-row: 1; grid-column: 2; }
  .ec-apercu-titre h2 { font-size: 16px; }
  .ec-apercu-fermer { grid-row: 1; grid-column: 3; }
  .ec-zoom { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .ec-apercu-boutons { grid-row: 3; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .ec-apercu-boutons .ec-bouton { font-size: 14px; padding: 0 8px; gap: 7px; }
  .ec-apercu-pied { padding: 12px 16px; gap: 10px; }
  .ec-apercu-pied > div { width: 100%; }
}
@media (max-width: 560px) {
  .ec-barre { padding: 8px 16px; }
  .ec-grille-4 { grid-template-columns: 1fr; }
  .ec-fiche, .ec-fiche-2 { grid-template-columns: 1fr; }
  .ec-chiffres { grid-template-columns: 1fr 1fr; }
  .ec-tuile { padding: 18px 14px 14px; border-left: 0; border-top: 1px solid rgba(127,227,200,.22); }
  .ec-chiffres > .ec-tuile:first-child { padding-left: 14px; }
  .ec-chiffres > .ec-tuile:nth-child(odd) { padding-left: 0; }
  .ec-chiffres > .ec-tuile:nth-child(-n+2) { border-top: 0; }
  .ec-tableau td { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .ec-carte { padding: 22px 20px; }
  .ec-bloc-centre, .ec-carte-etroite { margin-top: 0; }
  .ec-aurore span { width: 360px; height: 360px; filter: blur(40px); }
  .ec-deconnexion { grid-template-columns: 1fr; }
}

/* ---------- Animations sobres (site : auroraDrift, apparition des sections, halo des boutons pleins) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ec-aurore span:nth-child(odd) { animation: auroraDrift 46s ease-in-out infinite; }
  .ec-aurore span:nth-child(even) { animation: auroraDrift2 54s ease-in-out infinite; }
  .ec-apparition { animation: ecApparition .55s cubic-bezier(.22,.61,.36,1) both; }
  .ec-bouton:not(.ec-bouton-secondaire):not(.ec-bouton-or):not(.ec-bouton-apercu):not(.ec-bouton-discret) { animation: axBreath 2.8s ease-in-out infinite; }
  .ec-bouton:hover { animation-play-state: paused; }
  @keyframes auroraDrift { 0% { transform: translate3d(-6%,-4%,0) scale(1.05); } 50% { transform: translate3d(8%,6%,0) scale(1.18); } 100% { transform: translate3d(-6%,-4%,0) scale(1.05); } }
  @keyframes auroraDrift2 { 0% { transform: translate3d(6%,4%,0) scale(1.04); } 50% { transform: translate3d(-8%,-5%,0) scale(1.16); } 100% { transform: translate3d(6%,4%,0) scale(1.04); } }
  @keyframes ecApparition { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes axBreath { 0%, 100% { filter: drop-shadow(0 0 2px rgba(84,188,164,.26)); } 50% { filter: drop-shadow(0 0 13px rgba(84,188,164,.6)); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .ec-barre, .ec-entete, .ec-pied, .ec-actions, .ec-aurore { display: none; } html, body { background: #fff; color: #000; } }

/* Numéro de document jamais coupé (au tiret) dans un titre, sur téléphone compris (recette ECX, session ECY). */
.ec-insecable { white-space: nowrap; }
.ec-titre-page .ec-sous-titre p { margin: 0; color: var(--ax-text-3); }
.ec-titre-page .ec-sous-titre .ec-actions { margin-top: 18px; }
.ec-actions-fiche { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.ec-actions-fiche .ec-actions { margin-top: 0; grid-template-columns: repeat(2, 220px); }
.ec-actions-fiche .ec-actions-pdf { grid-template-columns: 220px 220px; }
.ec-actions-fiche .ec-actions-pdf .ec-bouton { min-height: 48px; height: 48px; font-size: 15px; border-radius: var(--ax-radius-button); }
@media (max-width: 880px) {
  .ec-actions-fiche, .ec-actions-fiche .ec-actions, .ec-actions-fiche .ec-actions-pdf { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ec-actions-fiche { grid-template-columns: 1fr; }
}
.ec-accueil-tete .ec-titre-page { margin-bottom: 28px; }
.ec-accueil-tete h1 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; }
.ec-interlocuteur { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.ec-interlocuteur h2 { margin-bottom: 6px; }
.ec-interlocuteur-nom { font-size: 17px; font-weight: 600; color: var(--ax-title-2); margin: 0; }
.ec-interlocuteur-liens { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ec-interlocuteur-liens a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--ax-cible); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.ec-actions-un { grid-template-columns: 150px; }
.ec-echeance h3 { margin: 0 0 6px; }
.ec-echeance p { margin: 0; }
.ec-echeance .ec-carte-tete { align-items: center; }
.ec-carte-formulaire { max-width: 820px; }
.ec-centre-aide .ec-actions { margin-top: 12px; }
@media (max-width: 1080px) { .ec-tableau td.ec-cellule-actions .ec-actions-un { grid-template-columns: 1fr; } }
.ec-pied-admin { padding-bottom: 40px; margin-top: 64px; }
.ec-pied-admin .ec-pied-contenu { padding-top: 8px; }
.ec-pied-admin .ec-pied-mentions { margin-top: 0; }
/* Tableaux sur ordinateur : Aperçu et Télécharger l'un sous l'autre, de même largeur (huit colonnes tiennent en 1 176 px). */
@media (min-width: 1081px) {
  .ec-tableau td.ec-cellule-actions { width: 1%; padding-top: 14px; padding-bottom: 14px; }
  .ec-tableau .ec-actions-pdf { grid-template-columns: 150px; gap: 8px; }
}
@media (max-width: 880px) {
  .ec-segments a { white-space: normal; line-height: 1.2; font-size: 13px; padding: 4px 6px; }
}
.ec-carte > h2 { margin-bottom: 14px; }
@media (max-width: 1080px) {
  .ec-tableau td > * { justify-self: start; }
  .ec-tableau td.ec-cellule-formulaires { display: block; padding-top: 12px; padding-bottom: 14px; }
  .ec-tableau td.ec-cellule-formulaires::before { display: none; }
  .ec-cellule-formulaires .ec-formulaire + .ec-formulaire { margin-top: 12px; }
}

/* ---------- Session ECU : « Vos utilisateurs » (choix par personne). Grammaire ECZ : champs, puces, cartes. ---------- */
.ec-choix-groupe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ec-choix { display: flex; align-items: center; gap: 10px; min-height: var(--ax-cible); padding: 0 14px; border-radius: var(--ax-radius-field); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--ax-text-2); font-size: 14.5px; cursor: pointer; }
.ec-choix:has(input:checked) { border-color: rgba(84,188,164,.6); background: rgba(84,188,164,.14); color: var(--ax-teal-light); font-weight: 600; }
.ec-choix:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(84,188,164,.35); }
.ec-choix input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ax-teal); flex: none; margin: 0; }
.ec-revue-reponse { border: 0; margin: 0; padding: 0; min-width: 0; width: 100%; display: grid; gap: 12px; }
.ec-revue-depart { display: grid; gap: 12px; padding-top: 4px; }
.ec-revue-depart .ec-champ input, .ec-revue-depart .ec-champ select { height: 44px; }
.ec-revue-reponse:not(:has(input[value="parti"]:checked)) .ec-revue-depart { display: none; }
.ec-tableau-revue td.ec-cellule-formulaires { min-width: 340px; }
.ec-revue-formulaire .ec-actions { margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ec-tableau td .ec-revue-inactif { color: var(--ax-gold); }
.ec-actions-larges { grid-template-columns: repeat(auto-fit, minmax(270px, 320px)); }
.ec-tableau-ecarts th { white-space: normal; }
.ec-bouton-ligne { min-height: var(--ax-cible); padding: 0 18px; font-size: 14px; }
@media (max-width: 1080px) {
  .ec-tableau-revue td.ec-cellule-formulaires { min-width: 0; }
}
@media (max-width: 560px) {
  .ec-choix-groupe { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ec-pied-colonnes { grid-template-columns: 1fr; }
  #pied-votre-espace + ul.ec-pied-liens { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .ec-pied-liens a { white-space: normal; }
}

/* ==========================================================================================================
   Allègement général (demande de Laurent, 12/11/2026 16 h 50) : tout était trop gros. Textes, boutons, champs,
   cartes et tableaux réduits d'environ 15 à 25 % ; aucune ligne de liste ni cellule ne passe sur deux lignes
   (troncature avec points de suspension et texte complet au survol) ; tableaux sans bouton masqué.
   Les règles ci-dessous priment sur les précédentes (même spécificité, placées après).
   ========================================================================================================== */
:root { --ax-cible: 38px; --ax-radius-card: 16px; --ax-radius-button: 9px; --ax-radius-field: 9px; }
html { font-size: 15px; line-height: 1.55; }
h3 { font-size: 16px; }
p { margin: 0 0 .6em; }

/* Bandeau */
.ec-barre { padding: 6px 24px; font-size: 12px; }
.ec-entete-contenu { padding: 12px 32px; min-height: 68px; gap: 20px; }
.ec-marque img { height: 40px; }
.ec-nav { gap: 24px; }
.ec-nav a { font-size: 14px; }
.ec-identite-nom { font-size: 13px; }
.ec-identite-societe { font-size: 12px; }
.ec-entete-actions .ec-bouton { min-height: 36px; height: 36px; min-width: 0; padding: 0 16px; font-size: 13px; border-radius: 8px; }
.ec-menu summary { font-size: 13.5px; min-height: 38px; }
.ec-menu-liens a { min-height: 44px; font-size: 15px; }

/* Boutons */
.ec-bouton { min-height: 38px; padding: 0 18px; gap: 8px; font-size: 13.5px; font-weight: 600; border-radius: var(--ax-radius-button); box-shadow: 0 6px 16px rgba(84,188,164,.26); }
.ec-bouton:hover { box-shadow: 0 8px 20px rgba(84,188,164,.36); }
.ec-bouton-grand, .ec-carte-connexion .ec-bouton { min-height: 42px; font-size: 14px; }
.ec-bouton svg { width: 14px; height: 14px; }
.ec-actions { grid-template-columns: repeat(auto-fit, minmax(170px, 200px)); gap: 10px; margin-top: 16px; }
.ec-actions-pdf { grid-template-columns: 118px 118px; gap: 8px; }
.ec-actions-pdf .ec-bouton { min-height: 34px; height: 34px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.ec-actions-fiche { gap: 10px; margin-top: 20px; }
.ec-actions-fiche .ec-actions { grid-template-columns: repeat(2, 180px); }
.ec-actions-fiche .ec-actions-pdf { grid-template-columns: 180px 180px; }
.ec-actions-fiche .ec-actions-pdf .ec-bouton { min-height: 38px; height: 38px; font-size: 13.5px; }
.ec-actions-un { grid-template-columns: 130px; }
.ec-deconnexion { grid-template-columns: repeat(auto-fit, minmax(200px, 230px)); }
.ec-bouton-ligne { min-height: 34px; padding: 0 14px; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes axBreath { 0%, 100% { filter: drop-shadow(0 0 1px rgba(84,188,164,.2)); } 50% { filter: drop-shadow(0 0 7px rgba(84,188,164,.42)); } }
}

/* Pages et titres */
.ec-principal { padding: 44px 32px 36px; }
.ec-titre-page { gap: 14px 32px; margin-bottom: 26px; }
.ec-titre-page > div:first-child .ec-sous-titre { margin-top: 10px; }
.ec-surtitre { font-size: 12px; margin-bottom: 8px; }
.ec-sous-titre { font-size: 14px; margin-top: 10px; }
.ec-fil { font-size: 12px; margin-bottom: 14px; }
.ec-section { margin-top: 34px; }
.ec-section > h2 { margin-bottom: 14px; }
.ec-sep { margin: 40px 0; }

/* Cartes */
.ec-carte { padding: 22px 24px; box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.ec-carte h2, .ec-carte-famille h2 { font-size: 17px; }
.ec-carte > h2 { margin-bottom: 10px; }
.ec-carte-tete { margin-bottom: 14px; }
.ec-icone { width: 34px; height: 34px; border-radius: 9px; }
.ec-icone svg { width: 17px; height: 17px; }
.ec-numero { font-size: 12px; }
.ec-carte-famille > p { margin: 0 0 14px; font-size: 13.5px; }
.ec-lien-fleche { min-height: 32px; font-size: 13px; }
.ec-carte-famille .ec-lien-fleche { padding-top: 10px; }
.ec-grille { gap: 16px; }
.ec-grille-familles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }

/* Chiffres clés */
.ec-chiffres { margin-top: 28px; }
.ec-tuile { padding: 18px 22px 4px; }
.ec-tuile-valeur { font-size: min(1.6rem, 9cqi); }
.ec-tuile-libelle, .ec-tuile-detail { font-size: 12px; }
.ec-tuile-bloquee .ec-tuile-valeur { font-size: 15px; }

/* Listes des cartes : une seule ligne par élément, quoi qu'il arrive */
.ec-liste-simple { gap: 8px; }
.ec-liste-simple li { gap: 10px; font-size: 13.5px; white-space: nowrap; min-width: 0; }
.ec-liste-simple .ec-ligne-texte { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-liste-simple .ec-ligne-texte > * { white-space: nowrap; }
.ec-liste-simple .ec-ligne-texte .ec-lien-ligne { display: inline; overflow: hidden; text-overflow: ellipsis; }
.ec-liste-encadree .ec-ligne-texte { display: flex; flex-direction: column; gap: 1px; }
.ec-liste-encadree .ec-ligne-texte > * { overflow: hidden; text-overflow: ellipsis; }
.ec-ligne-detail { margin-left: 10px; color: var(--ax-text-3); }
.ec-liste-simple .ec-ligne-droite { flex: none; min-width: 84px; font-size: 13px; }
.ec-liste-simple .ec-pastille { flex: none; }
.ec-liste-encadree li { padding: 10px 14px; border-radius: 10px; }
.ec-mention { font-size: 12px; white-space: nowrap; }
.ec-carte p.ec-mention, .ec-section p.ec-mention, .ec-echange .ec-mention { white-space: normal; }

/* Pastilles */
.ec-pastille { min-height: 24px; padding: 1px 10px; gap: 6px; font-size: 12px; }
.ec-pastille::before { width: 5px; height: 5px; }
.ec-pastille-petite { min-height: 22px; padding: 0 9px; font-size: 12px; }

/* Messages et encadrés */
.ec-message { padding: 12px 16px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }
.ec-avertissement, .ec-alerte, .ec-note { font-size: 13px; padding: 10px 14px; border-radius: 10px; }

/* Filtres */
.ec-filtres { gap: 12px 24px; margin-bottom: 16px; }
.ec-filtre-groupe { gap: 6px; }
.ec-filtre-groupe > span, .ec-filtre-groupe > label { font-size: 12px; }
.ec-segments { gap: 6px; }
.ec-segments a { min-height: 32px; padding: 0 14px; font-size: 12.5px; }
.ec-recherche-ligne input { height: 38px; font-size: 13.5px; padding: 0 12px; }
.ec-recherche-ligne .ec-bouton { min-height: 38px; width: 120px; }

/* Tableaux : plus fins, rien de masqué (défilement horizontal en dernier recours au lieu d'une coupe) */
.ec-tableau-cadre { overflow-x: auto; box-shadow: 0 14px 34px rgba(0,0,0,.24); }
.ec-tableau { font-size: 13px; }
.ec-tableau th { font-size: 12px; padding: 13px 14px; letter-spacing: .05em; }
.ec-tableau td { height: 58px; padding: 9px 14px; white-space: nowrap; }
.ec-tableau th:first-child, .ec-tableau td:first-child { padding-left: 22px; }
.ec-tableau th:last-child, .ec-tableau td:last-child { padding-right: 22px; }
.ec-tableau td.ec-cellule-objet { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ec-tableau td .ec-mention { margin-top: 3px; }
.ec-tableau-lignes td { height: 50px; }
.ec-tableau-pied { padding: 13px 22px; font-size: 12.5px; }
.ec-tableau-ecarts td, .ec-tableau-revue td { white-space: normal; }
@media (min-width: 1081px) {
  .ec-tableau td.ec-cellule-actions { padding-top: 9px; padding-bottom: 9px; }
  /* Aperçu et Télécharger : deux boutons carrés côte à côte (libellé au survol et pour les lecteurs d'écran). */
  .ec-tableau .ec-actions-pdf { grid-template-columns: 34px 34px; gap: 6px; justify-content: end; }
  .ec-tableau .ec-actions-pdf .ec-bouton { width: 34px; padding: 0; }
  .ec-tableau .ec-actions-pdf .ec-bouton-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ec-tableau .ec-actions-un { grid-template-columns: 130px; }
}
@media (max-width: 1080px) {
  .ec-tableau td { white-space: normal; grid-template-columns: 8rem minmax(0, 1fr); padding: 6px 16px; }
  .ec-tableau td.ec-cellule-objet { max-width: none; }
  .ec-tableau td::before { font-size: 12px; }
  .ec-tableau td.ec-cellule-titre { font-size: 14.5px; }
}

/* Fiche d'un document */
.ec-fiche { gap: 14px 20px; }
.ec-fiche dt { font-size: 12px; }
.ec-fiche dd { font-size: 14px; }
.ec-totaux { font-size: 14px; }

/* Connexion, pages centrées */
.ec-accueil-public { gap: 56px; }
.ec-accueil-public .ec-sous-titre { font-size: 15px; margin-top: 16px; }
.ec-garanties { gap: 12px; margin-top: 28px; }
.ec-garanties li { font-size: 14px; gap: 12px; }
.ec-garanties .ec-icone { width: 30px; height: 30px; }
.ec-carte-connexion { flex-basis: 440px; padding: 30px 30px 26px; }
.ec-carte-connexion h2 { font-size: 21px; }
.ec-carte-connexion > p { font-size: 13.5px; margin-bottom: 20px; }
.ec-carte-pied { font-size: 13px; }
.ec-bloc-centre, .ec-carte-etroite { padding: 30px 30px 26px; }

/* Formulaires */
.ec-formulaire { gap: 16px; }
.ec-champ { gap: 6px; }
.ec-champ > label, .ec-champ > legend { font-size: 12px; }
.ec-champ input:not([type="checkbox"]):not([type="file"]), .ec-champ select { height: 40px; padding: 0 12px; font-size: 14px; }
.ec-champ textarea { min-height: 120px; padding: 10px 12px; font-size: 14px; }
.ec-champ input[type="file"] { min-height: 40px; padding: 6px 10px; font-size: 13px; }
.ec-champ .ec-aide, .ec-aide { font-size: 12.5px; }
.ec-champ > label:has(input[type="checkbox"]), .ec-case, .ec-choix { font-size: 13.5px; }
input[type="checkbox"] { width: 17px; height: 17px; }
.ec-revue-depart .ec-champ input, .ec-revue-depart .ec-champ select { height: 38px; }

/* Interlocuteur */
.ec-interlocuteur-nom { font-size: 15px; }
.ec-interlocuteur-liens a { font-size: 13.5px; }

/* Échanges */
.ec-echange { padding: 16px 20px; }

/* Fenêtre d'aperçu PDF */
.ec-apercu { max-width: 1100px; }
.ec-apercu-tete { gap: 14px; padding: 12px 18px; }
.ec-apercu-tete > .ec-icone { width: 34px; height: 34px; }
.ec-apercu-titre h2 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-apercu-titre p { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-zoom { gap: 2px; padding: 2px; }
.ec-zoom button { width: 32px; height: 32px; font-size: 16px; }
.ec-zoom output { width: 52px; font-size: 12.5px; }
.ec-apercu-boutons { grid-template-columns: 150px 150px; gap: 8px; }
.ec-apercu-boutons .ec-bouton { min-height: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
.ec-apercu-fermer { width: 36px; height: 36px; border-radius: 8px; }
.ec-apercu-pages { width: 128px; padding: 16px 14px; }
.ec-apercu-pied { padding: 12px 18px; }
.ec-apercu-pied p { font-size: 13px; }
.ec-apercu-pied .ec-bouton { min-height: 38px; }

/* Pied de page */
.ec-pied { padding-bottom: 140px; }
.ec-pied-contenu { padding-top: 48px; }
.ec-pied-aide { padding: 24px 28px; gap: 24px; }
.ec-pied .ec-pied-aide-titre { font-size: 18px; }
.ec-pied-aide p { font-size: 13.5px; margin-top: 6px; }
.ec-pied-boutons { grid-template-columns: 200px 200px; gap: 10px; }
.ec-pied-boutons .ec-bouton { min-height: 40px; font-size: 13.5px; }
.ec-pied-colonnes { margin-top: 36px; gap: 32px 48px; }
.ec-pied-marque { padding-bottom: 28px; }
.ec-pied-marque img { height: 36px; }
.ec-pied-marque p { font-size: 13px; }
.ec-reperes li { min-height: 26px; padding: 0 11px; font-size: 12px; }
.ec-pied h2 { font-size: 12px; margin-bottom: 12px; }
.ec-pied-liens a, .ec-pied-contact { font-size: 13px; }
.ec-pied-liens a { min-height: 28px; }
.ec-pied-contact .ec-icone { width: 28px; height: 28px; border-radius: 8px; }
.ec-pied-mentions { margin-top: 36px; padding-top: 18px; font-size: 12px; }

@media (max-width: 880px) {
  .ec-entete-contenu { padding: 10px 18px; min-height: 60px; }
  .ec-marque img { height: 34px; }
  .ec-principal { padding: 30px 18px 24px; }
  .ec-pied-boutons { grid-template-columns: 1fr; }
  .ec-actions-fiche .ec-actions, .ec-actions-fiche .ec-actions-pdf { grid-template-columns: 1fr 1fr; }
  .ec-apercu-tete { grid-template-columns: 34px minmax(0, 1fr) 36px; }
  .ec-apercu-boutons { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ec-ligne-detail { display: none; }
}
@media (max-width: 560px) {
  .ec-carte { padding: 18px 16px; }
  .ec-liste-simple li { gap: 8px; }
}
.ec-tuile-libelle, .ec-tuile-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================================================
   Mise en page (Laurent, 12/11/2026 16 h 55) : titres de page en colonne (plus de sous-titre rejeté à droite),
   pages de formulaire centrées sur une colonne étroite, textes longs limités à une largeur de lecture,
   pied de page symétrique et centré, revue des utilisateurs compacte.
   ========================================================================================================== */
.ec-titre-page { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
.ec-titre-page .ec-sous-titre { flex: none; max-width: 72ch; margin: 0; }
.ec-titre-page > div:first-child .ec-sous-titre { margin-top: 8px; }
.ec-principal:has(.ec-carte-formulaire):not(:has(.ec-tableau)) { max-width: 820px; }
.ec-carte-formulaire { max-width: none; }
.ec-carte p, .ec-carte .ec-texte-long, .ec-carte .ec-liste-points { max-width: 80ch; }
.ec-carte .ec-actions, .ec-formulaire .ec-actions { grid-template-columns: repeat(auto-fit, 190px); }

/* Pied de page : bloc de marque centré, puis trois colonnes (gauche, centre exact, droite), mentions centrées */
.ec-pied-colonnes { grid-template-columns: 1fr auto 1fr; gap: 32px 40px; }
.ec-pied-marque { grid-column: 1 / -1; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.ec-pied-marque p { flex: none; max-width: none; white-space: nowrap; }
.ec-pied-marque .ec-reperes { margin: 0; justify-content: center; }
.ec-pied-colonnes > :nth-child(2) { justify-self: start; }
.ec-pied-colonnes > :nth-child(3) { justify-self: center; }
.ec-pied-colonnes > :nth-child(4) { justify-self: end; }
@media (max-width: 1080px) { .ec-pied-marque p { white-space: normal; max-width: 60ch; } }
@media (max-width: 880px) {
  .ec-pied-colonnes { grid-template-columns: 1fr 1fr; }
  .ec-pied-colonnes > :nth-child(n) { justify-self: start; }
  .ec-pied-colonnes > nav:first-of-type { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .ec-pied-colonnes { grid-template-columns: 1fr; } }

/* Revue des utilisateurs */
.ec-tableau-revue td { white-space: nowrap; }
.ec-tableau-revue td.ec-cellule-formulaires { white-space: normal; min-width: 0; width: 1%; }
.ec-tableau-revue td .ec-pastille { margin-left: 8px; vertical-align: middle; }
.ec-choix-groupe { grid-template-columns: repeat(2, 132px); gap: 6px; }
.ec-choix { min-height: 32px; padding: 0 10px; gap: 8px; font-size: 12.5px; white-space: nowrap; border-radius: 8px; }
.ec-choix input[type="radio"] { width: 14px; height: 14px; }
.ec-revue-reponse { gap: 8px; }
@media (max-width: 1080px) { .ec-tableau-revue td { white-space: normal; } .ec-choix-groupe { grid-template-columns: 1fr 1fr; } }
/* Bandeau et barre alignés sur la colonne de contenu (1 240 px) : le logo tombe sur le bord gauche du contenu. */
@media (min-width: 881px) {
  .ec-entete-contenu, .ec-barre { padding-left: max(32px, calc((100% - var(--ax-max)) / 2 + 32px)); padding-right: max(32px, calc((100% - var(--ax-max)) / 2 + 32px)); }
}
/* Un libellé de bouton ne passe jamais sur deux lignes ; boutons d'une même zone de même largeur. */
.ec-bouton { white-space: nowrap; }
.ec-pied-boutons { grid-template-columns: 210px 210px; }
@media (min-width: 1081px) { .ec-pied-aide p { white-space: nowrap; } }
@media (max-width: 880px) { .ec-pied-boutons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ec-pied-boutons { grid-template-columns: 1fr; } }
.ec-titre-page .ec-sous-titre, .ec-titre-page > div:first-child .ec-sous-titre { max-width: 96ch; }
.ec-carte-formulaire { max-width: 820px; }
.ec-carte-formulaire .ec-formulaire { max-width: none; }
.ec-tableau td.ec-cellule-objet { max-width: 320px; }
.ec-choix-groupe { grid-template-columns: repeat(2, 144px); }
@media (max-width: 1080px) { .ec-choix-groupe { grid-template-columns: 1fr 1fr; } }
.ec-carte .ec-avertissement, .ec-carte .ec-alerte, .ec-carte .ec-note, .ec-carte .ec-message { max-width: none; }
.ec-apercu-pied .ec-bouton { min-width: 160px; }

/* ==========================================================================================================
   Passe de conception (12/11/2026 17 h 15), réglée sur le contrôle UI-09 du cahier :
   - toute cible cliquable fait au moins 44 px de haut (accessibilité, usage au doigt) : la légèreté vient du corps
     de texte, des marges, des ombres et des largeurs, pas d'une hauteur réduite ;
   - aucun texte coupé ni « … » : les contenus tiennent par la mise en page, et une donnée exceptionnellement
     longue revient à la ligne plutôt que d'être tronquée ;
   - aucun texte sous 12 px.
   ========================================================================================================== */
:root { --ax-cible: 44px; }
.ec-bouton, .ec-entete-actions .ec-bouton, .ec-actions-pdf .ec-bouton, .ec-actions-fiche .ec-actions-pdf .ec-bouton,
.ec-apercu-boutons .ec-bouton, .ec-bouton-ligne, .ec-recherche-ligne .ec-bouton, .ec-pied-boutons .ec-bouton,
.ec-bouton-grand, .ec-carte-connexion .ec-bouton, .ec-apercu-pied .ec-bouton { min-height: 44px; height: 44px; }
.ec-bouton { padding: 0 18px; font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(84,188,164,.22); }
.ec-bouton-secondaire, .ec-bouton-or, .ec-bouton-apercu, .ec-bouton-discret { box-shadow: none; }
.ec-entete-actions .ec-bouton { padding: 0 16px; font-size: 13px; }
.ec-apercu-fermer { width: 44px; height: 44px; }
.ec-zoom button { width: 40px; height: 44px; }
.ec-menu summary { min-height: 44px; }
.ec-segments a { min-height: 40px; }
.ec-recherche-ligne input, .ec-champ input:not([type="checkbox"]):not([type="file"]), .ec-champ select { height: 44px; }
.ec-revue-depart .ec-champ input, .ec-revue-depart .ec-champ select { height: 44px; }
.ec-choix { min-height: 40px; }
/* Tableaux : Aperçu et Télécharger en deux boutons carrés de 44 px, discrets (contour fin, sans fond plein). */
@media (min-width: 1081px) {
  .ec-tableau .ec-actions-pdf { grid-template-columns: 44px 44px; gap: 6px; }
  .ec-tableau .ec-actions-pdf .ec-bouton { width: 44px; height: 44px; padding: 0; background: transparent; border-color: rgba(255,255,255,.14); color: var(--ax-text-2); }
  .ec-tableau .ec-actions-pdf .ec-bouton-apercu { border-color: rgba(84,188,164,.45); color: var(--ax-teal-light); }
  .ec-tableau .ec-actions-pdf .ec-bouton:hover { border-color: var(--ax-teal); color: var(--ax-title); background: rgba(84,188,164,.1); }
  .ec-tableau td { height: 62px; }
}
/* Aucun texte tronqué */
.ec-liste-simple li, .ec-liste-simple .ec-ligne-texte, .ec-liste-simple .ec-ligne-texte > *, .ec-liste-encadree .ec-ligne-texte > * { white-space: normal; overflow: visible; text-overflow: clip; }
.ec-liste-simple .ec-ligne-texte .ec-lien-ligne.ec-insecable, .ec-liste-simple .ec-insecable, .ec-ligne-detail, .ec-liste-simple .ec-ligne-droite { white-space: nowrap; }
.ec-tuile-libelle, .ec-tuile-detail { overflow: visible; text-overflow: clip; }
.ec-tuile-valeur { font-size: clamp(20px, 9cqi, 1.6rem); }
.ec-tableau td.ec-cellule-objet { max-width: 340px; overflow: visible; text-overflow: clip; white-space: normal; }
.ec-apercu-titre h2, .ec-apercu-titre p { white-space: normal; overflow: visible; text-overflow: clip; }
.ec-mention { white-space: normal; }
/* Accueil : une carte seule sur sa rangée prend toute la largeur (pas de trou à droite). */
@media (min-width: 1081px) { .ec-grille-familles > .ec-carte-famille:nth-child(odd):is(:last-child, :has(+ .ec-interlocuteur)) { grid-column: 1 / -1; } }
/* Corrections du contrôle UI-09 (17 h 30) */
.ec-liste-simple .ec-ligne-texte .ec-lien-ligne, .ec-liste-encadree .ec-ligne-texte .ec-lien-ligne { overflow: visible; text-overflow: clip; white-space: normal; }
.ec-tableau td { white-space: normal; }
.ec-tableau td.ec-num, .ec-tableau td .ec-insecable, .ec-tableau td .ec-pastille, .ec-tableau td.ec-cellule-actions { white-space: nowrap; }
@media (min-width: 1081px) { .ec-tableau .ec-actions-pdf .ec-bouton-libelle { position: static; width: auto; height: auto; clip: auto; display: none; } }
/* N2 : bouton seul (Vos documents) : une colonne de 44 px, pas une seconde colonne vide. */
@media (min-width: 1081px) { .ec-tableau .ec-actions-pdf.ec-actions-un { grid-template-columns: 44px; justify-content: end; } }
.ec-choix-groupe { grid-template-columns: 1fr 1fr; }
@media (min-width: 1081px) { .ec-choix-groupe { grid-template-columns: repeat(2, 144px); } }
.ec-tableau-revue td .ec-pastille { margin: 4px 0 0; }
.ec-tableau-revue td > span:has(> .ec-pastille) { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
/* Groupes de boutons : tous de la largeur du plus long libellé, jamais rognés. */
@media (min-width: 881px) {
  .ec-actions, .ec-carte .ec-actions, .ec-formulaire .ec-actions, .ec-actions-fiche .ec-actions, .ec-revue-formulaire .ec-actions, .ec-actions-larges {
    display: inline-grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); }
  .ec-actions .ec-bouton { width: 100%; }
  .ec-carte .ec-actions, .ec-vide .ec-actions { display: grid; width: max-content; max-width: 100%; }
}
.ec-tuile-detail { white-space: normal; }
.ec-choix-groupe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-choix { white-space: normal; line-height: 1.25; }
@media (min-width: 1081px) { .ec-choix-groupe { grid-template-columns: repeat(2, 144px); } .ec-choix { white-space: nowrap; } }
@media (max-width: 560px) { .ec-choix-groupe { grid-template-columns: 1fr; } }
@media (max-width: 880px) {
  .ec-actions, .ec-carte .ec-actions, .ec-formulaire .ec-actions, .ec-actions-fiche .ec-actions, .ec-revue-formulaire .ec-actions, .ec-actions-larges { display: grid; grid-template-columns: 1fr; width: 100%; }
}
@media (max-width: 1080px) { .ec-tableau td.ec-cellule-actions { white-space: normal; } }
@media (max-width: 560px) {
  .ec-liste-simple li { flex-wrap: wrap; row-gap: 4px; }
  .ec-liste-simple .ec-ligne-texte { flex-basis: 100%; }
  .ec-liste-simple .ec-pastille { margin-left: 16px; }
  .ec-liste-simple .ec-ligne-droite { margin-left: auto; }
}
/* Tableaux sur ordinateur : objet et mention d'état sur une ligne quand la place le permet. */
@media (min-width: 1081px) {
  .ec-tableau td.ec-cellule-objet { max-width: none; white-space: nowrap; }
  .ec-tableau td .ec-mention { white-space: nowrap; }
}

/* ==========================================================================================================
   Code couleur commun (Laurent, 17 h 34) : un état = une couleur du logo + un libellé court, sur une seule ligne,
   légende sous les listes de l'accueil. Vert d'eau : réglé / accepté / reconduit. Bleu : à régler. Or : en retard ou
   en attente de votre part. Violet : réglé en partie. Gris : expiré ou refusé.
   ========================================================================================================== */
.ec-pastille-ok { --p: 84,188,164; color: var(--ax-teal-light); }
.ec-pastille-info { --p: 46,143,216; color: var(--ax-text-2); }
.ec-pastille-retard { --p: 228,188,41; color: var(--ax-gold); }
.ec-pastille-partiel { --p: 0,102,169; color: var(--ax-blue); }
.ec-pastille-neutre { --p: 141,163,184; color: var(--ax-text-3); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.ec-pastille { white-space: nowrap; }
.ec-ton-ok { --t: 84,188,164; } .ec-ton-info { --t: 46,143,216; } .ec-ton-retard { --t: 228,188,41; } .ec-ton-partiel { --t: 0,102,169; } .ec-ton-neutre { --t: 141,163,184; } .ec-ton-attente { --t: 228,188,41; }
.ec-point-etat { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--t)); box-shadow: 0 0 0 3px rgba(var(--t),.18); }

/* Petit tableau des cartes de l'accueil : colonnes alignées, une ligne par élément */
.ec-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ec-mini th { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ax-text-4); text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--ax-line); white-space: nowrap; }
.ec-mini td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--ax-text-2); white-space: nowrap; vertical-align: middle; }
.ec-mini tbody tr:last-child td { border-bottom: 0; }
.ec-mini .ec-mini-point { width: 22px; padding-right: 0; }
.ec-mini th:first-child { width: 22px; }
.ec-mini .ec-mini-titre { color: var(--ax-title-2); width: 100%; white-space: normal; }
.ec-mini .ec-mini-titre .ec-lien-ligne { font-weight: 600; }
.ec-mini .ec-mini-droite { text-align: right; padding-left: 24px; }
.ec-mini td.ec-mini-droite:last-child { color: var(--ax-title-2); font-weight: 600; }
.ec-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed rgba(255,255,255,.08); font-size: 12px; color: var(--ax-text-3); }
.ec-legende li { display: inline-flex; align-items: center; gap: 8px; }
.ec-legende li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--t)); }
.ec-carte-famille .ec-lien-fleche { margin-top: auto; }

/* Bandeau « Besoin d'aide ? » : texte à gauche, boutons à droite, jamais superposés */
.ec-pied-aide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
.ec-pied-aide > div:first-child { min-width: 0; }
.ec-pied-aide p { white-space: normal; }
@media (min-width: 1081px) { .ec-pied-aide p { white-space: normal; } }
@media (max-width: 1080px) { .ec-pied-aide { grid-template-columns: 1fr; row-gap: 18px; } }

/* Pied de page en largeur moyenne : « Votre espace » sur toute la ligne, puis Ax2lan à gauche et « Nous trouver » à droite */
@media (max-width: 1080px) and (min-width: 561px) {
  .ec-pied-colonnes { grid-template-columns: repeat(2, max-content); justify-content: space-between; }
  .ec-pied-colonnes > nav:first-of-type { grid-column: 1 / -1; justify-self: start; }
  .ec-pied-colonnes > :nth-child(3) { justify-self: start; }
  .ec-pied-colonnes > :nth-child(4) { justify-self: end; }
}

/* Tableaux : bandeau d'en-tête uni, une seule ligne de séparation */
.ec-tableau thead th { background: rgba(255,255,255,.025); border-bottom: 1px solid var(--ax-line); }
.ec-tableau tbody td { border-top: 1px solid rgba(255,255,255,.05); }
.ec-tableau tbody tr:first-child td { border-top: 0; }
/* Échéances : mêmes colonnes d'un tableau de famille à l'autre */
@media (min-width: 1081px) {
  .ec-tableau-echeances { table-layout: fixed; }
  .ec-tableau-echeances th:nth-child(2) { width: 96px; } .ec-tableau-echeances th:nth-child(3) { width: 112px; }
  .ec-tableau-echeances th:nth-child(4) { width: 130px; } .ec-tableau-echeances th:nth-child(5) { width: 112px; }
  .ec-tableau-echeances th:nth-child(6) { width: 210px; } .ec-tableau-echeances th:nth-child(7) { width: 140px; }
  .ec-tableau-echeances th:nth-child(8) { width: 120px; }
  .ec-tableau-echeances td.ec-cellule-titre { white-space: normal; }
  /* Boutons de ligne Aperçu / Télécharger : sans cadre, fond léger au survol */
  .ec-tableau .ec-actions-pdf .ec-bouton, .ec-tableau .ec-actions-pdf .ec-bouton-apercu { border-color: transparent; background: rgba(255,255,255,.04); }
  .ec-tableau .ec-actions-pdf .ec-bouton-apercu { background: rgba(84,188,164,.10); }
}
.ec-mini th:first-child, .ec-mini .ec-mini-point { width: 1%; min-width: 20px; padding-right: 12px; }
.ec-mini .ec-mini-titre { width: auto; }
.ec-mini .ec-mini-droite { width: 1%; }
.ec-pied ul.ec-pied-liens { display: grid; row-gap: 4px; }
.ec-pied-liens a { height: 28px; min-height: 28px; line-height: 28px; }
.ec-en-ligne { color: var(--ax-text-4); font-size: 12.5px; white-space: nowrap; }
@media (min-width: 1081px) { .ec-tableau-echeances th:nth-child(4) { width: 196px; } .ec-tableau-echeances td:nth-child(4) { white-space: nowrap; } }
/* Tableaux sur ordinateur : tout tient dans la carte, boutons compris (marges de cellule resserrées). */
@media (min-width: 1081px) {
  .ec-tableau th, .ec-tableau td { padding-left: 11px; padding-right: 11px; }
  .ec-tableau th:first-child, .ec-tableau td:first-child { padding-left: 20px; }
  .ec-tableau th:last-child, .ec-tableau td:last-child { padding-right: 16px; }
}
@media (min-width: 1081px) and (max-width: 1240px) { .ec-tableau td.ec-cellule-objet, .ec-tableau td .ec-mention { white-space: normal; } }

/* Revue des utilisateurs (17 h 44) : choix en interrupteur Présent / Parti, états par code couleur + légende */
.ec-choix-groupe { display: inline-grid; grid-template-columns: repeat(2, 92px); gap: 0; padding: 3px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.ec-choix { position: relative; justify-content: center; min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ax-text-3); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.ec-choix:hover { color: var(--ax-title); background: rgba(255,255,255,.05); }
.ec-choix input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ec-choix-present:has(input:checked) { background: rgba(84,188,164,.2); color: var(--ax-teal-light); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(84,188,164,.55); }
.ec-choix-parti:has(input:checked) { background: rgba(228,188,41,.16); color: var(--ax-gold); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(228,188,41,.5); }
.ec-choix:has(input:focus-visible) { outline: 2px solid var(--ax-gold); outline-offset: 2px; }
@media (min-width: 1081px) { .ec-choix-groupe { grid-template-columns: repeat(2, 92px); } .ec-tableau-revue td.ec-cellule-formulaires { width: 1%; } }
@media (max-width: 1080px) { .ec-choix-groupe { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 260px; } }
@media (max-width: 560px) { .ec-choix-groupe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-tableau td.ec-cellule-titre .ec-mention { font-weight: 400; color: var(--ax-text-4); margin-top: 2px; }
.ec-personne { display: inline-flex; align-items: center; gap: 8px; }
.ec-personne-coupee strong { color: var(--ax-text-3); }
.ec-date-etat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ec-date-etat.ec-ton-retard { color: var(--ax-gold); }
.ec-tableau-revue + .ec-legende, .ec-tableau-cadre + .ec-legende { margin-top: 10px; border-top: 0; padding-top: 0; }
.ec-tableau-revue td { vertical-align: middle; }
/* Départ : les champs s'ouvrent sur une ligne pleine largeur sous la personne (plus de colonne étroite et haute). */
.ec-tableau-revue tr.ec-ligne-depart { display: none; }
.ec-tableau-revue tr:has(input[value="parti"]:checked) + tr.ec-ligne-depart { display: table-row; }
.ec-tableau-revue tr:has(input[value="parti"]:checked) td { border-bottom: 0; }
.ec-tableau-revue tr.ec-ligne-depart td { border-top: 0; height: auto; padding-top: 0; padding-bottom: 16px; background: rgba(228,188,41,.04); }
.ec-tableau-revue tr:has(input[value="parti"]:checked) > td { background: rgba(228,188,41,.04); }
.ec-tableau-revue .ec-revue-depart { display: grid; grid-template-columns: 170px 220px minmax(200px, 1fr) minmax(200px, 1fr); gap: 8px 16px; align-items: end; padding: 12px 16px; border-radius: 10px; border: 1px dashed rgba(228,188,41,.35); }
.ec-tableau-revue .ec-revue-depart > .ec-aide { grid-column: 1 / -1; margin: 0; color: var(--ax-gold); font-weight: 500; }
.ec-tableau-revue .ec-revue-depart:not(:has(select)) { grid-template-columns: 170px minmax(200px, 1fr); }
.ec-choix-present:has(input:checked) { background: rgba(84,188,164,.28); }
@media (max-width: 1080px) {
  .ec-tableau-revue tr:has(input[value="parti"]:checked) + tr.ec-ligne-depart { display: block; }
  .ec-tableau-revue tr.ec-ligne-depart td { display: block; padding: 0 12px 12px; }
  .ec-tableau-revue tr.ec-ligne-depart td::before { display: none; }
  .ec-tableau-revue .ec-revue-depart, .ec-tableau-revue .ec-revue-depart:not(:has(select)) { grid-template-columns: 1fr; }
}
.ec-choix-present:has(input:checked) { background: var(--ax-teal); color: var(--ax-on-teal); box-shadow: none; }
.ec-choix-parti:has(input:checked) { background: var(--ax-gold); color: var(--ax-bg); box-shadow: none; }
/* Carte de connexion : le bouton occupe toute la largeur du formulaire. */
@media (min-width: 881px) { .ec-carte-connexion .ec-actions { display: grid; width: 100%; grid-auto-columns: 1fr; } }
/* Page de connexion (17 h 52) : la colonne de gauche a la hauteur de la carte de connexion — titre aligné sur le haut
   de la carte, garanties alignées sur son bas — et les garanties deviennent de petits blocs titrés, plus denses. */
@media (min-width: 881px) {
  .ec-accueil-public { align-items: stretch; }
  .ec-accueil-public > section:first-child { display: flex; flex-direction: column; justify-content: space-between; padding: 30px 0 26px; }
  .ec-accueil-public .ec-garanties { margin-top: 32px; gap: 10px; }
  .ec-accueil-public .ec-garanties li { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); font-size: 14px; color: var(--ax-text-2); }
}
/* Pied de page public : même plan de rubriques que dans l'espace (chaque lien mène à la connexion), accès mis en avant. */
.ec-pied-liens a.ec-pied-acces { color: var(--ax-teal-light); font-weight: 600; }
.ec-pied-liens a.ec-pied-acces:hover { color: var(--ax-title); }
/* Connexion par mot de passe (décision du 12/11, 18 h 50) : lien discret, séparateur titré, indicateur d'étape. */
.ec-lien-discret { align-self: flex-end; font-size: 12.5px; font-weight: 500; color: var(--ax-text-3); text-decoration: none; }
.ec-lien-discret:hover { color: var(--ax-teal); text-decoration: underline; }
.ec-separateur-texte { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 12.5px; color: var(--ax-text-4); }
.ec-separateur-texte::before, .ec-separateur-texte::after { content: ""; flex: 1; height: 1px; background: var(--ax-line); }
.ec-actions-seule { margin: 0; }
@media (min-width: 881px) { .ec-carte-connexion .ec-actions-seule { display: grid; width: 100%; grid-auto-columns: 1fr; } }
.ec-carte-connexion .ec-actions-seule .ec-bouton { width: 100%; }
.ec-etape { margin: 0; }
.ec-etape span { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--ax-teal-light); background: rgba(84,188,164,.12); border: 1px solid rgba(84,188,164,.35); }
.ec-retour { margin: 18px 0 0; text-align: center; }
.ec-carte-connexion [data-demo-etape="3"] .ec-note { margin: 0 0 16px; }
[hidden] { display: none !important; }
@media (min-width: 881px) {
  .ec-accueil-public > section:first-child { justify-content: flex-start; }
  .ec-accueil-public .ec-garanties { margin-top: auto; padding-top: 28px; }
}
/* Session V1 : en présentation en cartes (≤ 1080 px), la hauteur fixe des cellules (règle « height: 58px » plus haut, sans
   condition) faisait déborder les formulaires d'une carte sur la suivante (« Utilisateurs de ma société », 375 à 768 px).
   Sous 480 px, le libellé passe au-dessus de la valeur : une adresse e-mail n'est plus coupée au milieu d'un mot. */
@media (max-width: 1080px) {
  .ec-tableau td { height: auto; white-space: normal; }
}
@media (max-width: 480px) {
  .ec-tableau td { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ec-tableau td > * { grid-column: 1; }
  .ec-tableau td[data-libelle] { overflow-wrap: break-word; }
}
/* Session V1 : « Vos utilisateurs » sur téléphone et tablette — la largeur « 1% » de la cellule des réponses (ligne
   .ec-tableau-revue td.ec-cellule-formulaires, sans condition) réduisait la cellule à 38 px : « Présent » et « Parti »
   superposés et illisibles. En cartes, la cellule et son groupe de choix prennent toute la largeur de la carte. */
@media (max-width: 1080px) {
  .ec-tableau-revue td.ec-cellule-formulaires { width: 100%; }
  .ec-tableau-revue td.ec-cellule-formulaires .ec-revue-reponse { justify-self: stretch; width: 100%; min-width: 0; }
}
/* Session V1 : pages de connexion (mot de passe, première connexion) — deux boutons de même largeur (règle C1). */
/* Relecture design : côte à côte, « Créer mon mot de passe » / « Recevoir un autre code » touchaient les bords de leurs boutons.
   Empilés en pleine largeur à toutes les tailles, comme la maquette de connexion validée (un bouton par ligne). */
.ec-carte-connexion .ec-actions.ec-actions-egales { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; width: 100%; max-width: none; }
/* Session V1 : à 375 px, un libellé long (« Afficher toutes les propositions commerciales ») ne tenait pas sur une ligne et
   faisait défiler la page horizontalement. Sur téléphone, le libellé d'un bouton d'action passe à la ligne (jamais coupé). */
@media (max-width: 480px) {
  .ec-actions { grid-template-columns: minmax(0, 1fr); }
  .ec-actions .ec-bouton { white-space: normal; text-wrap: balance; height: auto; min-height: var(--ax-cible); padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
}
/* Session V1 : à 375 px, « 4 800,00 € TTC » dépassait sa tuile de 4 px (plancher de 20 px) ; plancher à 18 px sur téléphone. */
@media (max-width: 480px) { .ec-tuile-valeur { font-size: clamp(18px, 9cqi, 1.6rem); } }
/* Session V1 : aperçu PDF sur tablette et téléphone — la largeur fixe de la bande des miniatures (« width: 128px », sans
   condition) l'emportait sur la présentation en rangée : miniature décalée de son cadre de sélection, et ~215 px de hauteur
   perdus. Sur tablette, rangée de miniatures ; sur téléphone, miniatures masquées (les pages défilent dans la vue, le nombre
   de pages est dans l'en-tête), toute la hauteur va au document. */
@media (max-width: 1080px) {
  .ec-apercu-pages { width: auto; padding: 10px 16px; }
  .ec-apercu-pages button { width: 56px; flex: none; }
}
@media (max-width: 600px) { .ec-apercu-pages { display: none; } }
/* Session V1 : la miniature est dessinée avec une largeur en style en ligne (rendu PDF.js) ; elle doit épouser son bouton (et
   son cadre de sélection) quelle que soit la largeur de la bande. */
.ec-apercu-pages canvas { width: 100% !important; height: auto !important; }
/* Session V1 : pied de page sur téléphone — « Propositions commerciales » passait sur deux lignes dans un lien de hauteur fixe
   (28 px) et chevauchait « Échéances ». Hauteur libre, interligne normal, puce alignée sur la première ligne. */
@media (max-width: 480px) {
  .ec-pied-liens a { height: auto; line-height: 1.35; align-items: flex-start; padding: 4px 0; }
  #pied-votre-espace + ul.ec-pied-liens { row-gap: 6px; }
}
/* Session V1 (relecture design) : à 375 px, le tableau « Factures non réglées » de l'accueil dépassait sa carte de 20 px
   (marges de 24 px des colonnes de droite). */
@media (max-width: 480px) {
  .ec-mini td.ec-mini-droite, .ec-mini th.ec-mini-droite { padding-left: 10px; }
}
/* Session V1 (relecture design) : pied de l'aperçu d'une proposition — colonnes de 150 px pour des boutons de 160 px :
   « Refuser » et « Accepter et signer » se chevauchaient et sortaient du cadre. Deux colonnes égales de 180 px. */
@media (min-width: 601px) {
  .ec-apercu-pied .ec-apercu-boutons { grid-template-columns: repeat(2, 180px); gap: 10px; }
  .ec-apercu-pied .ec-apercu-boutons .ec-bouton { width: 100%; }
}
/* Session V1 (relecture design) : fiche d'une proposition — Aperçu/Télécharger (180 px) et Accepter/Refuser (170 px) sur une
   même ligne : même largeur pour les quatre ; sur tablette, deux par ligne comme les boutons PDF. */
@media (min-width: 1081px) {
  .ec-actions-fiche .ec-actions, .ec-actions-fiche .ec-actions-pdf { grid-template-columns: repeat(2, 180px); }
  .ec-actions-fiche .ec-bouton { width: 100%; }
}
@media (min-width: 481px) and (max-width: 1080px) {
  .ec-actions-fiche .ec-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* « Utilisateurs de ma société » : « Enregistrer le rôle » et « Couper l'accès de … » de même largeur (cellule pleine). */
.ec-cellule-formulaires .ec-actions { grid-template-columns: minmax(0, 1fr); width: 100%; }
.ec-cellule-formulaires .ec-bouton { width: 100%; }
.ec-tableau td.ec-cellule-formulaires > form { justify-self: stretch; width: 100%; max-width: none; }
/* Session V1 (relecture design), tablette : quatre indicateurs en 2 × 2 (et non 3 + 1) ; bloc « marque » du pied (logo, phrase,
   repères) sur toute la largeur et centré, comme sur ordinateur et téléphone. */
@media (min-width: 481px) and (max-width: 1080px) {
  .ec-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-pied-marque { width: 100%; justify-self: stretch; flex-direction: column; align-items: center; text-align: center; }
  .ec-pied-marque p { flex: none; }
  .ec-pied-marque .ec-reperes { margin: 0 auto; justify-content: center; }
}
/* Session V1 (relecture design) : filtres de « Propositions » à 375 px — libellés sur trois lignes ; typographie resserrée et
   espaces insécables (« Non acceptées », « Plus récentes ») : deux lignes au plus. */
@media (max-width: 480px) { .ec-segments a { font-size: 12.5px; padding: 4px 5px; letter-spacing: 0; } }
/* Fiche d'une proposition sur téléphone : quatre boutons en deux colonnes égales (Aperçu/Télécharger, Accepter/Refuser). */
@media (max-width: 480px) { .ec-actions-fiche .ec-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Session V1 (relecture design) : « Inviter une personne » occupait 62 % de la largeur à 1440 px (vide à droite) ; sur
   ordinateur, la carte prend toute la largeur et ses champs se rangent sur deux colonnes. */
@media (min-width: 1081px) {
  .ec-carte-formulaire:has(.ec-formulaire-invitation) { max-width: none; width: 100%; }
  .ec-formulaire-invitation { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; max-width: none; }
  .ec-formulaire-invitation > input[type="hidden"] { display: none; }
  .ec-formulaire-invitation > .ec-champ:has(input[type="checkbox"]), .ec-formulaire-invitation > .ec-actions { grid-column: 1 / -1; }
}
/* Fiche d'une proposition à 375 px : les quatre boutons gardent la même hauteur quand un libellé passe sur deux lignes. */
@media (max-width: 480px) { .ec-actions-fiche .ec-actions, .ec-actions-fiche .ec-actions-pdf { grid-auto-rows: 1fr; align-items: stretch; } .ec-actions-fiche .ec-bouton { min-height: 57px; height: auto; } }
@media (max-width: 480px) { .ec-actions-fiche .ec-actions-pdf .ec-bouton, .ec-actions-fiche .ec-actions .ec-bouton { min-height: 57px; height: auto; } }
/* Session V1 (seconde relecture design) */
/* Tablette : les trois colonnes du pied sur une rangée (plus de rangée à moitié vide) ; indicateurs 2 × 2 alignés à gauche. */
@media (min-width: 481px) and (max-width: 1080px) {
  .ec-pied-colonnes { grid-template-columns: repeat(3, max-content); justify-content: space-between; column-gap: 28px; }
  .ec-pied-colonnes > .ec-pied-colonne, .ec-pied-colonnes > nav.ec-pied-colonne:first-of-type { grid-column: auto; grid-row: auto; justify-self: start; }
  .ec-chiffres > :nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .ec-apercu-pied .ec-apercu-boutons { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (min-width: 1081px) { .ec-apercu-pied .ec-apercu-boutons { grid-template-columns: repeat(2, 180px); width: auto; } }
/* Téléphone : puces alignées sur la première ligne du libellé ; fiche d'une proposition, quatre boutons empilés pleine largeur. */
@media (max-width: 480px) {
  .ec-pied-liens a .ec-puce { margin-top: .5em; flex: none; }
  .ec-actions-fiche, .ec-actions-fiche .ec-actions, .ec-actions-fiche .ec-actions-pdf { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .ec-actions-fiche .ec-actions-pdf .ec-bouton, .ec-actions-fiche .ec-actions .ec-bouton { min-height: var(--ax-cible); }
}
/* « Vos utilisateurs » en cartes : le sélecteur Présent/Parti occupe toute la largeur de la carte. */
@media (max-width: 1080px) {
  .ec-tableau-revue .ec-choix-groupe { max-width: none; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Puces des listes de cartes alignées sur la première ligne du libellé (un libellé sur deux lignes ne laisse plus la puce entre deux lignes). */
.ec-liste-simple li { align-items: flex-start; }
.ec-liste-simple li::before { margin-top: calc((1.5em - 6px) / 2); }
.ec-liste-simple .ec-ligne-droite { align-self: flex-start; }

/* ---------- Contre-recette V2 (relecture design sur captures) ---------- */
/* « Déconnecter tous mes appareils » touchait les bords de son bouton (4 px) : colonnes de 260 à 300 px, une colonne sur téléphone. */
.ec-deconnexion { grid-template-columns: repeat(auto-fit, minmax(260px, 300px)); }
@media (max-width: 480px) { .ec-deconnexion { grid-template-columns: 1fr; } }
/* Filtres en segments (« Toutes · 3 », « Non acceptées · 2 », « Acceptées · 1 ») : sur téléphone, « Non acceptées · 2 » passait sur deux
   lignes dans sa pastille ; ce groupe seul (libellé de plus de 14 caractères) s'empile, de même largeur, chaque libellé sur une ligne. */
@media (max-width: 480px) {
  .ec-segments-longs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; }
  .ec-segments-longs a { white-space: nowrap; padding: 0 16px; }
}
/* N2 : identifiants techniques (UUID) des tableaux d'administration : coupables à n'importe quel caractère, le tableau reste dans son cadre. */
.ec-tableau td span.ec-mention.ec-identifiant { display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-all; max-width: 190px; }
/* F2 · restes UI (L4T-UI-2) */
/* « Refuser » : bordure des boutons secondaires (plus de bordure or) ; la classe ec-bouton-or reste portée par le bouton. */
.ec-bouton-or { border-color: var(--ax-line-strong); }
.ec-bouton-or:hover { border-color: var(--ax-teal); }
/* « Présent / Parti » : l'option choisie porte un signe en plus de la couleur ; colonnes élargies pour que « ✓ Présent » ne soit jamais coupé. */
.ec-choix:has(input:checked)::before { content: "\2713"; font-weight: 700; }
.ec-choix:has(input:checked) { gap: 6px; }
@media (min-width: 1081px) { .ec-choix-groupe { grid-template-columns: repeat(2, 104px); } }

/* F2 · dossier de proposition : documents joints */
.ec-liste-documents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ec-liste-documents li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-top: 1px solid var(--ax-line); }
.ec-liste-documents li:first-child { border-top: 0; }
.ec-liste-documents a { overflow-wrap: anywhere; }
