:root{--agh-bg:#f6f7fb;--agh-surface:#ffffff;--agh-surface-2:#f1f5f9;--agh-text:#111827;--agh-muted:#64748b;--agh-border:#e5e7eb;--agh-primary:#2563eb;--agh-primary-2:#1d4ed8;--agh-danger:#dc2626;--agh-shadow:0 18px 45px rgba(15,23,42,.10);--agh-radius:22px;--agh-radius-sm:14px;--agh-header-h:74px}html[data-agh-theme="dark"]{--agh-bg:#0b1220;--agh-surface:#111827;--agh-surface-2:#1f2937;--agh-text:#f8fafc;--agh-muted:#cbd5e1;--agh-border:#334155;--agh-primary:#60a5fa;--agh-primary-2:#3b82f6;--agh-shadow:0 20px 60px rgba(0,0,0,.35)}*{box-sizing:border-box}body.argosse-safe-theme{margin:0;background:var(--agh-bg)!important;color:var(--agh-text)!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}.agh-container{width:min(1180px,calc(100% - 32px));margin:0 auto}.agh-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--agh-surface) 88%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--agh-border)}.agh-nav{min-height:var(--agh-header-h);display:flex;align-items:center;gap:22px}.agh-brand{display:flex;align-items:center;gap:12px;color:var(--agh-text);font-weight:900;text-decoration:none;white-space:nowrap}.agh-brand img{max-height:44px;width:auto}.agh-logo-dot{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:linear-gradient(135deg,var(--agh-primary),#7c3aed);color:white}.agh-menu{margin-left:auto;display:flex;align-items:center;gap:10px}.agh-menu li,.agh-footer-menu li{list-style:none}.agh-menu a{display:inline-flex;padding:10px 12px;border-radius:999px;color:var(--agh-muted);text-decoration:none;font-weight:700}.agh-menu a:hover{background:var(--agh-surface-2);color:var(--agh-text)}.agh-theme-toggle{border:1px solid var(--agh-border);background:var(--agh-surface-2);color:var(--agh-text);width:44px;height:44px;border-radius:999px;cursor:pointer;font-size:18px;box-shadow:none}.agh-main{min-height:calc(100vh - 150px)}.agh-hero{padding:74px 0 36px;background:radial-gradient(circle at 15% 10%,color-mix(in srgb,var(--agh-primary) 18%,transparent),transparent 34%),radial-gradient(circle at 88% 20%,rgba(124,58,237,.14),transparent 30%)}.agh-hero-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:28px;align-items:center}.agh-kicker{display:inline-flex;padding:8px 12px;border-radius:999px;background:var(--agh-surface);border:1px solid var(--agh-border);color:var(--agh-primary);font-weight:800}.agh-hero h1{font-size:clamp(40px,7vw,76px);line-height:.95;margin:18px 0;color:var(--agh-text)}.agh-hero p{font-size:20px;color:var(--agh-muted);max-width:680px}.agh-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.agh-btn,.agh-entry .agh-btn,a.agh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:999px;border:1px solid var(--agh-border);background:var(--agh-surface);color:var(--agh-text);text-decoration:none;font-weight:800;cursor:pointer}.agh-btn-primary{background:var(--agh-primary)!important;border-color:var(--agh-primary)!important;color:white!important}.agh-btn:hover{transform:translateY(-1px)}.agh-hero-card{min-height:260px;border-radius:var(--agh-radius);background:linear-gradient(145deg,var(--agh-surface),var(--agh-surface-2));border:1px solid var(--agh-border);box-shadow:var(--agh-shadow);display:flex;flex-direction:column;justify-content:end;padding:28px}.agh-hero-card strong{font-size:34px}.agh-hero-card span{color:var(--agh-muted)}.agh-modules{padding:36px 0}.agh-modules h2{font-size:30px;margin:0 0 20px}.agh-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.agh-card{display:flex;flex-direction:column;gap:6px;min-height:145px;padding:20px;border-radius:var(--agh-radius);background:var(--agh-surface);border:1px solid var(--agh-border);box-shadow:var(--agh-shadow);color:var(--agh-text);text-decoration:none}.agh-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--agh-primary) 40%,var(--agh-border))}.agh-emoji{font-size:28px}.agh-card small{color:var(--agh-muted)}.agh-content{padding:34px 0}.agh-panel{background:var(--agh-surface);border:1px solid var(--agh-border);border-radius:var(--agh-radius);box-shadow:var(--agh-shadow);padding:clamp(18px,3vw,34px);overflow:hidden}.agh-page-head h1{margin-top:0}.agh-entry{color:var(--agh-text)}.agh-entry input,.agh-entry textarea,.agh-entry select,.agh-entry button{max-width:100%}.agh-entry input,.agh-entry textarea,.agh-entry select{background:var(--agh-surface)!important;color:var(--agh-text)!important;border-color:var(--agh-border)!important}.agh-footer{border-top:1px solid var(--agh-border);padding:26px 0;color:var(--agh-muted);background:var(--agh-surface)}.agh-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.agh-footer-menu{display:flex;gap:10px}.agh-footer a{color:var(--agh-muted);text-decoration:none}.argosse-chat,.argosse-cloud,.argosse-members,.argosse-projects,.argosse-links,.argosse-profile,.argosse-directory,[class*="argosse-"]{--bg:var(--agh-bg);--surface:var(--agh-surface);--text:var(--agh-text);--muted:var(--agh-muted);--border:var(--agh-border);--primary:var(--agh-primary)}@media(max-width:980px){.agh-hero-grid{grid-template-columns:1fr}.agh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agh-menu{display:none}.agh-nav{justify-content:space-between}}@media(max-width:640px){.agh-container{width:min(100% - 22px,1180px)}.agh-hero{padding:42px 0 24px}.agh-grid{grid-template-columns:1fr}.agh-card{min-height:112px}.agh-panel{border-radius:18px}.agh-footer-inner{align-items:flex-start;flex-direction:column}.agh-actions{flex-direction:column}.agh-btn{width:100%}}

/* ==================================================
   ARGOSSE CLOUD THEME SYNC - intégré au thème V2.2
   Cible : .argosse-cloud-module / .af360-ce
   ================================================== */
html[data-agh-theme="light"] .argosse-cloud-module,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-sidebar,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-main,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-front-head,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-toolbar,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-drop,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-admin-zone,
html[data-agh-theme="light"] .argosse-cloud-module .af360-cloud-info-note {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-grid > *,
html[data-agh-theme="light"] .argosse-cloud-module [data-ce-items] > *,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-item,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-card,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-file,
html[data-agh-theme="light"] .argosse-cloud-module .af360-ce-folder {
  background: #f8fafc !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}
html[data-agh-theme="light"] .argosse-cloud-module *,
body[data-agh-theme="light"] .argosse-cloud-module * {
  color: #111827 !important;
}
html[data-agh-theme="light"] .argosse-cloud-module input,
html[data-agh-theme="light"] .argosse-cloud-module select,
html[data-agh-theme="light"] .argosse-cloud-module textarea {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}
html[data-agh-theme="light"] .argosse-cloud-module button,
html[data-agh-theme="light"] .argosse-cloud-module .button {
  background: #f1f5f9 !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}
html[data-agh-theme="light"] .argosse-cloud-module .button-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

html[data-agh-theme="dark"] .argosse-cloud-module,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-sidebar,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-main,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-front-head,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-toolbar,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-drop,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-admin-zone,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-cloud-info-note {
  background: #0b1220 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-grid > *,
html[data-agh-theme="dark"] .argosse-cloud-module [data-ce-items] > *,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-item,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-card,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-file,
html[data-agh-theme="dark"] .argosse-cloud-module .af360-ce-folder {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-agh-theme="dark"] .argosse-cloud-module *,
body[data-agh-theme="dark"] .argosse-cloud-module * {
  color: #f8fafc !important;
}
html[data-agh-theme="dark"] .argosse-cloud-module input,
html[data-agh-theme="dark"] .argosse-cloud-module select,
html[data-agh-theme="dark"] .argosse-cloud-module textarea {
  background: #020617 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-agh-theme="dark"] .argosse-cloud-module button,
html[data-agh-theme="dark"] .argosse-cloud-module .button {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-agh-theme="dark"] .argosse-cloud-module .button-primary {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}
html[data-agh-theme="dark"] .argosse-cloud-module a { color:#93c5fd !important; }
