/*
Theme Name: Astra Child
Theme URI: https://engineguard.fr
Description: Child theme for Engine Guard France
Author: Engine Guard France
Template: astra
Version: 1.0
*/

html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* ===== HEADER PRINCIPAL ===== */
.eg-header-main {
  background: linear-gradient(to bottom, #d42b2b, #e8650a);
  padding: 30px 0;
  width: 100%;
}
.eg-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.eg-logo a {
  display: block;
  line-height: 0;
}
.eg-logo img {
  height: 160px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}
.eg-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eg-site-title {
  display: block;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  cursor: default;
  text-align: center;
}
.eg-site-desc {
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  margin: 8px 0 0 0;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ===== NAVIGATION DESKTOP ===== */
.eg-nav-desktop {
  background: #e8272a;
  width: 100%;
  display: block;
}
.eg-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.eg-menu li a {
  display: block;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 18px 20px;
  text-decoration: none;
  white-space: nowrap;
}
.eg-menu li:first-child a { padding-left: 5vw; }
.eg-menu li:last-child a { padding-right: 5vw; }
.eg-menu li a:hover {
  background: rgba(0,0,0,0.15);
}

/* ===== NAVIGATION MOBILE ===== */
.eg-nav-mobile {
  display: none !important;
  background: #e8272a;
  width: 100%;
}
.eg-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.eg-burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}
.eg-mobile-menu {
  display: none;
  background: #c0392b;
  width: 100%;
}
.eg-mobile-menu.open {
  display: block;
}
.eg-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eg-mobile-list li a {
  display: block;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 24px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.eg-mobile-list li a:hover {
  background: rgba(0,0,0,0.15);
}

/* ===== RESET ASTRA HEADER ===== */
.site-header,
#masthead.site-header {
  display: none !important;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 600px) {
  .eg-nav-desktop { display: none !important; }
  .eg-nav-mobile { display: block !important; }

  .eg-header-inner {
    padding: 0 16px !important;
    gap: 16px !important;
  }
  .eg-logo img {
    height: 80px !important;
  }
  .eg-site-title {
    font-size: 22px !important;
    letter-spacing: 0.5px !important;
  }
  .eg-site-desc {
    font-size: 12px !important;
  }
}