/* =====================================================
   MENAGER.CA — Dashboard Premium Uniform CSS
   À charger sur toutes les pages dashboard pro/client.
   ===================================================== */

:root{
  --mc-bg1:#f6f8ff;
  --mc-bg2:#ecfeff;
  --mc-bg3:#f0fdf4;
  --mc-card:rgba(255,255,255,.92);
  --mc-card-solid:#ffffff;
  --mc-stroke:rgba(15,23,42,.10);
  --mc-text:#0b1220;
  --mc-muted:rgba(11,18,32,.62);
  --mc-brand:#0284c7;
  --mc-teal:#0f766e;
  --mc-green:#16a34a;
  --mc-amber:#d97706;
  --mc-rose:#e11d48;
  --mc-violet:#7c3aed;
  --mc-radius:22px;
  --mc-radius-sm:16px;
  --mc-shadow:0 16px 40px -28px rgba(15,23,42,.30);
  --mc-shadow-sm:0 10px 22px -18px rgba(15,23,42,.22);
  --mc-safe-bottom:calc(84px + env(safe-area-inset-bottom));
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  color:var(--mc-text);
  background:
    radial-gradient(900px 700px at 15% 0%, rgba(2,132,199,.14), transparent 55%),
    radial-gradient(900px 700px at 95% 12%, rgba(15,118,110,.12), transparent 55%),
    radial-gradient(900px 700px at 50% 95%, rgba(22,163,74,.10), transparent 55%),
    linear-gradient(180deg, var(--mc-bg1), var(--mc-bg2) 55%, var(--mc-bg3));
  padding-bottom:var(--mc-safe-bottom);
}

body a{
  color:inherit;
}

img{
  max-width:100%;
}

.mc-app,
.app,
.container,
.main,
.wrapper,
.page,
.dashboard,
.content{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}

.app,
.mc-app{
  padding:14px 12px 0;
}

@media(max-width:640px){
  .app,
  .mc-app,
  .container,
  .main,
  .wrapper,
  .page,
  .dashboard,
  .content{
    max-width:480px;
    width:100%;
    padding-left:12px;
    padding-right:12px;
  }
}

/* Cards */
.card,
.mc-card,
.w3-card,
.w3-card-2,
.w3-card-4,
.panel,
.box,
.widget,
.section,
.module,
.form-card,
.profile-card,
.contract-card,
.service-card,
.review-card{
  background:var(--mc-card) !important;
  border:1px solid var(--mc-stroke) !important;
  border-radius:var(--mc-radius) !important;
  box-shadow:var(--mc-shadow-sm) !important;
  overflow:hidden;
}

.card.pad,
.mc-card.pad,
.panel,
.box,
.widget,
.section,
.module,
.form-card{
  padding:14px;
}

/* Headings */
h1,h2,h3{
  color:rgba(11,18,32,.90);
  letter-spacing:-.02em;
}

h1{
  font-size:clamp(22px,4vw,34px);
  line-height:1.12;
  font-weight:900;
}

h2{
  font-size:clamp(17px,3vw,24px);
  line-height:1.18;
  font-weight:900;
}

h3{
  font-size:clamp(14px,2.3vw,18px);
  line-height:1.22;
  font-weight:900;
}

p{
  color:rgba(11,18,32,.72);
}

/* Buttons */
.btn,
.button,
button,
input[type=submit],
input[type=button],
.w3-button,
.mc-btn{
  border:none;
  cursor:pointer;
  text-decoration:none !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:12px 14px;
  border-radius:16px !important;
  font-weight:900;
  font-size:13px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.12) !important;
  box-shadow:var(--mc-shadow-sm);
  color:rgba(11,18,32,.92) !important;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover,
.button:hover,
button:hover,
input[type=submit]:hover,
input[type=button]:hover,
.w3-button:hover,
.mc-btn:hover{
  transform:translateY(-1px);
}

.btnPrimary,
.btn-primary,
.primary,
.w3-blue,
.mc-btn-primary{
  background:linear-gradient(135deg, rgba(2,132,199,.95), rgba(15,118,110,.92)) !important;
  color:#fff !important;
  border:1px solid rgba(2,132,199,.22) !important;
}

.btnOk,
.btn-success,
.success,
.w3-green,
.mc-btn-success{
  background:linear-gradient(135deg, rgba(22,163,74,.95), rgba(15,118,110,.90)) !important;
  color:#fff !important;
}

.btnDanger,
.btn-danger,
.danger,
.w3-red,
.mc-btn-danger{
  background:linear-gradient(135deg, rgba(225,29,72,.95), rgba(190,18,60,.92)) !important;
  color:#fff !important;
}

.btnReview,
.btn-warning,
.warning,
.w3-amber,
.mc-btn-warning{
  background:linear-gradient(135deg, rgba(217,119,6,.96), rgba(245,158,11,.90)) !important;
  color:#fff !important;
}

/* Forms */
input,
select,
textarea{
  width:auto;
  max-width:100%;
  border-radius:16px !important;
  border:1px solid rgba(15,23,42,.12) !important;
  background:rgba(255,255,255,.92) !important;
  color:var(--mc-text) !important;
  padding:12px 14px;
  font-family:inherit;
  font-size:14px;
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(2,132,199,.45) !important;
  box-shadow:0 0 0 4px rgba(2,132,199,.12);
}

/* Tables */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:18px;
  background:rgba(255,255,255,.88);
}

th{
  text-align:left;
  font-size:12px;
  color:rgba(11,18,32,.58);
  font-weight:900;
  background:rgba(2,132,199,.08);
}

th,td{
  padding:12px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

tr:last-child td{
  border-bottom:none;
}

@media(max-width:640px){
  table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

/* Tiles / shortcut blocks */
.tiles,
.grid,
.cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

@media(min-width:900px){
  .tiles,
  .grid,
  .cards{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:360px){
  .tiles,
  .grid,
  .cards{
    grid-template-columns:1fr;
  }
}

.tile,
.shortcut,
.menu-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 12px;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:var(--mc-shadow-sm);
  text-decoration:none !important;
  color:inherit;
  min-height:72px;
}

/* Header / nav */
.topbar,
.header,
.navbar,
.mc-topbar{
  background:rgba(255,255,255,.92) !important;
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border-bottom:1px solid rgba(15,23,42,.08);
  box-shadow:0 10px 24px -24px rgba(15,23,42,.45);
}

/* Footer nav */
.footer-nav,
.bottom-nav,
.mobile-nav{
  position:fixed !important;
  bottom:0;
  left:0;
  right:0;
  z-index:9999;
  display:flex;
  justify-content:space-around;
  align-items:center;
  gap:2px;
  padding:7px 6px calc(7px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.90) !important;
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-top:1px solid rgba(15,23,42,.08);
  box-shadow:0 -10px 24px -18px rgba(15,23,42,.35);
}

.footer-nav a,
.bottom-nav a,
.mobile-nav a,
.footer-nav .nav-item{
  flex:1;
  min-width:0;
  text-align:center;
  color:#075985 !important;
  text-decoration:none !important;
  font-weight:800;
  font-size:11px;
}

.footer-nav img,
.bottom-nav img,
.mobile-nav img{
  width:24px;
  height:24px;
  object-fit:contain;
  margin:0 auto 2px;
  display:block;
}

/* Badges */
.badge,
.label,
.pill,
.chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(2,132,199,.14);
  background:rgba(2,132,199,.08);
  color:#075985;
}

/* Utility */
.mc-muted,
.hint,
.text-muted{
  color:var(--mc-muted) !important;
}

.mc-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mc-two-cols{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
  align-items:start;
}

@media(max-width:899px){
  .mc-two-cols{
    display:block;
  }
}

/* Prevent common mobile overflow */
pre,code{
  white-space:pre-wrap;
  word-break:break-word;
}

[class*="col-"],
.row{
  max-width:100%;
}

iframe,
video{
  max-width:100%;
  border-radius:18px;
}


/* =====================================================
   MENAGER.CA — AIRBNB GLASS BLUE FINAL
   ===================================================== */
:root{
  --mc-blue:#0284c7;
  --mc-blue-dark:#075985;
  --mc-teal:#0f766e;
  --mc-green:#16a34a;
  --mc-amber:#d97706;
  --mc-rose:#e11d48;
  --mc-violet:#7c3aed;
  --mc-text:#0f172a;
  --mc-card:rgba(255,255,255,.88);
  --mc-stroke:rgba(255,255,255,.62);
  --mc-shadow:0 18px 45px -26px rgba(15,23,42,.38);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  color:var(--mc-text)!important;
  background:
    radial-gradient(850px 650px at 15% -8%, rgba(56,189,248,.30), transparent 58%),
    radial-gradient(750px 550px at 96% 8%, rgba(14,165,233,.22), transparent 55%),
    radial-gradient(850px 620px at 50% 100%, rgba(15,118,110,.16), transparent 56%),
    linear-gradient(180deg,#f8fbff 0%,#e0f7ff 42%,#eefcf8 100%)!important;
  padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;
}
.app,.mc-app,.container,.main,.wrapper,.page,.dashboard,.content{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}
.app,.mc-app{padding:14px 12px 0}
.card,.mc-card,.w3-card,.w3-card-2,.w3-card-4,.panel,.box,.widget,.section,.module,.form-card,.profile-card,.contract-card,.service-card,.review-card{
  background:var(--mc-card)!important;
  backdrop-filter:blur(18px) saturate(175%);
  -webkit-backdrop-filter:blur(18px) saturate(175%);
  border:1px solid var(--mc-stroke)!important;
  border-radius:24px!important;
  box-shadow:var(--mc-shadow)!important;
  color:var(--mc-text)!important;
  overflow:hidden;
}
.card.pad,.panel,.box,.widget,.section,.module,.form-card{padding:14px}
h1,h2,h3{color:#0f172a!important;letter-spacing:-.02em}
p,.hint,.text-muted{color:rgba(15,23,42,.66)!important}
.btn,.button,button,input[type=submit],input[type=button],.w3-button,.mc-btn{
  border:none;
  cursor:pointer;
  text-decoration:none!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:12px 14px;
  border-radius:16px!important;
  font-weight:900!important;
  font-size:13px;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(15,23,42,.12)!important;
  box-shadow:0 10px 22px -18px rgba(15,23,42,.22);
  color:#0f172a!important;
}
.btnPrimary,.btn-primary,.primary,.mc-btn-primary{
  background:linear-gradient(135deg,#0284c7,#0f766e)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.32)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.22)!important;
}
.btnOk,.btn-success,.success{background:linear-gradient(135deg,#16a34a,#0f766e)!important;color:#fff!important}
.btnDanger,.btn-danger,.danger{background:linear-gradient(135deg,#e11d48,#be123c)!important;color:#fff!important}
.btnReview,.btn-warning,.warning{background:linear-gradient(135deg,#d97706,#e11d48)!important;color:#fff!important}
input,select,textarea{
  max-width:100%;
  border-radius:16px!important;
  border:1px solid rgba(15,23,42,.12)!important;
  background:rgba(255,255,255,.94)!important;
  color:#0f172a!important;
  padding:12px 14px;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  outline:none;
}
.hero,.profile-hero,.user-hero{
  background:linear-gradient(135deg,rgba(2,132,199,.26),rgba(15,118,110,.18)),rgba(255,255,255,.62)!important;
  border:1px solid rgba(255,255,255,.60)!important;
}
.hero .btn,.heroBtns .btn,.hero a.btn,.profile-hero .btn,.user-hero .btn{
  color:#0f172a!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(15,23,42,.12)!important;
  text-shadow:none!important;
}
.hero .btnPrimary,.heroBtns .btnPrimary,.hero a.btnPrimary,.profile-hero .btnPrimary,.user-hero .btnPrimary{
  color:#fff!important;
  background:linear-gradient(135deg,#0284c7,#0f766e)!important;
  border:1px solid rgba(255,255,255,.32)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.22)!important;
}
.hero .badge,.userMeta .badge{
  background:rgba(255,255,255,.94)!important;
  color:#075985!important;
  border:1px solid rgba(2,132,199,.22)!important;
}
.hero .name,.hero .sub,.userMeta .name,.userMeta .sub{
  color:#0f172a!important;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.tiles,.grid,.cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
@media(min-width:900px){.tiles,.grid,.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tiles .tile,a.tile,.shortcut,.menu-card{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:82px;
  padding:14px 12px;
  border-radius:20px!important;
  color:#fff!important;
  text-decoration:none!important;
  border:none!important;
  box-shadow:0 16px 32px -20px rgba(15,23,42,.55)!important;
}
.tiles .tile::before,a.tile::before{
  content:"";
  position:absolute;
  inset:-40px -40px auto auto;
  width:130px;
  height:130px;
  background:radial-gradient(circle,rgba(255,255,255,.32),transparent 62%);
  pointer-events:none;
}
.tiles .tile h3,.tiles .tile p,a.tile h3,a.tile p{
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.18);
}
.tiles .tile p,a.tile p{opacity:.92}
.tiles .tile .ico,a.tile .ico{
  background:rgba(255,255,255,.20)!important;
  border:1px solid rgba(255,255,255,.30)!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}
.tiles .tile .material-icons,a.tile .material-icons{color:#fff!important}
.tiles>a.tile:nth-child(1){background:linear-gradient(135deg,#0284c7,#0369a1)!important}
.tiles>a.tile:nth-child(2){background:linear-gradient(135deg,#0f766e,#115e59)!important}
.tiles>a.tile:nth-child(3){background:linear-gradient(135deg,#7c3aed,#5b21b6)!important}
.tiles>a.tile:nth-child(4){background:linear-gradient(135deg,#16a34a,#15803d)!important}
.tiles>a.tile:nth-child(5){background:linear-gradient(135deg,#d97706,#b45309)!important}
.tiles>a.tile:nth-child(6){background:linear-gradient(135deg,#0284c7,#0f766e)!important}
.tiles>a.tile:nth-child(7){background:linear-gradient(135deg,#f59e0b,#e11d48)!important}
.tiles>a.tile:nth-child(8){background:linear-gradient(135deg,#0891b2,#0284c7)!important}
.tiles>a.tile:nth-child(9){background:linear-gradient(135deg,#e11d48,#be123c)!important}
.tiles>a.tile:nth-child(10){background:linear-gradient(135deg,#0f172a,#334155)!important}
.bubble{
  background:#fff!important;
  color:#e11d48!important;
  border:2px solid rgba(255,255,255,.95)!important;
  box-shadow:0 8px 16px rgba(0,0,0,.20)!important;
}
.item{
  background:rgba(255,255,255,.90)!important;
  border:1px solid rgba(255,255,255,.62)!important;
  border-radius:20px!important;
  box-shadow:0 12px 28px -22px rgba(15,23,42,.38)!important;
}
.w3-blue,.w3-light-blue{
  background:rgba(255,255,255,.70)!important;
  color:#0f172a!important;
  border-radius:24px!important;
}
.footer-nav,.bottom-nav,.mobile-nav{
  position:fixed!important;
  bottom:0;left:0;right:0;
  z-index:9999;
  min-height:66px;
  display:flex;
  justify-content:space-around;
  align-items:center;
  gap:2px;
  padding:7px 6px calc(7px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.90)!important;
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-top:1px solid rgba(15,23,42,.08);
  box-shadow:0 -10px 24px -18px rgba(15,23,42,.35);
}
.footer-nav a,.bottom-nav a,.mobile-nav a,.footer-nav .nav-item{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:2px;
  text-align:center;
  color:#075985!important;
  text-decoration:none!important;
  font-weight:800;
  font-size:11px;
}
.footer-nav img,.bottom-nav img,.mobile-nav img{
  width:24px;height:24px;object-fit:contain;margin:0 auto 2px;display:block;
}
@media(max-width:640px){
  .app,.mc-app,.container,.main,.wrapper,.page,.dashboard,.content{
    max-width:480px;width:100%;padding-left:12px;padding-right:12px;
  }
  .heroInner{align-items:flex-start!important}
  .heroBtns{gap:8px!important}
  .heroBtns .btn,.hero .btn{min-height:44px;font-size:12px!important;padding:11px 10px!important}
  .tiles{gap:9px!important}
  .tiles .tile,a.tile{min-height:82px!important;padding:13px 10px!important;border-radius:20px!important}
  .tiles .tile h3,a.tile h3{font-size:12px!important;line-height:1.15!important}
  .tiles .tile p,a.tile p{font-size:10px!important;line-height:1.2!important}
  .tile .ico{width:40px!important;height:40px!important;border-radius:15px!important}
}
@media(max-width:360px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
