/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.1
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Inter", sans-serif !important; color: #222; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Hide Hello Elementor default header */
.site-header { display: none !important; }

/* ===== MC HEADER ===== */
#mc-header {
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
}
.mc-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 68px;
}

/* LOGO */
.mc-logo {
  display: flex;
  flex-direction: column;
  margin-right: 32px;
  flex-shrink: 0;
}
.mc-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #1A237E;
  letter-spacing: .3px;
  line-height: 1;
}
.mc-logo-tag {
  font-size: 9px;
  color: #aaa;
  letter-spacing: .3px;
  margin-top: 2px;
}

/* DEVIS CTA */
.mc-btn-devis {
  margin-left: auto;
  flex-shrink: 0;
  background: #1A237E;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  font-family: "Inter", sans-serif;
}
.mc-btn-devis:hover { background: #2ECC40; }

/* BURGER */
.mc-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  padding: 4px;
}
.mc-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

/* ===== NAVIGATION ===== */
.mc-nav { flex: 1; }
.mc-menu {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 0;
}

/* TOP LEVEL ITEMS */
.mc-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 68px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.mc-item > a:hover,
.mc-item.mc-open > a {
  color: #1A237E;
  border-bottom-color: #2ECC40;
}
.mc-arrow {
  font-size: 8px;
  color: #bbb;
  transition: transform .2s;
}
.mc-item.mc-open .mc-arrow { transform: rotate(180deg); }

/* ===== SIMPLE DROPDOWN ===== */
.mc-has-dropdown { position: relative; }
.mc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-top: 3px solid #2ECC40;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
  padding: 8px;
  min-width: 240px;
  z-index: 99999;
}
.mc-has-dropdown.mc-open .mc-dropdown { display: block; }
.mc-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.mc-dropdown a:hover { background: #F4F7F9; color: #1A237E; }
.mc-dropdown-divider { height: 1px; background: #F0F0F0; margin: 6px 8px; }
.mc-dropdown-label {
  display: block;
  padding: 6px 12px 2px;
  font-size: 9px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* ===== MEGA MENU ===== */
.mc-has-mega { position: static; }
.mc-mega {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-top: 3px solid #2ECC40;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 99998;
  display: none;
  flex-direction: row;
}
.mc-has-mega.mc-open .mc-mega {
  display: flex !important;
}

/* BANNER LEFT */
.mc-mega-banner {
  width: 230px;
  min-width: 230px;
  background: linear-gradient(160deg, #0D1B2A 0%, #1A3A5C 100%);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.mc-mega-banner::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(46,204,64,.07);
}
.mc-mega-tag {
  display: inline-block;
  background: rgba(46,204,64,.15);
  color: #2ECC40;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .8px;
  text-transform: uppercase;
  width: fit-content;
}
.mc-mega-banner h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-top: 8px;
}
.mc-mega-banner p {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-top: 4px;
}
.mc-mega-cta {
  display: inline-block;
  background: #2ECC40;
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 12px;
  transition: background .2s;
  width: fit-content;
}
.mc-mega-cta:hover { background: #27ae60; }

/* GRID RIGHT */
.mc-mega-grid {
  flex: 1;
  padding: 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
}

/* CARDS */
.mc-mega-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
  color: #1C1C1C;
}
.mc-mega-card:hover {
  background: #F4F7F9;
  border-color: #E8E8E8;
  color: #1A237E;
}

/* THUMBNAIL - replaced by image later */
.mc-thumb {
  display: block;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E8EAF6, #C5CAE9);
  flex-shrink: 0;
  /* When image added: background-image: url(...); background-size: cover; */
}
.mc-mega-card:hover .mc-thumb {
  background: linear-gradient(135deg, #C5CAE9, #9FA8DA);
}

.mc-card-text { display: flex; flex-direction: column; gap: 2px; }
.mc-card-text strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}
.mc-card-text em {
  font-size: 10px;
  color: #888;
  font-style: normal;
  display: block;
  line-height: 1.3;
}
.mc-mega-card:hover .mc-card-text em { color: #1A237E; }

/* Position mega container relative to header */
#mc-header { position: relative; }
#mc-header .mc-nav { position: static; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .mc-nav { display: none; }
  .mc-nav.mc-mobile-open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-top: 1px solid #E8E8E8; padding: 16px; z-index: 99999; }
  .mc-menu { flex-direction: column; height: auto; gap: 0; }
  .mc-item > a { height: auto; padding: 12px 8px; border-bottom: 1px solid #F0F0F0; width: 100%; }
  .mc-dropdown, .mc-mega { position: static; display: none; box-shadow: none; border: none; }
  .mc-has-dropdown.mc-open .mc-dropdown, .mc-has-mega.mc-open .mc-mega { display: block !important; }
  .mc-mega { flex-direction: column; }
  .mc-mega-banner { width: 100%; }
  .mc-mega-grid { grid-template-columns: 1fr; }
  .mc-burger { display: flex; }
  .mc-btn-devis { display: none; }
  .mc-logo { margin-right: auto; }
}
