/* ─── MH GROUP CI — Main Stylesheet ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:   #008080;
  --orange: #F15A24;
  --radius: 1rem;
  --shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 99px; }

/* ── Typography ── */
body { font-family: 'Inter', 'Montserrat', sans-serif; }

/* ──────────── GLASSMORPHISM ──────────── */
.glass {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dark .glass {
  background: rgba(15,25,40,.55);
  border-color: rgba(255,255,255,.08);
}

/* ──────────── GRADIENT BG ──────────── */
.bg-hero {
  background: linear-gradient(135deg, #005f5f 0%, #008080 40%, #0d9488 70%, #f15a24 100%);
}
.dark .bg-hero {
  background: linear-gradient(135deg, #002828 0%, #004040 40%, #005f5f 70%, #8b2e0f 100%);
}

/* ──────────── BUTTONS ──────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover { background: #c74d1e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(241,90,36,.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ──────────── NAVBAR ──────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: .85rem 0;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,128,128,.15);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: background .3s;
}
.dark .navbar {
  background: rgba(10,20,35,.85);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: .9rem;
  padding: .3rem .1rem;
  color: #374151;
  transition: color .2s;
  text-decoration: none;
}
.dark .nav-link { color: #d1d5db; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s ease;
  border-radius: 99px;
}
.nav-link:hover, .nav-link.router-link-active { color: var(--teal); }
.dark .nav-link:hover, .dark .nav-link.router-link-active { color: #00cccc; }
.nav-link:hover::after, .nav-link.router-link-active::after { width: 100%; }

/* ──────────── HERO ──────────── */
.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 99px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ──────────── CARDS ──────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.dark .service-card {
  background: #111827;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.dark .service-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.service-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.property-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
}
.dark .property-card { background: #1f2937; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.14); }

/* ──────────── SECTION ──────────── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}
.divider {
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 99px;
  margin: .75rem 0 1.5rem;
}

/* ──────────── STATS ──────────── */
.stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

/* ──────────── FORM ──────────── */
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.dark .form-input {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,128,128,.15); }
.dark .form-input:focus { box-shadow: 0 0 0 3px rgba(0,196,196,.15); }

/* ──────────── MODAL ──────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal-box {
  background: #fff;
  border-radius: calc(var(--radius) * 1.5);
  max-width: 560px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  animation: slideUp .3s ease;
}
.dark .modal-box { background: #111827; }

/* ──────────── FILTER TABS ──────────── */
.filter-tab {
  padding: .45rem 1.1rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s;
  background: transparent;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.dark .filter-tab { color: #9ca3af; }
.dark .filter-tab:hover, .dark .filter-tab.active { background: var(--teal); color: #fff; }

/* ──────────── TOGGLE SWITCH ──────────── */
.toggle-pill {
  width: 44px; height: 24px;
  background: #d1d5db;
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background .25s;
}
.toggle-pill.on { background: var(--teal); }
.toggle-pill::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-pill.on::after { transform: translateX(20px); }

/* ──────────── BADGE ──────────── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-teal  { background: rgba(0,128,128,.12); color: var(--teal); }
.badge-orange{ background: rgba(241,90,36,.12); color: var(--orange); }

/* ──────────── MOBILE NAV ──────────── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid rgba(0,128,128,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 1rem;
}
.dark .mobile-menu { background: #111827; }
.mobile-menu.open { display: block; }

/* ──────────── ANIMATIONS ──────────── */
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp    { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight{ from { opacity: 0; transform: translateX(48px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn    { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes float      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatSlow  { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(6deg); } }
@keyframes pulse-ring {
  0%   { transform: scale(.85); box-shadow: 0 0 0 0 rgba(0,128,128,.6); }
  70%  { transform: scale(1);   box-shadow: 0 0 0 16px rgba(0,128,128,0); }
  100% { transform: scale(.85); box-shadow: 0 0 0 0 rgba(0,128,128,0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes tickerBadge {
  0%   { opacity:.7; transform: scale(1); }
  50%  { opacity:1;  transform: scale(1.04); }
  100% { opacity:.7; transform: scale(1); }
}
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes particle1 { 0%,100%{transform:translate(0,0) scale(1);opacity:.18} 33%{transform:translate(40px,-60px) scale(1.2);opacity:.28} 66%{transform:translate(-30px,-20px) scale(.9);opacity:.12} }
@keyframes particle2 { 0%,100%{transform:translate(0,0) scale(1);opacity:.12} 33%{transform:translate(-50px,40px) scale(.8);opacity:.22} 66%{transform:translate(60px,-10px) scale(1.1);opacity:.16} }
@keyframes particle3 { 0%,100%{transform:translate(0,0) scale(1);opacity:.15} 50%{transform:translate(30px,50px) scale(1.3);opacity:.25} }
@keyframes numberCount { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* ── Utilitaires d'animation ── */
.float        { animation: float 4s ease-in-out infinite; }
.float-slow   { animation: floatSlow 6s ease-in-out infinite; }
.fade-in      { animation: fadeIn .5s ease; }
.slide-up     { animation: slideUp .4s ease; }
.pulse-ring   { animation: pulse-ring 2.4s ease-out infinite; }
.spin-slow    { animation: spinSlow 20s linear infinite; }
.ticker-badge { animation: tickerBadge 2.5s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.scale-in   { transform: scale(.9); }
.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
/* Staggered children */
.stagger > * { opacity:0; transform:translateY(36px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.15s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.25s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.35s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.45s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.55s; }

/* ── Hero gradient animé ── */
.bg-hero-animated {
  background: linear-gradient(300deg, #005f5f, #008080, #0d9488, #f15a24, #005f5f);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}
.dark .bg-hero-animated {
  background: linear-gradient(300deg, #002828, #004040, #005f5f, #8b2e0f, #002828);
  background-size: 300% 300%;
}

/* ── Particules hero ── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-particle-1 { width:300px; height:300px; top:-60px; right:-60px; background:rgba(255,255,255,.06); animation: particle1 9s ease-in-out infinite; }
.hero-particle-2 { width:200px; height:200px; bottom:-40px; left:-40px; background:rgba(255,255,255,.05); animation: particle2 11s ease-in-out infinite; }
.hero-particle-3 { width:140px; height:140px; top:40%; right:20%; background:rgba(241,90,36,.12); animation: particle3 7s ease-in-out infinite; }
.hero-particle-4 { width:80px; height:80px; top:20%; left:5%; background:rgba(255,255,255,.08); animation: floatSlow 8s ease-in-out infinite; }

/* ── Shimmer sur les cards ── */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}
.shimmer-hover::after {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .25s;
}
.shimmer-hover:hover::after {
  opacity: 1;
  animation: shimmer .6s linear;
}

/* ── Divider animé ── */
.divider-anim {
  width: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 99px;
  margin: .75rem 0 1.5rem;
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
.divider-anim.visible { width: 64px; }

/* ── Counter number ── */
.counter-num {
  display: inline-block;
  animation: numberCount .6s ease both;
}

/* Section padding utility */
.section-pad { padding: 5rem 0; }

/* Account card */
.account-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.account-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { min-height: 0; padding: 4rem 0; }
  .section-pad { padding: 3rem 0; }
}
