/* GDW Hub · Gestion — même allure que les Hubs clients (thème sombre, cartes, menu par rubriques).
   Ne s'applique qu'aux pages de gestion : celles dont le menu contient le lien /gestion. */

body.in-app:has(.side a[href="/gestion"]) {
  --green: #4AAF35; --accent: #6FD35A; --accent-deep: #4AAF35; --focus: #6FD35A;
  --graphite: #EDF2F5; --mist: #1f2324; --white: #232829;
  --text: #EDF2F5; --muted: #9AA6A3; --line: #333b3d; --line-strong: #4a5457;
  --ok: #8FE07D; --ok-bg: rgba(74,175,53,.16);
  --warn: #F2C46B; --warn-bg: rgba(242,196,107,.14);
  --bad: #FF8A93; --bad-bg: rgba(229,72,77,.16);
  --g-bg: #121516; --g-top: #232a2b; --g-deep: #171b1c; --g-panel: #1d2223; --g-panel2: #252b2c; --g-edge: #343c3e; --g-rgb: 74,175,53;
  background: var(--g-bg); color: var(--text); color-scheme: dark;
}
body.in-app:has(.side a[href="/gestion"])::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 90% -8%, rgba(var(--g-rgb),.26), transparent 62%), linear-gradient(155deg, var(--g-top) 0%, var(--g-deep) 46%, var(--g-bg) 100%); }
body.in-app:has(.side a[href="/gestion"]) .app { background: transparent; }
body.in-app:has(.side a[href="/gestion"]) a { color: var(--accent); }
body.in-app:has(.side a[href="/gestion"]) a:hover { color: #9BE88A; }

/* ---------- menu de gauche ---------- */
body.in-app:has(.side a[href="/gestion"]) .side { background: rgba(14,17,18,.72); border-right: 1px solid var(--g-edge); backdrop-filter: blur(8px); color: var(--text); }
body.in-app:has(.side a[href="/gestion"]) .side .brand { display: flex; justify-content: center; padding: 6px 0 2px; }
body.in-app:has(.side a[href="/gestion"]) .side .brand img { filter: brightness(1.08); }
body.in-app:has(.side a[href="/gestion"]) .side .area { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 14px; }
@media (min-width: 901px) { body.in-app:has(.side a[href="/gestion"]) .side nav ul { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; } }
body.in-app:has(.side a[href="/gestion"]) .side li { order: 50; }
body.in-app:has(.side a[href="/gestion"]) .side li a { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #C9D2D0; font-weight: 500; font-size: .96rem; text-decoration: none; border: 1px solid transparent; background: transparent; }
body.in-app:has(.side a[href="/gestion"]) .side li a::before { content: ""; flex: 0 0 18px; height: 18px; background: currentColor; opacity: .85;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
body.in-app:has(.side a[href="/gestion"]) .side li a:hover { background: rgba(255,255,255,.05); color: #fff; }
body.in-app:has(.side a[href="/gestion"]) .side li a[aria-current] { background: linear-gradient(90deg, rgba(var(--g-rgb),.30), rgba(var(--g-rgb),.08)); border-color: rgba(var(--g-rgb),.45); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
body.in-app:has(.side a[href="/gestion"]) .side li a[aria-current]::before { opacity: 1; color: var(--accent); }
body.in-app:has(.side a[href="/gestion"]) .side li a > span, body.in-app:has(.side a[href="/gestion"]) .side li a b, body.in-app:has(.side a[href="/gestion"]) .side li a .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #0d1a0a; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* rubriques (grand écran seulement : sur téléphone, le menu garde sa forme d'origine) */
@media (min-width: 901px) {
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion"]) { order: 1; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/contacts"]) { order: 2; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/demandes"]) { order: 3; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/clients"]) { order: 4; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/tarifs"]) { order: 5; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/commerciaux"]) { order: 6; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/nouveautes"]) { order: 7; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/reglages"]) { order: 8; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/securite"]) { order: 9; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/journal"]) { order: 10; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion"])::before,
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/clients"])::before,
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/nouveautes"])::before,
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/reglages"])::before { display: block; padding: 16px 12px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7E8A87; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion"])::before { content: "Au quotidien"; padding-top: 4px; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/clients"])::before { content: "Clients et ventes"; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/nouveautes"])::before { content: "Les Hubs"; }
body.in-app:has(.side a[href="/gestion"]) .side li:has(> a[href="/gestion/reglages"])::before { content: "Administration"; }
}
/* icônes (traits simples, 24×24) */
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/contacts"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6z'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/demandes"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/clients"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/tarifs"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/commerciaux"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2M2 13h20'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/nouveautes"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/reglages"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/securite"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side li a[href="/gestion/journal"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
body.in-app:has(.side a[href="/gestion"]) .side-foot { border-top: 1px solid var(--g-edge); color: var(--muted); }
body.in-app:has(.side a[href="/gestion"]) .side-foot p { color: #fff; font-weight: 600; }
body.in-app:has(.side a[href="/gestion"]) .side-foot a, body.in-app:has(.side a[href="/gestion"]) .side-foot button { color: #C9D2D0; }

/* ---------- contenu ---------- */
body.in-app:has(.side a[href="/gestion"]) .app-main { color: var(--text); max-width: none; }
body.in-app:has(.side a[href="/gestion"]) .app-main > * { max-width: 1400px; }
body.in-app:has(.side a[href="/gestion"]) .app-main h1 { color: #fff; font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: .7em; }
body.in-app:has(.side a[href="/gestion"]) .app-main h2 { color: #fff; font-weight: 700; font-size: 1.15rem; }
body.in-app:has(.side a[href="/gestion"]) .app-main section { border-color: transparent; }
body.in-app:has(.side a[href="/gestion"]) .muted { color: var(--muted); }
body.in-app:has(.side a[href="/gestion"]) hr { border-color: var(--g-edge); }

/* chiffres en cartes, comme l'accueil des Hubs */
body.in-app:has(.side a[href="/gestion"]) .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; border: 0; margin: 0 0 28px; padding: 0; }
body.in-app:has(.side a[href="/gestion"]) .stats > div, body.in-app:has(.side a[href="/gestion"]) .stats > div + div { position: relative; overflow: hidden; border: 1px solid var(--g-edge); border-radius: 14px; padding: 16px 18px 18px; margin: 0;
  background: linear-gradient(160deg, var(--g-panel2), var(--g-panel)); }
body.in-app:has(.side a[href="/gestion"]) .stats > div::after { content: ""; position: absolute; width: 120px; height: 120px; right: -36px; top: -46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--g-rgb),.40), transparent); pointer-events: none; }
body.in-app:has(.side a[href="/gestion"]) .stats dt, body.in-app:has(.side a[href="/gestion"]) .stats dt a { color: #C9D2D0; text-decoration: none; font-weight: 500; font-size: .95rem; }
body.in-app:has(.side a[href="/gestion"]) .stats dt a::after { content: " →"; opacity: 0; transition: opacity .15s; }
body.in-app:has(.side a[href="/gestion"]) .stats > div:hover dt a::after { opacity: .8; }
body.in-app:has(.side a[href="/gestion"]) .stats dd { color: #fff; font-weight: 800; font-size: 2.3rem; margin: 6px 0 0; }

/* blocs */
body.in-app:has(.side a[href="/gestion"]) .app-main > section, body.in-app:has(.side a[href="/gestion"]) .panel, body.in-app:has(.side a[href="/gestion"]) details.panel { background: linear-gradient(170deg, rgba(37,43,44,.92), rgba(29,34,35,.92)); border: 1px solid var(--g-edge); border-radius: 14px; padding: 18px 20px; margin: 0 0 18px; color: var(--text); }
body.in-app:has(.side a[href="/gestion"]) .app-main > section .panel { background: rgba(255,255,255,.03); }
body.in-app:has(.side a[href="/gestion"]) .app-main > section > h2:first-child, body.in-app:has(.side a[href="/gestion"]) .section-head { margin-top: 0; }
body.in-app:has(.side a[href="/gestion"]) .section-head { border: 0; }
body.in-app:has(.side a[href="/gestion"]) .rows { border-color: var(--g-edge); }
body.in-app:has(.side a[href="/gestion"]) .rows li { border-color: var(--g-edge); }
body.in-app:has(.side a[href="/gestion"]) .anchors { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin-bottom: 18px; }
body.in-app:has(.side a[href="/gestion"]) .anchors a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--g-edge); background: var(--g-panel2); color: #C9D2D0; text-decoration: none; font-size: .9rem; }
body.in-app:has(.side a[href="/gestion"]) .anchors a:hover { border-color: rgba(var(--g-rgb),.6); color: #fff; }
body.in-app:has(.side a[href="/gestion"]) .facts, body.in-app:has(.side a[href="/gestion"]) .columns > * { border-color: var(--g-edge); }

/* tableaux */
body.in-app:has(.side a[href="/gestion"]) .scroll { border-radius: 12px; border: 1px solid var(--g-edge); background: rgba(0,0,0,.14); }
body.in-app:has(.side a[href="/gestion"]) table { color: var(--text); border-collapse: collapse; }
body.in-app:has(.side a[href="/gestion"]) th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--g-edge); background: rgba(255,255,255,.03); }
body.in-app:has(.side a[href="/gestion"]) td { border-color: var(--g-edge); white-space: nowrap; }
body.in-app:has(.side a[href="/gestion"]) tbody tr:hover td { background: rgba(var(--g-rgb),.07); }
body.in-app:has(.side a[href="/gestion"]) tr.unread td { background: rgba(var(--g-rgb),.10); }
body.in-app:has(.side a[href="/gestion"]) td a { color: #fff; font-weight: 600; text-decoration-color: rgba(var(--g-rgb),.6); }
body.in-app:has(.side a[href="/gestion"]) td a:hover { color: var(--accent); }

/* étiquettes */
body.in-app:has(.side a[href="/gestion"]) .tag { background: rgba(255,255,255,.07); color: #C9D2D0; border: 1px solid var(--g-edge); }
body.in-app:has(.side a[href="/gestion"]) .tag-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(74,175,53,.4); }
body.in-app:has(.side a[href="/gestion"]) .tag-new { background: rgba(110,170,255,.15); color: #A8CBFF; border-color: rgba(110,170,255,.35); }

/* boutons */
body.in-app:has(.side a[href="/gestion"]) .btn { background: var(--green); border-color: var(--green); color: #0d1a0a; border-radius: 999px; }
body.in-app:has(.side a[href="/gestion"]) .btn:hover { background: #5CC545; border-color: #5CC545; color: #0d1a0a; }
body.in-app:has(.side a[href="/gestion"]) .btn-quiet, body.in-app:has(.side a[href="/gestion"]) .btn-light, body.in-app:has(.side a[href="/gestion"]) .btn-mini { background: var(--g-panel2); border: 1px solid var(--g-edge); color: var(--text); }
body.in-app:has(.side a[href="/gestion"]) .btn-quiet:hover, body.in-app:has(.side a[href="/gestion"]) .btn-light:hover, body.in-app:has(.side a[href="/gestion"]) .btn-mini:hover { background: #2f3637; border-color: rgba(var(--g-rgb),.6); color: #fff; }

/* formulaires */
body.in-app:has(.side a[href="/gestion"]) label { color: #C9D2D0; }
body.in-app:has(.side a[href="/gestion"]) input:not([type=radio], [type=checkbox], [type=hidden]), body.in-app:has(.side a[href="/gestion"]) select, body.in-app:has(.side a[href="/gestion"]) textarea { background: #161a1b; color: var(--text); border: 1px solid var(--g-edge); border-radius: 10px; }
body.in-app:has(.side a[href="/gestion"]) input[readonly] { background: #1b2021; color: var(--muted); }
body.in-app:has(.side a[href="/gestion"]) input:focus, body.in-app:has(.side a[href="/gestion"]) select:focus, body.in-app:has(.side a[href="/gestion"]) textarea:focus { border-color: var(--green); outline: 2px solid rgba(var(--g-rgb),.35); outline-offset: 1px; }
body.in-app:has(.side a[href="/gestion"]) select option { background: #1d2223; color: var(--text); }
body.in-app:has(.side a[href="/gestion"]) input[type=checkbox], body.in-app:has(.side a[href="/gestion"]) input[type=radio] { accent-color: var(--green); }

/* messages */
body.in-app:has(.side a[href="/gestion"]) .notice { background: var(--g-panel2); border: 1px solid var(--g-edge); color: var(--text); border-radius: 12px; }
body.in-app:has(.side a[href="/gestion"]) .notice-ok { background: var(--ok-bg); border-color: rgba(74,175,53,.45); }
body.in-app:has(.side a[href="/gestion"]) .notice-warn { background: var(--warn-bg); border-color: rgba(242,196,107,.45); }
body.in-app:has(.side a[href="/gestion"]) .notice-error { background: var(--bad-bg); border-color: rgba(229,72,77,.45); }


/* ---------- Offre 2027 : deux colonnes, aperçu en direct ---------- */
body.in-app:has(.side a[href="/gestion"]) .o27 { margin: 8px 0 18px; }
body.in-app:has(.side a[href="/gestion"]) .o27 > h3 { margin-bottom: 10px; }
body.in-app:has(.side a[href="/gestion"]) .o27-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
body.in-app:has(.side a[href="/gestion"]) .o27-gauche { display: grid; gap: 14px; min-width: 0; }
body.in-app:has(.side a[href="/gestion"]) .o27-carte { border: 1px solid var(--g-edge); border-radius: 14px; padding: 14px 16px 16px; background: rgba(255,255,255,.025); }
body.in-app:has(.side a[href="/gestion"]) .o27-carte h4 { margin: 0 0 8px; font-size: 1rem; color: #fff; }
body.in-app:has(.side a[href="/gestion"]) .o27-carte label { margin-top: 8px; }
body.in-app:has(.side a[href="/gestion"]) .o27-grille3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }
body.in-app:has(.side a[href="/gestion"]) .o27-grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
body.in-app:has(.side a[href="/gestion"]) .o27-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 6px; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod { position: relative; display: block; margin: 0 !important; padding: 11px 12px 11px 40px; border: 1px solid var(--g-edge); border-radius: 12px; background: var(--g-panel); cursor: pointer; color: var(--text); font-weight: 400; transition: border-color .12s, background .12s; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod:hover { border-color: rgba(var(--g-rgb),.55); }
body.in-app:has(.side a[href="/gestion"]) .o27-mod input { position: absolute; left: 13px; top: 13px; width: 17px; height: 17px; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod.on { border-color: var(--green); background: linear-gradient(160deg, rgba(var(--g-rgb),.20), rgba(var(--g-rgb),.06)); }
body.in-app:has(.side a[href="/gestion"]) .o27-mod-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod-t b { color: #fff; font-size: .97rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod-t em { font-style: normal; font-size: .7rem; padding: 1px 6px; border-radius: 999px; background: rgba(242,196,107,.18); color: var(--warn); margin-left: 4px; }
body.in-app:has(.side a[href="/gestion"]) .o27-prix { white-space: nowrap; color: var(--accent); font-weight: 700; font-size: .9rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod-d { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod-d i { display: block; font-style: normal; color: #C9D2D0; margin-top: 2px; }
body.in-app:has(.side a[href="/gestion"]) .o27-mod-large { max-width: 520px; }
body.in-app:has(.side a[href="/gestion"]) .o27-sous { margin-top: 10px; }
body.in-app:has(.side a[href="/gestion"]) .o27-sous[hidden] { display: none !important; }
body.in-app:has(.side a[href="/gestion"]) .o27-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
body.in-app:has(.side a[href="/gestion"]) .o27-site { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 11px 12px 11px 36px; border: 1px solid var(--g-edge); border-radius: 12px; background: var(--g-panel); cursor: pointer; color: var(--text); font-weight: 400; }
body.in-app:has(.side a[href="/gestion"]) .o27-site input { position: absolute; left: 12px; top: 13px; }
body.in-app:has(.side a[href="/gestion"]) .o27-site b { color: #fff; }
body.in-app:has(.side a[href="/gestion"]) .o27-site span { color: var(--accent); font-weight: 700; font-size: .85rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-site small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
body.in-app:has(.side a[href="/gestion"]) .o27-site.on { border-color: var(--green); background: linear-gradient(160deg, rgba(var(--g-rgb),.20), rgba(var(--g-rgb),.06)); }
body.in-app:has(.side a[href="/gestion"]) .o27-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 12px; margin-top: 10px; }
body.in-app:has(.side a[href="/gestion"]) .o27-case { display: flex; gap: 8px; align-items: flex-start; margin: 0 !important; color: var(--text); font-weight: 400; font-size: .9rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-case[hidden] { display: none; }
body.in-app:has(.side a[href="/gestion"]) .o27-plus { margin-top: 10px; }
body.in-app:has(.side a[href="/gestion"]) .o27-plus summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-droite { position: sticky; top: 14px; }
body.in-app:has(.side a[href="/gestion"]) .o27-recap { border: 1px solid rgba(var(--g-rgb),.45); border-radius: 16px; padding: 16px 18px; background: linear-gradient(170deg, rgba(var(--g-rgb),.16), rgba(29,34,35,.96) 42%); box-shadow: 0 12px 34px rgba(0,0,0,.35); }
body.in-app:has(.side a[href="/gestion"]) .o27-sur { margin: 12px 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8D9A97; font-weight: 700; }
body.in-app:has(.side a[href="/gestion"]) .o27-sur:first-child { margin-top: 0; }
body.in-app:has(.side a[href="/gestion"]) .o27-mois { margin: 0; color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
body.in-app:has(.side a[href="/gestion"]) .o27-mois small { font-size: .9rem; font-weight: 500; color: var(--muted); }
body.in-app:has(.side a[href="/gestion"]) .o27-note { margin: 4px 0 6px; font-size: .84rem; color: #C9D2D0; }
body.in-app:has(.side a[href="/gestion"]) .o27-lignes { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-lignes li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
body.in-app:has(.side a[href="/gestion"]) .o27-lignes li small { display: block; color: var(--muted); font-size: .76rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-lignes li b { white-space: nowrap; font-weight: 600; }
body.in-app:has(.side a[href="/gestion"]) .o27-lignes li.remise b { color: var(--ok); }
body.in-app:has(.side a[href="/gestion"]) .o27-tot { margin: 12px 0 0; }
body.in-app:has(.side a[href="/gestion"]) .o27-tot > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .9rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-tot > div[hidden] { display: none; }
body.in-app:has(.side a[href="/gestion"]) .o27-tot dt { color: #C9D2D0; }
body.in-app:has(.side a[href="/gestion"]) .o27-tot dd { margin: 0; font-weight: 700; white-space: nowrap; }
body.in-app:has(.side a[href="/gestion"]) .o27-tvac { border-top: 1px solid var(--g-edge); margin-top: 4px; padding-top: 8px !important; }
body.in-app:has(.side a[href="/gestion"]) .o27-tvac dd { color: #fff; font-size: 1.1rem; }
body.in-app:has(.side a[href="/gestion"]) .o27-recoit { margin: 0; padding-left: 18px; font-size: .84rem; color: #C9D2D0; }
body.in-app:has(.side a[href="/gestion"]) .o27-recoit li { margin: 2px 0; }
@media (max-width: 1100px) { body.in-app:has(.side a[href="/gestion"]) .o27-cols { grid-template-columns: 1fr; } body.in-app:has(.side a[href="/gestion"]) .o27-droite { position: static; } }
body.in-app:has(.side a[href="/gestion"]) form.client-form { max-width: 1320px; }
body.in-app:has(.side a[href="/gestion"]) form.client-form:has(#offre) { grid-template-columns: 1fr 1fr; }

/* ---------- Badge Beta (toutes les pages : ce fichier est chargé partout, cette règle n'est pas limitée à la gestion) ---------- */

.beta { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #4AAF35; color: #0d1a0a; font: 800 .62rem/1.5 'Inter Tight', Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.site-head .brand { display: inline-flex; align-items: center; }
.side .area .beta { margin-left: 4px; }
.side-foot a + a { display: block; margin-top: 4px; }
.guide .guide-toc, .guide .guide-sec { padding-left: var(--gutter, 24px); padding-right: var(--gutter, 24px); max-width: 980px; }
.guide .guide-toc ol { columns: 2 260px; padding-left: 1.2em; }
.guide .guide-sec { margin: 28px 0; }
.guide .guide-sec h2 { margin-bottom: 8px; }
.guide .guide-sec li { margin: 6px 0; }
@media print { .site-head nav, .site-foot, .guide-toc { display: none; } .guide .guide-sec { break-inside: avoid; } }

.guide .guide-sec p { max-width: 760px; }
.guide .guide-fig { margin: 14px 0; }
.guide .guide-fig img { display: block; width: 100%; max-width: 980px; height: auto; border-radius: 12px; border: 1px solid #D8DFDC; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.guide .guide-steps { counter-reset: st; list-style: none; padding: 0; max-width: 760px; }
.guide .guide-steps li { counter-increment: st; position: relative; padding: 4px 0 4px 40px; margin: 6px 0; }
.guide .guide-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #E53935; color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1px #E53935; }
.guide .guide-tips { max-width: 760px; margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: #E9F6E5; border: 1px solid #BFE3B4; }
.guide .guide-tips ul { margin: 6px 0 0; }
@media print { .guide .guide-fig { break-inside: avoid; } }
