/* ===== NOVADIA ÉNERGIE — Custom Overrides ===== */

/* ===== GLOBAL BASE ===== */
img { max-width: 100%; height: auto; }

/* ===== GLOBAL SCALE-UP (heloosun uses 18px base) ===== */
html {
  font-size: 18px;
}
body {
  font-size: 18px;
  line-height: 1.7;
  font-family: var(--font-primary, "Exo", system-ui, sans-serif);
  color: #1F1F25;
}

/* ===== LOGO ===== */
.novadia-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.novadia-logo .logo-name {
  font-size: 1.55rem;
  font-weight: 900;
  color: #1F1F25;
  letter-spacing: -0.5px;
  font-family: system-ui, -apple-system, sans-serif;
}
.novadia-logo .logo-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ===== MOBILE HEADER ===== */
.mobile-header-container {
  display: none;
}

/* When active on mobile: single horizontal bar */
@media (max-width: 991.98px) {
  body { padding-top: 72px !important; }

  .mobile-header-container {
    display: flex !important;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 0 16px;
    height: 72px;
  }
  .mobile-header-line1 {
    flex: 1;
    display: flex;
    align-items: center;
  }
  .mobile-header-separator { display: none; }
  .mobile-header-line2 {
    display: flex;
    align-items: center;
  }
  .mobile-header-spacer { display: none; }
  .mobile-logo img {
    height: 52px !important;
    width: auto;
  }
  .mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== RGE STRIP ===== */
.rge-strip {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}
.rge-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.rge-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rge-badge {
  background: #059669;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.rge-note {
  font-size: 0.88rem;
  color: #6b7280;
}

/* ===== PROCESS STEPS ===== */
.process-step-n {
  display: flex;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.process-step-n:last-child { border-bottom: none; }
.step-number {
  font-size: 4.5rem;
  font-weight: 900;
  color: #059669;
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
}
.step-body h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}
.step-body p { color: #9ca3af; margin: 0; font-size: 1rem; }

/* ===== STATS ===== */
.stat-item { text-align: center; padding: 32px; }
.stat-number { font-size: 3.5rem; font-weight: 900; color: #059669; line-height: 1; }
.stat-label { font-size: 1rem; color: #6b7280; margin-top: 8px; }

/* ===== WHY-US LIST ===== */
.why-list-item {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}
.why-list-item:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.why-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 1.5rem;
}
.why-text h4 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: #1F1F25; }
.why-text p { margin: 0; font-size: 0.95rem; color: #6b7280; line-height: 1.65; }

/* ===== SERVICE CARD WITH IMAGE ===== */
.service-img-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-img-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  transform: translateY(-6px);
}
.service-img-card .card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.service-img-card .card-body-n {
  padding: 30px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-img-card .card-icon-n {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.service-img-card h3 { font-size: 1.2rem; font-weight: 700; color: #1F1F25; margin: 0 0 12px; }
.service-img-card p { font-size: 1rem; color: #6b7280; line-height: 1.65; flex: 1; }
.service-img-card .card-link-n {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
}
.service-img-card .card-link-n:hover { color: #047857; }

/* ===== SERVICE DETAIL (services.html) ===== */
.service-block {
  padding: 110px 0;
  border-bottom: 1px solid #f0f4f8;
}
.service-block:last-child { border-bottom: none; }
.service-block .service-text-wrap { padding: 40px; }
.service-block .benefit-list { list-style: none; padding: 0; margin: 24px 0; }
.service-block .benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 1rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.6;
}
.service-block .benefit-list li:last-child { border-bottom: none; }
.service-block .benefit-list li i { color: #059669; margin-top: 4px; flex-shrink: 0; font-size: 1rem; }
.service-block .service-img-wrap img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}
.service-block .service-badge {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.s-badge {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== EQUAL HEIGHT CARD ROWS ===== */
.testimonials-row > [class*="col"] {
  display: flex;
  flex-direction: column;
}
.testimonials-row > [class*="col"] > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.testimonials-row > [class*="col"] > div p {
  flex: 1;
}

/* ===== CERTIFICATION CARDS ===== */
.cert-card-n {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}
.cert-card-n:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: #059669;
}
.cert-card-n .cert-code {
  font-size: 2rem;
  font-weight: 900;
  color: #059669;
  font-family: system-ui, sans-serif;
  margin-bottom: 14px;
}
.cert-card-n p { font-size: 0.95rem; color: #6b7280; line-height: 1.65; margin: 0; }

/* ===== CONTACT INFO CARD ===== */
.contact-info-card {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-radius: 18px;
  padding: 44px 36px;
  color: white;
  height: 100%;
}
.contact-info-card .info-item { margin-bottom: 32px; display: flex; gap: 18px; align-items: flex-start; }
.contact-info-card .info-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.25rem;
}
.contact-info-card .info-label {
  font-size: 0.72rem; opacity: 0.8; margin-bottom: 5px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.contact-info-card .info-value { font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.contact-info-card .info-value a { color: white; text-decoration: none; }
.contact-info-card .info-value a:hover { text-decoration: underline; }

/* ===== BREADCRUMB AREA ===== */
.rts-bread-crumb-area {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rts-bread-crumb-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner/17.jpg') center/cover no-repeat;
  opacity: 0.22;
}
.rts-bread-crumb-area .container { position: relative; z-index: 2; padding: 90px 15px; }
.rts-bread-crumb-area .page-title { font-size: 3rem; font-weight: 800; color: white; margin: 0 0 16px; line-height: 1.2; }
.rts-bread-crumb-area .breadcrumb-nav a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 1rem; }
.rts-bread-crumb-area .breadcrumb-nav a:hover { color: #10b981; }
.rts-bread-crumb-area .breadcrumb-nav .separator { color: rgba(255,255,255,0.4); margin: 0 10px; }
.rts-bread-crumb-area .breadcrumb-nav .current { color: #10b981; font-size: 1rem; }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 34px;
  right: 34px;
  width: 52px;
  height: 52px;
  background: #059669;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(5,150,105,0.4);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: #047857; transform: translateY(-3px); }

/* ===== BUTTON FIXES ===== */
/* heloosun's ::before is white and scaleX(1) by default — hides it on transparent buttons */
.rts-btn::before {
  background: transparent !important;
  transform: scaleX(0) !important;
}
.rts-btn.btn-primary {
  background: #059669;
  color: #fff;
  border: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.rts-btn.btn-primary:hover {
  background: #047857 !important;
  color: #fff !important;
}
.rts-btn.btn-border {
  background: transparent !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rts-btn.btn-border:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* ===== AID TAGS ===== */
.aid-tag-n {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 5px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Tablet (≤ 991px) */
@media (max-width: 991.98px) {
  html { font-size: 16px; }

  .rts-section-gap { padding: 72px 0 !important; }
  .rts-section-gapBottom { padding-bottom: 72px !important; }

  .service-block { padding: 72px 0 !important; }
  .service-block .service-text-wrap { padding: 24px 0; }
  .service-block .service-img-wrap { margin-bottom: 32px; }

  .rts-bread-crumb-area .page-title { font-size: 2.2rem; }
  .rts-bread-crumb-area .container { padding: 70px 15px; }

  .service-img-card .card-img { height: 220px; }
  .process-step-n { padding: 28px 0; }

  .stat-number { font-size: 2.8rem; }
}

/* Phone landscape / large phone (≤ 767px) */
@media (max-width: 767px) {
  html { font-size: 15px; }

  /* Hero */
  .rts-banner-area { min-height: 500px !important; }
  .rts-banner-area > .container { padding-top: 90px !important; padding-bottom: 60px !important; }
  .rts-banner-area h1 { font-size: 2.3rem !important; line-height: 1.2 !important; margin-bottom: 20px !important; }
  .rts-banner-area > .container > .row > div:first-child > p:first-child { font-size: 0.85rem !important; }
  .rts-banner-area > .container > .row > div:first-child > p:last-of-type { font-size: 1rem !important; margin-bottom: 28px !important; }
  .rts-banner-area .rts-btn { padding: 14px 28px !important; font-size: 0.95rem !important; }

  /* Section titles (inline styles need !important) */
  h2[style*="font-size:2.8rem"] { font-size: 2rem !important; }
  h2[style*="font-size:2.6rem"] { font-size: 1.9rem !important; }
  h2[style*="font-size:2.3rem"] { font-size: 1.8rem !important; }
  h3[style*="font-size:1.4rem"] { font-size: 1.2rem !important; }

  /* "Qui sommes-nous" inner card */
  div[style*="padding:40px"] { padding: 24px !important; }

  /* Section gap */
  .rts-section-gap { padding: 56px 0 !important; }
  .rts-section-gapBottom { padding-bottom: 56px !important; }

  /* Breadcrumb */
  .rts-bread-crumb-area { min-height: 280px !important; }
  .rts-bread-crumb-area .page-title { font-size: 1.9rem !important; }
  .rts-bread-crumb-area .container { padding: 50px 15px !important; }

  /* Service blocks */
  .service-block { padding: 52px 0 !important; }
  .service-block .service-text-wrap { padding: 0 !important; margin-top: 28px; }

  /* Service cards */
  .service-img-card .card-img { height: 200px; }
  .service-img-card .card-body-n { padding: 22px; }

  /* Stats */
  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 2.2rem; }

  /* Process steps */
  .process-step-n { flex-direction: column; gap: 12px; padding: 24px 0; }
  .step-number { font-size: 3rem; min-width: auto; }

  /* Why-list */
  .why-list-item { padding: 18px; gap: 14px; }

  /* Contact info card */
  .contact-info-card { padding: 28px 22px; }
  .contact-info-card .info-item { margin-bottom: 22px; }

  /* Cert cards */
  .cert-card-n { padding: 28px 18px; }
  .cert-card-n .cert-code { font-size: 1.6rem; }

  /* RGE strip */
  .rge-strip .container { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Footer logo */
  .footer-logo img { height: 80px !important; }
}

/* Small phone (≤ 480px) */
@media (max-width: 480px) {
  html { font-size: 14px; }

  /* Hero */
  .rts-banner-area h1 { font-size: 1.9rem !important; }
  .rts-banner-area > .container { padding-top: 80px !important; padding-bottom: 48px !important; }
  .rts-banner-area div[style*="display:flex;flex-wrap:wrap"] { flex-direction: column; }
  .rts-banner-area .rts-btn { width: 100% !important; text-align: center; padding: 14px 20px !important; }

  /* Section titles */
  h2[style*="font-size:2.8rem"] { font-size: 1.75rem !important; }
  h2[style*="font-size:2.6rem"] { font-size: 1.65rem !important; }

  /* Service text wrap */
  .service-block .service-text-wrap { padding: 0 !important; }

  /* Breadcrumb */
  .rts-bread-crumb-area .page-title { font-size: 1.6rem !important; }

  /* Contact form 2-col to 1-col (also in inline styles) */
  .form-row-2 { grid-template-columns: 1fr !important; }

  /* Back to top */
  #back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
