/* =====================================================================
   PAGE TEST — Glassmorphisme GBACAR (styles partages)
   100% CSS, aucun MudBlazor. Classes prefixees "gt-".
   Charge uniquement par GlassTestLayout (pages /glass-test*).
   ===================================================================== */

.gt-root, .gt-root *, .gt-root *::before, .gt-root *::after { box-sizing: border-box; }
.gt-root {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(180deg,#FBFCFE,#F1F5FB);
    min-height: 100vh;
    padding: 0;
}

/* ---------- Animations ---------- */
@keyframes gt-floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px,-22px) scale(1.08); } }
@keyframes gt-floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px,20px) scale(1.1); } }
@keyframes gt-rise   { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform: translateY(0); } }
@keyframes gt-sheen  { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(220%); } }

/* ---------- Decor plein ecran (pas de cadre flottant) ---------- */
.gt-screen {
    position: relative; overflow: hidden;
    background: transparent;
    display: flex;
    height: 100vh;          /* hauteur figee : la sidebar ne defile pas */
    width: 100%;
}

/* ---------- Halos animes ---------- */
.gt-halo { position: absolute; border-radius: 50%; pointer-events: none; }
.gt-halo-blue   { background: radial-gradient(circle, rgba(37,99,235,.13), transparent 62%); }
.gt-halo-amber  { background: radial-gradient(circle, rgba(247,168,35,.12), transparent 62%); }
.gt-halo-indigo { background: radial-gradient(circle, rgba(99,102,241,.08), transparent 62%); }

/* ---------- Verre ---------- */
.gt-glass {
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 30px rgba(15,40,95,.08), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- Boutons ---------- */
.gt-btn-primary {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
    border: none; cursor: pointer; padding: 14px 22px; border-radius: 14px;
    background: linear-gradient(180deg,#3B82F6,#1D4ED8); color: #fff; font: 700 14px/1 'Inter';
    box-shadow: 0 12px 28px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.gt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(37,99,235,.44), inset 0 1px 0 rgba(255,255,255,.45); }
.gt-sheen {
    position: absolute; top: 0; left: 0; width: 38%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    animation: gt-sheen 5s ease-in-out infinite;
}
.gt-btn-danger {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 13px 20px; border-radius: 13px;
    background: rgba(255,255,255,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(225,29,72,.3); color: #E11D48; font: 700 14px/1 'Inter';
    box-shadow: 0 6px 16px rgba(225,29,72,.1);
    transition: background .2s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.gt-btn-danger:hover { background: rgba(225,29,72,.08); transform: translateY(-2px); }
.gt-btn-success { border: 1px solid rgba(16,185,129,.35); color: #059669; box-shadow: 0 6px 16px rgba(16,185,129,.1); }
.gt-btn-success:hover { background: rgba(16,185,129,.08); }

/* ---------- Consommateurs : sélecteur de période ---------- */
.gt-period-toggle {
    display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 12px;
    background: rgba(255,255,255,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.85); box-shadow: 0 6px 16px rgba(15,40,95,.07);
}
.gt-period-item {
    font: 600 13px/1 'Inter'; color: #64748B; padding: 8px 15px; border-radius: 9px; cursor: pointer;
    transition: background .2s, color .2s;
}
.gt-period-item:hover { color: #1D4ED8; }
.gt-period-item.active {
    color: #fff; background: linear-gradient(180deg,#3B82F6,#1D4ED8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* ---------- Consommateurs : cartes frais de service ---------- */
.gt-fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.gt-fee-card {
    border-radius: 20px; overflow: hidden;
    background: rgba(255,255,255,.58);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(15,40,95,.07), inset 0 1px 0 rgba(255,255,255,.9);
    animation: gt-rise .4s ease both;
}
.gt-fee-card-head {
    display: flex; align-items: center; gap: 8px; padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(15,40,95,.06);
}
.gt-fee-card-head span { font: 700 16px/1 'Montserrat'; color: #0B2E6F; }

.gt-rate-input {
    display: flex; align-items: center; border-radius: 12px; overflow: hidden;
    border: 1.5px solid rgba(59,130,246,.35); background: rgba(255,255,255,.85);
    box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}
.gt-fee-cancel {
    flex: 1; cursor: pointer; padding: 11px; border-radius: 12px;
    background: rgba(255,255,255,.7); border: 1px solid rgba(15,40,95,.12);
    color: #475569; font: 700 13px/1 'Inter'; transition: background .2s;
}
.gt-fee-cancel:hover { background: #fff; }
.gt-fee-cancel:disabled { opacity: .6; cursor: not-allowed; }
.gt-fee-apply {
    position: relative; overflow: hidden; flex: 2;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; padding: 11px; border-radius: 12px;
    background: linear-gradient(180deg,#3B82F6,#1D4ED8); color: #fff; font: 700 13px/1 'Inter';
    box-shadow: 0 10px 22px rgba(37,99,235,.3), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .2s;
}
.gt-fee-apply:hover:not(:disabled) { transform: translateY(-2px); }
.gt-fee-apply:disabled { opacity: .7; cursor: not-allowed; }

@media (max-width: 1100px) {
    .gt-fee-grid { grid-template-columns: 1fr; }
}

/* ---------- Pilule statut ---------- */
.gt-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 10px; border-radius: 999px;
    font: 600 11px/1 'Inter'; white-space: nowrap;
    justify-self: start;   /* ne s'etire pas dans une cellule grid */
    width: fit-content;    /* fallback pour les contextes non-grid */
}
.gt-pill .gt-dot { width: 6px; height: 6px; border-radius: 50%; }
.gt-pill-active { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.22); color: #059669; }
.gt-pill-active .gt-dot { background: #10B981; }
.gt-pill-inactive { background: rgba(148,163,184,.14); border: 1px solid rgba(148,163,184,.25); color: #64748B; }
.gt-pill-inactive .gt-dot { background: #94A3B8; }
.gt-pill-suspended { background: rgba(247,168,35,.14); border: 1px solid rgba(247,168,35,.3); color: #B26B00; }
.gt-pill-suspended .gt-dot { background: #F7A823; }

/* ---------- Champs ---------- */
.gt-input {
    font: 400 14px/1 'Inter'; color: #1E293B; padding: 13px 15px; border-radius: 12px;
    border: 1px solid rgba(15,40,95,.1); background: rgba(255,255,255,.7); outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.gt-input:focus { border: 1px solid #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,.16); }

/* ---------- Sidebar ---------- */
.gt-sidebar {
    position: relative; width: 266px; flex: none; margin: 16px 0 16px 16px; border-radius: 22px;
    display: flex; flex-direction: column; padding: 24px 18px; z-index: 1200;
    background: rgba(255,255,255,.55); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 34px rgba(15,40,95,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.gt-brand { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 22px; border-bottom: 1px solid rgba(15,40,95,.07); }
.gt-brand img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(37,99,235,.3)); }
.gt-brand-name { font: italic 800 22px/1 'Montserrat'; color: #0B57D0; letter-spacing: -.01em; margin-top: 10px; }
.gt-brand-sub  { font: 600 10px/1 'Inter'; letter-spacing: .18em; text-transform: uppercase; color: #94A3B8; margin-top: 6px; }

.gt-nav { position: relative; display: flex; flex-direction: column; gap: 5px; margin-top: 18px; flex: 1; }
.gt-nav-indicator {
    position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 13px;
    background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(59,130,246,.09));
    border: 1px solid rgba(59,130,246,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px rgba(37,99,235,.12);
    transition: transform .46s cubic-bezier(.34,1.32,.5,1); pointer-events: none;
}
.gt-nav-link {
    position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; height: 44px; padding: 0 14px;
    border-radius: 13px; text-decoration: none; cursor: pointer;
    font-family: 'Inter'; font-size: 14px; font-weight: 500; color: #475569;
    transition: color .3s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.gt-nav-link:hover { transform: translateX(3px); }
.gt-nav-link.active { font-weight: 600; color: #1D4ED8; }
.gt-nav-link-disabled { opacity: .42; cursor: not-allowed; pointer-events: none; }

.gt-user-card {
    display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px;
    background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 4px 12px rgba(15,40,95,.06); cursor: pointer; transition: transform .2s;
}
.gt-user-card:hover { transform: translateY(-2px); }
.gt-user-avatar {
    width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(150deg,#3B82F6,#0B2E6F);
    display: flex; align-items: center; justify-content: center; color: #fff; font: 700 13px/1 'Inter';
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4); overflow: hidden; flex: none;
}
.gt-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gt-logout {
    display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 11px; width: 100%;
    cursor: pointer; padding: 12px 16px; border-radius: 13px;
    background: rgba(255,255,255,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(225,29,72,.28); color: #E11D48; font: 700 13px/1 'Inter';
    box-shadow: 0 4px 12px rgba(225,29,72,.08); transition: background .2s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.gt-logout:hover { background: rgba(225,29,72,.08); transform: translateY(-2px); }

/* ---------- Zone principale : en-tete fixe + corps scrollable ---------- */
.gt-main { position: relative; flex: 1; min-width: 0; z-index: 1; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.gt-main-head { flex: none; padding: 34px 34px 0 30px; }      /* en-tete fige */
.gt-main-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 34px 34px 30px; } /* seul element scrollable */
.gt-h1 { margin: 0; font: 800 38px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.02em; }
.gt-sub { margin: 10px 0 0; font: 400 15px/1.5 'Inter'; color: #64748B; }

/* ---------- Carte compagnie ---------- */
.gt-company-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gt-company-card {
    position: relative; overflow: hidden; border-radius: 20px; padding: 22px;
    background: rgba(255,255,255,.55); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 28px rgba(15,40,95,.07), inset 0 1px 0 rgba(255,255,255,.9);
    cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
    animation: gt-rise .45s ease both;
}
.gt-company-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(15,40,95,.14), inset 0 1px 0 rgba(255,255,255,.95); border-color: rgba(59,130,246,.35); }
.gt-avatar {
    position: relative; width: 58px; height: 58px; flex: none; border-radius: 16px;
    background: linear-gradient(150deg,#4F8BF8,#1746B8); display: flex; align-items: center; justify-content: center;
    color: #fff; font: 700 18px/1 'Montserrat'; box-shadow: 0 8px 18px rgba(37,99,235,.32), inset 0 1px 0 rgba(255,255,255,.5);
    overflow: hidden;
}
.gt-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gt-avatar .gt-gloss { position: absolute; top: 6px; left: 9px; right: 20px; height: 36%; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent); }
.gt-card-arrow {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px;
    background: rgba(255,255,255,.6); border: 1px solid rgba(15,40,95,.08); color: #2563EB; transition: background .2s, transform .2s, color .2s;
}
.gt-company-card:hover .gt-card-arrow { background: #2563EB; color: #fff; transform: translateX(2px); }

/* ---------- Etats vide / chargement ---------- */
.gt-empty {
    border-radius: 18px; padding: 40px; text-align: center; font: 500 14px/1.5 'Inter'; color: #94A3B8;
    background: rgba(255,255,255,.5); border: 1px dashed rgba(15,40,95,.14);
}
.gt-spinner {
    width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(37,99,235,.18); border-top-color: #2563EB;
    animation: gt-spin .8s linear infinite; margin: 40px auto;
}
@keyframes gt-spin { to { transform: rotate(360deg); } }

/* ---------- Sections detail ---------- */
.gt-section {
    border-radius: 22px; padding: 26px 28px;
    background: rgba(255,255,255,.55); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 10px 30px rgba(15,40,95,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.gt-section h2 { margin: 0; font: 700 19px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.01em; }
.gt-section p  { margin: 8px 0 18px; font: 400 13px/1.5 'Inter'; color: #94A3B8; }
.gt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-top: 1px solid rgba(15,40,95,.07); }
.gt-row-k { font: 600 14px/1 'Inter'; color: #334155; }
.gt-row-v { font: 600 13px/1 'Inter'; color: #1E293B; }
.gt-na-chip { font: 600 13px/1 'Inter'; color: #94A3B8; background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.2); padding: 5px 12px; border-radius: 999px; }
.gt-link { font: 600 13px/1 'Inter'; color: #2563EB; text-decoration: none; }
.gt-link:hover { text-decoration: underline; }

.gt-menu-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 15px;
    background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 5px 14px rgba(15,40,95,.06);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.gt-menu-row:hover { transform: translateX(3px); box-shadow: 0 10px 22px rgba(15,40,95,.12); }
.gt-menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(59,130,246,.1); color: #2563EB; }
.gt-toggle { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: linear-gradient(180deg,#3B82F6,#1D4ED8); box-shadow: inset 0 1px 3px rgba(15,40,95,.3); }
.gt-toggle .gt-knob { position: absolute; top: 3px; left: 21px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(15,40,95,.3); }

.gt-back-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; margin-top: 4px;
    border-radius: 13px; text-decoration: none; background: rgba(255,255,255,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.85); box-shadow: 0 6px 16px rgba(15,40,95,.08); color: #2563EB;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.gt-back-btn:hover { transform: translateX(-3px); box-shadow: 0 10px 22px rgba(15,40,95,.14); }

/* ── Modale glassmorphisme ───────────────────────────────── */
.gt-modal-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(11,46,111,.36);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    animation: gt-rise .22s ease both;
}
.gt-modal {
    position: relative; width: 760px; max-height: 88vh;
    display: flex; flex-direction: column;
    border-radius: 26px; overflow: hidden;
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(34px) saturate(160%); -webkit-backdrop-filter: blur(34px) saturate(160%);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 40px 90px rgba(11,46,111,.28), inset 0 1px 0 rgba(255,255,255,.95);
    animation: gt-modal-in .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes gt-modal-in {
    from { opacity:0; transform: translateY(20px) scale(.97); }
    to   { opacity:1; transform: translateY(0)   scale(1); }
}
.gt-modal-head { flex: none; display: flex; align-items: center; gap: 13px; padding: 24px 30px 18px; }
.gt-modal-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: none; border-radius: 13px;
    background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2); color: #2563EB;
}
.gt-modal-title { flex: 1; font: 800 22px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.01em; }
.gt-modal-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 11px; border: 1px solid rgba(15,40,95,.08);
    background: rgba(255,255,255,.6); color: #94A3B8; cursor: pointer;
    transition: background .2s, color .2s;
}
.gt-modal-close:hover { background: rgba(225,29,72,.1); color: #E11D48; }
.gt-modal-sep  { flex: none; height: 1px; background: rgba(15,40,95,.08); margin: 0 30px; }
.gt-modal-body { flex: 1; overflow-y: auto; padding: 24px 30px; }
.gt-modal-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 30px 22px; }

/* champs dans la modale */
.gt-field { display: flex; flex-direction: column; gap: 8px; }
.gt-label  { font: 600 12px/1 'Inter'; color: #475569; }
.gt-label-req { color: #E11D48; }
.gt-field .gt-input { width: 100%; }
.gt-section-title { font: 700 16px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.01em; }
.gt-section-desc  { font: 400 13px/1.5 'Inter'; color: #94A3B8; margin: 8px 0 16px; }

/* upload logo */
.gt-upload-zone {
    width: 96px; height: 96px; flex: none; border-radius: 18px;
    background: rgba(255,255,255,.5); border: 1.5px dashed rgba(59,130,246,.4);
    display: flex; align-items: center; justify-content: center;
    color: #2563EB; font: 800 30px/1 'Inter'; overflow: hidden;
}
.gt-upload-zone img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }

/* menu toggle interactif */
.gt-menu-item-modal {
    display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 14px;
    background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 4px 12px rgba(15,40,95,.05); transition: background .2s;
}
.gt-menu-item-modal:hover { background: rgba(255,255,255,.85); }
.gt-toggle-btn {
    position: relative; width: 40px; height: 23px; flex: none;
    border-radius: 999px; background: rgba(15,40,95,.14); border: none; cursor: pointer;
    transition: background .25s;
}
.gt-toggle-btn.on  { background: linear-gradient(180deg,#3B82F6,#1D4ED8); box-shadow: inset 0 1px 3px rgba(15,40,95,.3); }
.gt-toggle-btn .gt-knob {
    position: absolute; top: 3px; left: 3px; width: 17px; height: 17px;
    border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(15,40,95,.3);
    transition: left .25s cubic-bezier(.34,1.32,.5,1);
    pointer-events: none;
}
.gt-toggle-btn.on .gt-knob { left: 20px; }

/* bannière erreur */
.gt-error-banner {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px; border-radius: 13px; margin-bottom: 18px;
    background: rgba(225,29,72,.08); border: 1px solid rgba(225,29,72,.22);
    font: 500 13px/1.5 'Inter'; color: #BE1237;
}

/* bouton Annuler du footer modale */
.gt-btn-cancel {
    cursor: pointer; padding: 13px 24px; border-radius: 13px;
    background: rgba(255,255,255,.6); border: 1px solid rgba(15,40,95,.12);
    color: #475569; font: 700 14px/1 'Inter'; transition: background .2s;
}
.gt-btn-cancel:hover { background: #fff; }

/* ── Carte KPI ────────────────────────────────────────── */
.gt-kpi-card {
    position: relative; overflow: hidden; border-radius: 20px; padding: 22px;
    background: rgba(255,255,255,.58); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 10px 28px rgba(15,40,95,.07), inset 0 1px 0 rgba(255,255,255,.92);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
    animation: gt-rise .4s ease both;
}
.gt-kpi-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(15,40,95,.13), inset 0 1px 0 rgba(255,255,255,.96); }
.gt-kpi-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(59,130,246,.1); color: #2563EB; margin-bottom: 16px;
}
.gt-kpi-value { font: 800 28px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.01em; margin-top: 0; }
.gt-kpi-label { font: 500 13px/1 'Inter'; color: #94A3B8; margin-top: 8px; }

/* ── Table glass ──────────────────────────────────────── */
.gt-table-card {
    border-radius: 20px; overflow: hidden;
    background: rgba(255,255,255,.55); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 10px 28px rgba(15,40,95,.07), inset 0 1px 0 rgba(255,255,255,.92);
}
.gt-table-head {
    display: grid; padding: 12px 22px;
    border-bottom: 1px solid rgba(15,40,95,.08);
    background: rgba(255,255,255,.42);
    gap: 0;
}
.gt-table-head span { font: 600 10px/1 'Inter'; letter-spacing: .12em; text-transform: uppercase; color: #94A3B8; }
.gt-table-row {
    display: grid; align-items: center; padding: 14px 22px; gap: 0;
    border-bottom: 1px solid rgba(15,40,95,.04);
    transition: background .18s, transform .15s;
    cursor: default;
}
.gt-table-row:last-child { border-bottom: none; }
.gt-table-row:hover { background: rgba(59,130,246,.04); transform: translateX(2px); }
.gt-table-foot {
    padding: 11px 22px; font: 500 11px/1 'Inter'; color: #94A3B8;
    border-top: 1px solid rgba(15,40,95,.06);
}

/* ── Filter bar ───────────────────────────────────────── */
.gt-filter-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 18px; flex: none;
    background: rgba(255,255,255,.55); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: 0 8px 24px rgba(15,40,95,.07), inset 0 1px 0 rgba(255,255,255,.85);
}
.gt-filter-label-wrap {
    display: flex; align-items: center; gap: 8px;
    padding-right: 14px; border-right: 1px solid rgba(15,40,95,.08); flex: none;
}
.gt-filter-label { font: 700 13px/1 'Inter'; color: #1E293B; }
.gt-filter-hint  { font: 500 12px/1 'Inter'; color: #94A3B8; }
.gt-search-wrap  { position: relative; flex: 1; }
.gt-search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.gt-search-wrap .gt-input { padding-left: 38px; }
.gt-filter-reset {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    font: 600 12px/1 'Inter'; color: #94A3B8;
    padding: 11px 14px; border-radius: 11px;
    border: 1px solid rgba(15,40,95,.08); background: rgba(255,255,255,.5);
    cursor: pointer; transition: color .2s, background .2s;
}
.gt-filter-reset:hover { color: #475569; background: rgba(255,255,255,.8); }
select.gt-input {
    appearance: none; -webkit-appearance: none;
    min-width: 150px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}

/* ── User row sub-text ────────────────────────────────── */
.gt-user-name { font: 700 14px/1.2 'Inter'; color: #1E293B; }
.gt-user-sub  { font: 500 12px/1 'Inter'; color: #94A3B8; margin-top: 4px; }

/* ── Action buttons ───────────────────────────────────── */
.gt-action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex: none;
    border: none; cursor: pointer; border-radius: 10px;
    transition: background .2s, transform .2s;
}
.gt-action-btn:hover { transform: scale(1.1); }
.gt-action-btn-edit { background: rgba(59,130,246,.1); color: #2563EB; }
.gt-action-btn-edit:hover { background: rgba(59,130,246,.22); }
.gt-action-btn-del  { background: rgba(225,29,72,.08); color: #E11D48; }
.gt-action-btn-del:hover  { background: rgba(225,29,72,.2); }

/* ── Textarea fix ─────────────────────────────────── */
textarea.gt-input { line-height: 1.5; resize: none; }

/* ── Role cards (Droits & rôles) ──────────────────── */
.gt-role-cards-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
    align-content: start;
}
.gt-role-card {
    position: relative; overflow: hidden; border-radius: 22px; padding: 26px;
    display: flex; flex-direction: column;
    background: rgba(255,255,255,.58); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 12px 32px rgba(15,40,95,.09), inset 0 1px 0 rgba(255,255,255,.95);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
    animation: gt-rise .4s ease both;
}
.gt-role-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,40,95,.15), inset 0 1px 0 rgba(255,255,255,.96); }
.gt-role-card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg,#3B82F6,#6366F1); border-radius: 22px 22px 0 0;
}
.gt-role-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.gt-role-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none; border-radius: 13px;
    background: rgba(59,130,246,.1); color: #2563EB;
}
.gt-role-name { font: 800 19px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.01em; }
.gt-role-desc { font: 400 14px/1.5 'Inter'; color: #64748B; flex: 1; min-height: 44px; margin-bottom: 22px; }
.gt-role-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.gt-btn-role-edit {
    position: relative; overflow: hidden; flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; padding: 11px 16px; border-radius: 12px;
    background: linear-gradient(180deg,#3B82F6,#1D4ED8); color: #fff; font: 700 13px/1 'Inter';
    box-shadow: 0 8px 18px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.4);
    transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.gt-btn-role-edit:hover { transform: translateY(-2px); }
.gt-btn-role-del {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; padding: 11px 16px; border-radius: 12px;
    background: rgba(255,255,255,.55); border: 1px solid rgba(225,29,72,.28);
    color: #E11D48; font: 700 13px/1 'Inter';
    box-shadow: 0 4px 12px rgba(225,29,72,.08);
    transition: background .2s, transform .2s;
}
.gt-btn-role-del:hover { background: rgba(225,29,72,.08); transform: translateY(-2px); }

/* ── Permission matrix (inside role modal) ────────── */
.gt-perm-matrix {
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(15,40,95,.08); background: rgba(255,255,255,.5);
}
.gt-perm-head {
    display: grid; grid-template-columns: 1fr repeat(4,.7fr);
    padding: 10px 18px; border-bottom: 1px solid rgba(15,40,95,.08);
    background: rgba(255,255,255,.35);
}
.gt-perm-head span { font: 600 10px/1 'Inter'; letter-spacing: .12em; text-transform: uppercase; color: #94A3B8; text-align: center; }
.gt-perm-head span:first-child { text-align: left; }
.gt-perm-row {
    display: grid; grid-template-columns: 1fr repeat(4,.7fr);
    align-items: center; padding: 13px 18px;
    border-bottom: 1px solid rgba(15,40,95,.05);
}
.gt-perm-row:last-child { border-bottom: none; }
.gt-perm-label { font: 600 14px/1 'Inter'; color: #1E293B; }
.gt-perm-cell { display: flex; justify-content: center; align-items: center; }
.gt-perm-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 7px; flex: none;
    background: linear-gradient(180deg,#3B82F6,#1D4ED8);
    box-shadow: 0 4px 8px rgba(37,99,235,.3);
    border: none; cursor: pointer; transition: box-shadow .2s;
    color: #fff;
}
.gt-perm-check:hover { box-shadow: 0 4px 14px rgba(37,99,235,.5); }
.gt-perm-uncheck {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 7px; flex: none;
    background: rgba(255,255,255,.6); border: 1.5px solid rgba(15,40,95,.14);
    cursor: pointer; transition: background .2s, border-color .2s;
}
.gt-perm-uncheck:hover { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.4); }

/* ── Modal wide variant ────────────────────────────── */
.gt-modal-wide { width: 820px; }
.gt-modal-740  { width: 740px; }

/* ── GlassConfirmModal (FRAME L — compact 420 px) ─────────────────── */
.gt-confirm-backdrop {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11,30,70,.24);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    animation: gt-rise .18s ease both;
}
.gt-confirm-card {
    width: 420px; max-width: calc(100vw - 32px);
    border-radius: 24px; overflow: hidden;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255,255,255,.94);
    box-shadow: 0 30px 80px rgba(15,40,95,.2), 0 4px 18px rgba(15,40,95,.08), inset 0 1px 0 rgba(255,255,255,.96);
    animation: gt-modal-in .28s cubic-bezier(.2,.8,.2,1) both;
}
.gt-confirm-head {
    display: flex; align-items: center; gap: 13px; padding: 22px 24px 16px;
}
.gt-confirm-icon {
    flex: none; width: 44px; height: 44px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
}
.gt-confirm-icon-danger {
    background: linear-gradient(150deg,rgba(244,63,94,.18),rgba(225,29,72,.08));
    border: 1px solid rgba(225,29,72,.25); color: #E11D48;
}
.gt-confirm-icon-warning {
    background: linear-gradient(150deg,rgba(245,158,11,.18),rgba(217,119,6,.08));
    border: 1px solid rgba(245,158,11,.3); color: #D97706;
}
.gt-confirm-title {
    flex: 1; font: 800 17px/1 'Montserrat'; color: #0B2E6F; letter-spacing: -.01em;
}
.gt-confirm-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    background: rgba(15,40,95,.07); border: none; cursor: pointer; color: #64748B;
    transition: background .2s;
}
.gt-confirm-close:hover { background: rgba(15,40,95,.14); }
.gt-confirm-sep { height: 1px; background: rgba(15,40,95,.08); }
.gt-confirm-body { padding: 20px 24px 6px; }
.gt-item-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 14px; margin: 13px 0 10px;
    background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2);
    border-radius: 12px; max-width: 100%;
}
.gt-item-badge-icon { flex: none; color: #2563EB; }
.gt-item-badge-name {
    font: 700 14px/1 'Inter'; color: #1E40AF;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-confirm-warn {
    font: 400 13px/1.5 'Inter'; color: #94A3B8; margin-top: 12px;
}
.gt-confirm-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 24px 22px;
}
.gt-btn-danger-solid {
    position: relative; overflow: hidden;
    padding: 11px 22px; border-radius: 11px; border: none; cursor: pointer;
    background: linear-gradient(180deg,#F43F5E,#E11D48); color: #fff;
    font: 700 13px/1 'Inter';
    box-shadow: 0 12px 26px rgba(225,29,72,.32), inset 0 1px 0 rgba(255,255,255,.25);
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .2s, box-shadow .2s;
}
.gt-btn-danger-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(225,29,72,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.gt-btn-danger-solid:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.gt-btn-suspend-solid {
    position: relative; overflow: hidden;
    padding: 11px 22px; border-radius: 11px; border: none; cursor: pointer;
    background: linear-gradient(180deg,#F59E0B,#D97706); color: #fff;
    font: 700 13px/1 'Inter';
    box-shadow: 0 12px 26px rgba(217,119,6,.3), inset 0 1px 0 rgba(255,255,255,.25);
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .2s, box-shadow .2s;
}
.gt-btn-suspend-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(217,119,6,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.gt-btn-suspend-solid:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── GlassProfileModal (FRAME M — 740 px) ──────────────────────────── */
.gt-avatar-xl {
    width: 74px; height: 74px; border-radius: 50%; flex: none;
    background: linear-gradient(150deg,#4F8BF8,#1746B8);
    display: flex; align-items: center; justify-content: center;
    font: 800 26px/1 'Montserrat'; color: #fff; letter-spacing: -.02em;
    box-shadow: 0 8px 24px rgba(37,99,235,.28); overflow: hidden;
}
.gt-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.gt-btn-upload {
    padding: 9px 16px; border-radius: 10px; border: none; cursor: pointer;
    background: rgba(59,130,246,.1); color: #2563EB; font: 600 13px/1 'Inter';
    display: inline-flex; align-items: center; gap: 7px; transition: background .2s;
}
.gt-btn-upload:hover { background: rgba(59,130,246,.18); }
.gt-btn-remove-photo {
    padding: 9px 16px; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,.5); border: 1px solid rgba(225,29,72,.2);
    color: #E11D48; font: 600 13px/1 'Inter';
    display: inline-flex; align-items: center; gap: 7px; transition: background .2s;
}
.gt-btn-remove-photo:hover { background: rgba(225,29,72,.07); }
.gt-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.gt-form-2col .gt-input { width: 100%; }
.gt-form-group { display: flex; flex-direction: column; gap: 7px; }
.gt-form-label { font: 600 12px/1 'Inter'; color: #64748B; letter-spacing: .04em; text-transform: uppercase; }
.gt-input:disabled { opacity: .55; cursor: not-allowed; background: rgba(241,245,249,.8); }
.gt-role-badge-sm {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
    border-radius: 9px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.22);
    font: 600 13px/1 'Inter'; color: #1E40AF;
}

/* ── Page Login (FRAME N) ─────────────────────────────────────────── */
.gt-login-root {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; position: relative; overflow: hidden;
    background: linear-gradient(135deg,#EAF1FD 0%,#F4F8FE 35%,#FBFCFE 60%,#FDF8EE 80%,#EEFAF4 100%);
}
.gt-login-card {
    position: relative; z-index: 10;
    width: 480px; max-width: calc(100vw - 32px);
    border-radius: 28px; padding: 48px 44px 40px;
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(36px) saturate(160%); -webkit-backdrop-filter: blur(36px) saturate(160%);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 40px 90px rgba(11,46,111,.18), inset 0 1px 0 rgba(255,255,255,.95);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gt-login-logo-wrap {
    width: 96px; height: 96px; flex: none; border-radius: 28px;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 16px 36px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.95);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.gt-login-brand { font: italic 800 34px/1 'Montserrat',sans-serif; color: #1D4ED8; letter-spacing: .04em; margin-bottom: 6px; }
.gt-login-scope { font: 700 11px/1 'Inter',sans-serif; color: #94A3B8; letter-spacing: .26em; text-transform: uppercase; }
.gt-login-divider {
    width: 48px; height: 1px; margin: 18px auto 20px;
    background: linear-gradient(90deg,transparent,rgba(37,99,235,.3),transparent);
}
.gt-login-title { font: 800 22px/1 'Montserrat',sans-serif; color: #0B2E6F; letter-spacing: -.01em; margin-bottom: 8px; }
.gt-login-desc  { font: 400 14px/1.5 'Inter',sans-serif; color: #64748B; max-width: 280px; margin-bottom: 28px; }
.gt-login-form  { width: 100%; text-align: left; }
.gt-login-label {
    display: block; font: 600 12px/1 'Inter',sans-serif; color: #475569;
    letter-spacing: .03em; text-transform: uppercase; margin-bottom: 7px;
}

/* icon-in-input wrappers */
.gt-input-icon-wrap  { position: relative; width: 100%; }
.gt-input-icon-l {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: #94A3B8; display: flex; align-items: center;
}
.gt-input-icon-r {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; padding: 0; cursor: pointer;
    color: #94A3B8; display: flex; align-items: center;
}
.gt-input-icon-r:hover { color: #475569; }
.gt-input-pl  { padding-left:  42px !important; }
.gt-input-plr { padding-left:  42px !important; padding-right: 42px !important; }

/* halo vert spécifique login */
.gt-halo-green { background: radial-gradient(circle, rgba(16,185,129,.28) 0%, transparent 70%); }

/* ── Grille KPI réutilisable ──────────────────────────────────────── */
.gt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* ── Bouton hamburger (mobile seulement) ──────────────────────────── */
.gt-hamburger {
    display: none;
    position: fixed; bottom: 24px; right: 24px; z-index: 600;
    width: 52px; height: 52px; border-radius: 16px; border: none; cursor: pointer;
    background: linear-gradient(180deg,#3B82F6,#1D4ED8); color: #fff;
    align-items: center; justify-content: center;
    box-shadow: 0 12px 28px rgba(37,99,235,.42), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .2s, box-shadow .2s;
}
.gt-hamburger:hover { transform: scale(1.08); box-shadow: 0 16px 34px rgba(37,99,235,.54); }

.gt-sidebar-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 490;
    background: rgba(11,46,111,.36);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.gt-sidebar-backdrop.open {
    display: block;
    animation: gt-rise .2s ease both;
}

/* ── Responsive : tablette large (≤ 1200 px) ─────────────────────── */
@media (max-width: 1200px) {
    .gt-company-grid    { grid-template-columns: repeat(2, 1fr); }
    .gt-role-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .gt-kpi-grid        { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive : tablette portrait (≤ 900 px) — sidebar icônes ──── */
@media (max-width: 900px) {
    .gt-sidebar {
        width: 72px; padding: 16px 10px;
    }
    .gt-brand { padding-bottom: 16px; }
    .gt-brand img { width: 44px; height: 44px; }
    .gt-brand-name,
    .gt-brand-sub       { display: none; }
    .gt-nav-link        { justify-content: center; padding: 0 10px; gap: 0; }
    .gt-nav-link span   { display: none; }
    .gt-nav-indicator   { left: 6px; right: 6px; }
    .gt-user-card       { padding: 10px; justify-content: center; }
    .gt-user-card > div,
    .gt-user-card > span { display: none; }
    .gt-logout          { padding: 12px; gap: 0; }
    .gt-logout-text     { display: none; }

    .gt-main-head { padding: 24px 20px 0 16px; }
    .gt-main-body { padding: 0 20px 24px 16px; }
    .gt-h1        { font-size: 28px; }

    .gt-modal,
    .gt-modal-wide,
    .gt-modal-740 { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }

    .gt-filter-bar    { flex-wrap: wrap; gap: 10px; }
    .gt-search-wrap   { flex: 1 1 100%; order: 3; }
    .gt-filter-label-wrap { border-right: none; padding-right: 0; }
}

/* ── Responsive : mobile (≤ 640 px) — sidebar tiroir ─────────────── */
@media (max-width: 640px) {
    /* Sidebar devient un tiroir latéral */
    .gt-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 500;
        width: 264px; padding: 20px 16px;
        border-radius: 0 22px 22px 0; margin: 0;
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.2,.8,.2,1);
        /* Rétablir les styles masqués par la règle 900 px */
        display: flex;
    }
    .gt-sidebar.open { transform: translateX(0); }

    /* Rétablir les libellés dans le tiroir */
    .gt-brand img             { width: 60px; height: 60px; }
    .gt-brand-name            { display: block; }
    .gt-brand-sub             { display: block; }
    .gt-nav-link              { justify-content: flex-start; padding: 0 14px; gap: 13px; }
    .gt-nav-link span         { display: inline; }
    .gt-nav-indicator         { left: 0; right: 0; }
    .gt-user-card             { padding: 11px 13px; justify-content: flex-start; }
    .gt-user-card > div       { display: flex; flex-direction: column; }
    .gt-user-card > span      { display: inline; }
    .gt-logout                { padding: 12px 16px; gap: 9px; }
    .gt-logout-text           { display: inline; }

    /* Hamburger visible */
    .gt-hamburger { display: inline-flex; }

    /* Zone principale pleine largeur */
    .gt-main-head { padding: 20px 16px 0; }
    .gt-main-body { padding: 0 16px 20px; }
    .gt-h1  { font-size: 22px; }
    .gt-sub { font-size: 13px; }

    /* Grilles 1 col (sauf KPI : 2 col) */
    .gt-company-grid    { grid-template-columns: 1fr; }
    .gt-role-cards-grid { grid-template-columns: 1fr; }
    .gt-kpi-grid        { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }

    /* Table scroll horizontal */
    .gt-table-card  { overflow-x: auto; }
    .gt-table-head,
    .gt-table-row   { min-width: 520px; }

    /* Permission matrix scroll */
    .gt-perm-matrix { overflow-x: auto; }
    .gt-perm-head,
    .gt-perm-row    { min-width: 460px; }

    /* Modales plein écran */
    .gt-modal-backdrop { padding: 12px; }
    .gt-modal,
    .gt-modal-wide,
    .gt-modal-740 { width: 100%; border-radius: 18px; }
    .gt-modal-head  { padding: 18px 20px 14px; }
    .gt-modal-body  { padding: 16px 18px; }
    .gt-modal-foot  { padding: 14px 18px 18px; }
    .gt-modal-title { font-size: 18px; }

    /* Confirm modal */
    .gt-confirm-card { width: calc(100vw - 24px); }
    .gt-confirm-head { padding: 18px 18px 14px; }
    .gt-confirm-body { padding: 16px 18px 4px; }
    .gt-confirm-foot { padding: 12px 18px 18px; }

    /* Filter bar */
    .gt-filter-bar       { flex-wrap: wrap; gap: 10px; }
    .gt-search-wrap      { flex: 1 1 100%; order: 3; }
    .gt-filter-label-wrap { border-right: none; padding-right: 0; }
    .gt-filter-reset     { order: 10; }
    select.gt-input      { min-width: 0; flex: 1; }

    /* Formulaire 2 col → 1 col */
    .gt-form-2col { grid-template-columns: 1fr; }

    /* KPI valeur plus petite */
    .gt-kpi-value { font-size: 22px; }
}

/* ── Responsive : très petit écran (≤ 400 px) ────────────────────── */
@media (max-width: 400px) {
    .gt-kpi-grid    { grid-template-columns: 1fr; }
    .gt-login-card  { padding: 32px 20px 28px; border-radius: 20px; }
    .gt-login-brand { font-size: 26px; }
    .gt-h1          { font-size: 20px; }
}
