/* Page de connexion « Plateforme technologique » : gris anthracite, deux espaces, mot de passe. */
:root { --anthracite: #23272b; --anthracite-2: #2f353a; --anthracite-3: #454c53; --vert: #6cb644; --vert-vif: #a4c934; --rouge: #e03c31; --jaune: #f6c21c; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(120% 80% at 50% 0%, #2f353a 0%, #23272b 55%, #1b1e21 100%); color: #fff; font-family: 'Barlow', 'Segoe UI', system-ui, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.cx-page { min-height: 100vh; min-height: 100svh; width: min(460px, 100% - 32px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 28px; }
.cx-logo { width: 170px; height: auto; margin-bottom: 34px; }
.cx-sur { margin: 0 0 6px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .9rem; color: var(--vert-vif); display: flex; align-items: center; gap: 10px; }
.cx-sur::before { content: ''; width: 24px; height: 4px; border-radius: 2px; background: var(--vert-vif); }
h1 { margin: 0 0 30px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-weight: 800; font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: .95; letter-spacing: .01em; }
.cx-choix { display: grid; gap: 14px; }
.cx-espace { width: 100%; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; text-align: left; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; border-radius: 18px; padding: 16px 18px; cursor: pointer; font: inherit; transition: background .15s, border-color .15s, transform .15s; }
.cx-espace:hover, .cx-espace:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--vert); transform: translateY(-2px); outline: none; }
.cx-espace small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #aab4ba; }
.cx-espace b { display: block; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 1.55rem; line-height: 1.05; letter-spacing: .02em; }
.cx-espace i { font-style: normal; font-size: 1.8rem; color: var(--vert-vif); }
.cx-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--vert); color: #10240d; display: grid; place-items: center; }
.cx-aio .cx-ic { background: var(--jaune); color: #2a2100; }
.cx-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-secret { display: grid; gap: 14px; background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 20px; animation: cx-entre .25s ease; }
.cx-secret[hidden] { display: none; }
@keyframes cx-entre { from { opacity: 0; transform: translateY(8px); } }
.cx-retour { justify-self: start; border: 0; background: none; color: #aab4ba; font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
.cx-retour:hover { color: #fff; }
.cx-confidentiel { margin: 0; display: inline-flex; align-items: center; gap: 10px; justify-self: start; background: var(--rouge); color: #fff; border-radius: 999px; padding: 6px 16px 6px 12px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 1.1rem; }
/* un environnement de démonstration (js/connexion.js) : la même pastille, en vert (le vert et le texte du bouton « Entrer ») */
.cx-confidentiel.cx-demo { background: var(--vert); color: #10240d; }
.cx-pied-conf.cx-demo { background: var(--vert); color: #10240d; }
.cx-confidentiel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cx-quoi { margin: 0; color: #d5dbdf; }
.cx-quoi b { color: #fff; }
.cx-champ { display: grid; gap: 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #aab4ba; }
.cx-saisie { display: flex; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 12px; background: #1b1e21; overflow: hidden; }
.cx-saisie:focus-within { border-color: var(--vert); }
.cx-saisie input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1.1rem; letter-spacing: .04em; text-transform: none; padding: 13px 14px; outline: none; }
.cx-saisie button { border: 0; background: rgba(255, 255, 255, .08); color: #d5dbdf; font: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 14px; cursor: pointer; }
.cx-erreur { margin: 0; color: #ff8a80; font-weight: 600; }
.cx-erreur[hidden] { display: none; }
.cx-secret.refus { animation: cx-non .35s ease; }
@keyframes cx-non { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.cx-entrer { border: 0; border-radius: 999px; background: var(--vert); color: #10240d; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: 1.25rem; padding: 13px 20px; cursor: pointer; }
.cx-entrer:hover { filter: brightness(1.08); }
.cx-entrer[disabled] { opacity: .6; cursor: wait; }
.cx-pied { margin: 34px 0 0; font-size: .8rem; color: #7f8a91; }
.cx-pied-conf { display: inline-block; background: rgba(224, 60, 49, .7); /* la couleur de la bordure du bouton « Quitter » (Q-223) */ color: #fff; font-weight: 700; padding: 1px 8px; border-radius: 4px; }
/* sur téléphone, seul le site web public est proposé */
@media (max-width: 820px) { .cx-aio { display: none; } .cx-logo { margin-bottom: 26px; } }
.cx-choix[hidden] { display: none; }
/* identifiant d'un compte personnel (utilisateur marketing), facultatif */
.cx-champ[hidden] { display: none; }
.cx-champ small { text-transform: none; letter-spacing: 0; color: #7f8a91; margin-left: 6px; }
/* la présentation CODIR, en premier ; la gestion des utilisateurs, en dernier */
.cx-codir .cx-ic { background: #2b8fe0; color: #fff; }
.cx-erp .cx-ic { background: #f6c21c; color: #2a2100; }
.cx-gestion .cx-ic { background: #e4e9de; color: #23272b; }
.cx-gestion { border-style: dashed; }
/* deux colonnes sur grand écran (Q-184) : à gauche le titre et « Gestion des utilisateurs », à droite les pavés et le mot de passe ;
   sur écran étroit, une seule colonne : le titre, les pavés, puis « Gestion des utilisateurs » */
.cx-cols { display: flex; flex-direction: column; }
.cx-gauche { display: contents; }
.cx-droite { order: 1; }
.cx-choix-gauche { order: 2; margin-top: 14px; }
@media (min-width: 980px) {
  .cx-page { width: min(1080px, 100% - 64px); }
  .cx-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 72px; align-items: center; }
  .cx-gauche { display: block; }
  .cx-gauche h1 { font-size: clamp(3.4rem, 5.4vw, 4.6rem); }
  .cx-choix-gauche { margin-top: 0; max-width: 420px; }
  .cx-pied { text-align: left; }
}
/* « En chiffres », à gauche de « Site web public » */
.cx-ligne { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.cx-chiffres { display: grid; place-items: center; align-content: center; gap: 6px; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--vert-vif); border-radius: 18px; cursor: pointer; font: 700 .78rem/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .08em; padding: 10px 6px; transition: background .15s, border-color .15s, transform .15s; }
.cx-chiffres:hover, .cx-chiffres:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--vert); transform: translateY(-2px); outline: none; }
/* Q-232 : « En chiffres » grisé — l'analyse n'est menée que pour Marketing */
.cx-chiffres.cx-grise, .cx-chiffres.cx-grise:hover, .cx-chiffres.cx-grise:focus-visible { color: #7d868c; background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .07); transform: none; cursor: default; }
.cx-chiffres svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cx-dlg { width: min(1240px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 26px 28px 24px; background: #2a2f34; color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.cx-dlg::backdrop { background: rgba(10, 12, 14, .7); }
.cx-dlg h2 { margin: 0 0 18px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-weight: 800; font-size: 2.4rem; line-height: 1; }
.cx-dlg h3 { margin: 22px 0 10px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 1.25rem; }
.cx-dlg-fermer { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.cx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cx-kpis div, .cx-cout > div { border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.cx-kpis b { font: 800 2rem/1 'Barlow Condensed', sans-serif; color: var(--vert-vif); }
.cx-kpis span, .cx-cout span { color: #c3ccd1; font-size: .9rem; line-height: 1.35; }
.cx-cout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-cout small { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #aab4ba; }
.cx-cout b { font: 800 2.3rem/1 'Barlow Condensed', sans-serif; }
.cx-cout .avec { background: rgba(108, 182, 68, .14); border-color: rgba(108, 182, 68, .5); }
.cx-cout .avec b { color: var(--vert-vif); }
.cx-cout em { font-style: normal; font-size: .9rem; line-height: 1.35; color: #fff; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 8px; margin-top: 4px; }
.cx-detail { margin-top: 14px; border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 14px; }
.cx-detail summary { cursor: pointer; font-weight: 600; }
.cx-detail table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .9rem; }
.cx-detail td { padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #d5dbdf; }
.cx-detail td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.cx-detail tfoot td { font-weight: 700; color: #fff; border-bottom: 0; }
.cx-note { margin: 14px 0 0; font-size: .82rem; line-height: 1.45; color: #9aa5ab; }
@media (max-width: 640px) { .cx-kpis, .cx-cout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-cout { grid-template-columns: 1fr; } }
/* le titre « En chiffres » en haut à droite, sur la ligne de « Site web public » : la fenêtre gagne une ligne */
.cx-dlg-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 48px; margin-bottom: 16px; }
.cx-dlg-tete .cx-sur { margin: 0; }
.cx-dlg-tete h2 { margin: 0; font-size: 1.9rem; }
/* Ventes · Prospection : pastille orange ; visible aussi sur téléphone (application de terrain) */
.cx-ventes .cx-ic { background: #f08a24; color: #2a1500; }
/* « En chiffres » sur deux colonnes : les chiffres à gauche, « Que faire de ce gain ? » à droite (Q-198) */
.cx-dlg-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cx-dlg-g > h3:first-of-type { margin-top: 18px; }
.cx-roi { border: 1.5px solid var(--vert); border-radius: 16px; background: rgba(108, 182, 68, .1); padding: 16px 18px 18px; display: grid; gap: 12px; }
.cx-roi .cx-sur { margin: 0; }
.cx-roi h3 { margin: 0; font-size: 1.7rem; line-height: 1; }
.cx-roi p { margin: 0; color: #d5dbdf; line-height: 1.4; }
.cx-axe { border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: rgba(0, 0, 0, .18); }
.cx-axe b { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
.cx-axe span { color: #c3ccd1; font-size: .92rem; line-height: 1.4; }
.cx-axe.fort { border-color: rgba(164, 201, 52, .6); }
.cx-articles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cx-articles figure { margin: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.cx-articles svg { width: 34px; height: 34px; fill: none; stroke: var(--vert-vif); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-articles figcaption { font-size: .68rem; text-align: center; color: #c3ccd1; line-height: 1.15; }
.cx-calcul { border-radius: 12px; background: var(--vert); color: #10240d; padding: 12px 14px; display: grid; gap: 6px; }
.cx-calcul b { font: 800 1.9rem/1 'Barlow Condensed', sans-serif; }
.cx-calcul span { font-size: .92rem; line-height: 1.4; }
.cx-calcul em { font-style: normal; font-weight: 600; border-top: 1px solid rgba(16, 36, 13, .3); padding-top: 6px; }
@media (max-width: 1000px) { .cx-dlg-cols { grid-template-columns: 1fr; } }
/* Q-201 : la mention « confidentiel » en haut de la page ; une seule connexion, puis les sections */
.cx-haut { margin: 0; min-height: 58px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px; padding: 9px 16px; box-sizing: border-box; text-align: center; font-size: .85rem; color: #c3ccd1; background: rgba(0, 0, 0, .28); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cx-haut[hidden] { display: none; }
@media (max-width: 900px) { .cx-haut { padding-right: 230px; justify-content: flex-start; } }
.cx-page { min-height: calc(100vh - 40px); min-height: calc(100svh - 40px); }
/* Q-000007 : le bandeau du haut mesure 58 px (et non 40) : la page dépassait l'écran de 18 px, d'où une barre de défilement inutile */
body:has(.cx-haut:not([hidden])) .cx-page { min-height: calc(100vh - 59px); min-height: calc(100svh - 59px); }
.cx-retour[hidden], .cx-sortie[hidden] { display: none; }
.cx-sortie { margin-top: 14px; border: 0; background: none; color: #aab4ba; font: inherit; font-size: .88rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.cx-sortie:hover { color: #fff; }
/* une section qui demande le mot de passe d'All in One, tant qu'on ne l'a pas donné */
.cx-espace.cx-verrou { opacity: .6; }
.cx-espace.cx-verrou i { font-size: 0; }
.cx-espace.cx-verrou i::before { content: ''; display: block; width: 18px; height: 20px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20' fill='none' stroke='%23a4c934' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='8.500' width='14' height='10' rx='2'/%3E%3Cpath d='M5 8.500V6a4 4 0 0 1 8 0v2.500'/%3E%3C/svg%3E"); }
/* le vrai bouton « Quitter », en haut à droite : ferme la session et revient à la mire */
.cx-page { position: relative; }
.cx-quitter { order: 3; justify-self: start; align-self: flex-start; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(224, 60, 49, .7); background: rgba(224, 60, 49, .12); color: #fff; border-radius: 999px; padding: 8px 16px 8px 12px; font: 700 1rem/1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.cx-quitter:hover, .cx-quitter:focus-visible { background: var(--rouge); border-color: var(--rouge); outline: none; }
.cx-quitter svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-quitter[hidden], .cx-aucune[hidden], .cx-ligne[hidden], .cx-espace[hidden] { display: none; }
.cx-aucune { margin: 0; padding: 14px 16px; border: 1.5px dashed rgba(255, 255, 255, .2); border-radius: 14px; color: #c3ccd1; }
/* « En chiffres » : le gain, en jaune, sous le détail du chiffrage */
.cx-gain { margin-top: 12px; border-radius: 14px; background: var(--jaune); color: #2a2100; padding: 12px 16px; display: grid; gap: 4px; }
.cx-gain small { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.cx-gain b { font: 800 2.3rem/1 'Barlow Condensed', sans-serif; }
.cx-gain span { font-size: .9rem; line-height: 1.4; }
.cx-axe span + span { color: #fff; }

/* Q-209 : tuile « Récapitulatif ROI » ; dans « En chiffres », le comparatif sans IA apparaît sur un bouton */
.cx-recap .cx-ic { background: #8e6cd8; color: #fff; }
.cx-dlg:not(.comparer) .cx-sans-ia { display: none; }
.cx-dlg:not(.comparer) .cx-cout { grid-template-columns: 1fr; }
.cx-comparer { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 10px 18px; font: 700 1.05rem/1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.cx-comparer:hover, .cx-comparer:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .12); }
.cx-comparer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-dlg.comparer .cx-comparer { border-color: var(--vert-vif); color: var(--vert-vif); }
/* Récapitulatif ROI : le bloc « Que faire de ce gain ? » garde l'allure qu'il a dans la popup « En chiffres » */
.rc-dept .cx-roi h3 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em; }

/* Q-212 : « En chiffres » des autres sections ; All in One reste masqué sur téléphone, avec son bouton */
.cx-fait ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #d5dbdf; line-height: 1.4; }
@media (max-width: 820px) { .cx-ligne:has(.cx-aio) { display: none; } }
/* les sections sans « En chiffres » (présentations, Récapitulatif ROI) prennent toute la largeur de la colonne (Q-214) */

/* Q-218 : « Ne pas se perdre », précédé d'une icône « attention » (triangle jaune, point d'exclamation sombre) */
.cx-titre-icone { display: flex !important; align-items: center; gap: 10px; }
.cx-attention { flex: none; width: 1.15em; height: 1.15em; }
.cx-attention path:first-child { fill: var(--jaune); stroke: var(--jaune); stroke-width: 1.5; stroke-linejoin: round; }
.cx-attention .cx-attention-signe { fill: none; stroke: #2a2100; stroke-width: 2.4; stroke-linecap: round; }

/* Q-221 : Finance · All in One (l'ERP, comme Production : pas sur téléphone) */
.cx-finance .cx-ic { background: #1fa59a; color: #fff; }
@media (max-width: 820px) { .cx-finance, .cx-ligne:has(.cx-finance) { display: none; } }

/* ===== All in One (fusion) : « L'approche » à gauche, la plateforme et ses 7 modules à droite =====
   Une couleur par module, la même que dans la barre commune (css/aio.css). */
.cx-groupe { margin: 8px 0 -4px; display: flex; align-items: center; gap: 10px; font: 700 .8rem/1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .2em; color: #aab4ba; }
.cx-groupe::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.cx-groupe:first-child { margin-top: 0; }
.cx-groupe-aio { margin: 0 0 2px; align-items: baseline; letter-spacing: 0; text-transform: none; flex-wrap: wrap; gap: 4px 12px; }
.cx-groupe-aio::after { display: none; }
.cx-groupe-aio b { font: 800 2.1rem/1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--vert-vif); }
.cx-groupe-aio span { font: 500 .92rem/1.3 'Barlow', sans-serif; color: #c3ccd1; }
#modules { display: grid; gap: 10px; }
.cx-modules .cx-ligne { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
.cx-modules .cx-chiffres { border-radius: 16px; font-size: .68rem; gap: 4px; padding: 6px 4px; }
.cx-modules .cx-chiffres svg { width: 22px; height: 22px; }
.cx-modules .cx-espace, .cx-choix-gauche .cx-espace { padding: 10px 16px; grid-template-columns: 44px 1fr auto; gap: 14px; border-radius: 16px; }
.cx-modules .cx-ic, .cx-choix-gauche .cx-ic { width: 44px; height: 44px; border-radius: 12px; }
.cx-modules .cx-ic svg, .cx-choix-gauche .cx-ic svg { width: 24px; height: 24px; }
.cx-modules .cx-ic svg { stroke-width: 2; }
.cx-modules .cx-espace b { font-size: 1.5rem; }
.cx-modules .cx-espace small { text-transform: none; letter-spacing: 0; font-size: .86rem; color: #aab4ba; margin-top: 2px; }
.cx-choix-gauche .cx-espace b { font-size: 1.3rem; }
.cx-m-marketing .cx-ic { background: #6cb644; color: #10240d; }
.cx-m-ventes .cx-ic { background: #f08a24; color: #2a1500; }
.cx-m-production .cx-ic { background: #f6c21c; color: #2a2100; }
.cx-m-sav .cx-ic { background: #2b8fe0; color: #fff; }
.cx-m-rd .cx-ic { background: #8e6cd8; color: #fff; }
.cx-m-rh .cx-ic { background: #e06aa0; color: #2a0a1a; }
.cx-m-finance .cx-ic { background: #1fa59a; color: #fff; }
.cx-m-informatique .cx-ic { background: #22b8cf; color: #06262b; }
.cx-m-achat .cx-ic { background: #c2815a; color: #2a1408; }
.cx-m-expedition .cx-ic { background: #5d7be0; color: #fff; }
.cx-m-juridique .cx-ic { background: #9b8b6a; color: #fff; }
.cx-m-pilotage .cx-ic { background: #a4c934; color: #17301a; }
.cx-m-fabrication .cx-ic { background: #6f8597; color: #fff; }
/* un département « à venir » : la même bordure que les autres (plus de pointillés) */
/* un département « à venir » (créé par l'assistant) : son résumé en petit et en gris, comme les autres (plus de jaune en majuscules) */
.cx-approche .cx-ic { background: #454c53; color: var(--vert-vif); }
.cx-avenir { border: 1.5px dashed rgba(255, 255, 255, .3); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.cx-avenir small { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--jaune); }
.cx-avenir b { font: 800 2.1rem/1 'Barlow Condensed', sans-serif; }
.cx-avenir span, .cx-note { color: #c3ccd1; line-height: 1.45; }
.cx-note { margin: 0; }
@media (min-width: 980px) {
  .cx-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; }
  .cx-gauche .cx-logo { margin-bottom: 22px; }
  .cx-gauche h1 { font-size: clamp(2.8rem, 4.2vw, 3.8rem); margin-bottom: 22px; }
  .cx-page { padding-top: 24px; padding-bottom: 20px; }
}
/* Production et Finance (l'ERP) ne sont pas faits pour le téléphone */
@media (max-width: 820px) { .cx-ligne:has(.cx-m-production), .cx-ligne:has(.cx-m-finance) { display: none; } }

/* la pastille « Parcours enregistré » (js/suivi.js) : son style n'existait que sur le site public */
#suivi-pastille { position: fixed; right: 12px; bottom: 12px; z-index: 60; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(27, 30, 33, .92); color: #fff; border: 1px solid rgba(255, 255, 255, .2); font: 600 12px/1.2 'Segoe UI', system-ui, Arial, sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
#suivi-pastille i { width: 8px; height: 8px; border-radius: 50%; background: #e03c31; }
@media print { #suivi-pastille { display: none; } }

/* Q-224 : les deux familles de modules, « en silo » et « transverses », chacune sous son intitulé */
.cx-famille { margin: 4px 0 -2px; }
.cx-famille:first-child { margin-top: 0; }
#modules { gap: 9px; }

/* dix modules (Achat et Expédition ajoutés) : des lignes un peu plus serrées */
#modules { gap: 7px; }
.cx-modules .cx-espace { padding: 6px 14px; grid-template-columns: 40px 1fr auto; gap: 12px; border-radius: 14px; }
.cx-modules .cx-ic { width: 40px; height: 40px; border-radius: 11px; }
.cx-modules .cx-ic svg { width: 22px; height: 22px; }
.cx-modules .cx-espace b { font-size: 1.4rem; }
.cx-modules .cx-espace small { font-size: .82rem; margin-top: 1px; }
.cx-modules .cx-chiffres { border-radius: 14px; padding: 4px; gap: 2px; font-size: .64rem; }
.cx-modules .cx-chiffres svg { width: 19px; height: 19px; }
.cx-groupe-aio b { font-size: 1.9rem; }

/* le pilotage en premier : douze lignes ; sur un écran peu haut, elles se serrent encore un peu pour tenir sans défilement */
@media (max-height: 980px) { #modules { gap: 5px; } .cx-modules .cx-espace { padding: 4px 14px; } .cx-modules .cx-ic { width: 38px; height: 38px; } .cx-famille { margin: 2px 0 -3px; } }   /* Q-230 : treize lignes et trois intitulés */

/* La signature d'All in One, en bas à droite (logo « le trait ») : complète sur grand écran ; le logo et le nom quand la place manque ;
   le logo seul (nom complet en info-bulle) sur un écran moyen ; sous la page, en entier, sur tablette et téléphone. */
.cx-signature { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(460px, 100% - 32px); margin: 0 auto 26px; color: #fff; text-align: left; }
.cx-sig-ic { flex: none; width: 58px; height: 58px; }
.cx-sig-ic path { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.cx-sig-ic circle { fill: #a4c934; }
.cx-sig-txt b { display: block; font: 800 1.5rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .06em; }
.cx-sig-txt b i { font-style: normal; color: #a4c934; }
.cx-sig-txt small { display: block; margin-top: 5px; max-width: 250px; font-size: .82rem; line-height: 1.35; color: #aab4ba; }
@media (min-width: 980px) {
  .cx-signature { position: fixed; right: 18px; bottom: 18px; z-index: 5; width: auto; margin: 0; pointer-events: none; }
  .cx-sig-txt { display: none; } .cx-sig-ic { width: 30px; height: 30px; }
  body:has(#suivi-pastille) .cx-signature { bottom: 50px; }   /* au-dessus de la pastille « Parcours enregistré » */
}
@media (min-width: 1480px) { .cx-sig-txt { display: block; } .cx-sig-txt small { display: none; } .cx-sig-ic { width: 38px; height: 38px; } .cx-signature { gap: 8px; } }
@media (min-width: 1680px) { .cx-sig-txt small { display: block; } .cx-sig-ic { width: 58px; height: 58px; } .cx-signature { right: 26px; bottom: 24px; gap: 10px; } }
@media print { .cx-signature { position: static; } }

/* Q-268 : « Mes présentations » sur la page de garde, et le petit formulaire « Nouvelle présentation » */
a.cx-espace.cx-pz { text-decoration: none; color: inherit; }
.cx-espace.cx-ajout { border-style: dashed; }
.cx-pz-dlg { max-width: 520px; }
.cx-pz-dlg h2 { font: 800 1.8rem/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 4px 0 16px; }
.cx-pz-champ { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #a4c934; margin-bottom: 14px; }
.cx-pz-champ input { font: 400 1rem 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #4a5157; background: #1f2327; color: #fff; }
.cx-pz-modeles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cx-pz-modeles label { display: grid; gap: 4px; padding: 12px; border: 1.5px solid #4a5157; border-radius: 12px; cursor: pointer; }
.cx-pz-modeles label:has(input:checked) { border-color: #a4c934; background: rgba(164, 201, 52, .08); }
.cx-pz-modeles input { position: absolute; opacity: 0; pointer-events: none; }
.cx-pz-modeles b { font: 700 1.05rem 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.cx-pz-modeles span { font-size: .85rem; color: #aab4ba; line-height: 1.35; }
.cx-pz-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.cx-pz-annuler { border: 0; background: none; color: #c6ccd1; font: 600 .95rem 'Barlow', sans-serif; cursor: pointer; padding: 8px 12px; }
.cx-pz-actions .cx-entrer { width: auto; margin: 0; padding-left: 22px; padding-right: 22px; }
@media (max-width: 520px) { .cx-pz-modeles { grid-template-columns: 1fr; } }
/* Q-268 : « + Ajouter un département » (Direction) et le choix de sa couleur */
.cx-ajout-dep { margin-top: 10px; }
/* Q-000001 : le × qui supprime un département vide, en haut à droite de sa tuile */
.cx-ligne.dep-vide { position: relative; }
.dep-suppr { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); background: #2a2f33; color: #c6ccd1; font: 700 1rem/1 'Barlow', sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0; opacity: .55; transition: opacity .15s, background .15s, color .15s; }
.cx-ligne.dep-vide:hover .dep-suppr, .dep-suppr:focus-visible { opacity: 1; }
.dep-suppr:hover, .dep-suppr:focus-visible { background: #e03c31; border-color: #e03c31; color: #fff; outline: none; }
/* Q-000002, Q-000003 : ✎ (renommer) et ▲ ▼ (déplacer) d'« Organiser les départements », à droite de chaque tuile */
.cx-ligne.dep-ordre { position: relative; }
.dep-fleches { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }   /* Q-000003 : ✎ ▲ ▼ côte à côte */
.dep-fleches button { width: 30px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .25); background: #2a2f33; color: #c6ccd1; font-size: .7rem; line-height: 1; cursor: pointer; padding: 0; }
.dep-fleches button:hover, .dep-fleches button:focus-visible { background: var(--vert, #6cb644); border-color: var(--vert, #6cb644); color: #fff; outline: none; }
#dep-ordre[aria-pressed="true"] { border-style: solid; border-color: var(--vert, #6cb644); }
.dep-couleurs { display: flex; gap: 8px; flex-wrap: wrap; text-transform: none; }
.dep-couleurs label { cursor: pointer; }
.dep-couleurs input { position: absolute; opacity: 0; pointer-events: none; }
.dep-couleurs i { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.dep-couleurs input:checked + i { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }
/* Q-304, Q-305 : la fenêtre « En chiffres » du site : une colonne ; avec le comparatif, le sans IA (détail et gain) à droite */
/* Q-310 : deux colonnes seulement (avec l'IA | sans IA), sur toute la largeur ; sous elles le gain, puis « Détail du chiffrage » en bas à droite */
#chiffres .cx-dlg-cols { grid-template-columns: minmax(0, 1fr); }
#chiffres .cx-dlg-d { margin-top: 4px; }
#chiffres .cx-dlg-d .cx-gain { order: 1; }
#chiffres .cx-dlg-d .cx-detail { order: 2; justify-self: stretch; border: 0; padding: 0; }
#chiffres .cx-detail summary { list-style: none; width: max-content; margin-left: auto; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 16px; }
#chiffres .cx-detail summary::-webkit-details-marker { display: none; }
#chiffres .cx-detail summary:hover, #chiffres .cx-detail[open] summary { border-color: var(--vert-vif); color: var(--vert-vif); }
#chiffres .cx-detail[open] table { border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 6px 14px; display: table; }
/* Q-370 : un tableau en border-collapse ignore son padding ; on sépare les bordures pour garder la même marge intérieure que les cadres (14 px) */
#chiffres .cx-detail[open] table { border-collapse: separate; border-spacing: 0; padding: 4px 0; }
#chiffres .cx-detail td:first-child { padding-left: 14px; }
#chiffres .cx-detail td:last-child { padding-right: 14px; }
#chiffres .cx-detail tfoot td { padding-bottom: 8px; }
#chiffres .cx-dlg-d { display: grid; gap: 14px; align-content: start; }
#chiffres:not(.comparer) .cx-dlg-d { display: none; }
#chiffres .cx-dlg-d .cx-detail { margin: 0; }
/* Q-312 : à l'ouverture, seulement la colonne « avec l'IA », mais déjà à sa place : sur la moitié gauche (le comparatif remplit la droite) */
#chiffres:not(.comparer) .cx-cout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { #chiffres:not(.comparer) .cx-cout { grid-template-columns: 1fr; } }
/* Q-313 : le comparatif en deux temps. 1) le détail du chiffrage, à droite des cartes « avec l'IA », et « Suivant » ;
   2) le chiffrage le remplace : les cartes « sans IA » à droite, le gain, et « Détail du chiffrage » en bas à droite pour le revoir */
#chiffres .cx-suivant { display: none; }
#chiffres.comparer.etape-detail .cx-dlg-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#chiffres.comparer.etape-detail .cx-cout { grid-template-columns: minmax(0, 1fr); }
#chiffres.comparer.etape-detail .cx-cout .sans, #chiffres.comparer.etape-detail .cx-dlg-d .cx-gain, #chiffres.comparer.etape-detail .cx-detail summary { display: none; }
#chiffres.comparer.etape-detail .cx-kpis { width: calc(200% + 10px); }
#chiffres.comparer.etape-detail .cx-dlg-d { margin-top: var(--kpis, 96px); padding-top: 0; }
#chiffres.comparer.etape-detail .cx-dlg-d .cx-detail { order: 0; }
#chiffres.comparer.etape-detail .cx-dlg-d .cx-detail table { margin-top: 0; }
#chiffres.comparer.etape-detail .cx-suivant { display: inline-flex; order: 3; justify-self: end; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--vert); color: #10240d; font: 700 1rem 'Barlow', sans-serif; padding: 10px 22px; cursor: pointer; }
#chiffres.comparer.etape-detail .cx-suivant span { font-size: 1.3rem; line-height: 1; }
/* Q-360 : la corbeille des présentations non validées, sur la page de garde */
.cx-pz-ligne { position: relative; }
.cx-pz-ligne .cx-pz { padding-right: 84px; }
.cx-pz-suppr { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #9aa4ab; cursor: pointer; }
.cx-pz-suppr:hover { background: #e03c31; color: #fff; }

/* Q-371 : le gain en haut, en jaune, comme cinquième chiffre clé, une fois le comparatif complet (pas à l'étape du détail) ; le cadre du bas n'est plus utile */
#chiffres.comparer:not(.etape-detail) .cx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); }
#chiffres.etape-detail .cx-kpi-gain { display: none; }
#chiffres .cx-kpis .cx-kpi-gain { background: var(--jaune); border-color: var(--jaune); color: #2a2100; }
#chiffres .cx-kpis .cx-kpi-gain b { color: #2a2100; }
#chiffres .cx-kpis .cx-kpi-gain span { color: #4a3d00; font-weight: 600; }
#chiffres.comparer:not(.etape-detail) .cx-dlg-d .cx-gain { display: none; }
@media (max-width: 900px) { #chiffres.comparer:not(.etape-detail) .cx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } #chiffres .cx-kpis .cx-kpi-gain { grid-column: 1 / -1; } }

/* Q-372 : comparatif fermé, le bouton « Comparatif sans IA » se place à côté des cartes « avec l'IA », dans la moitié droite encore vide,
   au milieu de la hauteur */
@media (min-width: 641px) {
  #chiffres:not(.comparer) .cx-dlg-g { position: relative; }
  #chiffres:not(.comparer) .cx-comparer { position: absolute; left: calc(50% + 29px); top: 50%; transform: translateY(-50%); margin: 0; }
}
/* Q-373 : une fois le comparatif ouvert, plus de bouton « Masquer le comparatif sans IA » (fermer la fenêtre le remet à zéro) */
#chiffres.comparer .cx-comparer { display: none; }
/* Q-375 : le gain lié au prêt-à-porter, à la fin du chiffrage */
#chiffres .cx-detail .cx-detail-pap { margin-top: 12px; }
#chiffres .cx-detail-pap caption { caption-side: top; text-align: left; padding: 8px 14px 4px; font: 700 .8rem 'Barlow Condensed', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
/* Q-376 : à l'étape du détail, « Suivant » en haut à droite, au-dessus du tableau, en face du titre « Réactivité » */
#chiffres.comparer.etape-detail .cx-dlg-d { position: relative; }
#chiffres.comparer.etape-detail .cx-suivant { position: absolute; right: 0; top: -48px; padding: 8px 20px; }
/* Q-377 : le titre jaune « Chiffrage du site web » ; à l'étape du détail, il se met au-dessus du tableau, en face de « Suivant » */
#chiffres .cx-detail-site caption, #chiffres .cx-detail-pap caption { caption-side: top; text-align: left; padding: 8px 14px 4px; font: 700 .8rem 'Barlow Condensed', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
#chiffres.comparer.etape-detail .cx-detail { position: relative; }
#chiffres.comparer.etape-detail .cx-detail-site caption { position: absolute; left: 0; top: -30px; padding: 0 14px; line-height: 24px; white-space: nowrap; }  /* Q-380 : même police que « Gain lié au prêt-à-porter… » */
/* Q-381 : le total des gains, à part, sous le tableau du prêt-à-porter */
#chiffres .cx-detail .cx-detail-total { margin-top: 12px; border-color: var(--jaune) !important; }
#chiffres .cx-detail-total td { border-bottom: 0; color: var(--jaune); font-weight: 700; padding-top: 8px; padding-bottom: 8px; }
/* Q-384 : « Mes documents » espacé de son titre comme les autres groupes (la tuile chevauchait le titre) */
.cx-mes-pz { display: grid; gap: 14px; }
.cx-mes-pz:empty { display: none; }
/* Q-385 : « Pourquoi ça ne coûtera rien à ETESIA ? » */
.cx-pq { width: min(980px, calc(100vw - 32px)); }
.cx-pq-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-pq-grille > div { border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.cx-pq-grille small { font: 700 .8rem 'Barlow Condensed', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-vif); }
.cx-pq-grille b { font: 800 2rem/1 'Barlow Condensed', sans-serif; color: #fff; }
.cx-pq-grille span { color: #c3ccd1; font-size: .92rem; line-height: 1.4; }
.cx-pq-bilan b { font-size: 1.9rem; }
@media (max-width: 640px) { .cx-pq-grille { grid-template-columns: 1fr; } }

/* Le choix de l'entreprise, avant la mire de connexion : quatre tuiles blanches, chacune avec son logo */
.cx-societes[hidden] { display: none; }
.cx-societes { animation: cx-entre .25s ease; }
.cx-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.cx-tuile { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 150px; padding: 18px 14px 14px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 18px; background: #fff; color: #23272b; cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cx-tuile:hover, .cx-tuile:focus-visible { transform: translateY(-3px); border-color: var(--vert); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); outline: none; }
.cx-tuile small { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #5b6268; }
.cx-tuile-logo { display: grid; place-items: center; width: 100%; height: 64px; background: center / contain no-repeat; }
.cx-tuile-logo b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.7rem; letter-spacing: .08em; color: #1c2b3a; }
.cx-tuiles > .cx-tuile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 120px; }   /* un nombre impair de tuiles : la dernière prend toute la largeur */
/* dans l'en-tête, à la place du logo d'ETESIA : le logo de l'entreprise choisie, en blanc (une couleur, fond transparent) */
.cx-marque[hidden] { display: none; }
.cx-marque { width: 230px; max-width: 100%; height: 52px; margin-bottom: 30px; background-position: left center; background-size: contain; background-repeat: no-repeat; display: flex; align-items: center; }
.cx-marque b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2.3rem; letter-spacing: .08em; color: #fff; line-height: 1; }
@media (max-width: 820px) { .cx-marque { margin-bottom: 24px; } }
.cx-autre[hidden] { display: none; }
.cx-autre { justify-self: start; border: 0; background: none; color: var(--vert-vif); font: 600 .95rem 'Barlow', sans-serif; cursor: pointer; padding: 0; }
.cx-autre:hover { text-decoration: underline; }
@media (max-width: 420px) { .cx-tuile { min-height: 124px; } .cx-tuile-logo { height: 52px; } }
/* le serveur d'un client : son logo à la place de celui d'ETESIA, dans le même style (blanc, une couleur) */
.cx-logo.cx-logo-client { width: auto; height: auto; max-width: 210px; max-height: 64px; filter: brightness(0) invert(1); }
.cx-societe-message[hidden] { display: none; }
.cx-societe-message { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(246, 194, 28, .14); color: #f6c21c; font-weight: 600; }
/* un intitulé de groupe masqué (« L'approche » d'une entreprise qui n'en a pas) */
.cx-groupe[hidden] { display: none; }
/* un client : « Toutes les entreprises », en haut à droite de l'écran de connexion (vers la page de connexion d'ETESIA) */
.cx-portail[hidden] { display: none; }
.cx-portail { position: fixed; top: 16px; right: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; font: 600 .9rem 'Barlow', sans-serif; text-decoration: none; }
.cx-portail:hover { background: rgba(255, 255, 255, .22); }
.cx-portail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .cx-portail span { display: none; } .cx-portail { padding: 7px; } }
/* Q-000004 : « Ajouter un département » et « Organiser les départements », en haut dans l'en-tête (rôle Administrateur seul) */
.dep-entete { display: inline-flex; gap: 8px; align-items: center; margin-right: 4px; }
.dep-entete-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; border: 1.5px dashed rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); color: #fff; font: 600 .85rem/1 'Barlow', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.dep-entete-btn b { font-weight: 600; }
.dep-entete-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dep-entete-btn:hover, .dep-entete-btn:focus-visible { background: rgba(255, 255, 255, .16); border-color: var(--vert, #6cb644); outline: none; }
.dep-entete-btn[aria-pressed="true"] { border-style: solid; border-color: var(--vert, #6cb644); background: rgba(108, 182, 68, .2); }
#modules + .dep-entete { display: flex; flex-wrap: wrap; margin: 10px 0 0; }   /* sans en-tête : sous la liste */
/* sous le titre « ALL IN ONE · L'entreprise … par nous-mêmes » : le style du bouton, pas celui du titre */
/* Q-000003 (Nouvelle énergie) : le bouton sur toute la largeur de la colonne, sur sa propre ligne sous le titre */
.cx-groupe-aio .dep-entete { flex: 1 0 100%; margin: 8px 0 0; font: inherit; color: inherit; }
.cx-groupe-aio .dep-entete-btn { width: 100%; justify-content: center; }
.cx-groupe-aio .dep-entete-btn b { font: 600 .85rem/1 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; color: inherit; }
@media (max-width: 900px) { .aio-barre-compte .dep-entete-btn { width: 34px; padding: 0; justify-content: center; } .aio-barre-compte .dep-entete-btn b { display: none; } }
/* Q-000006 : « Ajouter un département » et le × des départements vides n'apparaissent qu'en mode « Modifier les départements » */
body:not(.dep-edition) #dep-nouveau, body:not(.dep-edition) .dep-suppr { display: none; }
/* Q-000007 : la page de garde, sans barre de défilement, partout (posé par js/aio.js ; une entreprise peut la remettre :
   collection « entreprise », garde.barreDefilement = true) : la page défile toujours (molette, doigt, clavier), sans barre */
html.cx-sans-barre, html.cx-sans-barre body { scrollbar-width: none; -ms-overflow-style: none; }
html.cx-sans-barre::-webkit-scrollbar, html.cx-sans-barre body::-webkit-scrollbar { display: none; }
/* Q-000009 : les séparateurs (intitulés de famille) en mode « Modifier les départements » : ✎ ▲ ▼ à droite ; une famille vide
   garde son intitulé, visible seulement dans ce mode (pour y ramener des départements) */
.cx-famille.dep-ordre { position: relative; min-height: 28px; display: flex; align-items: center; padding-right: 120px; }
.cx-famille.dep-ordre .dep-fleches { right: 0; }
body:not(.dep-edition) .cx-famille-vide { display: none; }
body.dep-edition .cx-famille-vide { opacity: .6; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
/* Q-000010 : la poubelle d'un département vide, avec ✎ ▲ ▼ (remplace le × de Q-000001) */
.dep-fleches .dep-suppr { position: static; width: 30px; height: 22px; border-radius: 7px; opacity: 1; display: inline-grid; place-items: center; }
.dep-fleches .dep-suppr svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dep-fleches .dep-suppr:hover, .dep-fleches .dep-suppr:focus-visible { background: #e03c31; border-color: #e03c31; color: #fff; }
/* Q-000012 : en mode « Modifier les départements », pas de flèche verte sur les tuiles, et elles ne s'ouvrent pas */
body.dep-edition #modules .cx-espace > i { visibility: hidden; }
body.dep-edition #modules .cx-espace, body.dep-edition #modules .cx-chiffres { cursor: default; }
body.dep-edition #modules .cx-espace:hover { transform: none; }

/* Q-000598 : l'assistant « Nouveau département » : les départements standard, puis leurs tuiles et leurs rubriques (js/garde-departements.js) */
.dep-assistant { max-width: 640px; }
.dep-assistant h2 { display: flex; align-items: center; gap: 10px; }
.dep-aide { margin: -6px 0 16px; color: #b6bec4; font-size: .95rem; }
.dep-aide-mini { font-weight: 500; text-transform: none; letter-spacing: 0; color: #8f989f; margin-left: 8px; }
.dep-modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 14px; }
/* Q-000002 (Nouvelle énergie) : hyper sobre, le picto au trait (couleur du département) au-dessus du nom, sans fond de couleur */
.dep-modele { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; text-align: center; padding: 12px 8px 10px; border-radius: 12px; border: 1px solid #3a4046; background: none; color: #fff; cursor: pointer; font: inherit; }
.dep-modele:hover:not(:disabled), .dep-modele:focus-visible { border-color: var(--c); outline: none; }
.dep-modele-ic { display: grid; place-items: center; color: var(--c); }
.dep-modele-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dep-modele b { font: 600 .92rem/1.2 'Barlow', sans-serif; }
.dep-modele small { color: #8f989f; font-size: .74rem; line-height: 1.2; }
.dep-modele:disabled { opacity: .42; cursor: default; }
.dep-autre, .dep-retour { border: 0; background: none; color: #a4c934; font: 600 .92rem 'Barlow', sans-serif; cursor: pointer; padding: 4px 0; }
.dep-autre:hover, .dep-retour:hover { text-decoration: underline; }
/* le type d'entreprise (assistant « Nouveau département ») : à cocher, plusieurs possibles ; Q-000002 (Nouvelle énergie) : le picto au-dessus du nom */
.dep-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 2px 0 14px; }
.dep-type { position: relative; cursor: pointer; }
.dep-type input { position: absolute; opacity: 0; pointer-events: none; }
.dep-type span { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; box-sizing: border-box; padding: 10px 6px 9px; border-radius: 12px; border: 1px solid #3a4046; color: #b6bec4; font: 600 .88rem/1.2 'Barlow', sans-serif; text-align: center; transition: border-color .15s, color .15s; }
.dep-type svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dep-type:hover span { border-color: #8f989f; }
.dep-type input:checked + span { border-color: #a4c934; color: #fff; }
.dep-type input:checked + span svg { color: #a4c934; }
.dep-type input:focus-visible + span { outline: 2px solid #a4c934; outline-offset: 2px; }
.dep-autres { margin: -4px 0 12px; }
.dep-autres summary { cursor: pointer; color: #b6bec4; font: 600 .92rem 'Barlow', sans-serif; margin-bottom: 10px; }
.dep-retour { display: block; margin: 0 0 6px; }
.dep-pastille { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.dep-tuiles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; max-height: min(52vh, 460px); overflow-y: auto; }
.dep-tuiles li { border: 1.5px solid #4a5157; border-radius: 12px; padding: 10px 12px; background: #1f2327; }
.dep-tuiles li.dep-off { opacity: .55; }
.dep-tuile { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.dep-tuile input, .dep-rubriques input { accent-color: #a4c934; }
.dep-tuile input { margin-top: 3px; width: 16px; height: 16px; }
.dep-tuile b { display: block; font: 700 .98rem 'Barlow', sans-serif; }
.dep-tuile small { display: block; color: #9aa3a9; font-size: .82rem; line-height: 1.35; }
.dep-rubriques { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 30px; }
.dep-rubriques label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 999px; background: #2a2f34; border: 1px solid #3e454b; font-size: .8rem; color: #d7dcdf; cursor: pointer; }
.dep-rubriques input:not(:checked) + span { color: #7f888e; text-decoration: line-through; }
.dep-off .dep-rubriques { display: none; }
/* Q-000004 (Nouvelle énergie) : sur la page de garde, le libellé sous le nom d'un département tient toujours sur une seule ligne,
   terminé par « … » s'il est trop long (le texte complet reste dans l'infobulle) */
#modules .cx-espace > span:not(.cx-ic) { min-width: 0; }
#modules .cx-espace small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
