/* Police Titillium Web hébergée localement (fichiers dans assets/fonts) */
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/titillium-web-latin-ext-300.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:300;font-display:swap;src:url(fonts/titillium-web-latin-300.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/titillium-web-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/titillium-web-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/titillium-web-latin-ext-600.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/titillium-web-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/titillium-web-latin-ext-700.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Titillium Web";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/titillium-web-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ============================================================
   Charte commune Groupe GB — RÉZO, ATLAS (reprise d'APIGED / Wiki GB)
   Barre haute anthracite avec le sélecteur d'application, onglets soulignés
   de rouge, contenu centré sur fond gris ardoise, cartes blanches à bandeau.
   Le rouge brique est la couleur d'action (le survol ÉCLAIRCIT).
   Chargée par RÉZO (/assets/gb.css) et par ATLAS (/atlas/ → ../assets/gb.css).
   ============================================================ */
:root{
 --gb-brand-50:#fdf3f3;--gb-brand-100:#fce7e7;--gb-brand-200:#f9d0d0;--gb-brand-300:#f4aaaa;--gb-brand-400:#f15c5c;
 --gb-brand-500:#e35555;--gb-brand-600:#dc4c4c;--gb-brand-700:#c33e3e;--gb-brand-800:#9a3131;--gb-brand-900:#7f2c2c;
 --gb-ink-900:#313133;--gb-ink-950:#232325;--gb-accent:#f5991a;--gb-yellow:#ffdd08;
 --gb-slate-50:#f8fafc;--gb-slate-100:#f1f5f9;--gb-slate-200:#e2e8f0;--gb-slate-300:#cbd5e1;--gb-slate-400:#94a3b8;
 --gb-slate-500:#64748b;--gb-slate-600:#475569;--gb-slate-700:#334155;--gb-slate-800:#1e293b;--gb-slate-900:#0f172a;
 --gb-font:"Titillium Web","Inter","Segoe UI",system-ui,sans-serif;
 /* Pages larges : RÉZO affiche des façades d'équipements, le contenu va jusqu'à 1920 px. */
 --gb-container:1920px;
 --gb-shadow-sm:0 1px 2px 0 rgb(15 23 42 / .06);
 --gb-shadow-lg:0 10px 15px -3px rgb(15 23 42 / .12),0 4px 6px -4px rgb(15 23 42 / .1);
}

/* ─── Base ─────────────────────────────────────────────────── */
body.gb{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--gb-slate-100);color:var(--gb-slate-800);font:14px/1.45 var(--gb-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.gb button,.gb input,.gb select,.gb textarea{font-family:inherit}
.gb ::selection{background:var(--gb-brand-100);color:var(--gb-brand-900)}
.gb :focus-visible{outline:2px solid var(--gb-brand-600);outline-offset:2px}
.gb .icon{width:16px;height:16px;flex-shrink:0}

/* ─── En-tête : barre anthracite + sélecteur d'application ─── */
.gb-chrome{position:sticky;top:0;z-index:900}
.gb-inner{max-width:var(--gb-container);margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:16px}
.gb-topbar{background:var(--gb-ink-900);color:#fff;box-shadow:var(--gb-shadow-sm)}
.gb-topbar .gb-inner{height:56px}
.gb-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;flex-shrink:0}
.gb-brand img{display:block;width:36px;height:36px;border-radius:50%;transition:transform .15s}
.gb-brand:hover img{transform:scale(1.06)}
.gb-brand span{font-size:15px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
/* Sélecteur d'application : nom de l'application courante souligné de rouge ;
   le survol (ou le clic) déroule Accueil + toutes les applications, par ordre alphabétique. */
.gb-switch{position:relative;align-self:stretch;display:flex;flex-shrink:0}
.gb-switch>summary{display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:2px solid var(--gb-brand-500);color:#fff;font-size:15px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;cursor:pointer;list-style:none;user-select:none}
.gb-switch>summary::-webkit-details-marker{display:none}
.gb-switch>summary .gb-chevron{width:16px;height:16px;opacity:.7;transition:transform .15s}
.gb-switch:hover>summary .gb-chevron,.gb-switch[open]>summary .gb-chevron{transform:rotate(180deg);opacity:1}
.gb-switch-menu{position:absolute;left:0;top:100%;width:340px;padding:6px;background:#fff;border:1px solid var(--gb-slate-200);border-radius:0 0 10px 10px;box-shadow:var(--gb-shadow-lg);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .12s,transform .12s,visibility .12s;z-index:960}
.gb-switch:hover .gb-switch-menu,.gb-switch:focus-within .gb-switch-menu,.gb-switch[open] .gb-switch-menu{opacity:1;visibility:visible;transform:none}
.gb-switch-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:8px;color:var(--gb-slate-800);text-decoration:none}
.gb-switch-item:hover{background:var(--gb-slate-100)}
.gb-switch-item.current{background:var(--gb-brand-50)}
.gb-switch-item>span:last-child{display:flex;flex-direction:column;min-width:0}
.gb-switch-item strong{font-size:14px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.gb-switch-item.current strong,.gb-switch-item:hover strong{color:var(--gb-brand-700)}
.gb-switch-item small{overflow:hidden;font-size:12px;color:var(--gb-slate-500);white-space:nowrap;text-overflow:ellipsis}
.gb-switch-logo{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--gb-slate-200);border-radius:8px;background:#fff;overflow:hidden}
.gb-switch-logo img{display:block;width:26px;height:26px;object-fit:contain}
.gb-switch-logo b{font-size:15px;color:var(--gb-brand-700)}
.gb-switch-home .gb-switch-logo{border:0;border-radius:50%;background:transparent}
.gb-switch-home .gb-switch-logo img{width:34px;height:34px}
.gb-switch-sep{height:1px;margin:6px 4px;background:var(--gb-slate-200)}
.gb-search{flex:1;max-width:440px;height:34px;margin-left:12px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid rgb(255 255 255 / .16);border-radius:8px;background:rgb(255 255 255 / .07);color:rgb(255 255 255 / .6);transition:border-color .15s,background-color .15s}
.gb-search:focus-within{border-color:var(--gb-brand-400);background:rgb(255 255 255 / .11)}
.gb-search input{flex:1;min-width:0;margin:0;padding:0;border:0!important;outline:0;background:transparent!important;color:#fff!important;font-size:13px;box-shadow:none!important}
.gb-search input::placeholder{color:rgb(255 255 255 / .5)}
.gb-actions{margin-left:auto;display:flex;align-items:center;gap:12px;flex-shrink:0}
/* Barre haute node : 3 colonnes, la recherche est toujours au centre exact de l'écran */
.gb-topbar .gb-topbar-grid{display:grid;grid-template-columns:1fr minmax(0,520px) 1fr;gap:16px}
.gb-topbar-start{display:flex;align-items:center;gap:16px;align-self:stretch;min-width:0;justify-self:start}
.gb-topbar-grid>.gb-search{grid-column:2;width:100%;max-width:none;margin:0}
.gb-topbar-grid>.gb-search-slot{grid-column:2}
.gb-topbar-grid>.gb-actions{grid-column:3;justify-self:end;margin-left:0}
.gb-updated{font-size:12px;color:rgb(255 255 255 / .6);white-space:nowrap}
.gb .header-refresh-all.gb-refresh{height:32px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:0;border-radius:8px;background:var(--gb-brand-600);color:#fff;font:600 13px var(--gb-font);box-shadow:none;transform:none;transition:background-color .15s}
.gb .header-refresh-all.gb-refresh .icon{width:15px;height:15px}
.gb .header-refresh-all.gb-refresh span{font-size:13px;font-weight:600;line-height:1}
.gb .header-refresh-all.gb-refresh:hover:not(:disabled){background:var(--gb-brand-400);transform:none}
.gb .header-refresh-all.gb-refresh:disabled{opacity:.45}
.gb .header-refresh-all.gb-refresh.refresh-done{background:#047857}
.gb-user{position:relative}
.gb-user summary{list-style:none;display:flex;align-items:center;gap:8px;height:36px;padding:0 6px 0 4px;border-radius:8px;color:rgb(255 255 255 / .85);cursor:pointer;transition:background-color .15s}
.gb-user summary::-webkit-details-marker{display:none}
.gb-user summary:hover,.gb-user[open] summary{background:rgb(255 255 255 / .1);color:#fff}
.gb-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgb(255 255 255 / .12);border:1px solid rgb(255 255 255 / .22);font-size:11px;font-weight:700;letter-spacing:.03em}
.gb-user-name{font-size:13px;font-weight:600;white-space:nowrap}
.gb-chevron{width:14px!important;height:14px!important;opacity:.6}
.gb-user-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;padding:6px;background:#fff;color:var(--gb-slate-800);border:1px solid var(--gb-slate-200);border-radius:8px;box-shadow:var(--gb-shadow-lg);z-index:960}
.gb-user-menu small{display:block;padding:8px 10px 0;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gb-slate-400)}
.gb-user-menu strong{display:block;padding:2px 10px 10px;font-size:14px;font-weight:600;color:var(--gb-slate-900);border-bottom:1px solid var(--gb-slate-200);margin-bottom:6px}
.gb-logout{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;color:var(--gb-brand-700);font-weight:600;text-decoration:none}
.gb-logout:hover{background:var(--gb-brand-50)}

/* ─── Onglets ──────────────────────────────────────────────── */
.gb-tabs{background:#fff;border-bottom:1px solid var(--gb-slate-200)}
.gb-tabs .gb-inner{height:56px;align-items:stretch;gap:0}
.gb-tab{display:inline-flex;align-items:center;gap:8px;padding:0 12px;border-bottom:2px solid transparent;color:var(--gb-slate-700);font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap;transition:color .15s,border-color .15s}
.gb-tab:hover{border-bottom-color:var(--gb-slate-300);color:var(--gb-brand-700)}
.gb-tab.current{border-bottom-color:var(--gb-brand-600);color:var(--gb-brand-700)}
.gb-badge{min-width:18px;height:18px;padding:0 6px;display:inline-grid;place-items:center;border-radius:999px;background:var(--gb-brand-600);color:#fff;font-size:11px;font-weight:700}
.gb-tab-group{position:relative;display:flex}
.gb-tab-end{margin-left:auto}
.gb-menu{position:absolute;left:0;top:100%;min-width:230px;padding:6px;background:#fff;border:1px solid var(--gb-slate-200);border-radius:8px;box-shadow:var(--gb-shadow-lg);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .12s,transform .12s,visibility .12s;z-index:950}
.gb-menu-end{left:auto;right:0}
.gb-tab-group:hover .gb-menu,.gb-tab-group:focus-within .gb-menu{opacity:1;visibility:visible;transform:none}
.gb-menu a{display:block;padding:8px 12px;border-radius:6px;color:var(--gb-slate-700);font-size:14px;text-decoration:none;white-space:nowrap}
.gb-menu a:hover{background:var(--gb-slate-100);color:var(--gb-brand-700)}
.gb-menu a.current{background:var(--gb-brand-50);color:var(--gb-brand-700);font-weight:600}
.gb-menu-title{margin:6px 0 2px;padding:8px 12px 4px;border-top:1px solid var(--gb-slate-200);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gb-slate-400)}

/* ─── Page ─────────────────────────────────────────────────── */
.main.gb-content,.gb-content{flex:1;width:100%;max-width:var(--gb-container);min-width:0;margin:0 auto;padding:28px 24px 40px}
.gb-footer{border-top:1px solid var(--gb-slate-200);background:#fff}
.gb-footer .gb-inner{padding-top:12px;padding-bottom:12px;font-size:12px;color:var(--gb-slate-500)}
.gb-heading{margin-bottom:24px}
.gb-heading h1{font-size:24px;line-height:1.25;margin:0;color:var(--gb-slate-900);font-weight:600}
.gb-heading p{margin:4px 0 0;color:var(--gb-slate-500);font-size:14px}
.gb-eyebrow{display:block;margin-bottom:4px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gb-slate-400)}

/* ─── Cartes et boutons de la charte ───────────────────────── */
.gb-card{background:#fff;border:1px solid var(--gb-slate-200);border-radius:8px;box-shadow:var(--gb-shadow-sm);padding:16px 20px 20px;margin-bottom:20px}
.gb-section-title{display:flex;align-items:flex-start;gap:12px;margin:-16px -20px 16px;padding:16px 20px;border-bottom:1px solid var(--gb-slate-200)}
.gb-section-icon{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:var(--gb-brand-50);color:var(--gb-brand-700);font-size:12px;font-weight:700}
.gb-section-title h2{margin:0;font-size:14px;line-height:1.4;color:var(--gb-slate-900);font-weight:600}
.gb-section-title p{margin:2px 0 0;color:var(--gb-slate-500);font-size:13px;line-height:1.5}
.gb-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border:1px solid var(--gb-brand-600);border-radius:8px;background:var(--gb-brand-600);color:#fff;font-size:14px;font-weight:600;text-decoration:none;box-shadow:var(--gb-shadow-sm);transition:background-color .15s,color .15s,border-color .15s}
.gb-button:hover{background:var(--gb-brand-400);border-color:var(--gb-brand-400)}
.gb-button:active{transform:scale(.98)}
.gb-button.disabled{pointer-events:none;background:var(--gb-brand-200);border-color:var(--gb-brand-200)}
.gb-wide{width:100%}
.gb-alert{margin-bottom:16px;padding:12px 16px;border:1px solid rgb(220 76 100 / .4);border-radius:6px;background:rgb(220 76 100 / .1);color:#842029;font-size:14px;line-height:1.6}

/* ─── Connexion ────────────────────────────────────────────── */
.gb-login{max-width:440px}
.gb-login .gb-button{height:44px;font-size:15px;margin-top:4px}
.gb-secret{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 12px;border:1px solid var(--gb-slate-200);border-radius:6px;background:var(--gb-slate-50);color:var(--gb-slate-600);font-size:13px}
.gb-secret strong{color:var(--gb-slate-800);font-weight:600}
.gb-secret-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:#047857}
.gb-secret.warning{border-color:#fde68a;background:#fffbeb;color:#78350f}.gb-secret.warning .gb-secret-dot{background:var(--gb-accent)}
.gb-secret.critical{border-color:#fecaca;background:#fef2f2;color:#842029}.gb-secret.critical .gb-secret-dot{background:#dc2626}

/* ─── Adaptations d'écran ──────────────────────────────────── */
@media(max-width:1280px){.gb-updated{display:none}.gb-tab{padding:0 10px}}
@media(max-width:1120px){.gb-refresh span{display:none}.gb-user-name{display:none}.gb-tab:not(.current) span{display:none}.gb-tab{padding:0 12px}}
@media(max-width:760px){
 .gb-inner{padding:0 16px}
 .gb-search{display:none}
 .gb-topbar .gb-topbar-grid{grid-template-columns:1fr auto}
 .gb-topbar-grid>.gb-search-slot{display:none}
 .gb-topbar-grid>.gb-actions{grid-column:2}
 .gb-switch>summary{padding:0 8px;font-size:13px}
 .gb-switch-menu{position:fixed;left:8px;right:8px;top:56px;width:auto}
 .gb-tabs .gb-inner{overflow-x:auto;scrollbar-width:none}
 .gb-tabs .gb-inner::-webkit-scrollbar{display:none}
 .gb-tab .gb-chevron,.gb-menu{display:none}
 .gb-content,.main.gb-content{padding:24px 16px}
 .gb-card{padding:14px 16px 16px}.gb-section-title{margin:-14px -16px 14px;padding:14px 16px}
}
@media(max-width:420px){.gb-brand span{display:none}}

/* Liens du menu du compte (catalogue, administration) */
.gb-user-menu .gb-menu-link{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;color:var(--gb-slate-700);font-weight:600;text-decoration:none}
.gb-user-menu .gb-menu-link:hover{background:var(--gb-slate-100);color:var(--gb-brand-700)}
.gb *,.gb *::before,.gb *::after{box-sizing:border-box}
