/* =====================================================================
   Sysdevexpert — Feuille de style principale
   Sombre par défaut, thème clair disponible via [data-theme="light"].
   ===================================================================== */

/* ---------- 1. Jetons de design ------------------------------------ */
:root{
  --bg:            #05060f;
  --bg-2:          #080a18;
  --surface:       #0d1022;
  --surface-2:     #12162c;
  --surface-3:     #171c38;
  --line:          rgba(255,255,255,.08);
  --line-fort:     rgba(255,255,255,.15);

  --txt:           #e9ecfb;
  --txt-2:         #b6bce0;
  --txt-3:         #7f86b0;

  --bleu:          #5b8cff;
  --violet:        #a855f7;
  --cyan:          #22d3ee;
  --vert:          #34d399;
  --ambre:         #f59e0b;
  --rouge:         #ef4444;
  --rose:          #ec4899;

  --grad:          linear-gradient(120deg,#5b8cff 0%,#a855f7 48%,#22d3ee 100%);
  --grad-doux:     linear-gradient(120deg,rgba(91,140,255,.16),rgba(168,85,247,.16),rgba(34,211,238,.16));

  --r-s:  10px;
  --r-m:  16px;
  --r-l:  24px;
  --r-xl: 32px;

  --ombre-s: 0 2px 8px rgba(0,0,0,.35);
  --ombre-m: 0 12px 32px -8px rgba(0,0,0,.55);
  --ombre-l: 0 32px 70px -18px rgba(0,0,0,.7);
  --lueur:   0 0 0 1px rgba(91,140,255,.28), 0 18px 46px -14px rgba(91,140,255,.5);

  --max: 1240px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.75,.3,1);

  color-scheme: dark;
}

[data-theme="light"]{
  --bg:        #f6f7fc;
  --bg-2:      #eef0f9;
  --surface:   #ffffff;
  --surface-2: #f4f6fd;
  --surface-3: #e9edf9;
  --line:      rgba(15,23,60,.10);
  --line-fort: rgba(15,23,60,.18);
  --txt:       #10142e;
  --txt-2:     #414a76;
  --txt-3:     #6b739c;
  --ombre-m:   0 12px 32px -12px rgba(20,26,60,.18);
  --ombre-l:   0 30px 64px -20px rgba(20,26,60,.24);
  --lueur:     0 0 0 1px rgba(91,140,255,.3), 0 18px 40px -16px rgba(91,140,255,.4);
  color-scheme: light;
}

/* ---------- 2. Réinitialisation ------------------------------------ */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,textarea,select{ font:inherit; color:inherit; }
h1,h2,h3,h4{ margin:0; line-height:1.14; letter-spacing:-.025em; font-weight:700; }
h1{ font-size:clamp(2.4rem,5.6vw,4.3rem); letter-spacing:-.04em; }
h2{ font-size:clamp(1.9rem,3.6vw,2.9rem); letter-spacing:-.035em; }
h3{ font-size:clamp(1.15rem,1.7vw,1.4rem); }
p{ margin:0 0 1rem; color:var(--txt-2); }
::selection{ background:rgba(168,85,247,.35); color:#fff; }

::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--bg-2); }
::-webkit-scrollbar-thumb{ background:var(--surface-3); border-radius:99px; border:3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover{ background:#2a3163; }

/* ---------- 3. Utilitaires ----------------------------------------- */
.wrap{ width:min(100% - 2.6rem, var(--max)); margin-inline:auto; }
.section{ padding:clamp(4.5rem,9vw,8rem) 0; position:relative; }
.section-sm{ padding:clamp(3rem,6vw,5rem) 0; }
.centre{ text-align:center; }
.mono{ font-family:'JetBrains Mono',ui-monospace,'Cascadia Code',monospace; }

.grad-txt{
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:.55rem;
  font-size:.74rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--txt-3);
  padding:.42rem .9rem;
  border:1px solid var(--line); border-radius:99px;
  background:color-mix(in srgb,var(--surface) 70%,transparent);
  backdrop-filter:blur(10px);
  margin-bottom:1.4rem;
}
.eyebrow .pt{ width:6px; height:6px; border-radius:99px; background:var(--grad); flex:none;
  box-shadow:0 0 0 4px rgba(91,140,255,.14); }

.lead{ font-size:clamp(1.02rem,1.35vw,1.18rem); color:var(--txt-2); max-width:62ch; }
.centre .lead{ margin-inline:auto; }

.tete{ max-width:760px; margin-bottom:3.2rem; }
.tete.centre{ margin-inline:auto; }

/* ---------- 4. Fond animé ------------------------------------------ */
.fond{ position:fixed; inset:0; z-index:-2; overflow:hidden; pointer-events:none; }
.fond::before{
  content:''; position:absolute; inset:-20%;
  background:
    radial-gradient(46rem 30rem at 12% -6%,  rgba(91,140,255,.30), transparent 62%),
    radial-gradient(40rem 28rem at 88% 4%,   rgba(168,85,247,.26), transparent 62%),
    radial-gradient(44rem 30rem at 50% 105%, rgba(34,211,238,.16), transparent 62%);
  filter:blur(28px);
  animation:derive 26s ease-in-out infinite alternate;
}
[data-theme="light"] .fond::before{ opacity:.5; }
@keyframes derive{
  0%  { transform:translate3d(0,0,0)   scale(1); }
  50% { transform:translate3d(-2.5%,2%,0) scale(1.07); }
  100%{ transform:translate3d(2.5%,-2%,0) scale(1.03); }
}
.grille{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size:66px 66px;
  mask-image:radial-gradient(ellipse 105% 74% at 50% 0%,#000 32%,transparent 88%);
  -webkit-mask-image:radial-gradient(ellipse 105% 74% at 50% 0%,#000 32%,transparent 88%);
}
[data-theme="light"] .grille{
  background-image:
    linear-gradient(to right, rgba(15,23,60,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,60,.05) 1px, transparent 1px);
}

/* ---------- 5. Navigation ------------------------------------------ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:900;
  height:var(--nav-h);
  display:flex; align-items:center;
  transition:background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom:1px solid transparent;
}
.nav.colle{
  background:color-mix(in srgb,var(--bg) 76%,transparent);
  backdrop-filter:blur(18px) saturate(160%);
  border-bottom-color:var(--line);
}
.nav .wrap{ display:flex; align-items:center; gap:1.6rem; }

.logo{ display:inline-flex; align-items:center; gap:.7rem; flex:none; }
.logo-texte{ display:flex; flex-direction:column; line-height:1.08; }
.logo-nom{ font-size:1.12rem; font-weight:400; letter-spacing:-.03em; color:var(--txt); }
.logo-nom b{ font-weight:750; }
.logo-sub{ font-size:.58rem; font-weight:600; letter-spacing:.19em; text-transform:uppercase; color:var(--txt-3); }
.logo-marque{ filter:drop-shadow(0 3px 12px rgba(91,140,255,.35)); transition:transform .5s var(--ease); }
.logo:hover .logo-marque{ transform:rotate(-8deg) scale(1.08); }

.nav-liens{ display:flex; align-items:center; gap:.2rem; margin-left:auto; }
.nav-liens a{
  padding:.5rem .82rem; border-radius:var(--r-s);
  font-size:.905rem; font-weight:500; color:var(--txt-2); white-space:nowrap;
  transition:color .2s, background .2s;
}
.nav-liens a:hover{ color:var(--txt); background:var(--surface-2); }
.nav-liens a.on{ color:var(--txt); }
.nav-liens a.on::after{
  content:''; display:block; height:2px; border-radius:2px; margin-top:3px;
  background:var(--grad);
}
.nav-actions{ display:flex; align-items:center; gap:.6rem; flex:none; }

.icon-btn{
  width:38px; height:38px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:var(--r-s);
  background:var(--surface); color:var(--txt-2); cursor:pointer;
  transition:all .2s var(--ease);
}
.icon-btn:hover{ color:var(--txt); border-color:var(--line-fort); transform:translateY(-1px); }
.burger{ display:none; }

/* Menu « Espace client » : Espace pro, Jalon, Espace d'essai */
.menu-client{ position:relative; }
.menu-client summary{ list-style:none; cursor:pointer; }
.menu-client summary::-webkit-details-marker{ display:none; }
.menu-client summary::after{ content:'▾'; font-size:.7rem; margin-left:.1rem; opacity:.7; }
.menu-client-liste{
  position:absolute; right:0; top:calc(100% + .5rem); z-index:950; width:min(320px,86vw);
  display:grid; gap:.15rem; padding:.45rem;
  background:var(--surface); border:1px solid var(--line-fort); border-radius:var(--r-m);
  box-shadow:var(--ombre-l);
}
.menu-client-liste a{
  display:flex; gap:.75rem; align-items:flex-start; padding:.65rem .75rem;
  border-radius:var(--r-s); color:var(--txt-2); transition:background .2s;
}
.menu-client-liste a:hover{ background:var(--surface-2); color:var(--txt); }
.menu-client-liste .ic{ width:18px; height:18px; flex:none; margin-top:.15rem; color:var(--bleu); }
.menu-client-liste b{ display:block; font-size:.9rem; color:var(--txt); font-weight:650; }
.menu-client-liste small{ display:block; font-size:.76rem; color:var(--txt-3); line-height:1.4; }
/* Sur écran moyen, l'icône seule suffit : la navigation garde sa place */
@media (max-width:1320px){
  .menu-client-lbl, .menu-client summary::after{ display:none; }
  .menu-client summary{ padding-inline:.7rem; }
}

/* ---------- 6. Boutons --------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.78rem 1.35rem; border-radius:var(--r-s);
  font-size:.93rem; font-weight:600; letter-spacing:-.01em;
  border:1px solid transparent; cursor:pointer;
  transition:all .25s var(--ease); white-space:nowrap;
  position:relative; overflow:hidden;
}
.btn .ic{ width:18px; height:18px; flex:none; }
.btn-1{ background:var(--grad); color:#fff; box-shadow:0 10px 28px -10px rgba(91,140,255,.75); }
.btn-1::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.32),transparent 80%);
  transform:translateX(-120%); transition:transform .7s var(--ease);
}
.btn-1:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -12px rgba(91,140,255,.9); }
.btn-1:hover::after{ transform:translateX(120%); }
.btn-2{ background:var(--surface); color:var(--txt); border-color:var(--line-fort); }
.btn-2:hover{ background:var(--surface-2); border-color:var(--bleu); transform:translateY(-2px); }
.btn-3{ background:transparent; color:var(--txt-2); padding-inline:.6rem; }
.btn-3:hover{ color:var(--txt); }
.btn-3 .ic{ transition:transform .25s var(--ease); }
.btn-3:hover .ic{ transform:translateX(3px); }
.btn-lg{ padding:.98rem 1.7rem; font-size:1rem; }
.btn-bloc{ width:100%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

.duo{ display:flex; flex-wrap:wrap; gap:.85rem; }
.centre .duo{ justify-content:center; }

/* ---------- 7. Hero ------------------------------------------------- */
.hero{ padding:calc(var(--nav-h) + 5.5rem) 0 5rem; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.08fr .92fr; gap:4rem; align-items:center; }
.hero h1{ margin-bottom:1.5rem; }
.hero h1 .grad-txt{ display:inline-block; }
.hero .lead{ font-size:clamp(1.05rem,1.5vw,1.24rem); margin-bottom:2.2rem; }

.hero-preuves{
  display:flex; flex-wrap:wrap; gap:.5rem .55rem; margin-top:2.6rem;
}
.puce{
  display:inline-flex; align-items:center; gap:.42rem;
  font-size:.79rem; font-weight:500; color:var(--txt-2);
  padding:.42rem .78rem; border-radius:99px;
  border:1px solid var(--line); background:color-mix(in srgb,var(--surface) 60%,transparent);
}
.puce .ic{ width:14px; height:14px; color:var(--vert); }

/* Fenêtre terminal du hero */
.terminal{
  border:1px solid var(--line-fort); border-radius:var(--r-l);
  background:linear-gradient(170deg,var(--surface-2),var(--surface));
  box-shadow:var(--ombre-l);
  overflow:hidden;
  transform:perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition:transform .8s var(--ease);
}
.terminal:hover{ transform:perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-5px); }
.terminal-barre{
  display:flex; align-items:center; gap:.5rem;
  padding:.72rem 1rem; border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--surface-3) 55%,transparent);
}
.terminal-barre i{ width:11px; height:11px; border-radius:99px; display:block; }
.terminal-barre i:nth-child(1){ background:#ff5f57; }
.terminal-barre i:nth-child(2){ background:#febc2e; }
.terminal-barre i:nth-child(3){ background:#28c840; }
.terminal-barre span{
  margin-left:auto; font-size:.72rem; color:var(--txt-3);
  font-family:'JetBrains Mono',monospace;
}
.terminal-corps{
  padding:1.3rem 1.4rem; font-family:'JetBrains Mono',monospace;
  font-size:.795rem; line-height:1.95; min-height:315px;
}
.terminal-corps .l{ display:block; white-space:pre-wrap; }
.tv{ color:var(--vert); } .tb{ color:var(--bleu); } .tc{ color:var(--cyan); }
.tm{ color:var(--txt-3); } .ta{ color:var(--ambre); } .tp{ color:var(--violet); }
.curseur{
  display:inline-block; width:8px; height:15px; vertical-align:-2px;
  background:var(--cyan); animation:clign 1.05s step-end infinite;
}
@keyframes clign{ 50%{ opacity:0; } }

/* ---------- 8. Bandeau défilant ------------------------------------ */
.bandeau{
  border-block:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 45%,transparent);
  padding:1.05rem 0; overflow:hidden;
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
}
.piste{ display:flex; gap:3.2rem; width:max-content; animation:defile 42s linear infinite; }
.bandeau:hover .piste{ animation-play-state:paused; }
@keyframes defile{ to{ transform:translateX(-50%); } }
.piste span{
  display:inline-flex; align-items:center; gap:.55rem;
  font-size:.83rem; font-weight:600; letter-spacing:.06em; color:var(--txt-3);
  white-space:nowrap; text-transform:uppercase;
}
.piste span .ic{ width:15px; height:15px; color:var(--bleu); }

/* ---------- 9. Cartes ---------------------------------------------- */
.carte{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-l);
  padding:1.8rem;
  transition:transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow:hidden;
}
.carte::before{
  content:''; position:absolute; inset:0; border-radius:inherit;
  background:radial-gradient(28rem 20rem at var(--mx,50%) var(--my,0%), rgba(91,140,255,.15), transparent 64%);
  opacity:0; transition:opacity .4s;
  pointer-events:none;
}
.carte:hover{ transform:translateY(-5px); border-color:var(--line-fort); box-shadow:var(--ombre-m); }
.carte:hover::before{ opacity:1; }

.carte-ico{
  width:48px; height:48px; border-radius:14px;
  display:grid; place-items:center; margin-bottom:1.15rem;
  background:var(--grad-doux);
  border:1px solid var(--line);
  color:var(--bleu);
  flex:none;
}
.carte-ico .ic{ width:23px; height:23px; }
.carte h3{ margin-bottom:.55rem; }
.carte p{ font-size:.92rem; margin-bottom:0; }

/* Grilles */
.g2{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.4rem; }
.g3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.g4{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.2rem; }

/* Colonnes asymétriques — en classes plutôt qu'en style en ligne,
   sans quoi les points de rupture responsive ne peuvent pas les écraser. */
.split{ display:grid; gap:1.5rem; align-items:start; }
.split-large-g{ grid-template-columns:1.55fr 1fr; }   /* contenu large à gauche */
.split-large-d{ grid-template-columns:1fr 1.5fr; }    /* contenu large à droite */
.split-auto{   grid-template-columns:auto 1fr; }      /* icône + texte */
.split-tiers{  grid-template-columns:1fr 1.6fr; }     /* problème / solution */
.split-50{     grid-template-columns:1fr 1fr; }       /* besoin / réponse */
@media (max-width:1080px){
  .split-large-g, .split-large-d, .split-tiers{ grid-template-columns:1fr; }
}
@media (max-width:760px){
  .split-50{ grid-template-columns:1fr; }
  .split-50 > *{ border-right:none !important; }
  .split-50 > *:first-child{ border-bottom:1px solid var(--line); }
}
@media (max-width:620px){
  .split-auto{ grid-template-columns:1fr; }
}

/* ---------- 10. Cartes produit ------------------------------------- */
.produits-grille{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:1.5rem; }

.pcarte{
  position:relative; display:flex; flex-direction:column;
  background:linear-gradient(168deg,var(--surface-2),var(--surface));
  border:1px solid var(--line); border-radius:var(--r-l);
  padding:1.9rem; overflow:hidden;
  transition:transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.pcarte::after{
  content:''; position:absolute; inset:0 0 auto 0; height:3px;
  background:var(--tint,var(--grad));
  transform:scaleX(0); transform-origin:left;
  transition:transform .55s var(--ease);
}
.pcarte:hover{ transform:translateY(-7px); border-color:var(--line-fort); box-shadow:var(--ombre-l); }
.pcarte:hover::after{ transform:scaleX(1); }

.pcarte-tete{ display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.2rem; }
.pcarte-ico{
  width:52px; height:52px; border-radius:15px; flex:none;
  display:grid; place-items:center;
  background:color-mix(in srgb,var(--tint,#5b8cff) 15%,transparent);
  border:1px solid color-mix(in srgb,var(--tint,#5b8cff) 34%,transparent);
  color:var(--tint,var(--bleu));
}
.pcarte-ico .ic{ width:25px; height:25px; }
.pcarte-titre{ flex:1; min-width:0; }
.pcarte-titre h3{ margin-bottom:.2rem; }
.pcarte-fam{ font-size:.71rem; font-weight:600; letter-spacing:.11em; text-transform:uppercase; color:var(--txt-3); }
.pcarte-tag{ font-size:.95rem; font-weight:600; color:var(--tint,var(--bleu)); margin-bottom:.7rem; }
.pcarte p{ font-size:.905rem; }

.badge{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  padding:.3rem .6rem; border-radius:99px;
  background:rgba(52,211,153,.13); color:var(--vert);
  border:1px solid rgba(52,211,153,.28);
  flex:none;
}
.badge .pt{ width:5px; height:5px; border-radius:99px; background:currentColor;
  animation:pulse-pt 2s ease-in-out infinite; }
@keyframes pulse-pt{ 50%{ opacity:.25; } }

.pcarte-gains{
  display:flex; gap:1.4rem; margin:1.25rem 0;
  padding:.95rem 0; border-block:1px solid var(--line);
}
.pcarte-gains div{ min-width:0; }
.pcarte-gains b{
  display:block; font-size:1.28rem; font-weight:750; letter-spacing:-.03em;
  color:var(--txt); line-height:1.2;
}
.pcarte-gains small{ font-size:.735rem; color:var(--txt-3); line-height:1.35; display:block; }

.pcarte-tech{ display:flex; flex-wrap:wrap; gap:.36rem; margin-bottom:1.35rem; }
.tech{
  font-size:.715rem; font-weight:500;
  padding:.24rem .58rem; border-radius:6px;
  background:var(--surface-3); color:var(--txt-2);
  border:1px solid var(--line);
  font-family:'JetBrains Mono',monospace;
}
.pcarte-pied{ margin-top:auto; display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }

/* Filtres du catalogue */
.filtres{ display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:2.4rem; }
.filtre{
  padding:.55rem 1.05rem; border-radius:99px;
  border:1px solid var(--line); background:var(--surface);
  font-size:.87rem; font-weight:600; color:var(--txt-2); cursor:pointer;
  transition:all .25s var(--ease);
}
.filtre:hover{ color:var(--txt); border-color:var(--line-fort); }
.filtre.on{ background:var(--grad); color:#fff; border-color:transparent;
  box-shadow:0 8px 22px -10px rgba(91,140,255,.8); }

/* ---------- 11. Statistiques --------------------------------------- */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
  border-radius:var(--r-l); overflow:hidden;
}
.stat{ background:var(--surface); padding:2rem 1.6rem; text-align:center;
  transition:background .3s; }
.stat:hover{ background:var(--surface-2); }
.stat b{
  display:block; font-size:clamp(2rem,3.6vw,2.9rem); font-weight:750;
  letter-spacing:-.045em; line-height:1;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:.45rem;
}
.stat span{ font-size:.855rem; color:var(--txt-3); }

/* ---------- 12. Timeline méthode ----------------------------------- */
.etapes{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; position:relative; }
.etape{
  position:relative; padding:1.9rem 1.6rem;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l);
  transition:transform .4s var(--ease), border-color .4s;
}
.etape:hover{ transform:translateY(-5px); border-color:var(--line-fort); }
.etape-num{
  font-family:'JetBrains Mono',monospace; font-size:2.4rem; font-weight:700;
  letter-spacing:-.05em; line-height:1; margin-bottom:.9rem;
  background:var(--grad); -webkit-background-clip:text; background-clip:text;
  color:transparent; opacity:.9;
}
.etape h3{ margin-bottom:.5rem; }
.etape p{ font-size:.9rem; margin:0; }

/* ---------- 13. Bento convictions ---------------------------------- */
.bento{ display:grid; grid-template-columns:repeat(6,1fr); gap:1.3rem; }
.bento > *:nth-child(1){ grid-column:span 4; }
.bento > *:nth-child(2){ grid-column:span 2; }
.bento > *:nth-child(3){ grid-column:span 2; }
.bento > *:nth-child(4){ grid-column:span 2; }
.bento > *:nth-child(5){ grid-column:span 2; }
.bento > *:nth-child(6){ grid-column:span 3; }
.bento > *:nth-child(7){ grid-column:span 3; }

/* ---------- 14. Bloc d'appel (CTA) --------------------------------- */
.cta{
  position:relative; overflow:hidden;
  border:1px solid var(--line-fort); border-radius:var(--r-xl);
  padding:clamp(2.6rem,5vw,4.4rem);
  background:linear-gradient(150deg,var(--surface-2),var(--surface));
  text-align:center;
}
.cta::before{
  content:''; position:absolute; inset:-50% -10% auto;  height:150%;
  background:radial-gradient(38rem 22rem at 50% 0%, rgba(91,140,255,.24), transparent 66%);
  pointer-events:none;
}
.cta > *{ position:relative; }
.cta h2{ margin-bottom:1rem; }
.cta .lead{ margin:0 auto 2rem; }

/* ---------- 15. Formulaires ---------------------------------------- */
.champ{ margin-bottom:1.1rem; }
.champ label{
  display:block; font-size:.82rem; font-weight:600; color:var(--txt-2);
  margin-bottom:.42rem; letter-spacing:.01em;
}
.champ label .req{ color:var(--rose); }
.champ input, .champ textarea, .champ select{
  width:100%; padding:.78rem .95rem;
  background:var(--surface-2); color:var(--txt);
  border:1px solid var(--line); border-radius:var(--r-s);
  font-size:.94rem; transition:border-color .2s, box-shadow .2s, background .2s;
}
.champ textarea{ min-height:132px; resize:vertical; line-height:1.6; }
.champ input:focus, .champ textarea:focus, .champ select:focus{
  outline:none; border-color:var(--bleu); background:var(--surface);
  box-shadow:0 0 0 3px rgba(91,140,255,.16);
}
.champ input::placeholder, .champ textarea::placeholder{ color:var(--txt-3); }
.champ .aide{ font-size:.775rem; color:var(--txt-3); margin-top:.35rem; }
.champ-duo{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }

.alerte{
  display:flex; gap:.7rem; align-items:flex-start;
  padding:.9rem 1.1rem; border-radius:var(--r-s);
  font-size:.895rem; margin-bottom:1.4rem;
  border:1px solid;
}
.alerte .ic{ width:19px; height:19px; flex:none; margin-top:2px; }
.alerte-ok{ background:rgba(52,211,153,.1); border-color:rgba(52,211,153,.3); color:#6ee7b7; }
.alerte-ko{ background:rgba(239,68,68,.1); border-color:rgba(239,68,68,.3); color:#fca5a5; }
.alerte-info{ background:rgba(91,140,255,.1); border-color:rgba(91,140,255,.3); color:#a5c0ff; }
[data-theme="light"] .alerte-ok{ color:#047857; }
[data-theme="light"] .alerte-ko{ color:#b91c1c; }
[data-theme="light"] .alerte-info{ color:#1d4ed8; }

.case{ display:flex; gap:.65rem; align-items:flex-start; font-size:.86rem; color:var(--txt-2); }
.case input{ width:auto; margin-top:.28rem; accent-color:var(--bleu); flex:none; }

/* ---------- 16. Pied de page --------------------------------------- */
.pied{
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 42%,transparent);
  padding:4rem 0 2rem; margin-top:5rem;
}
.pied-grid{ display:grid; grid-template-columns:1.6fr repeat(4,1fr); gap:2.4rem; margin-bottom:3rem; }
.pied h4{ font-size:.775rem; letter-spacing:.15em; text-transform:uppercase;
  color:var(--txt-3); margin-bottom:1.05rem; font-weight:700; }
.pied ul{ list-style:none; margin:0; padding:0; display:grid; gap:.62rem; }
.pied ul a{ font-size:.895rem; color:var(--txt-2); transition:color .2s; }
.pied ul a:hover{ color:var(--bleu); }
.pied-desc{ font-size:.895rem; color:var(--txt-2); max-width:38ch; margin:1.15rem 0 1.4rem; }
.pied-contact{ display:grid; gap:.5rem; font-size:.875rem; }
.pied-contact a{ display:inline-flex; align-items:center; gap:.52rem; color:var(--txt-2); transition:color .2s; }
.pied-contact a:hover{ color:var(--bleu); }
.pied-contact .ic{ width:16px; height:16px; color:var(--txt-3); }
.pied-bas{
  border-top:1px solid var(--line); padding-top:1.6rem;
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center;
  font-size:.815rem; color:var(--txt-3);
}
.pied-bas nav{ display:flex; gap:1.3rem; flex-wrap:wrap; }
.pied-bas a:hover{ color:var(--txt-2); }

/* ---------- 17. Animations d'apparition ---------------------------- */
.rev{ opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.rev.vu{ opacity:1; transform:none; }
.rev-d1{ transition-delay:.08s; } .rev-d2{ transition-delay:.16s; }
.rev-d3{ transition-delay:.24s; } .rev-d4{ transition-delay:.32s; }
.rev-d5{ transition-delay:.40s; } .rev-d6{ transition-delay:.48s; }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .rev{ opacity:1; transform:none; }
  .terminal{ transform:none; }
}

/* ---------- 18. Fiche produit -------------------------------------- */
.fiche-hero{ padding:calc(var(--nav-h) + 3.6rem) 0 3rem; }
.fil{ display:flex; align-items:center; gap:.5rem; font-size:.82rem; color:var(--txt-3); margin-bottom:1.6rem; }
.fil a:hover{ color:var(--bleu); }
.fil .ic{ width:14px; height:14px; }

.fiche-tete{ display:flex; gap:1.4rem; align-items:flex-start; flex-wrap:wrap; margin-bottom:1.5rem; }
.fiche-ico{
  width:76px; height:76px; border-radius:21px; flex:none; display:grid; place-items:center;
  background:color-mix(in srgb,var(--tint,#5b8cff) 15%,transparent);
  border:1px solid color-mix(in srgb,var(--tint,#5b8cff) 36%,transparent);
  color:var(--tint,var(--bleu));
  box-shadow:0 16px 40px -18px color-mix(in srgb,var(--tint,#5b8cff) 90%,transparent);
}
.fiche-ico .ic{ width:38px; height:38px; }

.citation{
  border-left:3px solid var(--tint,var(--bleu));
  padding:.3rem 0 .3rem 1.3rem; margin:2rem 0;
  font-size:1.09rem; color:var(--txt); font-style:italic;
}

.fonc{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.3rem; }
.fonc-item{
  padding:1.55rem; border:1px solid var(--line); border-radius:var(--r-m);
  background:var(--surface); transition:border-color .35s, transform .35s var(--ease);
}
.fonc-item:hover{ border-color:var(--line-fort); transform:translateY(-3px); }
.fonc-item h4{ font-size:1.02rem; margin-bottom:.5rem; display:flex; gap:.6rem; align-items:center; }
.fonc-item h4 .ic{ width:17px; height:17px; color:var(--tint,var(--bleu)); flex:none; }
.fonc-item p{ font-size:.895rem; margin:0; }

.flux{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; align-items:stretch; }
.flux-etape{
  position:relative; padding:1.6rem; text-align:center;
  border:1px solid var(--line); background:var(--surface);
}
.flux-etape:first-child{ border-radius:var(--r-m) 0 0 var(--r-m); }
.flux-etape:last-child{ border-radius:0 var(--r-m) var(--r-m) 0; }
.flux-etape + .flux-etape{ border-left:none; }
.flux-etape b{ display:block; font-size:1rem; margin-bottom:.4rem; color:var(--txt); }
.flux-etape span{ font-size:.865rem; color:var(--txt-2); }
.flux-etape::after{
  content:''; position:absolute; right:-9px; top:50%; z-index:2;
  width:18px; height:18px; transform:translateY(-50%) rotate(45deg);
  border-top:1px solid var(--line); border-right:1px solid var(--line);
  background:var(--surface);
}
.flux-etape:last-child::after{ display:none; }

.liste{ list-style:none; margin:0; padding:0; display:grid; gap:.72rem; }
.liste li{ display:flex; gap:.7rem; align-items:flex-start; font-size:.92rem; color:var(--txt-2); }
.liste li .ic{ width:17px; height:17px; color:var(--vert); flex:none; margin-top:3px; }

.encart{
  border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); padding:1.7rem;
}
.encart h4{ font-size:.775rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--txt-3); margin-bottom:1rem; }

/* ---------- 19. Espace démo ---------------------------------------- */
.demo-page{ padding-top:calc(var(--nav-h) + 2.6rem); }

.auth-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3.2rem; align-items:center; }
.auth-carte{
  border:1px solid var(--line-fort); border-radius:var(--r-xl);
  background:linear-gradient(165deg,var(--surface-2),var(--surface));
  padding:clamp(1.8rem,3vw,2.6rem);
  box-shadow:var(--ombre-l);
}
.auth-carte h2{ font-size:1.6rem; margin-bottom:.5rem; }

.demo-tuiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.3rem; }
.tuile{
  display:flex; flex-direction:column; gap:.8rem;
  padding:1.6rem; border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); transition:all .4s var(--ease);
}
.tuile:hover{ transform:translateY(-5px); border-color:var(--line-fort); box-shadow:var(--ombre-m); }
.tuile-ico{
  width:44px; height:44px; border-radius:13px; display:grid; place-items:center;
  background:color-mix(in srgb,var(--tint,#5b8cff) 15%,transparent);
  border:1px solid color-mix(in srgb,var(--tint,#5b8cff) 32%,transparent);
  color:var(--tint,var(--bleu));
}
.tuile h3{ font-size:1.05rem; }
.tuile p{ font-size:.885rem; margin:0; flex:1; }

/* Bandeau utilisateur */
.bandeau-user{
  display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
  padding:1.15rem 1.5rem; border:1px solid var(--line); border-radius:var(--r-m);
  background:var(--surface); margin-bottom:2.2rem;
}
.avatar{
  width:44px; height:44px; border-radius:99px; flex:none;
  display:grid; place-items:center; font-weight:700; font-size:1rem; color:#fff;
  background:var(--grad);
}

/* Interface de chat de démonstration */
.chat{
  border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); overflow:hidden; display:flex; flex-direction:column;
  height:min(66vh,600px);
}
.chat-tete{
  display:flex; align-items:center; gap:.8rem; flex-wrap:wrap;
  padding:.9rem 1.2rem; border-bottom:1px solid var(--line);
  background:var(--surface-2);
}
.chat-modes{ display:flex; gap:.3rem; margin-left:auto; }
.chat-mode{
  padding:.32rem .75rem; border-radius:99px; font-size:.78rem; font-weight:600;
  border:1px solid var(--line); background:transparent; color:var(--txt-3); cursor:pointer;
  transition:all .2s;
}
.chat-mode.on{ background:var(--grad); color:#fff; border-color:transparent; }
.chat-flux{ flex:1; overflow-y:auto; padding:1.4rem; display:flex; flex-direction:column; gap:1.1rem; }
.msg{ display:flex; gap:.8rem; max-width:88%; }
.msg-ia{ align-self:flex-start; }
.msg-moi{ align-self:flex-end; flex-direction:row-reverse; }
.msg-av{
  width:32px; height:32px; border-radius:10px; flex:none; display:grid; place-items:center;
  font-size:.72rem; font-weight:700;
}
.msg-ia .msg-av{ background:var(--grad-doux); border:1px solid var(--line); color:var(--bleu); }
.msg-moi .msg-av{ background:var(--surface-3); color:var(--txt-2); }
.msg-bulle{
  padding:.82rem 1.05rem; border-radius:var(--r-m); font-size:.9rem; line-height:1.62;
  border:1px solid var(--line);
}
.msg-ia .msg-bulle{ background:var(--surface-2); border-top-left-radius:5px; }
.msg-moi .msg-bulle{ background:var(--grad); color:#fff; border-color:transparent; border-top-right-radius:5px; }
.msg-bulle p:last-child{ margin-bottom:0; }
.msg-bulle strong{ color:var(--txt); }
.msg-moi .msg-bulle strong{ color:#fff; }
.msg-src{
  margin-top:.7rem; padding-top:.62rem; border-top:1px dashed var(--line);
  font-size:.755rem; color:var(--txt-3); display:flex; flex-wrap:wrap; gap:.4rem; align-items:center;
}
.msg-src b{ font-weight:600; }
.src-tag{
  display:inline-flex; align-items:center; gap:.3rem;
  padding:.16rem .5rem; border-radius:5px; background:var(--surface-3);
  border:1px solid var(--line); font-family:'JetBrains Mono',monospace; font-size:.7rem;
}
.chat-saisie{
  display:flex; gap:.6rem; padding:.95rem 1.1rem; border-top:1px solid var(--line);
  background:var(--surface-2);
}
.chat-saisie input{
  flex:1; padding:.7rem .95rem; border-radius:var(--r-s);
  background:var(--surface); border:1px solid var(--line); color:var(--txt); font-size:.92rem;
}
.chat-saisie input:focus{ outline:none; border-color:var(--bleu); box-shadow:0 0 0 3px rgba(91,140,255,.15); }

.pointilles{ display:inline-flex; gap:4px; align-items:center; padding:.35rem 0; }
.pointilles i{ width:6px; height:6px; border-radius:99px; background:var(--txt-3);
  animation:saut 1.25s ease-in-out infinite; }
.pointilles i:nth-child(2){ animation-delay:.16s; }
.pointilles i:nth-child(3){ animation-delay:.32s; }
@keyframes saut{ 0%,60%,100%{ transform:translateY(0); opacity:.45; } 30%{ transform:translateY(-5px); opacity:1; } }

.suggestions{ display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1rem; }
.sugg{
  padding:.42rem .8rem; border-radius:99px; font-size:.8rem;
  border:1px solid var(--line); background:var(--surface-2); color:var(--txt-2); cursor:pointer;
  transition:all .2s;
}
.sugg:hover{ border-color:var(--bleu); color:var(--txt); transform:translateY(-1px); }

/* Éditeur de notes */
.editeur{
  border:1px solid var(--line); border-radius:var(--r-l); overflow:hidden; background:var(--surface);
}
.editeur-barre{
  display:flex; gap:.45rem; flex-wrap:wrap; padding:.85rem 1.1rem;
  border-bottom:1px solid var(--line); background:var(--surface-2);
}
.outil{
  display:inline-flex; align-items:center; gap:.42rem;
  padding:.45rem .82rem; border-radius:var(--r-s); font-size:.82rem; font-weight:600;
  border:1px solid var(--line); background:var(--surface); color:var(--txt-2); cursor:pointer;
  transition:all .22s;
}
.outil:hover:not(:disabled){ color:var(--txt); border-color:var(--bleu); transform:translateY(-1px); }
.outil .ic{ width:15px; height:15px; }
.outil:disabled{ opacity:.45; cursor:wait; }
.editeur textarea{
  width:100%; border:none; background:transparent; color:var(--txt);
  padding:1.3rem; min-height:230px; font-size:.95rem; line-height:1.75; resize:vertical;
}
.editeur textarea:focus{ outline:none; }
.editeur-pied{
  display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
  padding:.75rem 1.1rem; border-top:1px solid var(--line);
  background:var(--surface-2); font-size:.79rem; color:var(--txt-3);
}

/* Barre de progression */
.progress{ height:7px; border-radius:99px; background:var(--surface-3); overflow:hidden; }
.progress i{ display:block; height:100%; width:0; border-radius:99px; background:var(--grad);
  transition:width .5s var(--ease); }

.etapes-live{ display:grid; gap:.75rem; margin-top:1.4rem; }
.etape-live{
  display:flex; align-items:center; gap:.8rem;
  padding:.8rem 1rem; border:1px solid var(--line); border-radius:var(--r-s);
  background:var(--surface-2); font-size:.885rem; color:var(--txt-3);
  transition:all .35s var(--ease);
}
.etape-live .pt{ width:9px; height:9px; border-radius:99px; background:var(--surface-3); flex:none; }
.etape-live.en-cours{ color:var(--txt); border-color:rgba(91,140,255,.4); }
.etape-live.en-cours .pt{ background:var(--bleu); box-shadow:0 0 0 4px rgba(91,140,255,.18);
  animation:pulse-pt 1.3s ease-in-out infinite; }
.etape-live.fini{ color:var(--txt-2); }
.etape-live.fini .pt{ background:var(--vert); }
.etape-live time{ margin-left:auto; font-family:'JetBrains Mono',monospace; font-size:.76rem; }

/* Tableau */
.tbl-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-m); }
table.tbl{ width:100%; border-collapse:collapse; font-size:.855rem; min-width:620px; }
table.tbl th{
  text-align:left; padding:.8rem 1rem; background:var(--surface-2);
  font-size:.71rem; letter-spacing:.09em; text-transform:uppercase; color:var(--txt-3); font-weight:700;
  border-bottom:1px solid var(--line); white-space:nowrap;
}
table.tbl td{ padding:.8rem 1rem; border-bottom:1px solid var(--line); color:var(--txt-2); }
table.tbl tr:last-child td{ border-bottom:none; }
table.tbl tbody tr{ transition:background .2s; }
table.tbl tbody tr:hover{ background:var(--surface-2); }
.pill{ display:inline-flex; align-items:center; gap:.32rem; padding:.2rem .55rem;
  border-radius:99px; font-size:.71rem; font-weight:700; }
.pill-ko{ background:rgba(239,68,68,.14); color:#fca5a5; }
.pill-warn{ background:rgba(245,158,11,.14); color:#fcd34d; }
.pill-ok{ background:rgba(52,211,153,.14); color:#6ee7b7; }
[data-theme="light"] .pill-ko{ color:#b91c1c; }
[data-theme="light"] .pill-warn{ color:#b45309; }
[data-theme="light"] .pill-ok{ color:#047857; }

/* KPI de démo */
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-bottom:1.6rem; }
.kpi{
  padding:1.25rem; border:1px solid var(--line); border-radius:var(--r-m); background:var(--surface);
}
.kpi small{ font-size:.755rem; color:var(--txt-3); display:block; margin-bottom:.4rem; }
.kpi b{ font-size:1.75rem; font-weight:750; letter-spacing:-.04em; line-height:1; display:block; }
.kpi.crit b{ color:var(--rouge); }
.kpi.warn b{ color:var(--ambre); }
.kpi.ok b{ color:var(--vert); }

/* ---------- 20. Divers --------------------------------------------- */
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Lien d'évitement — accessibilité (et signal de qualité pour Google) */
.saut-lien{
  position:absolute; left:-9999px; top:0; z-index:1000;
  padding:.7rem 1.2rem; border-radius:0 0 var(--r-s) 0;
  background:var(--grad); color:#fff; font-weight:600; font-size:.9rem;
}
.saut-lien:focus{ left:0; }
.sep{ height:1px; background:var(--line); border:none; margin:0; }
.haut{
  position:fixed; right:1.6rem; bottom:1.6rem; z-index:800;
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-fort); color:var(--txt-2);
  opacity:0; pointer-events:none; transform:translateY(12px);
  transition:all .35s var(--ease); box-shadow:var(--ombre-m);
}
.haut.vu{ opacity:1; pointer-events:auto; transform:none; }
.haut:hover{ color:var(--txt); border-color:var(--bleu); }
.haut .ic{ transform:rotate(-90deg); }

/* ---------- 21. Responsive ----------------------------------------- */
@media (max-width:1080px){
  .hero-grid{ grid-template-columns:1fr; gap:3rem; }
  .terminal{ transform:none; }
  .pied-grid{ grid-template-columns:1fr 1fr; gap:2.2rem; }
  .bento > *{ grid-column:span 3 !important; }
  .g4{ grid-template-columns:repeat(2,1fr); }
  .auth-grid{ grid-template-columns:1fr; gap:2.4rem; }
  .auth-vitrine{ display:none; }
}
@media (max-width:900px){
  .nav-liens{ display:none; }
  .burger{ display:grid; }
  .nav-liens.ouvert{
    display:flex; flex-direction:column; align-items:stretch; gap:.2rem;
    position:absolute; top:var(--nav-h); left:0; right:0;
    padding:1rem 1.3rem 1.4rem;
    background:color-mix(in srgb,var(--bg) 96%,transparent);
    backdrop-filter:blur(20px);
    border-bottom:1px solid var(--line);
    box-shadow:var(--ombre-m);
  }
  .nav-liens.ouvert a{ padding:.75rem .9rem; }
  .nav-liens.ouvert a.on::after{ display:none; }
  .g3,.g2,.etapes,.fonc,.kpis{ grid-template-columns:1fr 1fr; }
  .stats{ grid-template-columns:1fr 1fr; }
  .flux{ grid-template-columns:1fr; }
  .flux-etape{ border-radius:0 !important; border-left:1px solid var(--line) !important; }
  .flux-etape:first-child{ border-radius:var(--r-m) var(--r-m) 0 0 !important; }
  .flux-etape:last-child{ border-radius:0 0 var(--r-m) var(--r-m) !important; }
  .flux-etape + .flux-etape{ border-top:none; }
  .flux-etape::after{ right:50%; top:auto; bottom:-9px; transform:translateX(50%) rotate(135deg); }
}
@media (max-width:620px){
  .g3,.g2,.g4,.etapes,.fonc,.kpis,.champ-duo,.stats{ grid-template-columns:1fr; }
  .produits-grille{ grid-template-columns:1fr; }
  .pied-grid{ grid-template-columns:1fr; }
  .logo-sub{ display:none; }
  .pcarte-gains{ flex-wrap:wrap; gap:1rem; }
  .msg{ max-width:96%; }
  .haut{ right:1rem; bottom:1rem; }
}

/* =====================================================================
   Console d'administration (/admin/)
   ===================================================================== */
.adm-tete{ display:flex; align-items:flex-end; gap:1.2rem; flex-wrap:wrap; margin-bottom:1.4rem; }

.adm-nav{
  display:flex; gap:.35rem; flex-wrap:wrap; align-items:center;
  border-bottom:1px solid var(--line); margin-bottom:2rem; padding-bottom:.55rem;
}
.adm-nav a{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.5rem .85rem; border-radius:var(--r-s);
  font-size:.875rem; font-weight:600; color:var(--txt-3);
  text-decoration:none; transition:background .2s, color .2s;
}
.adm-nav a:hover{ background:var(--surface-2); color:var(--txt-2); }
.adm-nav a.on{ background:var(--surface-3); color:var(--txt); }
.adm-pastille{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:99px;
  background:var(--rouge); color:#fff; font-size:.66rem; font-weight:800;
}

.adm-graph{
  display:flex; align-items:flex-end; gap:2px; height:130px;
  padding:.4rem .2rem 0; border-bottom:1px solid var(--line);
}
.adm-barre{ flex:1; height:100%; display:flex; align-items:flex-end; min-width:3px; }
.adm-barre span{
  width:100%; border-radius:3px 3px 0 0; opacity:.85;
  transition:opacity .2s, transform .2s;
}
.adm-barre:hover span{ opacity:1; transform:scaleY(1.03); transform-origin:bottom; }

.adm-jauge{
  display:block; height:5px; border-radius:99px; background:var(--surface-3);
  margin-top:.4rem; overflow:hidden;
}
.adm-jauge span{ display:block; height:100%; border-radius:99px; }

.adm-filtre{
  display:flex; gap:.6rem; flex-wrap:wrap; align-items:flex-end; margin-bottom:1.4rem;
}
.adm-filtre .champ{ margin-bottom:0; }
.adm-filtre input[type="search"],
.adm-filtre input[type="text"],
.adm-filtre select{ min-width:180px; }

.adm-vide{
  padding:2.6rem 1.4rem; text-align:center; color:var(--txt-3);
  font-size:.92rem; border:1px dashed var(--line-fort); border-radius:var(--r-m);
}

.adm-tag{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.7rem; font-weight:700; padding:.18rem .5rem; border-radius:99px;
  background:var(--surface-3); color:var(--txt-2); white-space:nowrap;
}
.adm-tag i{ width:6px; height:6px; border-radius:99px; background:currentColor; flex:none; }

.adm-pagi{ display:flex; gap:.5rem; justify-content:center; margin-top:1.6rem; flex-wrap:wrap; }

table.tbl td.num, table.tbl th.num{ text-align:right; font-variant-numeric:tabular-nums; }
table.tbl a{ color:var(--bleu); font-weight:600; text-decoration:none; }
table.tbl a:hover{ text-decoration:underline; }

@media (max-width:760px){
  .adm-nav{ overflow-x:auto; flex-wrap:nowrap; }
  .adm-nav a{ white-space:nowrap; }
}

/* =====================================================================
   Espace pro (/pro/) — collaboration : espaces, discussion, documents
   ===================================================================== */
body.pro .nav{
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(18px) saturate(160%); border-bottom-color:var(--line);
}
.pro-app{
  display:grid; grid-template-columns:268px minmax(0,1fr);
  min-height:100vh; padding-top:var(--nav-h);
}
.pro-cote{
  position:sticky; top:var(--nav-h); align-self:start;
  height:calc(100vh - var(--nav-h)); overflow-y:auto;
  display:flex; flex-direction:column; gap:.3rem;
  padding:1.2rem .9rem; border-right:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 60%,transparent);
}
.pro-zone{ min-width:0; padding:1.8rem clamp(1rem,3vw,2.4rem) 3rem; }
.pro-ouvrir-menu{ display:none; margin-bottom:1rem; }

.pro-moi{
  display:flex; align-items:center; gap:.7rem; padding:.6rem .6rem .9rem;
  border-bottom:1px solid var(--line); margin-bottom:.6rem;
}
.pro-moi b{ display:block; font-size:.92rem; color:var(--txt); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pro-moi small{ display:block; font-size:.76rem; color:var(--txt-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.pro-menu{ display:flex; flex-direction:column; gap:.12rem; }
.pro-menu a{
  display:flex; align-items:center; gap:.6rem; min-width:0;
  padding:.5rem .65rem; border-radius:var(--r-s);
  font-size:.875rem; font-weight:550; color:var(--txt-2);
  transition:background .2s, color .2s;
}
.pro-menu a .ic{ width:17px; height:17px; flex:none; color:var(--txt-3); }
.pro-menu a:hover{ background:var(--surface-2); color:var(--txt); }
.pro-menu a.on{ background:var(--surface-3); color:var(--txt); }
.pro-menu a.on .ic{ color:var(--bleu); }
.pro-espaces a i{ width:9px; height:9px; border-radius:3px; flex:none; }
.pro-bas{ margin-top:auto; padding-top:.8rem; border-top:1px solid var(--line); }
.pro-titre-liste{
  display:flex; align-items:center; justify-content:space-between;
  margin:1.1rem .65rem .35rem; font-size:.7rem; letter-spacing:.14em;
  text-transform:uppercase; font-weight:700; color:var(--txt-3);
}
.pro-titre-liste a{
  width:22px; height:22px; border-radius:7px; display:grid; place-items:center;
  font-size:1rem; line-height:1; color:var(--txt-2); border:1px solid var(--line);
}
.pro-titre-liste a:hover{ border-color:var(--bleu); color:var(--txt); }
.pro-vide-menu{ font-size:.8rem; color:var(--txt-3); padding:.3rem .65rem; }
.pro-coupe{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pro-menu .pro-coupe{ flex:1; }

.pro-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:19px; height:19px; padding:0 6px; margin-left:auto; border-radius:99px;
  background:var(--rouge); color:#fff; font-size:.68rem; font-weight:800; line-height:1;
}
.pro-badge[hidden]{ display:none; }
.pro-compte{
  display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px;
  padding:0 5px; border-radius:99px; background:var(--surface-3); color:var(--txt-3);
  font-size:.68rem; font-weight:700;
}

/* Avatars et présence */
.pro-av{
  display:inline-grid; place-items:center; flex:none; border-radius:99px;
  font-weight:700; color:#fff; letter-spacing:-.02em;
  background:linear-gradient(140deg,var(--av,#5b8cff),color-mix(in srgb,var(--av,#5b8cff) 55%,#1e1b4b));
  width:36px; height:36px; font-size:13px;
}
.pro-av-plus{ width:26px; height:26px; font-size:10px; background:var(--surface-3); color:var(--txt-2); }
.pro-pile{ display:inline-flex; }
.pro-pile .pro-av{ border:2px solid var(--surface); margin-left:-7px; }
.pro-pile .pro-av:first-child{ margin-left:0; }
.pro-presence{ position:relative; display:inline-flex; flex:none; }
.pro-presence.on::after{
  content:''; position:absolute; right:-1px; bottom:-1px; width:11px; height:11px;
  border-radius:99px; background:var(--vert); border:2px solid var(--surface);
}

/* En-têtes de page */
.pro-tete{ display:flex; align-items:flex-end; gap:1.2rem; flex-wrap:wrap; margin-bottom:1.6rem; }
.pro-tete .eyebrow{ margin-bottom:.7rem; }
.pro-tete h1{ font-size:clamp(1.5rem,2.8vw,2.1rem); margin:0; }
.pro-tete p{ margin:.4rem 0 0; color:var(--txt-3); font-size:.92rem; }
.pro-tete > div:first-child{ min-width:0; }
.pro-actions{ margin-left:auto; display:flex; gap:.6rem; flex-wrap:wrap; }
.pro-tete-esp{ align-items:center; margin-bottom:1.1rem; }
.pro-tete-esp h1{ font-size:clamp(1.3rem,2.4vw,1.75rem); }
.pro-tete-esp p{ margin-top:.2rem; }

.pro-pastille-esp{
  width:34px; height:34px; border-radius:10px; flex:none; display:inline-grid; place-items:center;
  font-size:.78rem; font-weight:800; color:var(--tint,var(--bleu));
  background:color-mix(in srgb,var(--tint,#5b8cff) 16%,transparent);
  border:1px solid color-mix(in srgb,var(--tint,#5b8cff) 36%,transparent);
}
.pro-pastille-lg{ width:50px; height:50px; border-radius:14px; font-size:1rem; }

.pro-onglets{ margin-bottom:1.4rem; }
.pro-muet{ color:var(--txt-3); font-size:.88rem; margin:0; }

/* Cartes d'espaces */
.pro-cartes{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:1rem; }
.pro-carte{
  display:flex; flex-direction:column; gap:.55rem; padding:1.3rem;
  border:1px solid var(--line); border-radius:var(--r-l); background:var(--surface);
  transition:transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.pro-carte:hover{ transform:translateY(-3px); border-color:color-mix(in srgb,var(--tint) 50%,transparent); box-shadow:var(--ombre-m); }
.pro-carte h3{ font-size:1.02rem; }
.pro-carte p{ font-size:.86rem; margin:0; flex:1; }
.pro-carte-haut, .pro-carte-bas{ display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.pro-carte-haut .pro-badge{ margin-left:0; height:22px; padding:0 9px; }
.pro-chiffres{ display:inline-flex; align-items:center; gap:.3rem; font-size:.78rem; color:var(--txt-3); }
.pro-chiffres .ic{ width:13px; height:13px; }

/* Listes du tableau de bord */
.pro-liste{ list-style:none; margin:0; padding:0; display:grid; gap:.15rem; }
.pro-liste li{
  display:flex; align-items:center; gap:.65rem; min-width:0;
  padding:.5rem .3rem; border-bottom:1px solid var(--line); font-size:.88rem;
}
.pro-liste li:last-child{ border-bottom:none; }
.pro-liste a{ color:var(--txt); font-weight:550; flex:1; }
.pro-liste a:hover{ color:var(--bleu); }
.pro-liste small{ color:var(--txt-3); font-size:.76rem; white-space:nowrap; }
.pro-fil{ list-style:none; margin:0; padding:0; display:grid; gap:.7rem; }
.pro-fil li{ display:flex; align-items:center; gap:.7rem; font-size:.875rem; color:var(--txt-2); }
.pro-fil li span{ flex:1; min-width:0; }
.pro-fil strong{ color:var(--txt); }
.pro-fil a{ color:var(--bleu); }
.pro-fil time{ font-size:.76rem; color:var(--txt-3); white-space:nowrap; }

.pro-type{
  display:inline-grid; place-items:center; flex:none; width:38px; height:28px; border-radius:7px;
  font-size:.62rem; font-weight:800; letter-spacing:.04em; font-family:'JetBrains Mono',monospace;
  background:var(--surface-3); color:var(--txt-2); border:1px solid var(--line);
}
.pro-statut{ width:10px; height:10px; border-radius:99px; flex:none; display:inline-block; }
.pro-statut.s-afaire{ background:var(--txt-3); }
.pro-statut.s-encours{ background:var(--ambre); }
.pro-statut.s-fait{ background:var(--vert); }
.pro-lien-ko{ background:none; border:none; padding:0; cursor:pointer; color:var(--rouge) !important; font-weight:600; font-size:inherit; }

/* Discussion */
.pro-plein .pro-zone{ display:flex; flex-direction:column; height:calc(100vh - var(--nav-h)); padding-bottom:1.2rem; }
.pro-plein .pro-chat{ flex:1; min-height:0; }
.pro-chat{
  display:flex; flex-direction:column; min-height:420px;
  border:1px solid var(--line); border-radius:var(--r-l); background:var(--surface); overflow:hidden;
}
.pro-fil-msg{ flex:1; overflow-y:auto; padding:1.2rem 1.2rem .6rem; display:flex; flex-direction:column; }
.pro-plus-ancien{ align-self:center; font-size:.82rem; margin-bottom:.8rem; }
.pro-plus-ancien[hidden]{ display:none; }
.pro-chargement, .pro-fil-vide{ margin:auto; text-align:center; }
.pro-jour{ display:flex; align-items:center; gap:.8rem; margin:1rem 0 .6rem; color:var(--txt-3); font-size:.74rem; font-weight:600; }
.pro-jour::before, .pro-jour::after{ content:''; flex:1; height:1px; background:var(--line); }
.pro-jour span::first-letter{ text-transform:uppercase; }

.pro-msg{ position:relative; display:flex; gap:.7rem; align-items:flex-start; margin-top:.75rem; max-width:min(760px,92%); }
.pro-msg.suite{ margin-top:.18rem; }
.pro-msg.suite > .pro-av{ visibility:hidden; height:0 !important; }
.pro-msg.moi{ align-self:flex-end; flex-direction:row-reverse; }
.pro-msg-corps{ min-width:0; display:flex; flex-direction:column; }
.pro-msg.moi .pro-msg-corps{ align-items:flex-end; }
.pro-msg-tete{ display:flex; gap:.5rem; align-items:baseline; margin-bottom:.22rem; font-size:.8rem; }
.pro-msg-tete b{ color:var(--txt); font-weight:650; }
.pro-msg-tete time{ color:var(--txt-3); font-size:.72rem; }
.pro-bulle{
  padding:.55rem .85rem; border-radius:4px 16px 16px 16px; background:var(--surface-2);
  border:1px solid var(--line); color:var(--txt); font-size:.92rem; line-height:1.55;
  overflow-wrap:anywhere; max-width:100%;
}
.pro-msg.moi .pro-bulle{
  border-radius:16px 4px 16px 16px; color:#fff; border-color:transparent;
  background:linear-gradient(135deg,#4f7cf5,#7c4ee6);
}
.pro-msg.moi .pro-bulle a{ color:#fff; text-decoration:underline; }
.pro-bulle a{ color:var(--bleu); }
.pro-msg.suppr .pro-bulle{ background:transparent !important; color:var(--txt-3) !important; font-style:italic; border:1px dashed var(--line-fort); }
.pro-texte + .pro-texte, .pro-pj + .pro-texte, .pro-img + .pro-pj{ margin-top:.45rem; }
.pro-img{ display:block; margin-bottom:.45rem; }
.pro-img img{ max-width:min(320px,100%); max-height:260px; border-radius:10px; object-fit:cover; }
.pro-pj{
  display:flex; align-items:center; gap:.6rem; padding:.45rem .6rem; border-radius:10px;
  background:color-mix(in srgb,var(--bg) 40%,transparent); text-decoration:none !important;
}
.pro-pj b{ display:block; font-size:.85rem; font-weight:600; overflow-wrap:anywhere; }
.pro-pj small{ display:block; font-size:.74rem; opacity:.75; }
.pro-msg.moi .pro-pj .pro-type{ background:rgba(255,255,255,.18); color:#fff; border-color:transparent; }
.pro-msg-suppr{
  align-self:center; opacity:0; border:none; background:none; cursor:pointer;
  color:var(--txt-3); font-size:1.1rem; padding:0 .3rem; transition:opacity .2s;
}
.pro-msg:hover .pro-msg-suppr, .pro-msg-suppr:focus{ opacity:1; }
.pro-msg-suppr:hover{ color:var(--rouge); }

.pro-saisie{
  display:flex; align-items:flex-end; gap:.6rem; padding:.8rem;
  border-top:1px solid var(--line); background:var(--surface-2);
}
.pro-saisie-off{ align-items:center; color:var(--txt-3); font-size:.86rem; justify-content:center; padding:1rem; }
.pro-saisie-off .ic{ width:16px; height:16px; }
.pro-saisie-texte{ flex:1; min-width:0; display:flex; flex-direction:column; gap:.35rem; }
.pro-saisie textarea{
  width:100%; resize:none; min-height:44px; max-height:180px; padding:.65rem .9rem;
  border-radius:var(--r-s); border:1px solid var(--line); background:var(--surface);
  line-height:1.5; font-size:.93rem;
}
.pro-saisie textarea:focus{ outline:none; border-color:var(--bleu); box-shadow:0 0 0 3px rgba(91,140,255,.16); }
.pro-saisie .btn{ height:44px; padding:0 1rem; }
.pro-joindre{
  width:44px; height:44px; flex:none; display:grid; place-items:center; cursor:pointer;
  border-radius:var(--r-s); border:1px solid var(--line); color:var(--txt-2); background:var(--surface);
}
.pro-joindre:hover{ border-color:var(--bleu); color:var(--txt); }
.pro-joindre input{ display:none; }
.pro-piece{
  align-self:flex-start; display:inline-flex; align-items:center; gap:.3rem; max-width:100%;
  padding:.2rem .3rem .2rem .6rem; border-radius:99px; font-size:.78rem;
  background:var(--surface-3); color:var(--txt-2); overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.pro-piece[hidden]{ display:none; }
.pro-piece button{ border:none; background:none; color:var(--txt-3); cursor:pointer; font-size:1rem; line-height:1; }
.pro-astuce{ margin:0; padding:0 .9rem .55rem; font-size:.7rem; color:var(--txt-3); background:var(--surface-2); }
.pro-chat-erreur{ margin:0 .8rem .6rem; }

/* Dépôt de documents */
.pro-depot{ margin-bottom:1.4rem; }
.pro-depot-zone{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:.35rem;
  padding:1.6rem 1rem; border:1.5px dashed var(--line-fort); border-radius:var(--r-m);
  background:var(--surface); text-align:center; cursor:pointer; transition:border-color .2s, background .2s;
}
.pro-depot-zone .ic{ width:26px; height:26px; color:var(--bleu); }
.pro-depot-zone b{ font-size:.92rem; color:var(--txt); }
.pro-depot-zone small{ font-size:.76rem; color:var(--txt-3); }
.pro-depot-zone input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.pro-depot-zone.survol, .pro-depot-zone:hover{ border-color:var(--bleu); background:var(--surface-2); }
.pro-depot-zone.plein{ border-style:solid; border-color:var(--vert); }
.pro-depot-bas{ display:flex; gap:.6rem; margin-top:.7rem; }
.pro-depot-bas input{
  flex:1; min-width:0; padding:.7rem .9rem; border-radius:var(--r-s);
  border:1px solid var(--line); background:var(--surface-2);
}

/* Tâches */
.pro-plier{ border:1px solid var(--line); border-radius:var(--r-m); background:var(--surface); margin-bottom:1.3rem; }
.pro-plier summary{
  display:flex; align-items:center; gap:.5rem; cursor:pointer; padding:.85rem 1.1rem;
  font-weight:650; font-size:.9rem; color:var(--txt); list-style:none;
}
.pro-plier summary::-webkit-details-marker{ display:none; }
.pro-plier summary .ic{ width:16px; height:16px; color:var(--bleu); }
.pro-form-tache{ display:grid; grid-template-columns:repeat(4,1fr); gap:0 1rem; padding:0 1.1rem .3rem; }
.pro-kanban{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; align-items:start; }
.pro-col{ border:1px solid var(--line); border-radius:var(--r-m); background:color-mix(in srgb,var(--surface) 70%,transparent); padding:.9rem; }
.pro-col h3{ display:flex; align-items:center; gap:.5rem; font-size:.88rem; margin:0 0 .8rem; }
.pro-col h3 .pro-compte{ margin-left:auto; }
.pro-col-vide{ font-size:.82rem; color:var(--txt-3); text-align:center; margin:.6rem 0; }
.pro-tache{
  padding:.85rem; border-radius:var(--r-s); background:var(--surface); border:1px solid var(--line);
  margin-bottom:.6rem; display:flex; flex-direction:column; gap:.45rem;
}
.pro-tache b{ font-size:.9rem; color:var(--txt); font-weight:620; }
.pro-tache p{ font-size:.82rem; margin:0; }
.pro-tache.fait b{ text-decoration:line-through; color:var(--txt-3); }
.pro-tache-meta{ display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; font-size:.78rem; color:var(--txt-3); }
.pro-tache-meta .pill .ic{ width:11px; height:11px; }
.pro-tache-actions{ display:flex; gap:.35rem; align-items:center; }
.pro-tache-actions button{
  border:1px solid var(--line); background:var(--surface-2); color:var(--txt-2); cursor:pointer;
  border-radius:7px; font-size:.75rem; font-weight:600; padding:.25rem .55rem;
}
.pro-tache-actions button:hover{ border-color:var(--bleu); color:var(--txt); }
.pro-tache-actions button.suivant{ color:var(--bleu); }
.pro-tache-actions button.ko:hover{ border-color:var(--rouge); color:var(--rouge); }

/* Membres */
.pro-membres{ display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:.8rem; }
.pro-membre{ display:flex; align-items:center; gap:.8rem; padding:1rem; border:1px solid var(--line); border-radius:var(--r-m); background:var(--surface); }
.pro-membre b{ color:var(--txt); font-size:.93rem; }
.pro-membre small{ display:block; font-size:.77rem; color:var(--txt-3); }
.pro-membre .btn{ padding:.5rem .65rem; }

/* Messages privés */
.pro-dm{
  flex:1; min-height:0; display:grid; grid-template-columns:300px minmax(0,1fr); gap:1rem;
}
.pro-dm-liste{
  overflow-y:auto; border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); padding:1rem .6rem;
}
.pro-dm-liste h2{ font-size:1rem; margin:0 .5rem .8rem; }
.pro-dm-liste > .pro-muet{ padding:0 .5rem; }
.pro-dm-item{ display:flex; align-items:center; gap:.7rem; padding:.6rem .5rem; border-radius:var(--r-s); transition:background .2s; }
.pro-dm-item:hover{ background:var(--surface-2); }
.pro-dm-item.on{ background:var(--surface-3); }
.pro-dm-item b{ display:block; font-size:.88rem; color:var(--txt); font-weight:600; }
.pro-dm-item small{ display:block; font-size:.77rem; color:var(--txt-3); }
.pro-dm-item.nonlu b, .pro-dm-item.nonlu small{ color:var(--txt); font-weight:700; }
.pro-dm-droite{ display:flex; flex-direction:column; align-items:flex-end; gap:.25rem; }
.pro-dm-droite time{ font-size:.7rem; color:var(--txt-3); }
.pro-dm-conv{ min-width:0; min-height:0; display:flex; flex-direction:column; gap:.7rem; }
.pro-dm-conv .pro-chat{ flex:1; min-height:0; }
.pro-dm-tete{ display:flex; align-items:center; gap:.8rem; padding:.2rem .3rem; }
.pro-dm-tete b{ display:block; color:var(--txt); }
.pro-dm-tete small{ display:block; font-size:.78rem; color:var(--txt-3); }
.pro-dm-retour{ display:none; }
.pro-dm-rien{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6rem;
  border:1px dashed var(--line-fort); border-radius:var(--r-l); color:var(--txt-3); text-align:center; padding:2rem;
}
.pro-dm-rien .ic{ width:40px; height:40px; color:var(--bleu); opacity:.7; }

/* Administration */
.pro-fiche{ margin-bottom:1.6rem; }
.pro-boutons{ display:flex; gap:.7rem; flex-wrap:wrap; align-items:flex-end; }
.pro-coches{ display:flex; flex-wrap:wrap; gap:.45rem; }
.pro-coche{
  display:inline-flex; align-items:center; gap:.45rem; cursor:pointer;
  padding:.4rem .75rem; border-radius:99px; border:1px solid var(--line);
  background:var(--surface-2); font-size:.84rem; color:var(--txt-2);
}
.pro-coche input{ accent-color:var(--bleu); margin:0; }
.pro-coche i{ width:9px; height:9px; border-radius:3px; }
.pro-coche:has(input:checked){ border-color:var(--bleu); color:var(--txt); background:color-mix(in srgb,var(--bleu) 12%,var(--surface)); }
.pro-teintes{ display:flex; gap:.45rem; flex-wrap:wrap; padding-top:.3rem; }
.pro-teintes label{ cursor:pointer; }
.pro-teintes input{ position:absolute; opacity:0; pointer-events:none; }
.pro-teintes span{ display:block; width:28px; height:28px; border-radius:9px; background:var(--t); border:2px solid transparent; transition:transform .15s; }
.pro-teintes input:checked + span{ border-color:var(--txt); transform:scale(1.1); }
.pro-teintes input:focus-visible + span{ outline:2px solid var(--bleu); outline-offset:2px; }
.pro-mdp{ font-size:1rem; padding:.1rem .4rem; border-radius:6px; background:rgba(255,255,255,.08); user-select:all; }

@media (max-width:1080px){
  .pro-form-tache{ grid-template-columns:1fr 1fr; }
  .pro-dm{ grid-template-columns:250px minmax(0,1fr); }
}
@media (max-width:900px){
  .pro-app{ grid-template-columns:1fr; }
  .pro-cote{
    display:none; position:fixed; z-index:850; left:0; top:var(--nav-h); bottom:0; width:min(290px,86vw);
    height:auto; background:var(--bg-2); box-shadow:var(--ombre-l);
  }
  .pro-cote.ouvert{ display:flex; }
  .pro-ouvrir-menu{ display:inline-flex; align-self:flex-start; }
  .pro-kanban{ grid-template-columns:1fr; }
  .pro-dm{ grid-template-columns:1fr; }
  .pro-dm-ouvert .pro-dm-liste{ display:none; }
  .pro-dm:not(.pro-dm-ouvert) .pro-dm-conv{ display:none; }
  .pro-dm-retour{ display:inline-flex; }
}
@media (max-width:620px){
  .pro-zone{ padding:1.2rem 1rem 2rem; }
  .pro-form-tache{ grid-template-columns:1fr; }
  .pro-msg{ max-width:100%; }
  .pro-depot-bas{ flex-direction:column; }
  .pro-astuce{ display:none; }
}

/* Logo propre à un produit (ex. Jalon) à la place du pictogramme */
.fiche-ico:has(.logo-produit), .pcarte-ico:has(.logo-produit){ padding:0; overflow:hidden; background:none; }
.logo-produit{ width:100%; height:100%; object-fit:cover; display:block; }