/* ==========================================================================
   BGFI Resolve — habillage selon la charte de design BGFI (reference : BGFI SMQ)
   Fichier autonome, actif seulement quand bgfi-charte.js pose
   html[data-bgfi-charte] (mode test « ?charte=1 »). Il remplace alors bgfi.css,
   que le script desactive. Aucun fichier Zammad n'est modifie.
   Fabrique par fabriquer_css.py (pictogrammes encodes en data-URI).
   ========================================================================== */
/* police Inter : declaree ici plutot que par @import de charte/inter.css, qui ajoutait une requete bloquante avant la premiere image */
@font-face { font-family:"Inter"; font-style:normal; font-weight:300; font-display:swap; src:url("charte/inter-300.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("charte/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("charte/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("charte/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("charte/inter-700.woff2") format("woff2"); }
/* nom du produit dans la police du logo BGFIBank (style Optima) : Belleza, libre (OFL), Google Fonts */
@font-face { font-family:"Belleza"; font-style:normal; font-weight:400; font-display:swap; src:url("charte/belleza.woff2?v=1") format("woff2"); }

/* ---------------------------------------------------------------- jetons */
html[data-bgfi-charte] {
  --c-marine:#0b2545; --c-marine-2:#071a33; --c-bleu:#123c6b; --c-sauge:#97a083; --c-rouge:#b42318;
  /* Ivoire (defaut) */
  --c-bg:#f5f1e8; --c-surface:#fffdf8; --c-surface-2:#faf7f0; --c-border:#e5ddcc; --c-text:#14243b; --c-muted:#64605a;
  --c-accent:#123c6b; --c-accent-hover:#0b2545; --c-sur-accent:#ffffff; --c-ring:rgba(18,60,107,.28);
  --c-onglets:#f1ebdf; --c-champ:#ffffff; --c-coche:#b8b0a0; --c-tete-carte:#123c6b; --c-ombre-carte:0 40px 90px rgba(0,0,0,.45);
  /* fond des ecrans publics : banniere du siege + voile marine */
  --c-voile:linear-gradient(120deg, rgba(7,26,51,.93), rgba(11,37,69,.55));
  --c-sur-fond:#ffffff; --c-sur-fond-2:rgba(255,255,255,.88); --c-sur-fond-pale:rgba(255,255,255,.62);
  --c-nom-bgfi:#ffffff; --c-nom-carte:#00589b; --c-nom-carte-2:#7d8769;
  --c-sauge-fond:#97a083; --c-nom-court:#97a083; --c-tuile:rgba(255,255,255,.05); --c-tuile-bord:rgba(255,255,255,.1);
  --c-pictos:#97a083; --c-pastille-picto:rgba(151,160,131,.15); --c-pastille-bord:rgba(151,160,131,.35);
  --c-etoile:#ffffff; --c-etoile-op:.07; --c-bouton-fond:rgba(255,255,255,.08); --c-bouton-bord:rgba(255,255,255,.3);
  --c-logo-banque:url("charte/bgfi-bank-clair-horizontal.png"); --c-logo-editeur:url("charte/bgfi-services-clair.png");
}
html[data-bgfi-charte][data-bgfi-ct="clair"] {
  --c-bg:#f3f5f8; --c-surface:#ffffff; --c-surface-2:#f7f9fc; --c-border:#dfe5ed; --c-text:#0f2138; --c-muted:#5a6779;
  --c-onglets:#f2f5f9; --c-coche:#a9b4c3; --c-ombre-carte:0 30px 70px rgba(15,33,56,.16);
  --c-voile:linear-gradient(115deg, rgba(243,245,248,.97) 0%, rgba(243,245,248,.93) 45%, rgba(233,238,245,.72) 100%);
  --c-sur-fond:#0b2545; --c-sur-fond-2:#2c3b52; --c-sur-fond-pale:#5a6779; --c-sauge-fond:#6f7a5c; --c-nom-court:#7d8769; --c-nom-bgfi:#00589b;
  --c-tuile:#ffffff; --c-tuile-bord:#dfe5ed; --c-pictos:#6f7a5c; --c-etoile:#123c6b; --c-etoile-op:.05;
  --c-bouton-fond:#ffffff; --c-bouton-bord:#dfe5ed;
  --c-logo-banque:url("charte/bgfi-bank-horizontal.png"); --c-logo-editeur:url("charte/bgfi-services.png");
}
html[data-bgfi-charte][data-bgfi-ct="marine"] {
  --c-bg:#e9eef5; --c-surface:#ffffff; --c-surface-2:#f3f6fa; --c-border:#d5deea; --c-text:#0b2545; --c-muted:#4f6080;
  --c-accent:#0b4f8a; --c-ring:rgba(11,79,138,.3); --c-onglets:#e3eaf3; --c-coche:#a3b1c6; --c-tete-carte:#0b4f8a;
}
html[data-bgfi-charte][data-bgfi-ct="sombre"] {
  --c-bg:#071428; --c-surface:#0e1f3a; --c-surface-2:#0b1a31; --c-border:#1d3254; --c-text:#e7edf5; --c-muted:#93a4bd;
  --c-accent:#5b8bc9; --c-accent-hover:#7ea5d8; --c-sur-accent:#071428; --c-ring:rgba(91,139,201,.45);
  --c-onglets:#0b1a31; --c-champ:#0b1a31; --c-coche:#5d6f8c; --c-tete-carte:#a8c0e3; --c-ombre-carte:0 40px 90px rgba(0,0,0,.6);
  --c-nom-carte:#e7edf5; --c-nom-carte-2:#97a083;
  --c-voile:linear-gradient(120deg, rgba(4,11,22,.96), rgba(7,20,40,.72));
  color-scheme:dark;
}

/* ----------------------------------------------------------- pictogrammes */
html[data-bgfi-charte] .bgfi-c-ico, html[data-bgfi-charte] .bgfi-c-tuile::before {
  display:inline-block; flex:none; width:1em; height:1em; background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat; mask:var(--ico) center/contain no-repeat;
}
html[data-bgfi-charte] .bgfi-c-ico--user { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--cadenas { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--oeil { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--oeil-barre { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--agence { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M9.5 21v-7M14.5 21v-7M3 10l9-6 9 6z'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--telephone { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--courriel { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--formulaire { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--message { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.4 7.6L3 21l1.5-5A8.5 8.5 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--discussion { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 9a6 6 0 0 1-8.6 5.4L3 15.5l1-3.2A6 6 0 1 1 15 9z'/%3E%3Cpath d='M9.5 17.5a6 6 0 0 0 8.1 1.9L21 20.5l-1-3.2A6 6 0 0 0 17 9.3'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--reseau { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='5' rx='1'/%3E%3Crect x='3' y='16' width='6' height='5' rx='1'/%3E%3Crect x='15' y='16' width='6' height='5' rx='1'/%3E%3Cpath d='M12 8v4M6 16v-2h12v2'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--palette { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0 0 18c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1.1.9-2 2-2H17a4 4 0 0 0 4-4c0-4.1-4-7.4-9-7.4z'/%3E%3Cpath d='M7.5 11h.01M10 7.5h.01M14.5 7.5h.01'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--entrer { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .bgfi-c-ico--coche { --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }


/* --------------------------------------------- structure des ecrans publics */
/* Zammad fixe la taille de base a 10 px ; la charte raisonne en rem de 16 px. On ne la
   retablit QUE sur les ecrans publics : l'interface agent garde ses mesures. */
html[data-bgfi-charte]:has(:is(.login, .reset_password, .signup).fullscreen) { font-size:16px; }
html[data-bgfi-charte] #app:has(> .login.fullscreen), html[data-bgfi-charte] #app:has(> .reset_password.fullscreen), html[data-bgfi-charte] #app:has(> .signup.fullscreen) { min-width:0; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen {
  position:relative; isolation:isolate; box-sizing:border-box; min-height:100vh; height:auto;
  overflow:clip; /* l'etoile deborde : « clip » rogne sans creer de zone de defilement (hidden en creait une, decalee de 170 px) */
  flex:1 1 auto; width:100%; margin:0;
  background-color:var(--c-marine-2);
  background-image:var(--c-voile), url("charte/siege-nuit.jpg?v=1");
  background-size:cover; background-position:center; background-repeat:no-repeat;
  font-family:Inter, system-ui, sans-serif; color:var(--c-text); -webkit-font-smoothing:antialiased;
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen::after {
  content:""; position:absolute; z-index:-1; pointer-events:none; right:-130px; bottom:-170px; width:620px; height:620px;
  background:var(--c-etoile); opacity:var(--c-etoile-op);
  -webkit-mask:url("charte/etoile.png") center/contain no-repeat; mask:url("charte/etoile.png") center/contain no-repeat;
}
/* ce que la charte remplace */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-vitrine, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-bascule, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-logo-carte, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-slogan-carte, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .company-logo,
html[data-bgfi-charte] .login.fullscreen .fullscreen-body > p, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy .bgfi-pied-droite, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy .bgfi-pied-sep { display:none !important; }

/* marque en haut a gauche, editeur en bas a gauche */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-marque { position:absolute; left:4rem; top:2.5rem; z-index:2; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-logo-banque { display:block; width:14.9rem; height:3.4rem; background:var(--c-logo-banque) left center/contain no-repeat; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-slogan { display:block; margin:.45rem 0 0 4.35rem; font-size:.64rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--c-sauge-fond); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-pied { position:absolute; left:4rem; bottom:2.25rem; display:flex; align-items:center; gap:.9rem; font-size:.78rem; line-height:1.35; color:var(--c-sur-fond-pale); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-logo-editeur { display:block; width:6.3rem; height:2.6rem; background:var(--c-logo-editeur) left center/contain no-repeat; }

/* bouton Theme + panneau */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme {
  position:absolute; right:3.5rem; top:2.9rem; z-index:5; display:inline-flex; align-items:center; gap:.5rem; height:2.4rem; padding:0 1rem;
  border-radius:999px; border:1px solid var(--c-bouton-bord); background:var(--c-bouton-fond); color:var(--c-sur-fond);
  font:600 .82rem/1 Inter, system-ui, sans-serif; cursor:pointer;
}
html[data-bgfi-charte] .bgfi-c-theme:focus-visible, html[data-bgfi-charte] .bgfi-c-apercu:focus-visible { outline:3px solid var(--c-ring); outline-offset:2px; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme-pastille { width:.85rem; height:.85rem; border-radius:50%; border:2px solid var(--c-sauge); background:var(--c-surface); }
html[data-bgfi-charte] .bgfi-c-themes {
  position:absolute; right:3.5rem; top:5.8rem; z-index:6; width:24rem; padding:1rem; border-radius:1rem;
  background:#fffdf8; color:#14243b; box-shadow:0 30px 70px rgba(0,0,0,.4); font-family:Inter, system-ui, sans-serif; text-align:left;
}
html[data-bgfi-charte] .bgfi-c-themes[hidden] { display:none; }
html[data-bgfi-charte] .bgfi-c-themes-titre { font-weight:700; font-size:.92rem; }
html[data-bgfi-charte] .bgfi-c-themes-aide { font-size:.76rem; color:#64605a; margin:.15rem 0 .8rem; }
html[data-bgfi-charte] .bgfi-c-apercus { display:grid; grid-template-columns:1fr 1fr; gap:.65rem; }
html[data-bgfi-charte] .bgfi-c-apercu {
  position:relative; display:block; padding:.45rem; border:1px solid #e5ddcc; border-radius:.7rem; background:#fff;
  font:600 .78rem Inter, system-ui, sans-serif; color:#14243b; text-align:left; cursor:pointer;
}
html[data-bgfi-charte] .bgfi-c-apercu.on { border:2px solid #123c6b; }
html[data-bgfi-charte] .bgfi-c-apercu.on::after {
  content:""; position:absolute; top:.45rem; right:.5rem; width:1.15rem; height:1.15rem; border-radius:50%; background:#123c6b;
}
html[data-bgfi-charte] .bgfi-c-apercu.on::before {
  content:""; position:absolute; top:.6rem; right:.65rem; width:.85rem; height:.85rem; z-index:1; background:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-bgfi-charte] .bgfi-c-mini { display:grid; grid-template-columns:28% 1fr; height:3.4rem; border-radius:.45rem; overflow:hidden; margin-bottom:.35rem; }
html[data-bgfi-charte] .bgfi-c-mini i { display:block; }
html[data-bgfi-charte] .bgfi-c-mini-corps { display:grid; gap:.25rem; align-content:start; padding:.35rem; }
html[data-bgfi-charte] .bgfi-c-mini-corps b { display:block; height:.35rem; border-radius:.2rem; }
html[data-bgfi-charte] .bgfi-c-mini-corps b:nth-child(2) { width:60%; } html[data-bgfi-charte] .bgfi-c-mini-corps b:nth-child(3) { width:40%; }
html[data-bgfi-charte] .bgfi-c-apercu--ivoire .bgfi-c-mini { background:#f5f1e8; } html[data-bgfi-charte] .bgfi-c-apercu--ivoire i { background:#0b2545; }
html[data-bgfi-charte] .bgfi-c-apercu--ivoire b:nth-child(1) { background:#fffdf8; } html[data-bgfi-charte] .bgfi-c-apercu--ivoire b:nth-child(2) { background:#e5ddcc; } html[data-bgfi-charte] .bgfi-c-apercu--ivoire b:nth-child(3) { background:#123c6b; }
html[data-bgfi-charte] .bgfi-c-apercu--clair .bgfi-c-mini { background:#f3f5f8; } html[data-bgfi-charte] .bgfi-c-apercu--clair i { background:#0b2545; }
html[data-bgfi-charte] .bgfi-c-apercu--clair b:nth-child(1) { background:#ffffff; } html[data-bgfi-charte] .bgfi-c-apercu--clair b:nth-child(2) { background:#dfe5ed; } html[data-bgfi-charte] .bgfi-c-apercu--clair b:nth-child(3) { background:#123c6b; }
html[data-bgfi-charte] .bgfi-c-apercu--marine .bgfi-c-mini { background:#e9eef5; } html[data-bgfi-charte] .bgfi-c-apercu--marine i { background:#0b2545; }
html[data-bgfi-charte] .bgfi-c-apercu--marine b:nth-child(1) { background:#ffffff; } html[data-bgfi-charte] .bgfi-c-apercu--marine b:nth-child(2) { background:#d5deea; } html[data-bgfi-charte] .bgfi-c-apercu--marine b:nth-child(3) { background:#0b4f8a; }
html[data-bgfi-charte] .bgfi-c-apercu--sombre .bgfi-c-mini { background:#071428; } html[data-bgfi-charte] .bgfi-c-apercu--sombre i { background:#06111f; }
html[data-bgfi-charte] .bgfi-c-apercu--sombre b:nth-child(1) { background:#0e1f3a; } html[data-bgfi-charte] .bgfi-c-apercu--sombre b:nth-child(2) { background:#1d3254; } html[data-bgfi-charte] .bgfi-c-apercu--sombre b:nth-child(3) { background:#5b8bc9; }

/* pied Zammad : mentions + « Propulse par Zammad », en bas a droite */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy {
  position:absolute; left:auto; right:3.5rem; bottom:2.5rem; top:auto; width:auto; height:auto; margin:0; padding:0; z-index:2;
  display:flex; align-items:center; gap:.35rem; background:none; border:0; box-shadow:none;
  font:400 .76rem Inter, system-ui, sans-serif; color:var(--c-sur-fond-pale);
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy .bgfi-pied-mentions { display:inline-flex; gap:1.1rem; margin-right:1.1rem; color:var(--c-sur-fond-2); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy a { color:inherit; display:inline-flex; align-items:center; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy .icon-logo { width:15px; height:15px; fill:currentColor; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy .icon-logotype { width:54px; height:12px; fill:currentColor; }

/* ------------------------------------------------------- page de connexion */
html[data-bgfi-charte] .login.fullscreen {
  display:grid; grid-template-columns:minmax(0, 1fr) 27rem; column-gap:5rem; align-items:center;
  padding:9rem 7.5rem 7rem 4rem;
}
html[data-bgfi-charte] .login.fullscreen > .fullscreen-center { grid-column:2; grid-row:1; }
html[data-bgfi-charte] .login.fullscreen > .bgfi-c-accroche { grid-column:1; grid-row:1; }

/* accroche (charte §4) */
html[data-bgfi-charte] .login.fullscreen .bgfi-c-accroche { max-width:38rem; color:var(--c-sur-fond); text-align:left; }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-accroche p:not(.bgfi-c-citation) { text-align:left; padding:0; }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-surtitre { font-size:.74rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--c-sauge-fond); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-nom { font:400 3.9rem/1.05 Belleza, Optima, Candara, serif; letter-spacing:-.03em; margin:.35rem 0 .3rem; color:var(--c-nom-bgfi); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-nom span { color:var(--c-nom-court); }
html[data-bgfi-charte] .bgfi-c-marque-nom { font-synthesis:none; white-space:nowrap; }
html[data-bgfi-charte] .bgfi-c-marque-nom > span { margin-left:.07em; letter-spacing:-.01em; }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-sous-nom { font-size:.8rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--c-sur-fond-pale); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-phrase { font-size:1.08rem; line-height:1.6; margin:1rem 0 1.2rem; color:var(--c-sur-fond-2); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-canaux-titre { font-size:.68rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; margin-bottom:.7rem; color:var(--c-sur-fond-pale); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-canaux { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:.7rem; }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-canal { display:flex; align-items:center; gap:.8rem; padding:.6rem .85rem; border-radius:.9rem; background:var(--c-tuile); border:1px solid var(--c-tuile-bord); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-tuile {
  flex:none; width:2.4rem; height:2.4rem; border-radius:.7rem; display:grid; place-items:center; color:var(--c-pictos); font-size:1.15rem;
  background:var(--c-pastille-picto); border:1px solid var(--c-pastille-bord);
}
html[data-bgfi-charte] .login.fullscreen .bgfi-c-tuile::before { content:""; }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-canal b { display:block; font-size:.95rem; font-weight:700; color:var(--c-sur-fond); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-canal small { font-size:.78rem; color:var(--c-sur-fond-pale); }
html[data-bgfi-charte] .login.fullscreen .bgfi-c-citation { margin:1.5rem 0 0; padding-left:1rem; border-left:3px solid var(--c-sauge); font-style:italic; font-size:1rem; color:var(--c-sur-fond-2); }

/* ------------------------------------------------------------------ cartes */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .fullscreen-center { display:block; margin:0; padding:0; width:auto; min-height:0; height:auto; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .fullscreen-body { display:block; width:100%; max-width:27rem; margin:0; padding:0; text-align:left; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .hero-unit {
  position:relative; box-sizing:border-box; width:100%; margin:0; padding:1.9rem 2rem 1.2rem; border-radius:1.4rem;
  background:var(--c-surface); border:1px solid var(--c-border); box-shadow:var(--c-ombre-carte); color:var(--c-text);
  text-align:left; font-family:Inter, system-ui, sans-serif;
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .hero-unit::before { display:none; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-carte-tete { display:flex; align-items:center; justify-content:center; gap:.65rem; font-weight:800; letter-spacing:.14em; font-size:.78rem; color:var(--c-tete-carte); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-carte-tete img { height:2rem; width:auto; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-carte-nom { font:400 1.5rem/1 Belleza, Optima, Candara, serif; letter-spacing:-.03em; color:var(--c-nom-carte); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-carte-nom span { color:var(--c-nom-carte-2); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-carte-titre, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .hero-unit h1, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .hero-unit h2 {
  display:block; margin:1rem 0 .7rem; padding:0; font:800 1.7rem/1.2 Inter, system-ui, sans-serif; letter-spacing:-.02em;
  color:var(--c-text); text-align:center; text-transform:none;
}
/* onglets Collaborateur / Client (poses par bgfi.js) */
html[data-bgfi-charte] .login.fullscreen .bgfi-onglets { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:.25rem; margin:0; border-radius:.75rem; background:var(--c-onglets); border:0; }
html[data-bgfi-charte] .login.fullscreen .bgfi-onglets button {
  display:flex; align-items:center; justify-content:center; gap:.45rem; height:auto; padding:.5rem; margin:0; border:0; border-radius:.55rem;
  background:transparent; box-shadow:none; color:var(--c-muted); font:600 .84rem Inter, system-ui, sans-serif; cursor:pointer;
}
html[data-bgfi-charte] .login.fullscreen .bgfi-onglets button::before {
  content:""; width:1rem; height:1rem; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M9.5 21v-7M14.5 21v-7M3 10l9-6 9 6z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M9.5 21v-7M14.5 21v-7M3 10l9-6 9 6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-bgfi-charte] .login.fullscreen .bgfi-onglets button[data-public="client"]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .login.fullscreen .bgfi-onglets button.on { background:var(--c-surface); color:var(--c-accent); box-shadow:0 1px 3px rgba(20,36,59,.14); }
html[data-bgfi-charte][data-bgfi-ct="sombre"] .login.fullscreen .bgfi-onglets button.on { background:#16294a; color:#cfe0f5; box-shadow:none; }
html[data-bgfi-charte] .login.fullscreen .bgfi-onglets button:focus-visible { outline:3px solid var(--c-ring); outline-offset:1px; }
html[data-bgfi-charte] .login.fullscreen .bgfi-contexte { display:flex; justify-content:center; align-items:center; gap:.4rem; margin:.55rem 0 .1rem; font-size:.76rem; color:var(--c-muted); text-align:center; }
html[data-bgfi-charte] .login.fullscreen .bgfi-contexte::before {
  content:""; width:.95rem; height:.95rem; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='5' rx='1'/%3E%3Crect x='3' y='16' width='6' height='5' rx='1'/%3E%3Crect x='15' y='16' width='6' height='5' rx='1'/%3E%3Cpath d='M12 8v4M6 16v-2h12v2'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='5' rx='1'/%3E%3Crect x='3' y='16' width='6' height='5' rx='1'/%3E%3Crect x='15' y='16' width='6' height='5' rx='1'/%3E%3Cpath d='M12 8v4M6 16v-2h12v2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* champs */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen form .form-group { position:relative; margin:0; padding:0; float:none; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .formGroup-label { display:flex; justify-content:space-between; align-items:baseline; margin:.85rem 0 .34rem; padding:0; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .formGroup-label label, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .hero-unit form > label {
  margin:0; padding:0; font:600 .8rem Inter, system-ui, sans-serif; letter-spacing:normal; text-transform:none; color:var(--c-text);
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .formGroup-label a[href="#password_reset"] {
  margin:0; padding:0; height:auto; min-height:0; border:0; background:none; box-shadow:none;
  font:600 .8rem Inter, system-ui, sans-serif; color:var(--c-accent); text-decoration:none; text-transform:none;
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .formGroup-label a[href="#password_reset"]:hover { text-decoration:underline; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .form-control {
  box-sizing:border-box; width:100%; height:2.6rem; padding:0 .8rem; margin:0; border:1px solid var(--c-border); border-radius:.55rem;
  background-color:var(--c-champ); color:var(--c-text); box-shadow:none; font:400 .9rem Inter, system-ui, sans-serif;
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .form-control::placeholder { color:var(--c-muted); opacity:.75; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .form-control:focus { outline:none; border-color:var(--c-accent); box-shadow:0 0 0 3px var(--c-ring); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .form-control[aria-invalid="true"] { border-color:#d92d20; }
/* pictogrammes dans les champs de connexion */
html[data-bgfi-charte] .login.fullscreen #username, html[data-bgfi-charte] .login.fullscreen #password { padding-left:2.45rem; }
html[data-bgfi-charte] .login.fullscreen .bgfi-tel-cadre { display:block; position:relative; }
html[data-bgfi-charte] .login.fullscreen .bgfi-tel-cadre::before, html[data-bgfi-charte] .login.fullscreen .bgfi-champ::before {
  content:""; position:absolute; left:.85rem; bottom:.8rem; width:1rem; height:1rem; z-index:1; background:var(--c-muted); pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-bgfi-charte] .login.fullscreen .bgfi-tel-cadre::before { top:50%; bottom:auto; transform:translateY(-50%); }
html[data-bgfi-charte] .login.fullscreen .bgfi-champ::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .login.fullscreen .bgfi-tel-actif::before { display:none; }
/* pastille +242 (onglet Client) */
html[data-bgfi-charte] .login.fullscreen .bgfi-pastille {
  display:none; position:absolute; left:.45rem; top:50%; transform:translateY(-50%); z-index:2; align-items:center; gap:.35rem;
  height:1.75rem; padding:0 .5rem 0 .4rem; border-radius:.4rem; background:var(--c-onglets); border:1px solid var(--c-border);
  color:var(--c-text); font:700 .8rem/1 Inter, system-ui, sans-serif; pointer-events:none;
}
html[data-bgfi-charte] .login.fullscreen .bgfi-pastille svg { width:1.1rem; height:.75rem; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.1); }
html[data-bgfi-charte] .login.fullscreen .bgfi-tel-actif .bgfi-pastille { display:flex; }
html[data-bgfi-charte] .login.fullscreen .bgfi-tel-actif #username { padding-left:5.6rem; }
html[data-bgfi-charte] .bgfi-erreur-tel { margin:.4rem .1rem 0; font:600 .78rem/1.4 Inter, system-ui, sans-serif; color:#b42318; }
html[data-bgfi-charte][data-bgfi-ct="sombre"] .bgfi-erreur-tel { color:#fda29b; }
/* oeil du mot de passe (pose par bgfi.js) */
html[data-bgfi-charte] .login.fullscreen .bgfi-oeil {
  position:absolute; right:.4rem; bottom:.3rem; width:2rem; height:2rem; padding:0; margin:0; border:0; border-radius:.4rem;
  background:transparent; color:var(--c-muted); cursor:pointer;
}
html[data-bgfi-charte] .login.fullscreen .bgfi-oeil::before {
  content:""; display:block; width:1.1rem; height:1.1rem; margin:auto; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-bgfi-charte] .login.fullscreen .bgfi-oeil[aria-pressed="true"]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
html[data-bgfi-charte] .login.fullscreen .bgfi-oeil:focus-visible { outline:3px solid var(--c-ring); }
/* « Se souvenir de moi » : case native, a la couleur d'accent */
html[data-bgfi-charte] .login.fullscreen .bgfi-ligne-options, html[data-bgfi-charte] .login.fullscreen form .form-group:has(input[name="remember_me"]) { display:flex; align-items:center; margin:.95rem 0 1rem; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .checkbox-replacement { display:inline-flex; align-items:center; gap:.5rem; margin:0; padding:0; font:400 .84rem Inter, system-ui, sans-serif; color:var(--c-text); cursor:pointer; text-transform:none; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .checkbox-replacement .icon-checkbox, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .checkbox-replacement .icon-checkbox-checked { display:none !important; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .checkbox-replacement input[type="checkbox"] {
  -webkit-appearance:auto; appearance:auto; position:static; opacity:1; width:1rem; height:1rem; margin:0; accent-color:var(--c-accent);
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .checkbox-replacement .label-text { margin:0; padding:0; color:var(--c-text); }
/* bouton principal */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .form-controls { display:flex; flex-wrap:wrap; gap:.6rem; margin:0; padding:0; border:0; background:none; justify-content:stretch; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .btn--primary {
  flex:1 1 100%; display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; margin:0; padding:0 1rem;
  height:2.75rem !important; min-height:2.75rem !important; line-height:1 !important; /* une regle Zammad ramenait le bouton a 19 px */
  border:0; border-radius:.55rem; background:var(--c-accent); color:var(--c-sur-accent); box-shadow:none; text-shadow:none;
  font:600 .95rem Inter, system-ui, sans-serif; letter-spacing:normal; text-transform:none; cursor:pointer;
}
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .btn--primary::before {
  content:""; width:1.05rem; height:1.05rem; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-bgfi-charte] :is(.signup, .reset_password).fullscreen .btn--primary::before { display:none; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .btn--primary:hover { background:var(--c-accent-hover); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .btn--primary:focus-visible { outline:3px solid var(--c-ring); outline-offset:2px; }
html[data-bgfi-charte][data-bgfi-ct="sombre"] :is(.login, .reset_password, .signup).fullscreen .btn--primary { font-weight:700; }
/* bas de carte */
html[data-bgfi-charte] .login.fullscreen .js-footer { margin:.9rem 0 0; padding:0; border:0; text-align:center; font:400 .83rem Inter, system-ui, sans-serif; color:var(--c-muted); }
html[data-bgfi-charte] .login.fullscreen .js-footer > p:first-of-type, html[data-bgfi-charte] .login.fullscreen .js-footer hr { display:none; }
html[data-bgfi-charte] .login.fullscreen .js-footer p { margin:0; }
html[data-bgfi-charte] .login.fullscreen .js-footer .bgfi-accroche-compte { margin-right:.3rem; }
html[data-bgfi-charte] .login.fullscreen .js-footer a { color:var(--c-accent); font-weight:600; text-decoration:none; }
html[data-bgfi-charte][data-bgfi-ct="sombre"] :is(.login, .reset_password, .signup).fullscreen :is(.js-footer a, .formGroup-label a, .bgfi-lien-bas .btn--text) { color:#8fb2e0; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-carte-pied { display:flex; justify-content:space-between; gap:1rem; margin-top:1rem; padding-top:.75rem; border-top:1px solid var(--c-border); font-size:.73rem; color:var(--c-muted); }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-securise { display:inline-flex; align-items:center; gap:.3rem; white-space:nowrap; }

/* ------------------------------------------ mot de passe oublie, inscription */
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen { display:block; padding:8.5rem 1rem 7rem; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .fullscreen-center { max-width:27rem; margin:0 auto; }
html[data-bgfi-charte] .signup.fullscreen .fullscreen-center, html[data-bgfi-charte] .signup.fullscreen .fullscreen-body { max-width:32rem; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .bgfi-intro-publique { margin:-.2rem 0 .5rem !important; padding:0 !important; text-align:left !important; font-size:.86rem; line-height:1.5; color:var(--c-muted); }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen form fieldset { border:0; padding:0; margin:0; min-width:0; }
html[data-bgfi-charte] .signup.fullscreen form fieldset { display:flex; flex-wrap:wrap; column-gap:.8rem; }
html[data-bgfi-charte] .signup.fullscreen form fieldset > * { flex:1 1 100%; }
html[data-bgfi-charte] .signup.fullscreen form fieldset > .form-group { flex:1 1 calc(50% - .4rem); width:auto; min-width:0; float:none; }
html[data-bgfi-charte] .signup.fullscreen form fieldset > .form-group:has(input[name="email"]) { flex-basis:100%; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .controls { margin:0; padding:0; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .help-inline:empty, html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .help-block:empty { display:none; }
html[data-bgfi-charte] .signup.fullscreen form .form-controls { flex-basis:100%; margin-top:1.1rem; }
html[data-bgfi-charte] .reset_password.fullscreen form .form-controls { margin-top:1.1rem; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .form-controls .btn--text { display:none; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .bgfi-lien-bas { margin:.9rem 0 0; text-align:center; font-size:.83rem; color:var(--c-muted); }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .bgfi-lien-bas .btn--text {
  display:inline; margin:0; padding:0; border:0; background:none; height:auto; color:var(--c-accent); font:600 .83rem Inter, system-ui, sans-serif; text-decoration:none;
}
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .bgfi-reassurance {
  display:flex; align-items:flex-start; gap:.45rem; margin-top:1rem; padding-top:.75rem; border-top:1px solid var(--c-border); font-size:.73rem; line-height:1.45; color:var(--c-muted);
}
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .bgfi-reassurance svg { width:1rem; height:1rem; flex:none; }
html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen .alert { border-radius:.6rem; font-size:.84rem; }

/* mention « Propulse par Zammad » et liens zammad.org retires des ecrans publics (demande de l'utilisateur, 13/10) ;
   nos mentions (Confidentialite, Conditions, Aide, phrase) restent */
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy { font-size:0; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy > span { font-size:.76rem; }
html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy > a[href*="zammad"] { display:none; }

/* --------------------------------------------------------------- reactif */
@media (max-width: 1180px) {
  html[data-bgfi-charte] .login.fullscreen { column-gap:3rem; padding-right:3.5rem; }
  html[data-bgfi-charte] .login.fullscreen .bgfi-c-nom { font-size:3.2rem; }
}
@media (max-width: 980px) {
  html[data-bgfi-charte] .login.fullscreen { grid-template-columns:minmax(0, 27rem); justify-content:center; padding:8rem 1rem 3rem; row-gap:1.5rem; }
  html[data-bgfi-charte] .login.fullscreen > .bgfi-c-accroche { display:none; }
  html[data-bgfi-charte] .login.fullscreen > .fullscreen-center { grid-column:1; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-marque { left:1rem; top:1.4rem; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-logo-banque { width:11.4rem; height:2.6rem; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-slogan { margin-left:3.35rem; font-size:.56rem; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme { right:1rem; top:1.6rem; }
  html[data-bgfi-charte] .bgfi-c-themes { right:1rem; top:4.4rem; width:min(24rem, calc(100vw - 2rem)); }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-pied { position:static; justify-content:center; flex-wrap:wrap; margin:1.2rem auto 0; text-align:center; }
  html[data-bgfi-charte] .login.fullscreen .poweredBy, html[data-bgfi-charte] .login.fullscreen .bgfi-c-pied { grid-column:1; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .poweredBy .bgfi-pied-mentions { margin-right:.6rem; }
  html[data-bgfi-charte] :is(.reset_password, .signup).fullscreen { padding:7.5rem 1rem 2.5rem; }
}
@media (max-width: 520px) {
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .hero-unit { padding:1.5rem 1.25rem 1rem; }
  html[data-bgfi-charte] .signup.fullscreen form fieldset > .form-group { flex-basis:100%; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-carte-pied { flex-direction:column; align-items:center; gap:.35rem; }
  /* Le selecteur de theme et la marque sont tous deux en position absolue :
     sous 462 px, le bouton (166 px) recouvrait la fin de « BGFIBank ». On ne
     garde ici que la pastille de couleur, qui suffit a identifier le reglage ;
     le libelle reste lu par les lecteurs d'ecran via l'attribut title. */
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme-texte, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme-nom { display:none; }
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme { padding-left:.6rem; padding-right:.6rem; gap:.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-bgfi-charte] * { transition:none !important; animation:none !important; }
}
@media print {
  html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen::after, html[data-bgfi-charte] :is(.login, .reset_password, .signup).fullscreen .bgfi-c-theme, html[data-bgfi-charte] .bgfi-c-themes { display:none !important; }
}

/* ------------------------------------- interface agent : reprises de bgfi.css
   (bgfi.css est coupe en mode test : on garde ce qu'il apportait hors connexion) */
html[data-bgfi-charte] .search .logo .bgfi-logo-lateral, html[data-bgfi-charte] #app.navigation-collapsed .search .logo .bgfi-logo-lateral {
  width:35px; height:30px; margin-left:4px; object-fit:contain; position:relative;
}
html[data-bgfi-charte] .bgfi-tel-mobile { display:block; position:relative; }
html[data-bgfi-charte] .bgfi-tel-mobile .bgfi-pastille {
  display:flex; position:absolute; left:6px; top:50%; transform:translateY(-50%); z-index:2; align-items:center; gap:5px; height:26px;
  padding:0 8px 0 6px; border-radius:7px; background:#eaf1fa; border:1px solid #cfddee; color:#052d57; font-size:13px; line-height:1; pointer-events:none;
}
html[data-bgfi-charte] .bgfi-tel-mobile .bgfi-pastille svg { width:20px; height:13px; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.1); }
html[data-bgfi-charte] .bgfi-tel-mobile .bgfi-pastille b { font-weight:700; }
html[data-bgfi-charte] .bgfi-tel-mobile .form-control { padding-left:84px !important; }
html[data-bgfi-charte] .bgfi-tel-mobile .form-control[aria-invalid="true"] { border-color:#d92d20; }

/* listes a deux niveaux (« De quoi s'agit-il ? », 15/10) : retour et domaine survole en sauge au lieu du vert de Zammad */
html[data-bgfi-charte] .searchableSelect.dropdown li.js-back:hover, html[data-bgfi-charte] .searchableSelect.dropdown li.js-back.is-active,
html[data-bgfi-charte] .searchableSelect.dropdown li.inactive-with-children:hover, html[data-bgfi-charte] .searchableSelect.dropdown li.inactive-with-children.is-active {
  background:#6f7a5c;
}

/* formulaire client sans titre (titre rempli par la rubrique, 15/10) : « De quoi s'agit-il ? » et ses champs passent avant le texte.
   Ne s'applique que si le titre est masque par les regles de formulaire. */
html[data-bgfi-charte] form.ticket-create:has(.ticket-form-top > .form-group.hide input[name="title"]) { display:flex; flex-direction:column; }
html[data-bgfi-charte] form.ticket-create:has(.ticket-form-top > .form-group.hide input[name="title"]) > .formset-inset { order:1; }
html[data-bgfi-charte] form.ticket-create:has(.ticket-form-top > .form-group.hide input[name="title"]) > .article-form-top { order:2; margin-top:1rem; }
html[data-bgfi-charte] form.ticket-create:has(.ticket-form-top > .form-group.hide input[name="title"]) > .form-controls { order:3; }

/* ============================== ETAPE 2 : interface agents et clients (jetons Zammad) */
html[data-bgfi-charte] {
  --menu-text:rgba(255,255,255,.82);
  --menu-text-active:#ffffff;
  --menu-background-active:rgba(255,255,255,.10);
  --menu-icon:rgba(255,255,255,.55);
  --menu-background-primary:transparent;
  --menu-background-primary-hover:rgba(255,255,255,.06);
  --menu-background-secondary:rgba(255,255,255,.04);
  --menu-close-tab-background:rgba(255,255,255,.12);
  --fullscreen-background:#0b2545;
  --c-scroll-nav:rgba(255,255,255,.20);
  --c-scroll-nav-survol:rgba(255,255,255,.36);
  --background-primary:#f5f1e8;
  --background-primary-alt:#efe9dc;
  --background-secondary:#fffdf8;
  --background-secondary-hover:#faf7f0;
  --background-tertiary:#0b2545;
  --background-quaternary:#071a33;
  --background-quaternary-alt:#e3eaf3;
  --background-popover:#fffdf8;
  --background-active:#0b2545;
  --background-highlight:#e3ecf7;
  --background-article-meta:#faf7f0;
  --background-article-customer:#eef3f9;
  --background-article-customer-meta:#e6edf6;
  --border:#e5ddcc;
  --border-alt:#e5ddcc;
  --border-highlight:#123c6b;
  --border-internal:#97a083;
  --border-internal-stripe:#eceedf;
  --border-article-customer:#d3dfee;
  --border-article-customer-selected:#b9cbe3;
  --shadow-highlight:rgba(18,60,107,.18);
  --header-primary:#14243b;
  --header-secondary:#64605a;
  --text-normal:#14243b;
  --text-muted:#64605a;
  --text-muted-alt:#7a7468;
  --text-link:#123c6b;
  --text-nav:#123c6b;
  --highlight:#123c6b;
  --button-primary-background:#123c6b;
  --button-primary-background-active:#0b2545;
  --button-primary-text:#ffffff;
  --button-background:#fffdf8;
  --tag-background:#f1ebdf;
  --tag-text:#3d4a5c;
  --table-header-background:#f1ebdf;
  --table-border:#e5ddcc;
  --file-icon-background:#fffdf8;
  --danger-color:#b42318;
  --c-thead-text:#3d4a5c;
  --c-sb-bg:#0b2545;
  --c-sb-bg-2:#071a33;
  --c-accent:#123c6b;
  --c-surface:#fffdf8;
  --c-scroll:rgba(11,37,69,.20);
  --c-scroll-survol:rgba(11,37,69,.34);
}
html[data-bgfi-charte][data-bgfi-ct="clair"] {
  --background-primary:#f3f5f8;
  --background-primary-alt:#eaeef3;
  --background-secondary:#ffffff;
  --background-secondary-hover:#f7f9fc;
  --background-popover:#ffffff;
  --background-article-meta:#f7f9fc;
  --border:#dfe5ed;
  --border-alt:#dfe5ed;
  --header-primary:#0f2138;
  --header-secondary:#5a6779;
  --text-normal:#0f2138;
  --text-muted:#5a6779;
  --text-muted-alt:#6b7789;
  --button-background:#ffffff;
  --tag-background:#eef2f7;
  --table-header-background:#f2f5f9;
  --table-border:#dfe5ed;
  --file-icon-background:#ffffff;
  --c-thead-text:#3a4a60;
  --c-surface:#ffffff;
}
html[data-bgfi-charte][data-bgfi-ct="marine"] {
  --background-primary:#e9eef5;
  --background-primary-alt:#dfe6ef;
  --background-secondary:#ffffff;
  --background-secondary-hover:#f3f6fa;
  --background-popover:#ffffff;
  --background-article-meta:#f3f6fa;
  --border:#d5deea;
  --border-alt:#d5deea;
  --border-highlight:#0b4f8a;
  --header-primary:#0b2545;
  --header-secondary:#4f6080;
  --text-normal:#0b2545;
  --text-muted:#4f6080;
  --text-muted-alt:#607192;
  --text-link:#0b4f8a;
  --text-nav:#0b4f8a;
  --highlight:#0b4f8a;
  --button-primary-background:#0b4f8a;
  --button-primary-background-active:#0b2545;
  --button-background:#ffffff;
  --tag-background:#e3eaf3;
  --tag-text:#0b2545;
  --table-header-background:#e3eaf3;
  --table-border:#d5deea;
  --file-icon-background:#ffffff;
  --c-thead-text:#0b2545;
  --c-accent:#0b4f8a;
  --c-surface:#ffffff;
}
html[data-bgfi-charte][data-bgfi-ct="sombre"] {
  --background-primary:#071428;
  --background-primary-alt:#0b1a31;
  --background-secondary:#0e1f3a;
  --background-secondary-hover:#13284a;
  --background-tertiary:#06111f;
  --background-quaternary:#040b16;
  --background-quaternary-alt:#16294a;
  --background-popover:#0e1f3a;
  --background-active:#5b8bc9;
  --background-highlight:#16325a;
  --background-article-meta:#0b1a31;
  --background-article-customer:#13284a;
  --background-article-customer-meta:#112440;
  --border:#1d3254;
  --border-alt:#1d3254;
  --border-highlight:#5b8bc9;
  --border-internal:#6f7a5c;
  --border-internal-stripe:#1b2a24;
  --border-article-customer:#1d3254;
  --border-article-customer-selected:#2a4672;
  --shadow-highlight:rgba(91,139,201,.35);
  --header-primary:#e7edf5;
  --header-secondary:#93a4bd;
  --text-normal:#e7edf5;
  --text-muted:#93a4bd;
  --text-muted-alt:#8697b0;
  --text-link:#8fb2e0;
  --text-nav:#8fb2e0;
  --highlight:#5b8bc9;
  --button-primary-background:#5b8bc9;
  --button-primary-background-active:#7ea5d8;
  --button-primary-text:#071428;
  --button-background:#0e1f3a;
  --tag-background:#16294a;
  --tag-text:#c3cdda;
  --table-header-background:#0b1a31;
  --table-border:#1d3254;
  --file-icon-background:#c9d3e0;
  --c-thead-text:#a8b7cc;
  --c-sb-bg:#06111f;
  --c-sb-bg-2:#040b16;
  --c-accent:#5b8bc9;
  --c-surface:#0e1f3a;
  --c-scroll:rgba(231,237,245,.18);
  --c-scroll-survol:rgba(231,237,245,.32);
}

html[data-bgfi-charte] body, html[data-bgfi-charte] button, html[data-bgfi-charte] input, html[data-bgfi-charte] select, html[data-bgfi-charte] textarea { font-family:Inter, "Fira Sans", system-ui, sans-serif; }

/* barre laterale : marine, logo, nom de l'application, etoile en filigrane (charte §3.1) */
html[data-bgfi-charte] #navigation { background:linear-gradient(180deg, var(--c-sb-bg), var(--c-sb-bg-2)); isolation:isolate; overflow:hidden; border-right:1px solid rgba(255,255,255,.08); }
html[data-bgfi-charte] #navigation::after {
  content:""; position:absolute; z-index:-1; right:-90px; bottom:-60px; width:320px; height:320px; opacity:.06; background:#fff; pointer-events:none;
  -webkit-mask:url("charte/etoile.png") center/contain no-repeat; mask:url("charte/etoile.png") center/contain no-repeat;
}
html[data-bgfi-charte] .bgfi-c-nav-marque { flex:none; padding:18px 18px 6px; color:#fff; }
html[data-bgfi-charte] .bgfi-c-nav-marque .bgfi-c-logo-banque { display:block; width:150px; height:34px; background:url("charte/bgfi-bank-clair-horizontal.png") left center/contain no-repeat; }
html[data-bgfi-charte] .bgfi-c-nav-nom { margin-top:12px; font:400 24px/1.05 Belleza, Optima, Candara, serif; letter-spacing:-.03em; color:#fff; }
html[data-bgfi-charte] .bgfi-c-nav-nom span { color:#97a083; }
html[data-bgfi-charte] .bgfi-c-nav-sous { margin-top:12px; font:600 10px/1.3 Inter, system-ui, sans-serif; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.55); }
html[data-bgfi-charte] .bgfi-c-nav-pied { flex:none; display:flex; align-items:center; gap:10px; padding:10px 16px 14px; border-top:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.55); font:500 11px/1.3 Inter, system-ui, sans-serif; }
html[data-bgfi-charte] .bgfi-c-nav-pied .bgfi-c-logo-editeur { flex:none; width:62px; height:26px; background:url("charte/bgfi-services-clair.png") left center/contain no-repeat; }
html[data-bgfi-charte] .bgfi-c-nav-theme {
  flex:none; display:flex; align-items:center; gap:8px; margin:6px 14px 8px; height:32px; padding:0 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#fff; font:600 12px/1 Inter, system-ui, sans-serif; cursor:pointer;
}
html[data-bgfi-charte] .bgfi-c-nav-theme:hover { background:rgba(255,255,255,.12); }
html[data-bgfi-charte] .bgfi-c-nav-theme .bgfi-c-theme-pastille { width:11px; height:11px; border-radius:50%; border:2px solid #97a083; background:var(--c-surface); }
html[data-bgfi-charte] .bgfi-c-nav-theme .bgfi-c-ico { width:14px; height:14px; }
html[data-bgfi-charte] .bgfi-c-themes.bgfi-c-themes--nav { position:fixed; left:270px; bottom:70px; top:auto; right:auto; z-index:1000; width:360px; }
html[data-bgfi-charte] .bgfi-c-themes--nav .bgfi-c-themes-titre { font-size:14px; }
html[data-bgfi-charte] .bgfi-c-themes--nav .bgfi-c-themes-aide { font-size:12px; }
html[data-bgfi-charte] .bgfi-c-themes--nav .bgfi-c-apercu { font-size:12px; padding:7px; border-radius:10px; }
html[data-bgfi-charte] .bgfi-c-themes--nav .bgfi-c-mini { height:52px; }
/* menu replie : seul l'embleme reste (charte §3.1) */
html[data-bgfi-charte] #app.navigation-collapsed .bgfi-c-nav-marque { padding:14px 0 6px; display:flex; justify-content:center; }
html[data-bgfi-charte] #app.navigation-collapsed .bgfi-c-nav-marque .bgfi-c-logo-banque { width:34px; height:34px; background-image:url("charte/embleme.png"); background-position:center; }
html[data-bgfi-charte] #app.navigation-collapsed :is(.bgfi-c-nav-nom, .bgfi-c-nav-sous, .bgfi-c-nav-pied, .bgfi-c-nav-theme .bgfi-c-theme-texte) { display:none; }
html[data-bgfi-charte] #app.navigation-collapsed .bgfi-c-nav-theme { justify-content:center; margin:6px; padding:0; }
html[data-bgfi-charte] #app.navigation-collapsed .bgfi-c-themes--nav { left:60px; }
/* fenetre etroite (< 768 px, 26/10) : Zammad replie lui-meme le menu a 50 px et le deplie au survol -> meme affichage
   que le menu replie (sinon « Mon espace réclamations » s'ecrit lettre par lettre et le pied est coupe) */
@media screen and (max-width: 767px) {
  html[data-bgfi-charte] #navigation:not(:hover, :active, .is-not-collapsed) .bgfi-c-nav-marque { padding:14px 0 6px; display:flex; justify-content:center; }
  html[data-bgfi-charte] #navigation:not(:hover, :active, .is-not-collapsed) .bgfi-c-nav-marque .bgfi-c-logo-banque { width:34px; height:34px; background-image:url("charte/embleme.png"); background-position:center; }
  html[data-bgfi-charte] #navigation:not(:hover, :active, .is-not-collapsed) :is(.bgfi-c-nav-nom, .bgfi-c-nav-sous, .bgfi-c-nav-pied, .bgfi-c-nav-theme .bgfi-c-theme-texte, .nav-tab-name, .nav-tab-close) { display:none; }
  html[data-bgfi-charte] #navigation:not(:hover, :active, .is-not-collapsed) .bgfi-c-nav-theme { justify-content:center; margin:6px; padding:0; }
}
/* entree active : liseré sauge et petite étoile */
html[data-bgfi-charte] #navigation .menu-item.is-active, html[data-bgfi-charte] #navigation .nav-tab.is-active { box-shadow:inset 3px 0 0 #97a083; font-weight:600; }
html[data-bgfi-charte] #navigation .menu-item.is-active .menu-item-name::after { content:"\2726"; margin-left:8px; color:#97a083; font-size:11px; }
html[data-bgfi-charte] #navigation .search-holder input { border-radius:999px; }
html[data-bgfi-charte] #navigation img.bgfi-logo-lateral { content:url("charte/embleme.png"); }

/* ascenseurs : Zammad n'en style aucun, le navigateur pose donc sa barre grise systeme
   (large, avec fleches et rail blanc) — tres visible sur le marine de la barre laterale.
   On la remplace par un pouce translucide sans rail. Deux syntaxes : la standard
   (Firefox, Chrome 121+) et celle de WebKit, qui permet le pouce arrondi. */
html[data-bgfi-charte] #app, html[data-bgfi-charte] #app * { scrollbar-width:thin; scrollbar-color:var(--c-scroll) transparent; }
html[data-bgfi-charte] #app ::-webkit-scrollbar { width:10px; height:10px; }
html[data-bgfi-charte] #app ::-webkit-scrollbar-track, html[data-bgfi-charte] #app ::-webkit-scrollbar-corner { background:transparent; }
html[data-bgfi-charte] #app ::-webkit-scrollbar-thumb {
  background:var(--c-scroll); border-radius:999px;
  /* bordure transparente + background-clip : pouce affine a 6 px, avec de l'air autour */
  border:2px solid transparent; background-clip:padding-box;
}
html[data-bgfi-charte] #app ::-webkit-scrollbar-thumb:hover { background:var(--c-scroll-survol); background-clip:padding-box; }
/* barre laterale : fond marine dans les 4 themes -> pouce clair, quel que soit le theme */
html[data-bgfi-charte] #navigation, html[data-bgfi-charte] #navigation * { scrollbar-color:var(--c-scroll-nav) transparent; }
html[data-bgfi-charte] #navigation ::-webkit-scrollbar-thumb { background:var(--c-scroll-nav); background-clip:padding-box; }
html[data-bgfi-charte] #navigation ::-webkit-scrollbar-thumb:hover { background:var(--c-scroll-nav-survol); background-clip:padding-box; }

/* contenu : titres, tableaux, boutons (charte §3.3, §6, §7) */
html[data-bgfi-charte] .page-header .page-header-title h1, html[data-bgfi-charte] .page-header .page-header-title h2 { font-weight:800; letter-spacing:-.02em; color:var(--header-primary); }
html[data-bgfi-charte] .table > thead > tr > th, html[data-bgfi-charte] table.table th { background:var(--table-header-background); color:var(--c-thead-text); font-weight:700; letter-spacing:.06em; font-size:11px; }
html[data-bgfi-charte] .btn--primary, html[data-bgfi-charte] .btn.btn--primary { border-radius:8px; font-weight:600; }
/* bouton « Creer » de Zammad (vert) : action principale -> couleur d'accent (charte §6.1) */
html[data-bgfi-charte] .btn.btn--success { background:var(--button-primary-background); color:var(--button-primary-text); border-radius:8px; font-weight:600; }
html[data-bgfi-charte] .btn.btn--success:hover { background:var(--button-primary-background-active); }

/* priorite haute : pas de rouge pour le client (l'agent garde l'alerte native de Zammad) */
html[data-bgfi-charte][data-bgfi-client] .item--high-priority a { color:var(--text-link); }

/* message d'attente pendant la construction du formulaire (2 a 5 s) */
html[data-bgfi-charte] .bgfi-c-attente { margin:3rem auto; text-align:center; font-size:.9rem; color:var(--c-muted, #93a4bd); }
html[data-bgfi-charte] .bgfi-c-attente::before {
  content:""; display:block; width:1.4rem; height:1.4rem; margin:0 auto .8rem;
  border:2px solid currentColor; border-top-color:transparent; border-radius:50%;
  animation:bgfi-tourne .9s linear infinite;
}
@keyframes bgfi-tourne { to { transform:rotate(360deg); } }

/* confirmation apres le depot d'une reclamation */
html[data-bgfi-charte] .bgfi-c-depot {
  margin:0 0 1rem; padding:.7rem 1rem; border-radius:.5rem;
  background:#EAF3E7; border-left:3px solid #8FA06E; color:#2f4a22;
  font-size:.9rem; font-weight:600;
}
html[data-bgfi-charte][data-bgfi-ct="sombre"] .bgfi-c-depot { background:#15301c; border-left-color:#97a083; color:#d7e6cd; }

/* piece jointe : « selectionner une piece jointe… » se confondait avec le
   texte grise de la zone de saisie, alors qu'une photo du recu fait gagner
   des jours sur une carte capturee ou un debit conteste. */
html[data-bgfi-charte] .attachmentPlaceholder-inputHolder, html[data-bgfi-charte] .attachmentPlaceholder { font-weight:600; }
html[data-bgfi-charte] .attachmentPlaceholder-inputHolder a, html[data-bgfi-charte] .attachmentPlaceholder a { color:var(--text-link); text-decoration:underline; }

/* le profil de Zammad propose son propre reglage de theme (Sombre / Clair /
   systeme), qui fait doublon avec celui de la charte et n'offre pas les memes
   choix : on le retire de l'espace client, ou il ne peut que derouter. */
html[data-bgfi-charte][data-bgfi-client] .sidebar a[href="#profile/appearance"],
html[data-bgfi-charte][data-bgfi-client] .tabsSidebar a[href="#profile/appearance"] { display:none; }

/* pied du formulaire de creation : les deux libelles francais (« Annuler » et
   « Envoyer ma reclamation ») sont plus longs que les anglais d'origine et ne
   tenaient pas dans les 294 px disponibles ; la rangee etant en flex sans
   retour a la ligne, le bouton debordait de 98 px et recouvrait le lien.
   Le retour a la ligne sert de filet quand la fenetre est etroite. */
html[data-bgfi-charte] .ticket-create .form-controls { flex-wrap:wrap; gap:.5rem; justify-content:flex-end; align-items:center; }
html[data-bgfi-charte] .ticket-create .form-controls .btn { padding-left:16px; padding-right:16px; }

/* priorite basse : Zammad delave les liens (#8bcae9), ce qui donne un contraste
   de 1,59 sur le fond ivoire, tres en dessous du minimum lisible de 4,5.
   La teinte etait discrete tant que « basse » restait rare ; depuis que
   « Standard » occupe ce rang et sert de valeur par defaut, elle touche la
   quasi-totalite des reclamations. On rend donc aux liens la couleur de lien
   du theme, qui suit l'ivoire comme le sombre. */
html[data-bgfi-charte] .item--low-priority a { color:var(--text-link); }
html[data-bgfi-charte] .item--low-priority a:hover { color:var(--text-link); }

/* ============================== APPLICATION MOBILE (/mobile) */
html[data-bgfi-charte][data-bgfi-mobile] {
  --color-black:#f5f1e8;
  --color-white:#14243b;
  --color-gray-600:#faf7f0;
  --color-gray-500:#fffdf8;
  --color-gray-400:#f1ebdf;
  --color-gray-300:#e5ddcc;
  --color-gray-200:#9aa3ae;
  --color-gray-100:#64605a;
  --color-gray:#64605a;
  --color-gray-150:#64605a;
  --color-gray-light:rgba(255,253,248,.88);
  --color-gray-highlight:rgba(18,60,107,.08);
  --color-yellow:#123c6b;
  --color-yellow-highlight:rgba(18,60,107,.10);
  --color-blue:#123c6b;
  --color-blue-dark:#0b2545;
  --color-blue-highlight:rgba(18,60,107,.10);
  --color-pink:#97a083;
  --c-mob-bord:#e5ddcc;
  --c-mob-texte:#14243b;
  --c-mob-pale:#64605a;
  --c-mob-carte:#fffdf8;
  --c-mob-nom:#00589b;
  --c-mob-nom-2:#7d8769;
}
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-ct="clair"] {
  --color-black:#f3f5f8;
  --color-white:#0f2138;
  --color-gray-600:#f7f9fc;
  --color-gray-500:#ffffff;
  --color-gray-400:#eef2f7;
  --color-gray-300:#dfe5ed;
  --color-gray-200:#9aa3ae;
  --color-gray-100:#5a6779;
  --color-gray:#5a6779;
  --color-gray-150:#5a6779;
  --color-gray-light:rgba(255,255,255,.88);
  --color-gray-highlight:rgba(18,60,107,.08);
  --color-yellow:#123c6b;
  --color-yellow-highlight:rgba(18,60,107,.10);
  --color-blue:#123c6b;
  --color-blue-dark:#0b2545;
  --color-blue-highlight:rgba(18,60,107,.10);
  --color-pink:#97a083;
  --c-mob-bord:#dfe5ed;
  --c-mob-texte:#0f2138;
  --c-mob-pale:#5a6779;
  --c-mob-carte:#ffffff;
  --c-mob-nom:#00589b;
  --c-mob-nom-2:#7d8769;
}
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-ct="marine"] {
  --color-black:#e9eef5;
  --color-white:#0b2545;
  --color-gray-600:#f3f6fa;
  --color-gray-500:#ffffff;
  --color-gray-400:#e3eaf3;
  --color-gray-300:#d5deea;
  --color-gray-200:#9aa3ae;
  --color-gray-100:#4f6080;
  --color-gray:#4f6080;
  --color-gray-150:#4f6080;
  --color-gray-light:rgba(255,255,255,.88);
  --color-gray-highlight:rgba(18,60,107,.08);
  --color-yellow:#0b4f8a;
  --color-yellow-highlight:rgba(18,60,107,.10);
  --color-blue:#0b4f8a;
  --color-blue-dark:#0b2545;
  --color-blue-highlight:rgba(18,60,107,.10);
  --color-pink:#97a083;
  --c-mob-bord:#d5deea;
  --c-mob-texte:#0b2545;
  --c-mob-pale:#4f6080;
  --c-mob-carte:#ffffff;
  --c-mob-nom:#00589b;
  --c-mob-nom-2:#7d8769;
}
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-ct="sombre"] {
  --color-black:#071428;
  --color-white:#e7edf5;
  --color-gray-600:#0b1a31;
  --color-gray-500:#0e1f3a;
  --color-gray-400:#16294a;
  --color-gray-300:#1d3254;
  --color-gray-200:#5d6f8c;
  --color-gray-100:#c3cdda;
  --color-gray:#93a4bd;
  --color-gray-150:#c3cdda;
  --color-gray-light:rgba(7,20,40,.88);
  --color-gray-highlight:rgba(91,139,201,.15);
  --color-yellow:#5b8bc9;
  --color-yellow-highlight:rgba(91,139,201,.15);
  --color-blue:#8fb2e0;
  --color-blue-dark:#5b8bc9;
  --color-blue-highlight:rgba(91,139,201,.15);
  --color-pink:#97a083;
  --c-mob-bord:#1d3254;
  --c-mob-texte:#e7edf5;
  --c-mob-pale:#93a4bd;
  --c-mob-carte:#0e1f3a;
  --c-mob-nom:#e7edf5;
  --c-mob-nom-2:#97a083;
}

html[data-bgfi-charte][data-bgfi-mobile] body, html[data-bgfi-charte][data-bgfi-mobile] #app, html[data-bgfi-charte][data-bgfi-mobile] input, html[data-bgfi-charte][data-bgfi-mobile] textarea, html[data-bgfi-charte][data-bgfi-mobile] button { font-family:Inter, system-ui, sans-serif; }
html[data-bgfi-charte][data-bgfi-mobile]:not([data-bgfi-ct="sombre"]) { color-scheme:light; }
/* filets codes en dur en blanc translucide : invisibles sur fond clair -> couleur de bordure du theme */
html[data-bgfi-charte][data-bgfi-mobile] [class*="rgba(255,255,255,0.1)"] { border-color:var(--c-mob-bord) !important; }
/* bouton principal (accent) : texte clair sur bleu */
html[data-bgfi-charte][data-bgfi-mobile] .bg-yellow { color:#ffffff; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-ct="sombre"] .bg-yellow { color:#071428; }
/* boutons bleus (« Ajouter une réponse »…, 26/10) : Zammad y impose !text-white, devenu le texte fonce des themes clairs.
   Une regle !important hors couche perd contre celle de la couche Tailwind : on redefinit la variable sur le bouton. */
html[data-bgfi-charte][data-bgfi-mobile] :is([data-variant="primary"], [data-variant="secondary"]) > button.formkit-input { --color-white:#ffffff; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-ct="sombre"] :is([data-variant="primary"], [data-variant="secondary"]) > button.formkit-input { --color-white:#071428; }
/* bandeau de marque sur l'accueil */
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-marque { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 0 6px; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-nom { display:flex; align-items:center; gap:9px; font:800 16px/1.1 Inter, system-ui, sans-serif; color:var(--c-mob-texte); letter-spacing:.02em; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-nom img { width:30px; height:auto; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-nom > span { font:400 21px/1.05 Belleza, Optima, Candara, serif; letter-spacing:-.03em; color:var(--c-mob-nom); }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-nom span span { color:var(--c-mob-nom-2); }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-nom { min-width:0; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-nom small { display:block; max-width:9.5em; white-space:normal; font:600 10.5px/1.25 Inter, system-ui, sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--c-mob-texte); }
/* badge « Haut » de priorite : masque pour le client dans la liste (Zammad le reserve deja aux agents sur la fiche) */
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-client] #app .bg-red-dark.text-red-bright.uppercase.select-none { display:none; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-theme {
  flex:none; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 11px; border-radius:999px; border:1px solid var(--c-mob-bord);
  background:var(--c-mob-carte); color:var(--c-mob-texte); font:600 12px/1 Inter, system-ui, sans-serif;
}
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-mob-theme .bgfi-c-theme-pastille { width:10px; height:10px; border-radius:50%; border:2px solid #97a083; background:var(--color-black); }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-themes.bgfi-c-themes--mobile { position:fixed; left:12px; right:12px; top:auto; bottom:calc(var(--safe-bottom, 0px) + 68px); width:auto; z-index:60; font-size:13px; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-themes--mobile .bgfi-c-mini { height:48px; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion="B"] {
  --color-black:#f5f1e8;
  --color-white:#14243b;
  --color-gray-600:#faf7f0;
  --color-gray-500:#fffdf8;
  --color-gray-400:#f1ebdf;
  --color-gray-300:#e5ddcc;
  --color-gray-200:#9aa3ae;
  --color-gray-100:#64605a;
  --color-gray:#64605a;
  --color-gray-150:#64605a;
  --color-gray-light:rgba(255,253,248,.88);
  --color-gray-highlight:rgba(18,60,107,.08);
  --color-yellow:#123c6b;
  --color-yellow-highlight:rgba(18,60,107,.10);
  --color-blue:#123c6b;
  --color-blue-dark:#0b2545;
  --color-blue-highlight:rgba(18,60,107,.10);
  --color-pink:#97a083;
  --c-mob-bord:#e5ddcc;
  --c-mob-texte:#14243b;
  --c-mob-pale:#64605a;
  --c-mob-carte:#fffdf8;
  --c-mob-nom:#00589b;
  --c-mob-nom-2:#7d8769;
}
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion="A"] {
  --color-black:#0b2545;
  --color-white:#ffffff;
  --color-gray-600:#0b2545;
  --color-gray-500:rgba(255,255,255,.08);
  --color-gray-400:rgba(255,255,255,.12);
  --color-gray-300:rgba(255,255,255,.18);
  --color-gray-200:#93a4bd;
  --color-gray-100:#c3cdda;
  --color-gray:#b9c3d3;
  --color-gray-150:#c3cdda;
  --color-yellow:#97a083;
  --color-blue:#a8c0e3;
  --c-mob-nom:#ffffff;
  --c-mob-nom-2:#a3ad8c;
  --c-mob-bord:rgba(255,255,255,.16);
  --c-mob-carte:rgba(255,255,255,.08);
  --c-mob-texte:#ffffff;
  --c-mob-pale:#b9c3d3;
  color-scheme:dark;
}

/* police de la charte dans toute l'appli mobile (Tailwind lit --font-sans) */
html[data-bgfi-charte][data-bgfi-mobile] { --font-sans:Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
/* logo produit de Zammad (embleme avec drapeau) -> embleme BGFI */
html[data-bgfi-charte][data-bgfi-mobile] img[src*="/system_assets/product_logo/"] { content:url("charte/embleme.png"); }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] img[src*="/system_assets/product_logo/"] { width:76px; height:auto; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] main h1 { font-size:0; margin-bottom:28px; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] main h1::before { content:"BGFI"; font:400 34px/1 Belleza, Optima, Candara, serif; letter-spacing:-.03em; color:var(--c-mob-nom); }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] main h1::after { content:"Resolve"; margin-left:.07em; font:400 34px/1 Belleza, Optima, Candara, serif; letter-spacing:-.01em; color:var(--c-mob-nom-2); }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] .form-group { border-radius:14px; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] button[type="submit"] { border-radius:14px; font-weight:600; font-size:18px; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion="A"] #app > div.bg-black { background:radial-gradient(120% 70% at 50% 25%, #123c6b 0%, #0b2545 55%, #071a33 100%); }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion="A"] .form-group { border:1px solid rgba(255,255,255,.14); }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion="A"] .bg-yellow { color:#0b2545; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion="B"] .form-group { border:1px solid var(--c-mob-bord); background:#ffffff; }
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-mob-connexion] .bgfi-c-mob-connexion-theme { position:fixed; z-index:60; top:calc(env(safe-area-inset-top, 0px) + 14px); right:14px; }

/* invitation a installer l'appli (ecran de connexion et accueil mobile) */
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit { position:fixed; inset:0; z-index:70; display:flex; align-items:flex-end; justify-content:center; background:rgba(7,20,40,.5); animation:bgfi-invit-fond .2s ease-out; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-feuille { width:100%; max-width:480px; box-sizing:border-box; padding:14px 20px calc(env(safe-area-inset-bottom, 0px) + 16px); border-radius:22px 22px 0 0;
  background:#fffdf8; color:#14243b; box-shadow:0 -12px 40px rgba(0,0,0,.28); font-family:Inter, system-ui, sans-serif; animation:bgfi-invit-monte .28s ease-out; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-feuille::before { content:""; display:block; width:40px; height:4px; margin:0 auto 16px; border-radius:2px; background:#e5ddcc; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-tete { display:flex; align-items:center; gap:14px; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-tete img { flex:none; width:56px; height:56px; border-radius:14px; box-shadow:0 0 0 1px #e5ddcc; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-titre { font:700 18px/1.25 Inter, system-ui, sans-serif; color:#0b2545; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-sous { margin-top:3px; font:400 13.5px/1.4 Inter, system-ui, sans-serif; color:#5f5a52; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-texte { margin:16px 0 0; font:400 14px/1.5 Inter, system-ui, sans-serif; color:#2c3b52; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-etapes { margin:16px 0 0; padding-left:22px; list-style:decimal; font:400 14px/1.5 Inter, system-ui, sans-serif; color:#2c3b52; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-etapes li { display:list-item; margin:0 0 6px; padding-left:2px; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-etapes b { color:#0b2545; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-icone, html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-icone svg { display:inline-block; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-icone svg { width:18px; height:18px; margin:0 3px 0 1px; vertical-align:-3px; color:#00589b; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-actions { display:flex; flex-direction:column; gap:6px; margin-top:18px; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-principal { height:50px; border:0; border-radius:14px; background:#123c6b; color:#fff; font:600 16px/1 Inter, system-ui, sans-serif; cursor:pointer; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit-plus-tard { height:42px; border:0; background:transparent; color:#5f5a52; font:600 14px/1 Inter, system-ui, sans-serif; cursor:pointer; }
html[data-bgfi-charte][data-bgfi-mobile] .bgfi-c-invit button:focus-visible { outline:3px solid #97a083; outline-offset:2px; }
@keyframes bgfi-invit-fond { from { opacity:0; } }
@keyframes bgfi-invit-monte { from { transform:translateY(40px); opacity:.4; } }

/* bas de page « Propulse par Zammad » de l'appli mobile retire (demande de l'utilisateur, 13/10) */
html[data-bgfi-charte][data-bgfi-mobile] #app footer:has(a[href*="zammad.org"]) { display:none; }
html[data-bgfi-charte][data-bgfi-mobile] #app a[href*="zammad.org"] { display:none; }

/* liste « De quoi s'agit-il ? » (15/10) : un domaine (option desactivee qui a des rubriques) ne se choisit pas, il s'ouvre.
   Zammad le grise et seule sa fleche est cliquable : on le garde lisible et la fleche, invisible, couvre toute la ligne. */
html[data-bgfi-charte][data-bgfi-mobile] [role="option"][aria-disabled="true"][aria-haspopup="menu"] .opacity-30 { opacity:1 !important; }
html[data-bgfi-charte][data-bgfi-mobile] [role="option"][aria-disabled="true"][aria-haspopup="menu"] > svg.icon-chevron-right {
  position:absolute; inset:0; width:100% !important; height:100% !important; margin:0 !important; opacity:0; cursor:pointer; }
html[data-bgfi-charte][data-bgfi-mobile] [role="option"][aria-disabled="true"][aria-haspopup="menu"]::after {
  content:"›"; flex:none; margin-inline-start:8px; font-size:24px; line-height:1; color:var(--c-mob-pale, #64605a); }

/* creation sur telephone quand le titre est masque (titre rempli par la rubrique) : l'etape 1 « Definissez un titre »
   n'a plus de champ ; elle devient une courte introduction. */
html[data-bgfi-charte][data-bgfi-mobile] section:has(.formkit-outer.hidden input[name="title"]) h4 { font-size:0; margin:3.5rem 1.75rem 0; }
html[data-bgfi-charte][data-bgfi-mobile] section:has(.formkit-outer.hidden input[name="title"]) h4::before {
  content:"Votre réclamation en deux étapes"; display:block; margin-bottom:16px;
  font:700 21px/1.3 Inter, system-ui, sans-serif; color:var(--c-mob-texte, #14243b); }
html[data-bgfi-charte][data-bgfi-mobile] section:has(.formkit-outer.hidden input[name="title"]) h4::after {
  content:"1. Choisissez de quoi il s'agit.\A 2. Décrivez ce qui s'est passé."; display:block; white-space:pre-line;
  font:400 15.5px/1.7 Inter, system-ui, sans-serif; color:var(--c-mob-pale, #64605a); }

/* bouton principal (« Continuer ») : Zammad ecrit en --color-white, devenu le texte fonce des themes clairs -> illisible sur le bleu */
html[data-bgfi-charte][data-bgfi-mobile] [data-variant="primary"] > button.formkit-input { color:#fff !important; }

/* fiche d'une reclamation, onglet « Informations » (26/10) : le client ne voit pas les « Delais d'escalade » de Zammad, qui sont
   les delais INTERNES des equipes (STO). Le panneau ne garde que son premier bloc (les champs que le client peut voir). */
html[data-bgfi-charte][data-bgfi-mobile][data-bgfi-client] #route-ticket-information-tabpanel > div:not(:first-child) { display:none !important; }

/* ============================== ECRAN DE CHARGEMENT (ordinateur .splash, appli mobile #loading-app) */
@keyframes bgfi-chg-etoile { 0%, 100% { transform:translate(-50%,-50%) scale(.97); } 50% { transform:translate(-50%,-50%) scale(1.03); } }
@keyframes bgfi-chg-arc { from { transform:translate(-50%,-50%) rotate(0deg); } to { transform:translate(-50%,-50%) rotate(360deg); } }
@keyframes bgfi-chg-apparait { from { opacity:0; } to { opacity:1; } }

html[data-bgfi-charte] .splash {
  overflow:hidden; color:#fff;
  background:url("charte/bgfi-bank-clair-horizontal.png") left 64px top 40px / 236px auto no-repeat, radial-gradient(110% 85% at 50% 45%, #123c6b 0%, #0b2545 55%, #071a33 100%);
}
html[data-bgfi-charte] .splash .icon-logo {
  position:absolute; left:50%; top:calc(50% - 40px); width:200px; height:200px; margin:0; fill:none;
  background:url("charte/etoile.png") center / 108px auto no-repeat, radial-gradient(circle, rgba(151,160,131,.28) 0%, rgba(151,160,131,.10) 38%, rgba(151,160,131,0) 68%);
  filter:drop-shadow(0 0 10px rgba(255,255,255,.5)) drop-shadow(0 0 30px rgba(151,160,131,.45)); transform:translate(-50%,-50%); animation:bgfi-chg-etoile 3s ease-in-out infinite;
}
html[data-bgfi-charte] .splash .icon-logo > * { display:none; }
html[data-bgfi-charte] .splash::before {
  content:""; position:absolute; left:50%; top:calc(50% - 40px); width:138px; height:138px; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(151,160,131,0) 0 62%, rgba(151,160,131,.9) 96%, #dfe4d3 100%), radial-gradient(closest-side, transparent calc(100% - 2px), rgba(255,255,255,.13) calc(100% - 2px) calc(100% - 1px), transparent calc(100% - 1px)); -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  transform:translate(-50%,-50%); animation:bgfi-chg-arc 1.5s linear infinite;
}
html[data-bgfi-charte] .splash .splash-title { position:absolute; left:16px; right:16px; top:calc(50% + 84px); text-align:center; font-size:0; line-height:0; }
html[data-bgfi-charte] .splash .splash-title::before {
  content:"Plateforme de gestion des réclamations"; display:block;
  font:600 11.5px/1.3 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing:.2em; text-transform:uppercase; color:#97a083;
}
html[data-bgfi-charte] .splash .splash-title::after { content:"Chargement de votre espace…"; display:block; margin-top:10px; font:400 15px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color:rgba(255,255,255,.8); }
html[data-bgfi-charte] .splash::after {
  content:"Une solution BGFI Services\A pour le Groupe BGFIBank"; white-space:pre; position:absolute; left:64px; bottom:34px;
  padding:4px 0 4px 86px; background:url("charte/bgfi-services-clair.png") left center / auto 30px no-repeat;
  font:400 12.5px/1.35 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color:rgba(255,255,255,.62);
}
@media (max-width: 600px) {
  html[data-bgfi-charte] .splash { background-position:center top 34px, center; background-size:190px auto, auto; }
  html[data-bgfi-charte] .splash .icon-logo { width:180px; height:180px; background-size:96px auto, auto; }
  html[data-bgfi-charte] .splash::before { width:124px; height:124px; }
  html[data-bgfi-charte] .splash .splash-title { top:calc(50% + 70px); }
  html[data-bgfi-charte] .splash .splash-title::before { font-size:10px; letter-spacing:.16em; }
  html[data-bgfi-charte] .splash .splash-title::after { font-size:14px; }
  html[data-bgfi-charte] .splash::after { left:0; right:0; bottom:28px; padding:32px 0 0; text-align:center; background-position:center top; background-size:auto 24px; font-size:11.5px; }
}

html[data-bgfi-charte]:has(#loading-app) { background:#0b2545; }
html[data-bgfi-charte] #loading-app { position:fixed; inset:0; z-index:1000; overflow:hidden; color:#fff; background:#0b2545; }
html[data-bgfi-charte] #loading-app .loading-main { position:static; }
html[data-bgfi-charte] #loading-app .loading-animation {
  position:absolute; left:50%; top:50%; width:160px; height:160px; margin:-80px 0 0 -80px; border-radius:50%;
  background:#f5f1e8 url("data:image/webp;base64,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") center / cover no-repeat;
}
html[data-bgfi-charte] #loading-app .loading-animation > * { display:none; }
html[data-bgfi-charte] #loading-app .loading-main::before {
  content:""; position:absolute; left:50%; top:50%; width:190px; height:190px; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(151,160,131,0) 0 62%, rgba(151,160,131,.9) 96%, #dfe4d3 100%), radial-gradient(closest-side, transparent calc(100% - 2px), rgba(255,255,255,.13) calc(100% - 2px) calc(100% - 1px), transparent calc(100% - 1px)); -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  transform:translate(-50%,-50%); animation:bgfi-chg-apparait .6s ease-out 1s both, bgfi-chg-arc 1.5s linear infinite;
}
html[data-bgfi-charte] #loading-app .loading-main::after {
  content:"Chargement de votre espace…"; position:absolute; left:16px; right:16px; top:calc(50% + 120px); text-align:center;
  font:400 14px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color:rgba(255,255,255,.75); animation:bgfi-chg-apparait .6s ease-out 2.5s both;
}
html[data-bgfi-charte] #loading-app .loading-failed { position:absolute; left:50%; top:calc(50% + 150px); width:260px; margin:0; transform:translateX(-50%); font-size:0; }
html[data-bgfi-charte] #loading-app .loading-failed::after { content:"Le chargement a échoué, réessayez plus tard."; font:600 13px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color:#fff; }
@media (prefers-reduced-motion: reduce) {
  html[data-bgfi-charte] .splash::before, html[data-bgfi-charte] #loading-app .loading-main::before { animation:none; }
}
