/* ============================================================
   cse/theme-bertholon.css — Charte du site www.bertholon-sa.com appliquée au module « CSE » (04/12/2026)
   Jetons repris EXACTEMENT de SITE_BERTHOLON/src/statique/css/site.css (couleurs, polices, arrondis, ombres, boutons).
   Tout est limité à la classe racine .module-cse : rien ne déborde sur le reste de Popey.
   ============================================================ */
@font-face { font-family: "Urbanist"; src: url("/cse/polices/urbanist-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/cse/polices/plexmono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/cse/polices/plexmono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.module-cse {
  --bt-accent: #04a0db;          /* bleu ciel BERTHOLON */
  --bt-accent-texte: #0277a6;    /* bleu lisible sur fond clair (contraste ≥ 4,5:1) */
  --bt-encre: #071b30;           /* noir bleuté du site */
  --bt-papier: #f2f6fa;
  --bt-blanc: #ffffff;
  --bt-trait: #dbe4ec;
  --bt-gris: #51627a;
  --bt-gris-clair: #b4c4d6;
  --bt-jalon: #f5b301;
  --bt-ok: #0f7b4f;
  --bt-alerte: #b45309;
  --bt-erreur: #b42318;
  --bt-arrondi: 14px;
  --bt-ombre: 0 1px 2px rgba(7, 27, 48, 0.06), 0 14px 34px -18px rgba(7, 27, 48, 0.28);
  --bt-police: "Urbanist", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bt-police-technique: "Plex Mono", ui-monospace, Consolas, monospace;
  --bt-ressort: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--bt-police); font-size: 16px; color: var(--bt-encre); background: var(--bt-papier);
  min-height: 100%; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.module-cse *, .module-cse *::before, .module-cse *::after { box-sizing: border-box; }
.module-cse h1, .module-cse h2, .module-cse h3 { font-family: var(--bt-police); font-weight: 800; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.module-cse h1 { font-size: 1.6rem; } .module-cse h2 { font-size: 1.2rem; } .module-cse h3 { font-size: 1rem; }
.module-cse .chiffres, .module-cse td.n, .module-cse .n { font-variant-numeric: tabular-nums; }
.module-cse a { color: var(--bt-accent-texte); }

/* En-tête du module : logo BERTHOLON, comme l'en-tête du site */
.cse-entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bt-trait); }
.cse-entete img { height: 30px; width: auto; display: block; }
.cse-entete .cse-titre { font-weight: 800; font-size: 0.95rem; color: var(--bt-gris); padding-left: 14px; border-left: 1px solid var(--bt-trait); }
.cse-entete .cse-espace { flex: 1; }
.cse-corps { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 120px; display: flex; flex-direction: column; gap: 22px; }

/* Onglets */
.cse-onglets { display: flex; gap: 6px; flex-wrap: wrap; }
.cse-onglet { appearance: none; border: 2px solid transparent; background: transparent; color: var(--bt-gris); font: inherit; font-weight: 700; font-size: 0.9rem;
  padding: 9px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cse-onglet:hover { color: var(--bt-encre); background: var(--bt-blanc); }
.cse-onglet[aria-current="true"] { background: var(--bt-encre); color: var(--bt-blanc); }

/* Boutons : ceux du site (pilule, graisse 800, petites capitales) */
.cse-bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; min-height: 44px; border: 2px solid transparent;
  border-radius: 999px; font: inherit; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: background 0.25s var(--bt-ressort), color 0.25s, box-shadow 0.25s, transform 0.25s var(--bt-ressort); }
.cse-bouton:active { transform: translateY(1px); }
.cse-bouton--accent { background: var(--bt-accent); color: var(--bt-blanc); box-shadow: 0 10px 30px -10px var(--bt-accent); }
.cse-bouton--accent:hover { background: var(--bt-encre); }
.cse-bouton--encre { background: var(--bt-encre); color: var(--bt-blanc); }
.cse-bouton--encre:hover { background: var(--bt-accent); box-shadow: 0 10px 30px -10px var(--bt-accent); }
.cse-bouton--contour { border-color: var(--bt-encre); color: var(--bt-encre); background: transparent; }
.cse-bouton--contour:hover { background: var(--bt-encre); color: var(--bt-blanc); }
.cse-bouton--danger { border-color: var(--bt-erreur); color: var(--bt-erreur); background: transparent; }
.cse-bouton--danger:hover { background: var(--bt-erreur); color: var(--bt-blanc); }
.cse-bouton[disabled] { opacity: 0.45; cursor: not-allowed; }
.module-cse :focus-visible { outline: 3px solid var(--bt-accent); outline-offset: 2px; }

/* Surfaces : une seule profondeur (pas de cartes imbriquées) */
.cse-surface { background: var(--bt-blanc); border: 1px solid var(--bt-trait); border-radius: var(--bt-arrondi); box-shadow: var(--bt-ombre); padding: clamp(16px, 3vw, 26px); }
.cse-ligne { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cse-muet { color: var(--bt-gris); font-size: 0.9rem; }
.cse-technique { font-family: var(--bt-police-technique); font-size: 0.8rem; color: var(--bt-gris); }

/* Le solde : seul grand chiffre du module */
.cse-solde { font-size: clamp(3rem, 12vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cse-jauge { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bt-papier); border: 1px solid var(--bt-trait); }
.cse-jauge span { display: block; height: 100%; width: 0; transition: width 1.1s var(--bt-ressort); }
@media (prefers-reduced-motion: reduce) { .cse-jauge span { transition: none; } .cse-bouton { transition: none; } }
.cse-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--bt-gris); }
.cse-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Barres mensuelles */
.cse-barres { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 120px; }
.cse-barres div { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.cse-barres b { display: block; border-radius: 4px 4px 0 0; min-height: 2px; }
.cse-barres small { text-align: center; font-size: 0.7rem; color: var(--bt-gris); }

/* Statuts : pastille + texte (jamais la couleur seule) */
.cse-statut { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cse-statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cse-statut--en_attente { color: #8a5a00; background: #fff4d6; }
.cse-statut--complement_demande { color: #9a3412; background: #ffedd5; }
.cse-statut--validee { color: var(--bt-accent-texte); background: #e3f4fb; }
.cse-statut--payee { color: var(--bt-ok); background: #e4f5ec; }
.cse-statut--refusee { color: var(--bt-erreur); background: #fdecea; }

/* Listes et tableaux sobres */
.cse-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cse-liste li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bt-trait); min-height: 44px; }
.cse-liste li:first-child { border-top: none; }
.cse-table-zone { overflow-x: auto; }
.cse-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cse-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bt-gris); font-weight: 800; padding: 8px 10px; border-bottom: 2px solid var(--bt-trait); white-space: nowrap; }
.cse-table td { padding: 10px; border-bottom: 1px solid var(--bt-trait); vertical-align: middle; }
.cse-table td.n, .cse-table th.n { text-align: right; white-space: nowrap; }
.cse-table tr.cse-cliquable { cursor: pointer; } .cse-table tr.cse-cliquable:hover td { background: var(--bt-papier); }

/* Formulaires : une colonne, grandes cibles */
.cse-champ { display: flex; flex-direction: column; gap: 6px; }
.cse-champ > span { font-weight: 700; font-size: 0.88rem; }
.cse-champ input, .cse-champ select, .cse-champ textarea { font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--bt-gris-clair); border-radius: 10px; background: var(--bt-blanc); color: var(--bt-encre); width: 100%; }
.cse-champ input:focus, .cse-champ select:focus, .cse-champ textarea:focus { border-color: var(--bt-accent); outline: none; box-shadow: 0 0 0 3px rgba(4, 160, 219, 0.2); }
.cse-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cse-tuile { appearance: none; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 92px; border: 2px solid var(--bt-trait);
  border-radius: 12px; background: var(--bt-blanc); color: var(--bt-encre); cursor: pointer; }
.cse-tuile svg { width: 26px; height: 26px; stroke: var(--bt-accent-texte); }
.cse-tuile strong { font-size: 0.95rem; }
.cse-tuile[aria-pressed="true"] { border-color: var(--bt-accent); background: #e9f7fd; }
.cse-tuile:hover { border-color: var(--bt-accent); }
.cse-coche { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; padding: 12px; border-radius: 10px; background: var(--bt-papier); cursor: pointer; }
.cse-coche input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--bt-accent); }
.cse-message { padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; }
.cse-message--erreur { background: #fdecea; color: var(--bt-erreur); }
.cse-message--alerte { background: #fff4d6; color: #8a5a00; }
.cse-message--info { background: #e3f4fb; color: var(--bt-accent-texte); }
.cse-message--rouge { background: var(--bt-erreur); color: var(--bt-blanc); font-weight: 700; }

/* Bouton « + Nouvelle demande » toujours accessible en bas sur mobile */
.cse-action-fixe { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bt-papier) 35%); display: flex; justify-content: center; }
.cse-action-fixe .cse-bouton { width: min(520px, 100%); padding: 16px 22px; font-size: 0.85rem; }

/* Validation : justificatif à gauche, données à droite */
.cse-traitement { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.cse-visionneuse { background: #0d2238; border-radius: var(--bt-arrondi); min-height: 70vh; display: flex; flex-direction: column; overflow: hidden; }
.cse-visionneuse .cse-outils { display: flex; gap: 6px; padding: 8px; background: rgba(255,255,255,.06); }
.cse-visionneuse .cse-outils button { appearance: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 8px; min-width: 44px; min-height: 40px; cursor: pointer; font: inherit; font-weight: 700; }
.cse-visionneuse .cse-cadre { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 10px; }
.cse-visionneuse img { max-width: 100%; transform-origin: top center; transition: transform 0.2s; }
.cse-visionneuse iframe { width: 100%; height: 70vh; border: none; background: #fff; }

.cse-vide { text-align: center; padding: 30px 10px; color: var(--bt-gris); }
.cse-chargement { padding: 40px; text-align: center; color: var(--bt-gris); }
.cse-squelette { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--bt-trait), var(--bt-papier), var(--bt-trait)); background-size: 200% 100%; }

@media (max-width: 900px) { .cse-traitement { grid-template-columns: 1fr; } .cse-visionneuse { min-height: 50vh; } }
@media (max-width: 600px) {
  .cse-entete .cse-titre { display: none; }
  .cse-table .cse-cache-mobile { display: none; }
  .cse-corps { padding-top: 16px; gap: 16px; }
}

/* ============================================================
   Accueil salarié v2 (05/12/2026) : plus vivant (esprit « plateforme d'avantages »),
   toujours dans la charte : encre + bleu ciel, Urbanist, pilules ; une couleur par univers.
   ============================================================ */
.module-cse { --u-SPORT: #12a150; --u-CULTURE: #7c4dff; --u-LOISIRS: #f26b1d; --u-VACANCES: #04a0db; --u-ENFANCE: #e8457c; --u-SAP: #0f9f9a; }
.cse-heros { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(22px, 5vw, 44px); color: #fff; background: var(--bt-encre);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; box-shadow: 0 30px 60px -30px rgba(7, 27, 48, 0.65); }
.cse-heros::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 88% 18%, rgba(4, 160, 219, 0.55), transparent 70%), radial-gradient(380px 260px at 8% 110%, rgba(124, 77, 255, 0.35), transparent 70%),
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.cse-heros > * { position: relative; }
.cse-heros .cse-bonjour { font-size: 1.05rem; font-weight: 600; color: #b9d9ec; }
.cse-heros .cse-solde { color: #fff; font-size: clamp(3.2rem, 13vw, 5.4rem); margin: 6px 0 4px; }
.cse-heros .cse-sous { color: #cfe3f1; font-size: 1rem; }
.cse-heros .cse-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cse-puce { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); font-size: 0.85rem; font-weight: 600; color: #fff; }
.cse-puce i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cse-heros .cse-bouton--accent:hover { background: #fff; color: var(--bt-encre); }
.cse-anneau { width: 190px; height: 190px; position: relative; }
.cse-anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cse-anneau circle { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--bt-ressort); }
.cse-anneau .cse-anneau-texte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cse-anneau .cse-anneau-texte strong { font-size: 2rem; font-weight: 800; line-height: 1; }
.cse-anneau .cse-anneau-texte span { font-size: 0.78rem; color: #b9d9ec; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .cse-anneau circle { transition: none; } }
@media (max-width: 640px) { .cse-heros { grid-template-columns: 1fr; } .cse-anneau { width: 150px; height: 150px; justify-self: center; } }

.cse-reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cse-repere { background: var(--bt-blanc); border: 1px solid var(--bt-trait); border-radius: 18px; padding: 16px 18px; }
.cse-repere small { display: block; color: var(--bt-gris); font-size: 0.8rem; font-weight: 600; }
.cse-repere strong { display: block; font-size: 1.35rem; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }

.cse-titre-section { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 2px 0; }
.cse-titre-section h2 { font-size: 1.35rem; }
.cse-univers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cse-univ { appearance: none; border: none; font: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden; border-radius: 22px; padding: 18px 16px 16px; min-height: 190px;
  display: flex; flex-direction: column; gap: 8px; color: #fff; background: var(--c); transition: transform 0.25s var(--bt-ressort), box-shadow 0.25s; }
.cse-univ:nth-child(1), .cse-univ:nth-child(2) { grid-column: span 3; min-height: 170px; }
.cse-univ:nth-child(n+3) { grid-column: span 3; }
@media (min-width: 900px) { .cse-univ:nth-child(n+3) { grid-column: span 3; } .cse-univ:nth-child(1), .cse-univ:nth-child(2) { grid-column: span 3; } .cse-univers { grid-template-columns: repeat(12, minmax(0, 1fr)); } .cse-univ:nth-child(n+3) { grid-column: span 3; } .cse-univ:nth-child(1), .cse-univ:nth-child(2) { grid-column: span 6; } }
.cse-univ::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; bottom: -70px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.cse-univ:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px var(--c); }
.cse-univ .cse-univ-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,0.22); display: grid; place-items: center; }
.cse-univ .cse-univ-ico svg { width: 28px; height: 28px; stroke: #fff; }
.cse-univ strong { font-size: 1.15rem; font-weight: 800; }
.cse-univ span { font-size: 0.85rem; line-height: 1.35; color: rgba(255,255,255,0.92); position: relative; z-index: 1; }
.cse-univ em { margin-top: auto; font-style: normal; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; z-index: 1; }
@media (max-width: 600px) { .cse-univers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cse-univ, .cse-univ:nth-child(1), .cse-univ:nth-child(2), .cse-univ:nth-child(n+3) { grid-column: span 1; min-height: 160px; } }

.cse-fil { display: flex; flex-direction: column; gap: 10px; }
.cse-fil-item { display: flex; gap: 14px; align-items: center; background: var(--bt-blanc); border: 1px solid var(--bt-trait); border-radius: 18px; padding: 12px 16px; }
.cse-fil-item .cse-pastille { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--c) 14%, white); }
.cse-fil-item .cse-pastille svg { stroke: var(--c); }
.cse-depart { text-align: left; }
.cse-depart .cse-compte { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cse-depart .cse-compte div { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 10px 16px; min-width: 92px; }
.cse-depart .cse-compte strong { display: block; font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cse-depart .cse-compte small { color: #b9d9ec; font-size: 0.78rem; }
.cse-barres b { border-radius: 6px 6px 2px 2px; }
.cse-entete { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.cse-tuile svg { stroke: var(--c, var(--bt-accent-texte)); }
.cse-tuile[aria-pressed="true"] { border-color: var(--c, var(--bt-accent)); background: color-mix(in srgb, var(--c, #04a0db) 10%, white); }

/* Photos d'ambiance (Unsplash, licence libre, 05/12/2026) : bandeau d'accueil et tuiles d'univers */
.cse-heros { background: var(--bt-encre) url(/cse/photos/heros.jpg) center 60% / cover no-repeat; }
.cse-heros::before { background: linear-gradient(100deg, rgba(7,27,48,0.94) 0%, rgba(7,27,48,0.78) 45%, rgba(7,27,48,0.25) 100%),
  radial-gradient(520px 320px at 88% 18%, rgba(4,160,219,0.35), transparent 70%); }
.cse-univ { background: var(--c) var(--photo) center / cover no-repeat; justify-content: flex-end; min-height: 220px; }
.cse-univ::after { inset: 0; width: auto; height: auto; border-radius: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(7,27,48,0) 15%, color-mix(in srgb, var(--c) 55%, rgba(7,27,48,0.85)) 100%); }
.cse-univ > * { position: relative; z-index: 1; }
.cse-univ .cse-univ-ico { position: absolute; top: 16px; left: 16px; background: color-mix(in srgb, var(--c) 85%, transparent); backdrop-filter: blur(4px); }
.cse-univ strong { font-size: 1.35rem; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.cse-univ span { text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.cse-univ img.cse-photo-pre { display: none; }
.cse-univ:hover { transform: translateY(-4px) scale(1.01); }
@media (min-width: 900px) { .cse-univ:nth-child(1), .cse-univ:nth-child(2) { min-height: 260px; } }
.cse-credit-photos { font-size: 0.72rem; color: var(--bt-gris); text-align: right; }
.cse-univ strong { margin-top: auto; } .cse-univ em { margin-top: 4px; }
/* Bouton « Nouvelle demande » : collé en bas DU MODULE (centré sur la colonne, pas sur la fenêtre),
   au-dessus de la barre de navigation mobile de Popey (hauteur mesurée en JS → --cse-bas) */
.cse-action-fixe { position: sticky; left: auto; right: auto; bottom: var(--cse-bas, 0px); margin: 8px -16px 0; }
/* Nouvelle demande étalée sur toute la largeur (05/12) : justificatif | catégorie, puis 3 champs, puis 2 montants */
.cse-form-large { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1000px) {
  .cse-form-large { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px 26px; align-items: start; }
  .cse-form-large > * { grid-column: 1 / -1; }
  .cse-form-large > :nth-child(2) { grid-column: span 4; }
  .cse-form-large > :nth-child(3) { grid-column: span 8; }
  .cse-form-large > :nth-child(4), .cse-form-large > :nth-child(5), .cse-form-large > :nth-child(6) { grid-column: span 4; }
  .cse-form-large > :nth-child(7), .cse-form-large > :nth-child(8) { grid-column: span 6; }
  .cse-form-large .cse-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cse-form-large > button[type="submit"] { justify-self: end; grid-column: 7 / -1; width: 100%; }
}
/* Mon foyer et Aide sur toute la largeur (05/12) */
.cse-foyer, .cse-aide { display: flex; flex-direction: column; gap: 14px; }
.cse-foyer-form { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) {
  .cse-foyer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; align-items: start; }
  .cse-foyer > h1, .cse-foyer > p { grid-column: 1 / -1; }
  .cse-foyer-form { background: var(--bt-papier); border-radius: 18px; padding: 20px; }
  .cse-aide { display: block; column-count: 2; column-gap: 48px; }
  .cse-aide > * { break-inside: avoid; margin-bottom: 14px; }
  .cse-aide > h1 { column-span: all; }
}
@media (min-width: 1000px) { .cse-aide > h2:first-of-type { break-before: column; } .cse-aide > h1 { margin-bottom: 18px; } }
/* Graphique entrées / sorties mois par mois (05/12) */
.cse-graph-zone { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); height: 240px; padding-top: 10px; }
.cse-graph-courbe { position: absolute; left: 0; right: 0; top: 10px; height: calc(100% - 34px); width: 100%; pointer-events: none; overflow: visible; }
.cse-graph-courbe polyline { fill: none; stroke: var(--bt-encre); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 5 4; }
.cse-graph-mois { display: flex; flex-direction: column; align-items: stretch; cursor: pointer; border-radius: 10px; transition: background 0.15s; }
.cse-graph-mois:hover { background: color-mix(in srgb, var(--bt-accent) 9%, transparent); }
.cse-graph-barres { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 18%; }
.cse-graph-barres b { flex: 1; max-width: 22px; border-radius: 6px 6px 2px 2px; position: relative; overflow: hidden; transition: height 0.8s var(--bt-ressort); }
.cse-graph-barres b.e { background: #12a150; }
.cse-graph-barres b.s { background: #e8457c; }
.cse-graph-barres b.s i { position: absolute; left: 0; right: 0; top: 0; background: #f5b301; }
.cse-graph-mois small { text-align: center; font-size: 0.75rem; color: var(--bt-gris); padding: 6px 0 2px; height: 24px; }
.cse-graph-bulle { position: absolute; bottom: calc(100% - 20px); width: 280px; z-index: 5; background: var(--bt-encre); color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 40px -18px rgba(7,27,48,0.7); font-size: 0.85rem; pointer-events: none; }
.cse-graph-bulle strong { display: block; font-size: 1rem; margin-bottom: 8px; text-transform: capitalize; }
.cse-graph-bulle .l { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.cse-graph-bulle .l.t { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 8px; padding-top: 8px; }
.cse-graph-bulle ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cse-graph-bulle li { display: flex; justify-content: space-between; gap: 10px; background: rgba(255,255,255,0.08); border-radius: 10px; padding: 6px 10px; }
.cse-graph-bulle li small { display: block; color: #b9d9ec; font-size: 0.72rem; }
.cse-graph-bulle .cse-muet { color: #b9d9ec; margin-top: 6px; }
.cse-graph-bulle { bottom: auto; top: 0; }
/* Assistant « Est-ce remboursable ? » (05/12) */
.cse-chat { display: flex; flex-direction: column; gap: 14px; }
.cse-chat-tete { display: flex; gap: 14px; align-items: center; }
.cse-chat-avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--bt-encre); display: grid; place-items: center; flex-shrink: 0; }
.cse-chat-avatar svg { stroke: #04a0db; }
.cse-chat-fil { display: flex; flex-direction: column; gap: 10px; min-height: 320px; max-height: 55vh; overflow-y: auto; padding: 16px; border-radius: 18px; background: var(--bt-papier); }
.cse-msg { max-width: min(680px, 85%); padding: 12px 16px; border-radius: 18px; line-height: 1.45; font-size: 0.95rem; }
.cse-msg--user { align-self: flex-end; background: var(--bt-accent); color: #fff; border-bottom-right-radius: 6px; }
.cse-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--bt-trait); border-bottom-left-radius: 6px; }
.cse-msg--hs { background: #fff4f4; border-color: #f3c4c4; color: #9b2c2c; }
.cse-msg--attente { display: flex; gap: 5px; }
.cse-msg--attente i { width: 8px; height: 8px; border-radius: 50%; background: var(--bt-gris); animation: cse-point 1s infinite ease-in-out; }
.cse-msg--attente i:nth-child(2) { animation-delay: 0.15s; } .cse-msg--attente i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cse-point { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cse-msg--attente i { animation: none; } }
.cse-chat-vide { margin: auto; text-align: center; color: var(--bt-gris); }
.cse-chat-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cse-puce-sugg { appearance: none; font: inherit; cursor: pointer; border: 1px solid var(--bt-trait); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; color: var(--bt-encre); }
.cse-puce-sugg:hover { border-color: var(--bt-accent); color: var(--bt-accent-texte); }
.cse-chat-saisie { display: flex; gap: 10px; }
.cse-chat-saisie input { flex: 1; min-width: 0; }

/* ============================================================
   Finitions v3 (05/12/2026) : onglets à icônes, états vides, aperçu du graphique,
   zone de dépôt, étapes numérotées, foyer, aide et assistant plus soignés.
   ============================================================ */
.cse-titre-section { margin-top: 12px; }
/* Onglets : barre segmentée blanche, icône + libellé */
.module-cse nav.cse-onglets { background: var(--bt-blanc); border: 1px solid var(--bt-trait); border-radius: 999px; padding: 5px; gap: 2px; box-shadow: var(--bt-ombre); }
.module-cse nav.cse-onglets .cse-onglet { min-height: 40px; padding: 8px 16px; transition: background 0.2s, color 0.2s; }
.module-cse nav.cse-onglets .cse-onglet svg { opacity: 0.7; flex-shrink: 0; }
.module-cse nav.cse-onglets .cse-onglet:hover:not([aria-current="true"]) { background: var(--bt-papier); }
.module-cse nav.cse-onglets .cse-onglet[aria-current="true"] svg { opacity: 1; stroke: var(--bt-accent); }
@media (max-width: 1100px) {
  .module-cse nav.cse-onglets { border-radius: 20px; }
}
/* Pastille d'univers (couleur --c) réutilisée partout */
.module-cse .cse-pastille { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--c, #04a0db) 14%, white); color: var(--c, #04a0db); }
.module-cse .cse-pastille svg { stroke: currentColor; }
/* États vides */
.cse-vide2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 16px; }
.cse-vide2-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--bt-accent) 12%, white); color: var(--bt-accent-texte); }
.cse-vide2 strong { font-size: 1.1rem; }
.cse-vide2 p { margin: 0; color: var(--bt-gris); max-width: 46ch; }
.cse-vide2 .cse-bouton { margin-top: 6px; }
/* Graphique avant le démarrage : barres d'aperçu pâles + message au centre */
.cse-graph--attente { position: relative; overflow: hidden; }
.cse-graph-fantome { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; height: 220px; }
.cse-graph-fantome > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.cse-graph-fantome b { display: block; width: 60%; margin: 0 auto; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--bt-accent) 26%, white), color-mix(in srgb, var(--bt-accent) 8%, white)); }
.cse-graph-fantome small { text-align: center; font-size: 0.75rem; color: var(--bt-gris); }
.cse-graph-fantome-texte { position: absolute; inset: 60px 16px 40px; display: flex; align-items: center; justify-content: center; }
.cse-graph-fantome-texte > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 460px; padding: 18px 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--bt-ombre); border: 1px solid var(--bt-trait); }
.cse-graph-fantome-texte svg { stroke: var(--bt-accent); }
.cse-graph-fantome-texte strong { font-size: 1.05rem; }
/* Nouvelle demande : étapes numérotées et zone de dépôt */
.cse-etape { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bt-encre); color: #fff; font-size: 0.75rem; font-weight: 800; margin-right: 8px; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.cse-depot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px; border: 2px dashed var(--bt-gris-clair); border-radius: 18px; background: var(--bt-papier); text-align: center; transition: border-color 0.2s, background 0.2s; }
.cse-depot.survol { border-color: var(--bt-accent); background: #e9f7fd; }
.cse-depot-ico { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; color: var(--bt-accent-texte); box-shadow: var(--bt-ombre); }
.cse-depot > .cse-muet { margin: -4px 0; }
/* Mon foyer : pastille d'initiale (couleur selon le lien) */
.cse-membre { gap: 14px; }
.cse-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--u-ENFANCE); }
.cse-avatar[data-lien="conjoint"] { background: var(--u-CULTURE); }
/* Aide : règles en étapes numérotées */
.cse-regles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: regle; }
.cse-regles li { position: relative; padding: 12px 14px 12px 54px; background: var(--bt-papier); border-radius: 14px; counter-increment: regle; }
.cse-regles li::before { content: counter(regle); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--bt-accent); color: #fff; font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; }
/* Assistant : en-tête plus marqué, saisie en pilule */
.cse-chat-avatar { background: linear-gradient(135deg, var(--bt-encre), #0b3a5e); box-shadow: 0 12px 24px -14px var(--bt-accent); }
.cse-chat-fil { background: linear-gradient(180deg, var(--bt-papier), #fff); border: 1px solid var(--bt-trait); }
.cse-chat-saisie { background: #fff; border: 1.5px solid var(--bt-gris-clair); border-radius: 999px; padding: 5px 5px 5px 20px; align-items: center; }
.cse-chat-saisie:focus-within { border-color: var(--bt-accent); box-shadow: 0 0 0 3px rgba(4, 160, 219, 0.2); }
.cse-chat-saisie input { border: none; outline: none; font: inherit; font-size: 1rem; background: transparent; min-height: 44px; color: var(--bt-encre); }
@media (prefers-reduced-motion: reduce) { .module-cse nav.cse-onglets .cse-onglet, .cse-depot { transition: none; } }

/* Titre « ASC BERTHOLON » + sous-titre explicatif du sigle (05/12/2026) */
.cse-entete .cse-titre { display: flex; flex-direction: column; line-height: 1.15; color: var(--bt-encre); }
.cse-entete .cse-titre small { font-weight: 600; font-size: 0.75rem; color: var(--bt-gris); }

/* Page autonome asc.bertholon-sa.com : connexion et attente de validation (05/12/2026) */
html, body { margin: 0; }
.asc-ecran { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 85% -10%, rgba(4,160,219,0.18), transparent 70%), var(--bt-papier); }
.asc-carte { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.asc-logo { height: 34px; width: auto; align-self: flex-start; }
.asc-form { display: flex; flex-direction: column; gap: 14px; }
.asc-form .cse-bouton { width: 100%; margin-top: 4px; }
.asc-note { font-size: 0.8rem; margin: 0; }
.asc-attente { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.asc-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--bt-encre); color: #fff; border-radius: 14px; padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px -18px rgba(7,27,48,0.7); font-family: var(--bt-police); max-width: calc(100% - 32px); }
.asc-toast span { color: #b9d9ec; font-size: 0.85rem; }

/* Comptes ASC personnels (05/12/2026) : lien discret « Mot de passe oublié ? » */
.asc-lien { appearance: none; background: none; border: none; padding: 6px 0; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--bt-accent-texte); cursor: pointer; align-self: center; min-height: 44px; }
.asc-lien:hover { text-decoration: underline; }
.asc-form small { font-size: 0.78rem; }

/* Page de connexion ASC v2 (05/12/2026) : vitrine de photomontages BERTHOLON + carte de connexion.
   Ordinateur : vitrine à gauche (55 %), carte à droite. Téléphone : vitrine en bandeau au-dessus. */
.asc-ecran { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, 1fr); place-items: stretch; padding: 0; background: var(--bt-papier); }
.asc-cote { display: grid; place-items: center; padding: 32px 24px; background: radial-gradient(700px 420px at 100% 0%, rgba(4,160,219,0.14), transparent 70%), var(--bt-papier); }
.asc-vitrine { position: relative; overflow: hidden; background: var(--bt-encre); min-height: 100vh; min-height: 100dvh; }
.asc-mosaique { position: absolute; inset: -40px -20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-4deg) scale(1.08); }
.asc-colonne { overflow: hidden; }
.asc-defile { display: flex; flex-direction: column; gap: 14px; animation: asc-monte 70s linear infinite; will-change: transform; }
.asc-colonne--2 .asc-defile { animation-name: asc-descend; animation-duration: 82s; }
.asc-colonne--3 .asc-defile { animation-duration: 64s; }
.asc-defile img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 894; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7); }
/* Boucle sans saut : chaque colonne contient deux fois ses images, on la fait glisser d'une moitié (gap compris). */
@keyframes asc-monte { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes asc-descend { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
.asc-vitrine::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,27,48,0.15) 0%, rgba(7,27,48,0) 35%, rgba(7,27,48,0.55) 72%, rgba(7,27,48,0.92) 100%); }
.asc-accroche { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(28px, 5vh, 56px); z-index: 1; color: #fff; font-family: var(--bt-police); }
.asc-accroche p { margin: 12px 0 0; font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; max-width: 20ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.asc-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(4,160,219,0.92); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.asc-carte { box-shadow: 0 30px 60px -34px rgba(7,27,48,0.45); }
/* Tablette et téléphone : vitrine en bandeau au-dessus de la carte, qui la chevauche légèrement */
@media (max-width: 900px) {
  .asc-ecran { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .asc-vitrine { min-height: 0; height: clamp(230px, 38vh, 340px); }
  .asc-mosaique { gap: 10px; inset: -30px -16px; }
  .asc-defile { gap: 10px; }
  .asc-defile img { border-radius: 12px; }
  @keyframes asc-monte { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 5px)); } }
  @keyframes asc-descend { from { transform: translateY(calc(-50% - 5px)); } to { transform: translateY(0); } }
  .asc-accroche { bottom: 40px; }
  .asc-accroche p { font-size: 1.3rem; }
  .asc-cote { place-items: start center; padding: 0 16px 28px; margin-top: -24px; position: relative; z-index: 2; background: transparent; }
}
/* Mouvement réduit demandé par le système : mosaïque immobile */
@media (prefers-reduced-motion: reduce) { .asc-defile { animation: none; } }

/* Connexion ASC : grand logo centré en haut de la colonne de droite (ordinateur) ; petit logo de la carte masqué */
.asc-cote { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: clamp(32px, 7vh, 72px); padding-top: clamp(40px, 9vh, 96px); }
.asc-logo-grand { width: min(380px, 72%); height: auto; display: block; }
.asc-cote .asc-logo { display: none; }
@media (max-width: 900px) {
  .asc-cote { padding-top: 0; gap: 0; }
  .asc-logo-grand { display: none; }
  .asc-cote .asc-logo { display: block; }
}

/* Espace ASC connecté (asc.bertholon-sa.com) : mosaïque animée des photomontages en fond, voilée pour la lisibilité */
body.asc-dedans { margin: 0; background: #f2f6fa; }
body.asc-dedans #cse-racine.module-cse { background: transparent; position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
.asc-fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #071b30; pointer-events: none; }
.asc-fond .asc-mosaique { grid-template-columns: repeat(5, 1fr); inset: -60px -40px; }
.asc-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(242,246,250,0.80) 0%, rgba(242,246,250,0.88) 40%, rgba(242,246,250,0.93) 100%); }
@media (max-width: 900px) {
  .asc-fond .asc-mosaique { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .asc-fond .asc-colonne:nth-child(n+4) { display: none; }
}

/* Champs mot de passe : bouton œil pour afficher / masquer */
.asc-mdp { position: relative; display: block; }
.asc-mdp input { width: 100%; padding-right: 52px !important; }
.asc-oeil { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: none; background: none; border-radius: 10px; color: #51627a; cursor: pointer; }
.asc-oeil:hover { color: #071b30; background: rgba(7,27,48,0.06); }
.asc-oeil:focus-visible { outline: 3px solid #04a0db; outline-offset: 0; }
.asc-oeil[aria-pressed="true"] { color: #0277a6; }
#asc-identifiant[readonly] { background: #f2f6fa; color: #51627a; }

/* ASC (05/12/2026) : récapitulatif des montants (facture, autre organisme, reste à charge, part ASC) */
.module-cse .cse-recap { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.module-cse .cse-recap dl { margin: 0; background: var(--bt-papier); border: 1px solid var(--bt-trait); border-radius: 14px; padding: 12px 16px; display: grid; gap: 6px; }
.module-cse .cse-recap dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.module-cse .cse-recap dt { color: var(--bt-gris); }
.module-cse .cse-recap dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.module-cse .cse-recap-asc dd { color: var(--bt-accent-texte); }
.module-cse .cse-recap-final { border-top: 1px dashed var(--bt-trait); padding-top: 6px; }
.module-cse .cse-recap-final dt, .module-cse .cse-recap-final dd { color: var(--bt-encre); font-weight: 800; }
/* Fiche de validation : analyse automatique et contrôles pré-cochés */
.module-cse .cse-analyse { border: 1px solid var(--bt-trait); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bt-blanc); }
.module-cse .cse-analyse ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.module-cse .cse-analyse li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; line-height: 1.4; }
.module-cse .cse-analyse li .cse-statut { flex-shrink: 0; font-size: 0.68rem; }
.module-cse .cse-coche > span { display: flex; flex-direction: column; gap: 2px; }
.module-cse .cse-controle-note { font-size: 0.74rem; color: var(--bt-gris); }
.module-cse .cse-coche--auto { background: color-mix(in srgb, var(--bt-ok) 8%, white); }
.module-cse .cse-coche--ko { background: color-mix(in srgb, var(--bt-erreur) 8%, white); }
.module-cse .cse-coche--ko .cse-controle-note { color: var(--bt-erreur); font-weight: 700; }
/* Accueil (demande de Pierre) : « Bonjour Pierre » plus gros ; barre d'onglets sur toute la largeur du bandeau photo */
.module-cse .cse-heros .cse-bonjour { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.module-cse nav.cse-onglets { flex: 1 1 auto; }
.module-cse nav.cse-onglets .cse-onglet { flex: 1 1 auto; justify-content: center; }

/* Alignement des cadres de saisie (05/12/2026) : sur une même ligne, quand un libellé passe sur deux lignes,
   les libellés se calent en bas, au-dessus de leur cadre : cadres alignés, écart libellé-cadre identique. Règle générale à tout le module. */
.cse-champ { justify-content: flex-end; }   /* libellé toujours collé à son cadre (même écart partout) ; c est le libellé court qui descend */

/* Champs de montant : signe € affiché à droite dans le cadre (le champ ne contient que le nombre) */
.cse-euro { position: relative; display: block; }
.cse-euro > input { width: 100%; box-sizing: border-box; padding-right: 40px !important; text-align: right; font-variant-numeric: tabular-nums; }
.cse-euro::after { content: '€'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--bt-gris, #51627a); font-weight: 600; pointer-events: none; }

/* Formulaire de demande : les champs d'une même ligne prennent la même hauteur, pour que la règle
   « espace libre sous le libellé » aligne leurs cadres ; bouton d'envoi centré */
.cse-form-large > .cse-champ { align-self: stretch; }
@media (min-width: 1000px) {
  .cse-form-large > button[type="submit"] { grid-column: 4 / span 6; justify-self: stretch; }
}
.cse-form-large > button[type="submit"] { align-self: center; }
/* Même hauteur pour tous les cadres d une ligne (champ texte, liste, date ont sinon 48 à 52 px) */
.cse-champ input:not([type=checkbox]):not([type=radio]):not([type=file]), .cse-champ select { box-sizing: border-box; height: 50px; }

/* asc.bertholon-sa.com : onglets dans la barre du haut (fixe, toujours visible) */
.cse-entete--onglets { gap: 18px; }
.cse-entete--onglets .cse-titre { flex-shrink: 0; }
.module-cse .cse-entete nav.cse-onglets--entete { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; box-shadow: none; background: var(--bt-papier); }
.module-cse .cse-entete nav.cse-onglets--entete::-webkit-scrollbar { display: none; }
.module-cse .cse-entete nav.cse-onglets--entete .cse-onglet { white-space: nowrap; }
.cse-entete--onglets .cse-sortie { flex-shrink: 0; white-space: nowrap; }
/* Écran moyen : le sous-titre s'efface pour laisser la place aux onglets */
@media (max-width: 1400px) { .cse-entete--onglets .cse-titre small { display: none; } }
/* Écran étroit : logo et déconnexion sur la 1re ligne, onglets sur toute la largeur en dessous (défilement au doigt) */
@media (max-width: 1100px) {
  .cse-entete--onglets { flex-wrap: wrap; row-gap: 10px; }
  .cse-entete--onglets .cse-sortie { margin-left: auto; }
  .module-cse .cse-entete nav.cse-onglets--entete { order: 3; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .cse-entete--onglets .cse-sortie span { display: none; }
  .module-cse .cse-entete nav.cse-onglets--entete .cse-onglet { flex: 0 0 auto; padding: 8px 12px; }
}
/* Téléphone : barre compacte, logo + déconnexion sur une ligne, onglets dessous */
@media (max-width: 600px) {
  .cse-entete.cse-entete--onglets .cse-titre { display: none; }
  .cse-entete--onglets { padding-top: 10px; padding-bottom: 10px; }
}

/* Pré-remplissage au dépôt du justificatif : bandeau d'état et champs « lus automatiquement, à vérifier » */
.cse-lecture { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 0.88rem; line-height: 1.35; }
.cse-lecture:empty { display: none; }
.cse-lecture svg { flex-shrink: 0; margin-top: 1px; }
.cse-lecture--en_cours { background: var(--bt-papier); color: var(--bt-gris); }
.cse-lecture--ok { background: rgba(4, 160, 219, 0.10); color: #035f84; }
.cse-lecture--info { background: #fff6e5; color: #7a4b00; }
.cse-lecture-roue { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; border: 2px solid var(--bt-trait); border-top-color: var(--bt-accent); animation: cse-tourne 0.8s linear infinite; }
@keyframes cse-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cse-lecture-roue { animation: none; } }
.cse-champ input.cse-lu { background: rgba(4, 160, 219, 0.08); border-color: var(--bt-accent); }

/* Modification / annulation d'une demande non traitée (05/12/2026) */
.cse-statut--annulee { color: var(--bt-gris); background: var(--bt-papier); }
.cse-lien { appearance: none; border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--bt-accent-texte, #0277a6); text-decoration: underline; cursor: pointer; }
.cse-lien:focus-visible { outline: 3px solid var(--bt-accent); outline-offset: 2px; border-radius: 4px; }
.cse-pj-deja .cse-liste li { min-height: 40px; }
.cse-modifs ul { margin: 6px 0 0; padding-left: 18px; }
.cse-modifs li { margin: 4px 0; line-height: 1.4; }
/* Blocs « justificatif » et « catégorie » (div, pas de cadre de saisie) : titres en haut, jamais repoussés vers le bas */
div.cse-champ { justify-content: flex-start; }

/* Popey : aperçu de l'espace d'un salarié dans un panneau à droite (05/12/2026) */
.cse-apercu-fond { position: fixed; inset: 0; z-index: 1000; background: rgba(7, 27, 48, 0.35); }
.cse-apercu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(1180px, 94vw); overflow-y: auto; background: var(--bt-papier, #f2f6fa); box-shadow: -12px 0 40px rgba(7, 27, 48, 0.25); display: flex; flex-direction: column; }
.cse-apercu-tete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--bt-trait); }
.cse-apercu-corps { padding: 18px 24px 80px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 700px) { .cse-apercu { width: 100vw; } .cse-apercu-tete, .cse-apercu-corps { padding-left: 14px; padding-right: 14px; } }

/* ================= Téléphone (05/12/2026) — d'après captures iPhone 14 (390 px) et Android (360 px) ================= */
.cse-l-court { display: none; }
.cse-glisser { display: contents; }
@media (hover: none) and (pointer: coarse) { .cse-glisser { display: none; } }
@media (max-width: 700px) {
  /* En-tête : logo centré, déconnexion en icône à droite */
  .cse-entete.cse-entete--onglets { justify-content: center; position: sticky; padding: 10px 56px; min-height: 56px; }
  .cse-entete--onglets img { height: 26px; }
  .cse-entete--onglets .cse-sortie { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; padding: 8px; min-width: 44px; }
  /* Onglets : barre fixe en bas de l'écran, toujours visible, sans défilement */
  .module-cse .cse-entete nav.cse-onglets--entete { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; order: 0; flex-basis: auto; margin: 0;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; overflow: visible; border-radius: 0; border: none; border-top: 1px solid var(--bt-trait);
    background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px -18px rgba(7, 27, 48, 0.35);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); }
  .module-cse .cse-entete nav.cse-onglets--entete .cse-onglet { flex-direction: column; gap: 3px; padding: 6px 0; min-height: 54px; border-radius: 12px; border: none;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0; color: var(--bt-gris); background: transparent; box-shadow: none; }
  .module-cse .cse-entete nav.cse-onglets--entete .cse-onglet svg { width: 22px; height: 22px; opacity: 0.85; }
  .module-cse .cse-entete nav.cse-onglets--entete .cse-onglet[aria-current="true"] { color: var(--bt-accent-texte, #0277a6); background: rgba(4, 160, 219, 0.10); }
  .module-cse .cse-entete nav.cse-onglets--entete .cse-onglet[aria-current="true"] svg { stroke: var(--bt-accent); opacity: 1; }
  .cse-onglets--entete .cse-l-long { display: none; }
  .cse-onglets--entete .cse-l-court { display: block; }
  .module-cse .cse-corps { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Titres de section : sous-titre sous le titre (« Faites-vous plaisir », « Ma cagnotte mois par mois ») */
  .cse-titre-section { flex-wrap: wrap; row-gap: 2px; }
  .cse-titre-section > .cse-muet { flex-basis: 100%; }
  .cse-graph-mois .cse-l-long { display: none; }
  .cse-graph-mois .cse-l-court { display: inline; }

  /* Accueil : anneau du solde, repères, tuiles */
  .cse-anneau { width: 170px; height: 170px; }
  .cse-anneau .cse-anneau-texte { padding: 0 30px; }
  .cse-anneau .cse-anneau-texte strong { font-size: 1.7rem; }
  .cse-anneau .cse-anneau-texte span { font-size: 0.7rem; line-height: 1.25; }
  .cse-reperes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cse-reperes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cse-repere { padding: 14px; }
  .cse-repere strong { font-size: 1.2rem; }
  .cse-univ, .cse-univ:nth-child(1), .cse-univ:nth-child(2), .cse-univ:nth-child(n+3) { min-height: 0; padding: 76px 14px 14px; gap: 4px; }
  .cse-univ .cse-univ-ico { top: 14px; left: 14px; width: 46px; height: 46px; }
  .cse-univ strong { font-size: 1.05rem; line-height: 1.2; margin-top: 0; }
  .cse-univ span { font-size: 0.78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cse-univ em { font-size: 0.64rem; letter-spacing: 0.04em; margin-top: 6px; }

  /* Boutons : plus compacts sur petit écran */
  .module-cse .cse-bouton { letter-spacing: 0.04em; }
  .module-cse .cse-liste .cse-bouton { min-height: 40px; padding: 8px 14px !important; font-size: 0.74rem; }
  .cse-depot .cse-bouton { font-size: 0.78rem; padding: 12px 14px; }

  /* « Une question ? » : en-tête compact, envoi en icône */
  .cse-chat-tete { align-items: flex-start; gap: 12px; }
  .cse-chat-tete .cse-chat-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; }
  .cse-chat-tete h1 { font-size: 1.45rem !important; line-height: 1.2; }
  .cse-chat-saisie { padding-left: 14px; }
  .cse-chat-saisie .cse-bouton { padding: 10px 16px; font-size: 0.78rem; }
}
/* Pages d'accès (connexion, mot de passe, validation) sur téléphone : logo et titres centrés */
@media (max-width: 900px) {
  .asc-carte { text-align: center; }
  .asc-cote .asc-logo { align-self: center; height: 32px; }
  .asc-carte form, .asc-carte .cse-champ, .asc-carte #asc-erreur { text-align: left; }
}

/* ================= Installation sur l'écran d'accueil (05/12/2026) ================= */
.asc-install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: 16px;
  background: #eaf6fc; border: 1px solid rgba(4, 160, 219, 0.30); box-shadow: 0 6px 18px -14px rgba(7, 27, 48, 0.45); text-align: left; position: relative; }
.asc-install-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bt-encre, #071b30); color: #fff; }
.asc-install-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.asc-install-texte strong { font-size: 0.95rem; line-height: 1.25; }
.asc-install-texte small { font-size: 0.82rem; color: var(--bt-gris); line-height: 1.4; }
.asc-install-partage { vertical-align: -3px; color: var(--bt-accent-texte, #0277a6); }
.asc-install-bouton { flex-shrink: 0; padding: 10px 18px !important; min-height: 44px; }
.asc-install-fermer { position: absolute; top: 2px; right: 4px; width: 36px; height: 36px; border: none; background: none; font-size: 1.3rem; line-height: 1; color: var(--bt-gris); cursor: pointer; }
.asc-install:has(.asc-install-fermer) { padding-right: 40px; }
.asc-carte .asc-install { margin: 18px 0 0; }
@media (max-width: 420px) {
  .asc-install { flex-wrap: wrap; }
  .asc-install-bouton { width: 100%; }
}
/* Écran d attente avant ouverture (05/12/2026) : les 3 repères (ouverture, premier crédit, 360 €) sur une ligne de 3 cases égales */
@media (max-width: 700px) {
  .cse-depart .cse-compte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cse-depart .cse-compte div { min-width: 0; padding: 10px; border-radius: 14px; }
  .cse-depart .cse-compte strong { font-size: 1.15rem; white-space: nowrap; }
  .cse-depart .cse-compte small { display: block; font-size: 0.7rem; line-height: 1.3; margin-top: 2px; }
}

/* ================= Demande papier : panneau à droite (06/12/2026) ================= */
.cse-panneau-droit { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(560px, 100vw); overflow-y: auto;
  background: var(--bt-papier, #f2f6fa); box-shadow: -12px 0 40px rgba(7, 27, 48, 0.25); display: flex; flex-direction: column; }
.cse-panneau-droit .cse-champ input, .cse-panneau-droit .cse-champ select { width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .cse-panneau-droit .cse-apercu-tete, .cse-panneau-droit .cse-apercu-corps { padding-left: 14px; padding-right: 14px; } }
.cse-origine-papier { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f9eeda; color: #7a4b00; }
