/* Espace client ARANEL — maquette. Monde visuel hérité de la charte (nuit étoilée, famille de bleus, lumière d'étoile). */
:root {
  --profond: #050a1c; --nuit: #0a1a3d;
  --s1: #0a1330; --s2: #0e1a3c; --s3: #13234d;
  --ligne: rgba(159, 179, 255, .16); --ligne-f: rgba(159, 179, 255, .3);
  --texte: #f4f6ff; --brume: #b9c4e4; --doux: #8f9cc4;
  --etoile: #9fb3ff; --menthe: #7cf2d0; --menthe-f: #12b89a;
  --digital: #3d6bff; --solutions: #22c3e6; --securite: #8a80ff;
  --ambre: #ffc46b; --rouge: #ff8597;
  --r: 14px; --r-s: 10px;
  --ombre: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --titre: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --corps: Inter, system-ui, sans-serif;
  --demo-h: 0px;
}
[dir="rtl"] { --titre: Tajawal, sans-serif; --corps: Tajawal, Inter, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--profond); color: var(--texte); font: 15px/1.5 var(--corps); min-height: 100svh; }
[dir="rtl"] body { font-size: 16px; }
::selection { background: rgba(124, 242, 208, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--menthe); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: rgba(159, 179, 255, .25) transparent; }
a { color: var(--etoile); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.num, .montant, td.r { font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] svg.i.flip { transform: scaleX(-1); }

/* Barre de la maquette */
.demo { position: sticky; top: 0; z-index: 90; height: var(--demo-h); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px;
  background: #fff; color: #0a1a3d; font: 600 12px/1 Inter, sans-serif; }
.demo-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-switch { display: flex; background: #eef1fa; border-radius: 999px; padding: 3px; flex: none; }
.demo-switch button { padding: 6px 10px; border-radius: 999px; color: #4a5677; font-weight: 600; font-size: 12px; }
.demo-switch button[aria-selected="true"] { background: #0a1a3d; color: #fff; }

/* Coquille */
.shell { min-height: calc(100svh - var(--demo-h)); }
.rail { display: none; }
.topbar { position: sticky; top: var(--demo-h); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(5, 10, 28, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ligne); }
.topbar .marque { display: flex; align-items: center; }
.topbar .marque img { height: 34px; width: auto; }
.topbar h1 { font: 700 17px/1.2 var(--titre); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icone-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--brume); }
.icone-btn:hover { background: var(--s2); color: var(--texte); }
.pastille { position: absolute; top: 7px; inset-inline-end: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--rouge); color: #1a0710;
  font: 700 10px/16px Inter, sans-serif; text-align: center; }
.langues { display: flex; border: 1px solid var(--ligne); border-radius: 999px; padding: 2px; }
.langues button { font: 600 11.5px/1 Inter, sans-serif; color: var(--brume); padding: 6px 8px; border-radius: 999px; }
.langues button[lang="ar"] { font-family: Tajawal, sans-serif; font-size: 13px; padding: 4px 8px 5px; }
.langues button[aria-pressed="true"] { background: var(--texte); color: var(--nuit); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--digital), var(--securite)); color: #fff;
  font: 700 13px/1 var(--titre); flex: none; }
.main { padding: 18px 16px 110px; max-width: 1180px; margin: 0 auto; }
.tabbar { position: fixed; z-index: 50; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(8, 14, 36, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--ligne); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--doux); text-decoration: none; font-size: 11px; font-weight: 600; position: relative; }
.tabbar a[aria-current="page"] { color: var(--texte); }
.tabbar a[aria-current="page"] svg { color: var(--menthe); }
.tabbar .pastille { top: 2px; inset-inline-end: calc(50% - 20px); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 252px 1fr; }
  .rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: var(--demo-h); height: calc(100svh - var(--demo-h)); padding: 18px 14px;
    background: linear-gradient(180deg, #081231, #050a1c 70%); border-inline-end: 1px solid var(--ligne); overflow-y: auto; }
  .rail .marque img { height: 46px; margin: 0 6px 18px; }
  .rail nav { display: flex; flex-direction: column; gap: 2px; }
  .rail nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--brume); text-decoration: none; font-weight: 600; font-size: 14.5px; position: relative; }
  .rail nav a:hover { background: var(--s1); color: var(--texte); }
  .rail nav a[aria-current="page"] { background: var(--s2); color: var(--texte); box-shadow: inset 0 0 0 1px var(--ligne); }
  .rail nav a[aria-current="page"] svg { color: var(--menthe); }
  .rail nav a .pastille { position: static; margin-inline-start: auto; }
  .rail .sep { height: 1px; background: var(--ligne); margin: 12px 6px; }
  .rail .rail-bas { margin-top: auto; }
  .topbar { padding: 14px 28px; }
  .topbar .marque { display: none; }
  .topbar h1 { font-size: 21px; }
  .main { padding: 28px 28px 60px; }
  .tabbar { display: none; }
}

/* Typo et blocs */
.h2 { font: 700 18px/1.25 var(--titre); }
.h3 { font: 700 15.5px/1.3 var(--titre); }
.sous { color: var(--brume); font-size: 14px; }
.petit { color: var(--doux); font-size: 12.5px; }
.pile > * + * { margin-top: 14px; }
.section + .section { margin-top: 28px; }
.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-tete a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.panneau { background: var(--s1); border: 1px solid var(--ligne); border-radius: var(--r); }
.panneau.pad { padding: 16px; }
.grille-2 { display: grid; gap: 18px; }
@media (min-width: 960px) { .grille-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  background: var(--s3); color: var(--texte); border: 1px solid var(--ligne-f); text-decoration: none; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: #18295a; }
.btn:active { transform: translateY(1px); }
.btn.prim { background: var(--digital); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.btn.prim:hover { background: #3560f0; }
.btn.clair { background: var(--texte); color: var(--nuit); border-color: transparent; }
.btn.danger { background: transparent; color: var(--rouge); border-color: rgba(255, 133, 151, .4); }
.btn.lien { background: none; border: 0; color: var(--etoile); padding: 0 6px; min-height: 36px; }
.btn.petit-btn { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.plein { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Étiquettes */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: rgba(159, 179, 255, .1); color: var(--brume); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { background: rgba(124, 242, 208, .12); color: var(--menthe); }
.tag.att { background: rgba(255, 196, 107, .13); color: var(--ambre); }
.tag.err { background: rgba(255, 133, 151, .13); color: var(--rouge); }
.tag.info { background: rgba(61, 107, 255, .16); color: #a9beff; }
.tag.nu::before { display: none; }
.pole { font-size: 12px; font-weight: 600; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 6px; }
.pole::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c); }
.pole.digital { --c: var(--digital); color: #a9beff; }
.pole.solutions { --c: var(--solutions); color: #8fe3f4; }
.pole.securite { --c: var(--securite); color: #c3bdff; }

/* Carte du solde : signature « ciel » */
.solde { position: relative; overflow: hidden; border-radius: 18px; padding: 20px; border: 1px solid rgba(159, 179, 255, .28);
  background: radial-gradient(120% 140% at 100% 0%, #1a3a8f 0%, #0d1d4a 42%, #081233 100%); box-shadow: var(--ombre); }
.solde canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.solde > * { position: relative; }
.solde .lib { color: #cfd9ff; font-size: 13.5px; font-weight: 600; }
.solde .valeur { font: 800 clamp(34px, 9vw, 44px)/1.1 var(--titre); margin: 6px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.solde .valeur small { font-size: .45em; font-weight: 700; color: #cfd9ff; margin-inline-start: 6px; letter-spacing: 0; }
.solde .note { color: #cfd9ff; font-size: 13px; max-width: 34ch; }
.solde .actions { margin-top: 16px; }
.solde .boussole { position: absolute; width: 150px; height: 150px; inset-inline-end: -26px; top: -22px; opacity: .55; }

/* À faire */
.taches { display: grid; gap: 10px; }
.tache { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--ligne); text-decoration: none; color: inherit; }
.tache:hover { border-color: var(--ligne-f); }
.tache .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 196, 107, .12); color: var(--ambre); }
.tache .ic.bleu { background: rgba(61, 107, 255, .15); color: #a9beff; }
.tache .ic.vert { background: rgba(124, 242, 208, .12); color: var(--menthe); }
.tache .txt { flex: 1; min-width: 0; }
.tache .txt b { display: block; font-weight: 600; }
.tache .txt span { color: var(--brume); font-size: 13.5px; }
.tache > .i:last-child { color: var(--doux); }

/* Échéancier en constellation */
.ciel { position: relative; padding: 16px 16px 8px; overflow: hidden; }
.ciel svg.carte { width: 100%; height: 150px; display: block; overflow: visible; }
.ciel .etoile-pt { cursor: pointer; }
.ciel .etoile-pt:hover .halo, .ciel .etoile-pt:focus .halo { opacity: .55; }
.ciel .legende { display: flex; justify-content: space-between; color: var(--doux); font-size: 12px; margin-top: 2px; }

/* Listes de services */
.liste { display: grid; gap: 10px; }
.service { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--s1);
  border: 1px solid var(--ligne); text-decoration: none; color: inherit; }
.service:hover { border-color: var(--ligne-f); background: #0c1736; }
.service .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.service .nom { font-weight: 600; min-width: 0; }
.service .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--brume); font-size: 13px; }
.service .droite { grid-row: span 2; grid-column: 3; text-align: end; display: grid; gap: 4px; justify-items: end; }
.c-digital { --c: var(--digital); } .c-solutions { --c: var(--solutions); } .c-securite { --c: var(--securite); }

.filtres { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.filtres button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne); color: var(--brume); font-size: 13.5px; font-weight: 600; }
.filtres button[aria-pressed="true"] { background: var(--texte); color: var(--nuit); border-color: transparent; }
.filtres button .num { opacity: .7; margin-inline-start: 4px; }

/* Détail */
.retour { display: inline-flex; align-items: center; gap: 6px; color: var(--brume); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.fiche-tete { display: flex; gap: 14px; align-items: flex-start; }
.fiche-tete .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; }
.fiche-tete .ic svg { width: 26px; height: 26px; }
.fiche-tete h2 { font: 800 22px/1.2 var(--titre); }
.dl { display: grid; grid-template-columns: 1fr; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--brume); }
.dl dd { font-weight: 600; text-align: end; }
.inclus { list-style: none; display: grid; gap: 8px; }
.inclus li { display: flex; gap: 10px; align-items: flex-start; }
.inclus li svg { color: var(--menthe); width: 18px; height: 18px; margin-top: 2px; }
.barre { height: 8px; border-radius: 99px; background: rgba(159, 179, 255, .14); overflow: hidden; }
.barre > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--digital), var(--menthe)); }
[dir="rtl"] .barre > i { background: linear-gradient(-90deg, var(--digital), var(--menthe)); }
.etapes { list-style: none; display: grid; gap: 0; }
.etapes li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.etapes li::before { content: ""; position: absolute; inset-inline-start: 10px; top: 22px; bottom: 0; width: 2px; background: var(--ligne); }
.etapes li:last-child::before { display: none; }
.etapes .pt { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ligne-f); background: var(--profond); display: grid; place-items: center; }
.etapes li.fait .pt { background: var(--menthe-f); border-color: var(--menthe-f); color: #04140f; }
.etapes li.fait .pt svg { width: 13px; height: 13px; stroke-width: 3; }
.etapes li.actuel .pt { border-color: var(--menthe); box-shadow: 0 0 0 4px rgba(124, 242, 208, .15); }
.etapes b { display: block; font-weight: 600; }
.etapes span { color: var(--brume); font-size: 13px; }

/* Catalogue */
.cat-grille { display: grid; gap: 12px; }
@media (min-width: 640px) { .cat-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offre { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--ligne); position: relative; }
.offre:hover { border-color: var(--ligne-f); }
.offre .h3 { margin-top: 2px; }
.offre p { color: var(--brume); font-size: 13.5px; flex: 1; }
.offre .prix { font: 800 19px/1.2 var(--titre); font-variant-numeric: tabular-nums; }
.offre .prix small { font: 500 13px var(--corps); color: var(--brume); }
.offre .bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offre .act { font-size: 12px; color: var(--doux); display: flex; align-items: center; gap: 6px; }
.offre .act svg { width: 15px; height: 15px; }
.pole-titre { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.pole-titre:first-of-type { margin-top: 6px; }
.pole-titre .h2 { flex: 1; }
.pole-titre .losange { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--c); }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: start; color: var(--doux); font-weight: 600; font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.tableau td { padding: 12px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td.r, .tableau th.r { text-align: end; }
.tableau tbody tr:hover { background: rgba(159, 179, 255, .04); }
.plus { color: var(--menthe); font-weight: 600; }
.moins { color: var(--texte); font-weight: 600; }
.defile { overflow-x: auto; }
/* Mouvements en liste sur mobile */
.mvt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.mvt:last-child { border-bottom: 0; }
.mvt .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--s2); color: var(--brume); }
.mvt .ic.vert { color: var(--menthe); background: rgba(124, 242, 208, .1); }
.mvt .m { grid-row: span 2; text-align: end; }
.mvt b { font-weight: 600; font-size: 14px; }
.mvt span { color: var(--doux); font-size: 12.5px; }

/* Formulaires */
.champ { display: grid; gap: 6px; }
.champ label, .champ .lab { font-size: 13.5px; font-weight: 600; color: var(--brume); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ligne-f); background: #070e26; color: var(--texte); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--menthe); box-shadow: 0 0 0 3px rgba(124, 242, 208, .15); }
.input::placeholder { color: #6f7ba3; }
.aide { font-size: 12.5px; color: var(--doux); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces button { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--ligne-f); font-weight: 600; font-variant-numeric: tabular-nums; }
.puces button[aria-pressed="true"] { background: rgba(124, 242, 208, .12); border-color: var(--menthe); color: var(--menthe); }
.choix { display: grid; gap: 10px; }
.choix label { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 14px; border-radius: 13px; border: 1px solid var(--ligne-f); cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--menthe); background: rgba(124, 242, 208, .06); }
.choix input { grid-row: span 2; accent-color: var(--menthe); width: 18px; height: 18px; }
.choix b { font-weight: 600; }
.choix span { grid-column: 2; color: var(--brume); font-size: 13px; }
.choix em { grid-row: span 2; grid-column: 3; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--menthe); flex: none; margin-top: 1px; }
.avis { display: flex; gap: 12px; padding: 14px; border-radius: 13px; background: rgba(255, 196, 107, .08); border: 1px solid rgba(255, 196, 107, .28); font-size: 14px; }
.avis svg { color: var(--ambre); }
.avis.bleu { background: rgba(61, 107, 255, .1); border-color: rgba(61, 107, 255, .32); }
.avis.bleu svg { color: #a9beff; }
.avis.vert { background: rgba(124, 242, 208, .08); border-color: rgba(124, 242, 208, .3); }
.avis.vert svg { color: var(--menthe); }
.interrupteur { position: relative; width: 46px; height: 28px; flex: none; }
.interrupteur input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.interrupteur i { position: absolute; inset: 0; border-radius: 99px; background: rgba(159, 179, 255, .22); transition: background .2s; }
.interrupteur i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interrupteur input:checked + i { background: var(--menthe-f); }
.interrupteur input:checked + i::after { transform: translateX(18px); }
[dir="rtl"] .interrupteur input:checked + i::after { transform: translateX(-18px); }
.reglage { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.reglage:last-child { border-bottom: 0; }
.reglage b { display: block; font-weight: 600; }
.reglage span { color: var(--brume); font-size: 13px; }
.recap { display: grid; gap: 0; border-radius: 13px; background: #070e26; border: 1px solid var(--ligne); padding: 4px 14px; }
.recap > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ligne); font-variant-numeric: tabular-nums; }
.recap > div:last-child { border-bottom: 0; }
.recap .tot { font-weight: 700; }
.recap .neg { color: var(--rouge); }

/* Feuille (bas d'écran sur mobile, fenêtre sur ordinateur) */
.voile { position: fixed; inset: 0; z-index: 100; background: rgba(2, 5, 16, .66); display: flex; align-items: flex-end; justify-content: center; animation: fondu .2s ease-out; }
.feuille { width: 100%; max-height: 92svh; overflow-y: auto; background: var(--s1); border: 1px solid var(--ligne-f); border-radius: 22px 22px 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .7); animation: monte .32s cubic-bezier(.16, 1, .3, 1); }
.feuille .poignee { width: 40px; height: 4px; border-radius: 9px; background: var(--ligne-f); margin: 4px auto 12px; }
.feuille .tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.feuille .tete h2 { font: 800 19px/1.25 var(--titre); }
.feuille .pile > * + * { margin-top: 16px; }
.pas { display: flex; gap: 6px; margin-bottom: 16px; }
.pas i { flex: 1; height: 4px; border-radius: 9px; background: var(--ligne); }
.pas i.on { background: var(--menthe); }
@media (min-width: 720px) {
  .voile { align-items: center; }
  .feuille { width: min(520px, 94vw); border-radius: 20px; padding: 20px 24px 24px; animation: pop .26s cubic-bezier(.16, 1, .3, 1); }
  .feuille .poignee { display: none; }
}
@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { transform: translateY(40px); opacity: .4; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

#toast { position: fixed; z-index: 120; inset-inline: 16px; bottom: 86px; display: flex; justify-content: center; pointer-events: none; }
#toast div { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--texte); color: var(--nuit); font-weight: 600; font-size: 14px; box-shadow: var(--ombre); animation: monte .3s cubic-bezier(.16, 1, .3, 1); }
#toast svg { color: var(--menthe-f); }
@media (min-width: 960px) { #toast { bottom: 28px; } }

/* Messages */
.chat { display: grid; grid-template-rows: auto 1fr auto; height: calc(100svh - var(--demo-h) - 61px - 72px - 36px); min-height: 420px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--ligne); overflow: hidden; }
@media (min-width: 960px) { .chat { height: calc(100svh - var(--demo-h) - 75px - 88px); } }
.chat-tete { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ligne); }
.chat-tete img { width: 38px; height: 38px; border-radius: 50%; background: var(--nuit); padding: 3px; }
.chat-tete b { display: block; font-weight: 600; }
.chat-tete span { font-size: 12.5px; color: var(--menthe); }
.fil { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.jour { align-self: center; font-size: 12px; color: var(--doux); padding: 4px 10px; border-radius: 99px; background: var(--s2); }
.bulle { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 16px; font-size: 14.5px; background: var(--s2); border: 1px solid var(--ligne); align-self: flex-start; border-end-start-radius: 4px; }
.bulle.moi { align-self: flex-end; background: #1b3a9a; border-color: transparent; border-end-start-radius: 16px; border-end-end-radius: 4px; }
.bulle time { display: block; font-size: 11px; color: var(--doux); margin-top: 4px; text-align: end; }
.bulle.moi time { color: #b8c8ff; }
.pj { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 11px; background: rgba(0, 0, 0, .2); margin-top: 6px; font-size: 13px; }
.saisie { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--ligne); background: #08112b; }
.saisie textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--ligne-f); background: #070e26; }
.saisie textarea:focus { outline: none; border-color: var(--menthe); }
.envoyer { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--digital); color: #fff; flex: none; }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.notif:last-child { border-bottom: 0; }
.notif .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); margin-top: 7px; flex: none; }
.notif.lu .pt { background: transparent; }
.notif b { display: block; font-weight: 600; font-size: 14px; }
.notif span { color: var(--brume); font-size: 13px; }

/* Connexion */
.auth { min-height: calc(100svh - var(--demo-h)); display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth-ciel { display: none; position: relative; overflow: hidden; background: radial-gradient(110% 90% at 20% 10%, #1a3a8f, #0a1a3d 45%, #050a1c); }
@media (min-width: 960px) { .auth-ciel { display: flex; flex-direction: column; justify-content: space-between; padding: 44px; } }
.auth-ciel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-ciel > *:not(canvas) { position: relative; }
.auth-ciel img.logo-g { height: 60px; width: auto; align-self: flex-start; }
.auth-ciel h2 { font: 800 clamp(30px, 3.2vw, 44px)/1.1 var(--titre); max-width: 15ch; letter-spacing: -.02em; }
.auth-ciel ul { list-style: none; display: grid; gap: 12px; margin-top: 22px; color: #dfe6ff; }
.auth-ciel li { display: flex; gap: 10px; align-items: center; }
.auth-ciel li svg { color: var(--menthe); }
.auth-ciel .boussole-g { position: absolute; width: 520px; height: 520px; inset-inline-end: -170px; bottom: -150px; opacity: .5; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 28px 20px 40px; max-width: 460px; width: 100%; margin: 0 auto; }
.auth-form .logo-m { height: 46px; width: auto; align-self: flex-start; margin-bottom: 26px; }
@media (min-width: 960px) { .auth-form .logo-m { display: none; } }
.auth-form h1 { font: 800 26px/1.2 var(--titre); }
.auth-form > p { color: var(--brume); margin: 6px 0 22px; }
.auth-form .pile > * + * { margin-top: 14px; }
.auth-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.auth-nav button { font-size: 12px; padding: 6px 10px; border-radius: 99px; border: 1px dashed var(--ligne-f); color: var(--doux); }
.auth-nav button[aria-pressed="true"] { color: var(--texte); border-style: solid; }
.code { display: flex; gap: 8px; direction: ltr; }
.code input { width: 100%; height: 56px; text-align: center; font: 700 22px var(--titre); border-radius: 12px; border: 1px solid var(--ligne-f); background: #070e26; }
.code input:focus { outline: none; border-color: var(--menthe); }
.mdp { position: relative; }
.mdp .input { padding-inline-end: 48px; }
.mdp button { position: absolute; inset-inline-end: 4px; top: 3px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--doux); }
.force { display: flex; gap: 4px; }
.force i { flex: 1; height: 4px; border-radius: 9px; background: var(--ligne); }
.force i.on { background: var(--menthe); }

/* Espace équipe */
.kpi-file { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .kpi-file { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.file { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--ligne); text-decoration: none; color: inherit; }
.file:hover { border-color: var(--ligne-f); }
.file b { font: 800 26px/1 var(--titre); font-variant-numeric: tabular-nums; }
.file span { color: var(--brume); font-size: 13px; }
.file.chaud b { color: var(--ambre); }
.ligne-admin { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.ligne-admin:last-child { border-bottom: 0; }
.ligne-admin .txt { flex: 1; min-width: 180px; }
.ligne-admin .txt b { display: block; font-weight: 600; }
.ligne-admin .txt span { color: var(--brume); font-size: 13px; }
.recherche { position: relative; flex: 1; min-width: 200px; }
.recherche svg { position: absolute; inset-inline-start: 12px; top: 13px; color: var(--doux); }
.recherche .input { padding-inline-start: 42px; }
.barre-outils { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.role-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brume); }
.role-pick select { min-height: 36px; padding: 4px 10px; border-radius: 10px; background: var(--s2); border: 1px solid var(--ligne-f); }
.console { display: grid; gap: 12px; }
@media (min-width: 1100px) { .console { grid-template-columns: 280px minmax(0, 1fr) 270px; align-items: stretch; } .console .chat { height: calc(100svh - var(--demo-h) - 75px - 88px); } }
.convs { display: grid; align-content: start; }
.conv { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--ligne); text-align: start; width: 100%; }
.conv[aria-pressed="true"] { background: var(--s2); }
.conv .txt { flex: 1; min-width: 0; }
.conv b { display: block; font-weight: 600; font-size: 14px; }
.conv span { display: block; color: var(--brume); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .avatar { width: 34px; height: 34px; font-size: 12px; }
.matrice td, .matrice th { text-align: center; }
.matrice td:first-child, .matrice th:first-child { text-align: start; }
.oui { color: var(--menthe); } .non { color: #4d5879; }
.vide { text-align: center; padding: 34px 16px; color: var(--brume); }
.vide svg { width: 34px; height: 34px; color: var(--doux); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Mobile : le nom prend toute la largeur, état et prix passent dessous */
@media (max-width: 559px) { .role-pick .petit { display: none; } }
@media (max-width: 559px) {
  .service { grid-template-columns: auto 1fr; }
  .service .ic { grid-row: span 3; }
  .service .droite { grid-row: auto; grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: start; }
}
@media (max-width: 559px), (min-width: 960px) {
.grille-2 .service { grid-template-columns: auto 1fr; }
.grille-2 .service .ic { grid-row: span 3; }
.grille-2 .service .droite { grid-row: auto; grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: start; }
}
.ciel svg.carte { height: auto; }
.ciel .legende { display: grid; gap: 2px; list-style: none; margin: 6px 0 4px; padding: 0; font-size: 13px; }
.ciel .legende a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; color: var(--brume); text-decoration: none; }
.ciel .legende a:hover { background: var(--s2); color: var(--texte); }
.ciel .legende b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--profond); background: var(--c); }
.ciel .legende span { flex: 1; min-width: 0; }
.ciel .legende time { color: var(--texte); font-weight: 600; }
/* Renouvellement automatique : désactivé par défaut, mis en avant pour que le client le découvre */
.auto-renouv { border-color: color-mix(in srgb, var(--digital) 55%, transparent); background: color-mix(in srgb, var(--digital) 10%, var(--s1)); }
.auto-renouv.on { border-color: color-mix(in srgb, var(--menthe) 40%, transparent); background: color-mix(in srgb, var(--menthe) 6%, var(--s1)); }
.auto-renouv b { display: flex; align-items: center; gap: 8px; }
.auto-renouv b svg.i { color: var(--etoile); }
.auto-renouv.on b svg.i { color: var(--menthe); }
/* Barre de progression des projets et commandes */
.prog { display: grid; gap: 6px; }
.prog .barre { margin: 0; }
.prog span { font-size: 13px; color: var(--brume); }
.service .prog { grid-column: 2 / -1; margin-top: 6px; }
.ligne-admin .prog { margin-top: 8px; }
.suivi-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.suivi-tete b { display: block; }
/* Taux de l'euro (espace équipe, gérant) */
.taux { margin-bottom: 16px; }
.taux-tete { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.taux-tete > div:first-child { flex: 1; min-width: 220px; }
.taux-actuel { display: grid; gap: 2px; text-align: end; }
.taux-actuel b { font-size: 22px; font-family: "Plus Jakarta Sans", sans-serif; }
.taux-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.taux-form .champ { flex: 0 1 240px; }
.taux-form .champ { flex: 1 1 180px; }
.tableau td.r, .tableau th.r { white-space: nowrap; }
.offre .taux-jour { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--brume); margin-top: 4px; }
.offre .taux-jour svg.i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--etoile); }
.taux-form .paliers { flex: 1 1 100%; display: grid; gap: 8px; }
.palier { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--ligne, rgba(255,255,255,.08)); border-radius: 12px; }
.palier label, .palier .premier { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.palier .premier { min-width: 150px; color: var(--brume); }
.palier .input { width: 90px; }
.palier [data-action="palier-del"] { margin-inline-start: auto; }
.paliers > .btn { justify-self: start; }
.demo-site { margin-inline-start: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid #c9d0e2; color: #0a1a3d; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.demo-site:hover { border-color: #0a1a3d; }

/* Partenaires du site : pastille blanche identique au site */
.part-puce { flex: none; width: 104px; height: 52px; padding: 7px 10px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px -12px rgba(124, 242, 208, .5); }
.part-puce img { height: 22px; max-width: 100%; object-fit: contain; } .part-puce img.carre { height: 36px; }
.part-puce .petit { color: #8a93ad; }
.part-puce.grand { width: 176px; height: 86px; padding: 12px 18px; border-radius: 18px; } .part-puce.grand img { height: 36px; } .part-puce.grand img.carre { height: 58px; }
.part-apercu { display: grid; place-items: center; padding: 28px 16px; border-radius: 14px; border: 1px solid var(--ligne); background: radial-gradient(80% 70% at 50% 120%, rgba(124, 242, 208, .16), transparent 70%), #070f2b; }
.part-ligne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; } .part-ligne.masque .part-puce { opacity: .4; }
.part-act { display: flex; align-items: center; gap: 2px; }
.part-act .icone-btn:disabled { opacity: .3; cursor: default; }
.part-grille { align-items: start; }
.conseils > b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .conseils > b svg { width: 18px; height: 18px; color: var(--menthe); }
.conseils ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--brume); } .conseils li b { color: var(--texte); }
.depot { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 13px; border: 1.5px dashed rgba(124, 242, 208, .4); cursor: pointer; position: relative; }
.depot:hover { background: rgba(124, 242, 208, .05); } .depot > svg { width: 24px; height: 24px; color: var(--menthe); flex: none; }
.depot > span { display: grid; gap: 2px; } .depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 1280px) { .part-ligne { grid-template-columns: auto 1fr; } .part-ligne .part-puce { grid-row: span 2; } .part-act { margin-inline-start: -10px; } }

/* Média buying : grille des paliers */
.paliers-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.paliers-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 9px; background: rgba(159, 179, 255, .07); }
.paliers-liste li span { color: var(--brume); } .paliers-liste li b { color: var(--texte); font-variant-numeric: tabular-nums; }
.feuille .paliers-liste { margin: 0; }

/* Offre mise en avant (« Le plus choisi ») et ligne de renouvellement */
.offre.reco { border-color: rgba(124, 242, 208, .55); box-shadow: 0 0 0 1px rgba(124, 242, 208, .25), 0 18px 40px -24px rgba(124, 242, 208, .6); }
.badge-reco { position: absolute; top: -11px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.3 var(--corps, inherit); color: #04261d; background: var(--menthe, #7cf2d0); }
.badge-reco svg { width: 13px; height: 13px; }
.offre .renouv { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brume, #b9c4e4); margin-top: -4px; }
.offre .renouv svg { width: 15px; height: 15px; color: var(--menthe, #7cf2d0); flex: none; }

/* Espace réel : états d'attente */
.btn.occupe { opacity: .6; cursor: progress; }
.rond-charge { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--menthe, #7cf2d0); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rond-charge { animation: none; } }
