/*
Theme Name: Maloe Energies
Theme URI: https://maloe-energies.fr
Author: Codex
Description: Theme FSE sur mesure pour Maloe Energies.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 0.1.0
Text Domain: maloe-energies
*/

:root {
  --maloe-blue: #20458d;
  --maloe-blue-soft: #4d8fe7;
  --maloe-blue-pale: #eaf4ff;
  --maloe-orange: #ff8a1e;
  --maloe-orange-strong: #ff6a00;
  --maloe-yellow: #ffc94d;
  --maloe-ink: #17325f;
  --maloe-text: #48617f;
  --maloe-surface: rgba(255, 255, 255, 0.86);
  --maloe-shadow: 0 18px 45px rgba(38, 76, 143, 0.16);
  --maloe-shadow-soft: 0 10px 28px rgba(39, 86, 164, 0.12);
  --maloe-radius: 28px;
  --wp--preset--font-family--heading: "Avenir Next", "Segoe UI", sans-serif;
  --wp--preset--font-family--body: "Avenir Next", "Helvetica Neue", sans-serif;
}

body {
  background:
    radial-gradient(circle at top right, rgba(255, 191, 88, 0.3), transparent 26%),
    radial-gradient(circle at top left, rgba(95, 170, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #eef6ff 0%, #ffffff 18%, #f8fbff 60%, #eef5ff 100%);
  color: var(--maloe-text);
}

.wp-site-blocks {
  overflow: clip;
}

.maloe-page-shell {
  position: relative;
  padding: 28px 16px 48px;
}

.maloe-page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(77, 143, 231, 0.08), transparent 20%),
    radial-gradient(circle at 85% 8%, rgba(255, 201, 77, 0.2), transparent 18%),
    radial-gradient(circle at 90% 88%, rgba(255, 115, 0, 0.12), transparent 18%);
}

.maloe-frame {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 34px;
  box-shadow: 0 20px 70px rgba(42, 73, 132, 0.18);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.maloe-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(64, 118, 197, 0.08);
}

.maloe-brand {
  display: block;
  width: 188px;
  height: 62px;
  background: url("/wp-content/themes/maloe-energies/assets/images/logo-maloe.png") center left / contain no-repeat;
}

.maloe-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 14px;
  font-weight: 700;
}

.maloe-nav a {
  color: var(--maloe-ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.maloe-nav a:hover,
.maloe-nav a:focus {
  background: rgba(77, 143, 231, 0.12);
  color: var(--maloe-blue);
  transform: translateY(-1px);
}

.maloe-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--maloe-orange) 0%, var(--maloe-orange-strong) 100%);
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.28);
}

.maloe-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 42px;
}

.maloe-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 100%),
    url("/wp-content/themes/maloe-energies/assets/images/footer-wave-bg.png") center bottom / cover no-repeat;
  opacity: 0.98;
  pointer-events: none;
}

.maloe-hero-grid {
  position: relative;
  min-height: 620px;
  border-radius: 0 0 32px 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0.28) 64%, rgba(255, 255, 255, 0.08) 100%),
    url("/wp-content/themes/maloe-energies/assets/images/hero-house.png") center center / cover no-repeat;
}

.maloe-hero-copy {
  max-width: 560px;
  padding: 78px 32px 120px 32px;
}

.maloe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maloe-blue);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--maloe-shadow-soft);
}

.maloe-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maloe-orange) 0%, var(--maloe-yellow) 100%);
}

.maloe-card {
  position: relative;
  background: var(--maloe-surface);
  border: 1px solid rgba(101, 150, 223, 0.18);
  border-radius: var(--maloe-radius);
  box-shadow: var(--maloe-shadow-soft);
  backdrop-filter: blur(6px);
}

.maloe-section-card {
  padding: 46px 28px;
}

.maloe-solution-card {
  height: 100%;
  padding: 26px 18px 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.86) 100%);
}

.maloe-solution-card.is-featured {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 124, 0, 0.18);
}

.maloe-solution-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  padding: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(231, 243, 255, 0.9) 72%),
    linear-gradient(135deg, rgba(255, 181, 73, 0.22) 0%, rgba(77, 143, 231, 0.15) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(104, 155, 228, 0.14),
    0 14px 30px rgba(39, 90, 173, 0.14);
}

.maloe-solution-card.is-featured .maloe-solution-icon {
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.98), rgba(255, 241, 224, 0.96) 72%),
    linear-gradient(135deg, rgba(255, 168, 46, 0.22) 0%, rgba(255, 114, 0, 0.18) 100%);
}

.maloe-solution-icon img {
  width: 100%;
  height: 100%;
}

.maloe-section-title {
  position: relative;
  margin-bottom: 8px;
}

.maloe-section-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--maloe-yellow) 0%, var(--maloe-orange) 45%, var(--maloe-blue-soft) 100%);
}

.maloe-section-title.is-left::after {
  margin-left: 0;
}

.maloe-split-surface {
  position: relative;
  overflow: hidden;
  padding: 34px 24px;
  background:
    linear-gradient(135deg, rgba(239, 247, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 34%, rgba(240, 247, 255, 0.92) 100%);
}

.maloe-split-surface::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: -50px;
  height: 130px;
  background: radial-gradient(circle at 50% 100%, rgba(111, 174, 255, 0.22), rgba(111, 174, 255, 0) 70%);
}

.maloe-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.maloe-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}

.maloe-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--maloe-orange);
  font-weight: 700;
}

.maloe-service-banner {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--maloe-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.16) 66%, rgba(255, 255, 255, 0.08) 100%),
    url("/wp-content/themes/maloe-energies/assets/images/footer-house.png") center center / cover no-repeat;
  box-shadow: var(--maloe-shadow);
}

.maloe-service-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent),
    url("/wp-content/themes/maloe-energies/assets/images/footer-wave-bg.png") center bottom / cover no-repeat;
}

.maloe-service-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
  padding: 34px 24px 86px;
}

.maloe-areas-card {
  height: 100%;
  padding: 28px 24px;
}

.maloe-area-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.maloe-area-item::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maloe-orange) 0%, var(--maloe-yellow) 100%);
}

.maloe-cta-band {
  position: relative;
  overflow: hidden;
  padding: 44px 28px;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(31, 72, 145, 0.96) 0%, rgba(46, 109, 201, 0.94) 56%, rgba(255, 136, 28, 0.9) 100%);
  box-shadow: 0 24px 45px rgba(34, 71, 138, 0.22);
}

.maloe-inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 0 0 32px 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.2) 70%, rgba(255, 255, 255, 0.08) 100%),
    url("/wp-content/themes/maloe-energies/assets/images/hero-house.png") center center / cover no-repeat;
}

.maloe-inner-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 62px 28px 96px;
}

.maloe-inner-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.94), transparent),
    url("/wp-content/themes/maloe-energies/assets/images/footer-wave-bg.png") center bottom / cover no-repeat;
}

.maloe-cta-band::before,
.maloe-cta-band::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.maloe-cta-band::before {
  width: 340px;
  height: 340px;
  top: -220px;
  right: -80px;
}

.maloe-cta-band::after {
  width: 220px;
  height: 220px;
  bottom: -140px;
  left: -40px;
}

.maloe-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(232, 241, 255, 0.96) 100%);
}

.maloe-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 140px;
  background: url("/wp-content/themes/maloe-energies/assets/images/footer-wave-bg.png") center top / cover no-repeat;
  opacity: 0.95;
}

.maloe-footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 110px;
}

.maloe-footer-brand {
  display: inline-block;
  width: 170px;
  height: 56px;
  background: url("/wp-content/themes/maloe-energies/assets/images/logo-maloe.png") center left / contain no-repeat;
}

.maloe-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.maloe-footer-meta a,
.maloe-footer-meta span {
  color: var(--maloe-ink);
  text-decoration: none;
  font-size: 14px;
}

.maloe-socials {
  display: flex;
  gap: 10px;
}

.maloe-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--maloe-blue);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--maloe-shadow-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.maloe-contact-card {
  padding: 24px;
}

.maloe-process-card,
.maloe-highlight-card {
  height: 100%;
  padding: 28px 22px;
}

.maloe-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--maloe-blue) 0%, var(--maloe-blue-soft) 100%);
  box-shadow: var(--maloe-shadow-soft);
}

.maloe-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.maloe-tech-item {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 246, 255, 0.88) 100%);
  border: 1px solid rgba(77, 143, 231, 0.14);
  box-shadow: var(--maloe-shadow-soft);
}

.maloe-tech-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.maloe-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.maloe-legal-links a {
  color: var(--maloe-text);
  text-decoration: none;
}

.maloe-button.is-style-outline-light .wp-element-button,
.maloe-button.is-style-outline-light.wp-block-button .wp-element-button {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.wp-block-button__link {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 129, 12, 0.18);
}

@media (max-width: 980px) {
  .maloe-header {
    position: relative;
  }

  .maloe-hero-grid,
  .maloe-inner-hero,
  .maloe-service-banner {
    background-position: 68% center;
  }

  .maloe-hero-copy,
  .maloe-inner-hero-copy,
  .maloe-service-banner-copy {
    max-width: 100%;
    padding-right: 24px;
  }

  .maloe-nav {
    justify-content: flex-start;
  }

  .maloe-legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 781px) {
  .maloe-page-shell {
    padding: 10px 8px 28px;
  }

  .maloe-frame {
    border-radius: 22px;
  }

  .maloe-brand {
    width: 164px;
    height: 52px;
  }

  .maloe-hero-grid {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.38) 100%),
      url("/wp-content/themes/maloe-energies/assets/images/hero-house.png") 62% center / cover no-repeat;
  }

  .maloe-hero-copy {
    padding: 42px 20px 130px;
  }

  .maloe-inner-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.38) 100%),
      url("/wp-content/themes/maloe-energies/assets/images/hero-house.png") 62% center / cover no-repeat;
  }

  .maloe-inner-hero-copy {
    padding: 42px 20px 126px;
  }

  .maloe-section-card,
  .maloe-split-surface,
  .maloe-cta-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .maloe-solution-card.is-featured {
    transform: none;
  }

  .maloe-footer-inner {
    padding-top: 90px;
  }

  .maloe-tech-grid {
    grid-template-columns: 1fr;
  }
}
