/* Espace équipe : maquette du tableau de bord */
.ge-page .barre,.ge-page .tete,.ge-page .signets,.ge-page .pouce,.ge-page .assist,.ge-page .pied,.ge-page .cookies{display:none!important}
.ge-page{padding-bottom:0}
.ge{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh;background:var(--bg)}
.ge-menu{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:14px;padding:16px 12px;background:#241530;color:#fff;overflow-y:auto}
.ge-logo{display:block;width:150px;margin:0 auto}
.ge-nav{display:grid;gap:4px}
.ge .onglet.ge-l{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;background:transparent;border:2px solid transparent;border-radius:14px;color:#fff;font:800 .96rem/1.2 var(--hand);text-transform:none;letter-spacing:0;text-align:left}
.ge .onglet.ge-l:hover{background:rgba(255,255,255,.1);transform:none}
.ge .onglet.ge-l[aria-selected=true]{background:var(--yellow);color:#241530;border-color:#000;box-shadow:3px 3px 0 #000}
.ge-l img{width:30px;height:30px;object-fit:contain;flex:none}
.ge-retour{margin-top:auto;align-self:center}
.ge-c{min-width:0;padding:clamp(16px,2.6vw,34px);background-image:radial-gradient(circle,rgba(36,21,48,.1) 1.4px,transparent 1.8px);background-size:13px 13px}
:root[data-theme=nuit] .ge-c{background-image:radial-gradient(circle,rgba(255,255,255,.08) 1.4px,transparent 1.8px)}
.ge-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:22px}
.ge-h__d{display:flex;align-items:center;gap:14px}
.ge-h__d .bulle{font-size:.86rem}
.ge-t{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}

/* Les chiffres clés */
.ge-kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.ge-k{display:grid;gap:2px}
.ge-k:nth-child(odd){transform:rotate(-.6deg)}
.ge-k:nth-child(even){transform:rotate(.5deg);border-radius:var(--sketch-2)}
.ge-k b{font:400 clamp(1.9rem,3vw,2.6rem)/1 var(--display)}
.ge-k span:last-child{font-size:.84rem;font-weight:700;line-height:1.2}
.ge-k__i{display:grid;place-items:center;width:40px;height:40px;background:var(--c);color:#241530;border:2.5px solid #241530;border-radius:12px;margin-bottom:6px}
.ge-k__i svg{width:21px;height:21px}

/* Tableau de bord */
.ge-2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px}
.ge-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;height:210px;align-items:end}
.ge-bars span{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:4px;min-width:0}
.ge-bars i{display:block;width:100%;height:var(--h);max-height:calc(100% - 20px);background:var(--cyan);border:2.5px solid #241530;border-radius:7px 7px 2px 2px}
.ge-bars span:last-child i{background:var(--orange)}
.ge-bars small{font-size:.66rem;font-weight:700;white-space:nowrap}
.ge-afaire{transform:rotate(.5deg)}
.ge-afaire__p{position:absolute;right:clamp(6px,1.4vw,18px);bottom:-10px;height:clamp(108px,10vw,140px);width:auto;pointer-events:none;filter:drop-shadow(3px 3px 0 rgba(36,21,48,.5))}

/* Devis */
.ge-kanban{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ge-col{min-height:clamp(320px,56vh,520px);padding:12px;background:var(--card);border:3px solid #241530;border-radius:18px;border-top:12px solid var(--c);display:grid;gap:10px;align-content:start;color:var(--fg-p)}
.ge-col h3{font:800 1rem/1.2 var(--hand);display:flex;justify-content:space-between;align-items:center;margin:0}
.ge-carte{display:grid;gap:3px;padding:10px 12px;box-shadow:3px 3px 0 #241530;line-height:1.25}
.ge-carte:nth-child(even){transform:rotate(-.7deg)}
.ge-carte:nth-child(odd){transform:rotate(.6deg);border-radius:var(--sketch-2)}

/* Boutique */
.ge-prod{display:inline-flex;align-items:center;gap:10px}
.ge-prod img{width:44px;height:44px;object-fit:contain;border:2px solid #241530;border-radius:10px;flex:none}

/* Avis */
.ge-avis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ge-avis .case{display:flex;flex-direction:column;align-items:flex-start}
.ge-avis .case:nth-child(odd){transform:rotate(-.4deg)}
.ge-avis .case:nth-child(even){transform:rotate(.4deg);border-radius:var(--sketch-2)}
.ge-avis .cluster{width:100%}
.ge-avis .btn{margin-top:auto}

/* Pages et textes */
.ge-apercu{display:flex;flex-direction:column;min-width:0}
.ge-apercu__v{position:relative;flex:1;min-height:clamp(210px,24vw,300px);border-bottom:var(--stroke) solid #241530}
.ge-apercu__v img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ge-apercu__b{position:absolute;left:14px;top:14px;right:14px;width:max-content;max-width:min(30ch,calc(100% - 28px));font-size:.86rem;font-weight:800}
.ge-apercu__l{margin:0;padding:10px 16px}

/* Médias */
.ge-medias{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ge-medias figure{margin:0}
.ge-medias figure:nth-child(odd){transform:rotate(-.6deg)}
.ge-medias figure:nth-child(even){transform:rotate(.5deg);border-radius:var(--sketch-2)}
.ge-medias img{width:100%;aspect-ratio:16/10;object-fit:cover}
.ge-medias figcaption{padding:6px 12px;overflow-wrap:anywhere}

/* Réglages : la fiche telle que les familles la voient */
.ge-fiche{align-self:start;transform:rotate(.7deg);overflow:hidden;isolation:isolate}
.ge-fiche .sur{margin-bottom:12px}
.ge-fiche ul{list-style:none;margin:12px 0 0;padding:0 0 0;display:grid;gap:10px;max-width:calc(100% - 66px);font-weight:700;font-size:.92rem;line-height:1.3}
.ge-fiche li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:start;overflow-wrap:anywhere}
.ge-fiche svg{width:20px;height:20px;margin-top:.08em}
.ge-fiche img{position:absolute;right:10px;bottom:-8px;height:138px;width:auto;z-index:-1;pointer-events:none}

@media(max-width:1100px){.ge-bars{gap:3px}.ge-bars small{font-size:.6rem}.ge-kpi,.ge-kanban,.ge-medias{grid-template-columns:repeat(2,minmax(0,1fr))}.ge-avis{grid-template-columns:repeat(2,minmax(0,1fr))}.ge-col{min-height:0}}
@media(max-width:820px){
  .ge{grid-template-columns:minmax(0,1fr)}
  /* Les neuf onglets restent tous visibles, sans défilement caché. */
  .ge-menu{position:static;height:auto;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 10px;overflow:visible;padding:8px 10px 10px}
  .ge-logo{width:84px;margin:0}
  .ge-retour{order:1;margin:0;justify-self:end}
  .ge-nav{order:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .ge .onglet.ge-l{flex-direction:column;justify-content:center;gap:2px;width:auto;min-height:56px;padding:4px 3px;font-size:.76rem;line-height:1.1;text-align:center}
  .ge-l img{width:24px;height:24px}
  .ge-2{grid-template-columns:minmax(0,1fr)}
  .ge-h{gap:6px;margin-bottom:14px}
  .ge-h .sur{display:none}
  .ge-h__d{gap:8px;padding-bottom:14px}
  .ge-h__d img{width:46px;height:auto}
  .ge-h__d .bulle{font-size:.8rem;padding:.55em .9em}
  .ge-afaire{padding-bottom:58px}
  .ge-afaire__p{height:104px}
  .ge-apercu__v{min-height:0;aspect-ratio:16/10;flex:none}
}
@media(max-width:560px){
  .ge-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ge-kanban,.ge-avis{grid-template-columns:minmax(0,1fr)}
  .ge-kpi,.ge-medias{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ge-kpi{gap:12px}
  .ge-k.case--pad{grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center;padding:12px}
  .ge-k b{font-size:1.7rem}
  .ge-k__i{margin:0}
  .ge-k span:last-child{grid-column:1/-1;margin-top:6px}
  .ge-bars{gap:3px;height:170px}
  .ge-bars small{font-size:.54rem;font-weight:400}
  .ge-medias figcaption{padding:4px 8px;font-size:.76rem}
  /* Sur téléphone, chaque ligne de tableau devient une petite fiche. */
  .ge .table-wrap{overflow:visible;background:none;border:0;border-radius:0;box-shadow:none}
  .ge table.tb{display:block;min-width:0}
  .ge .tb thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ge .tb tbody{display:grid;gap:12px}
  .ge .tb tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;align-items:center;padding:10px 12px;background:var(--card);color:var(--fg-p);border:var(--stroke) solid #241530;border-radius:var(--sketch);box-shadow:var(--shadow-s)}
  .ge .tb tr:nth-child(odd){transform:rotate(-.3deg)}
  .ge .tb tr:nth-child(even){transform:rotate(.3deg);border-radius:var(--sketch-2)}
  .ge .tb td{display:block;min-width:0;padding:0;border:0;font-size:.92rem;line-height:1.3}
  .ge .tb td:first-child{grid-column:1/-1;font-weight:700}
  .ge .case .tb tbody{gap:10px}
  .ge .case .tb tr{padding:0 0 10px;background:none;border:0;border-bottom:2.5px dashed var(--trait);border-radius:0;box-shadow:none;transform:none}
  .ge .case .tb tr:last-child{padding-bottom:0;border-bottom:0}
  .ge .case .tb td:nth-child(2){grid-column:1/-1}
}
