*, *::before, *::after { box-sizing: border-box; }

:root {
  --graphite: #10201F;
  --cream: #F6F1E8;
  --sand: #E8DDC9;
  --muted: #50605B;
  --body-text: #21322F;

  --sg-orange: #F28A00;
  --sg-orange-soft: #FFB347;
  --sg-turquoise: #10A8BD;
  --sg-turquoise-soft: #6ED6E2;
  --sg-ink: #111111;

  --solar: var(--sg-orange);
  --electric: var(--sg-turquoise);
  --thermal: #42B883;
  --wood: #B46A3C;

  --white-soft: rgba(255, 255, 255, 0.78);
  --border-soft: rgba(16, 32, 31, 0.12);
  --shadow-soft: 0 24px 80px rgba(16, 32, 31, 0.12);
  --shadow-strong: 0 34px 120px rgba(16, 32, 31, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--body-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wp-site-blocks { overflow-x: hidden; }
body.home .wp-block-post-title,
body.front-page .wp-block-post-title,
body.page .entry-title { display: none !important; }

.sg-page {
  background:
    radial-gradient(circle at 8% 20%, rgba(16,168,189,.055), transparent 24%),
    radial-gradient(circle at 90% 14%, rgba(242,138,0,.06), transparent 28%),
    var(--cream);
}

/* Accessibilité / motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Header */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246,241,232,.88);
  border-bottom: 1px solid rgba(16,32,31,.08);
  backdrop-filter: blur(18px);
}
body.admin-bar .sg-header { top: 32px; }

.sg-header-inner {
  width: min(1760px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.sg-brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  min-height: 52px;
  color: var(--graphite);
  text-decoration: none;
}
.sg-brand-logo {
  display: block;
  width: 218px;
  height: 64px;
  background-image: url("../img/logo-texte.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.sg-brand-text-fallback {
  display: none;
  font-weight: 900;
  color: var(--graphite);
}

.sg-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: .98rem;
}
.sg-nav a {
  color: rgba(16,32,31,.82);
  text-decoration: none;
  font-weight: 700;
}
.sg-nav a:hover { color: var(--sg-turquoise); }
.sg-nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--cream) !important;
  box-shadow: 0 18px 40px rgba(16,32,31,.14);
}

/* Buttons */
.sg-button,
.wp-block-button.sg-button-primary .wp-block-button__link,
.sg-button-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background: linear-gradient(135deg, var(--sg-turquoise), #087D8D);
  color: #fff;
  border-radius: 999px;
  padding: .98rem 1.42rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(16,168,189,.22);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sg-button:hover,
.wp-block-button.sg-button-primary .wp-block-button__link:hover,
.sg-button-primary .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(16,168,189,.28);
}

.sg-button-secondary,
.wp-block-button.sg-button-secondary .wp-block-button__link,
.sg-button-secondary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background: rgba(255,255,255,.78);
  color: var(--graphite);
  border: 1px solid rgba(16,168,189,.32);
  border-radius: 999px;
  padding: .98rem 1.42rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease;
}
.sg-button-secondary:hover {
  border-color: rgba(242,138,0,.5);
  transform: translateY(-2px);
}

/* Layout */
.sg-container {
  width: min(1640px, calc(100% - clamp(32px, 5vw, 96px)));
  margin-inline: auto;
}
.sg-section {
  position: relative;
  padding-top: clamp(70px, 9vw, 128px);
  padding-bottom: clamp(70px, 9vw, 128px);
}
.sg-section-box {
  position: relative;
  overflow: hidden;
  width: min(1760px, calc(100% - 32px));
  margin-inline: auto;
  border-radius: 58px;
  background:
    radial-gradient(circle at 18% 18%, rgba(242,138,0,.16), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(16,168,189,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.24));
  border: 1px solid rgba(16,32,31,.08);
}
.sg-section-box::before,
.energy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,32,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,32,31,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}
.sg-section-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(320px,.55fr);
  gap: clamp(2rem,5vw,5rem);
  align-items: end;
  margin-bottom: clamp(2rem,4vw,4rem);
}
.sg-section-eyebrow,
.energy-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(16,168,189,.08);
  border: 1px solid rgba(16,168,189,.25);
  color: #087D8D;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.sg-section-eyebrow::before,
.energy-kicker::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sg-orange), var(--sg-turquoise));
  box-shadow: 0 0 0 5px rgba(16,168,189,.10);
}
.sg-section-eyebrow.orange {
  background: rgba(242,138,0,.09);
  border-color: rgba(242,138,0,.24);
  color: #9C5900;
}
.sg-section-eyebrow.orange::before { background: var(--sg-orange); box-shadow: 0 0 0 5px rgba(242,138,0,.12); }

.sg-section-title {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: clamp(2.35rem, 4.6vw, 5rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 500;
}
.sg-section-lead {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  line-height: 1.72;
}

/* Hero */
.energy-hero {
  position: relative;
  overflow: hidden;
  width: min(1760px, calc(100% - 32px));
  max-width: none !important;
  margin-inline: auto;
  min-height: 74vh;
  padding-top: clamp(64px,7vw,112px);
  padding-bottom: clamp(64px,7vw,112px);
  border-radius: 0 0 58px 58px;
  background:
    radial-gradient(circle at 78% 22%, rgba(242,138,0,.30), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(16,168,189,.22), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(66,184,131,.18), transparent 34%),
    linear-gradient(135deg, #F8F2E7 0%, #EEF2EA 100%);
}
.energy-hero > * { position: relative; z-index: 2; }
.hero-inner {
  width: min(1640px, calc(100% - clamp(32px, 5vw, 96px))) !important;
  max-width: none !important;
  margin-inline: auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(380px,.85fr) minmax(560px,1.15fr);
  gap: clamp(2.5rem,5vw,6rem);
  align-items: center;
  width: 100%;
  max-width: none !important;
}
.hero-title {
  max-width: 680px;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: clamp(2.55rem, 4.15vw, 4.65rem);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: .94;
}
.hero-lead {
  max-width: 660px;
  font-size: clamp(1.04rem, 1.08vw, 1.18rem);
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero visual */
.sg-hero-composition {
  position: relative;
  min-height: 500px;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  border-radius: 42px;
  padding: clamp(1.35rem,2.3vw,2rem);
  background:
    radial-gradient(circle at 75% 20%, rgba(242,138,0,.24), transparent 24%),
    radial-gradient(circle at 20% 80%, rgba(66,184,131,.16), transparent 26%),
    radial-gradient(circle at 80% 85%, rgba(16,168,189,.20), transparent 24%),
    rgba(255,255,255,.55);
  border: 1px solid rgba(16,32,31,.12);
  box-shadow: 0 34px 120px rgba(16,32,31,.14);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: sg-soft-float 8s ease-in-out infinite;
}
.sg-hero-composition::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(16,32,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,32,31,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}
.sg-hero-panel {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  padding: clamp(1.25rem,2vw,1.65rem);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 24px 60px rgba(16,32,31,.10);
}
.sg-hero-panel-main {
  width: min(100%,540px);
  margin-left: auto;
  margin-top: .8rem;
  border-top: 4px solid var(--sg-orange);
}
.sg-hero-panel-secondary {
  width: min(100%,500px);
  margin-top: 1.25rem;
  margin-left: 0;
  border-top: 4px solid var(--sg-turquoise);
}
.sg-panel-kicker {
  display: inline-flex;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(16,32,31,.06);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
  margin-bottom: .9rem;
}
.sg-hero-panel h3 {
  margin: 0 0 .8rem 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.sg-hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}
.sg-chip-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.sg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(16,32,31,.12);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
}
.sg-chip-solar { border-color: rgba(242,138,0,.90); color: #8A4D00; }
.sg-chip-electric { border-color: rgba(16,168,189,.90); color: #087D8D; }
.sg-chip-thermal { border-color: rgba(66,184,131,.90); color: #26724F; }
.sg-chip-wood { border-color: rgba(180,106,60,.85); color: #8A4A27; }
.sg-hero-mini-badges { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.sg-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: .65rem .95rem;
  border-radius: 999px;
  background: rgba(16,32,31,.92);
  color: var(--cream);
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(16,32,31,.14);
}
.sg-mini-badge:nth-child(2) { background: var(--sg-turquoise); }
.sg-mini-badge:nth-child(3) { background: var(--sg-orange); }

/* PV section */
.sg-priority-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr);
  gap: clamp(1.4rem,3vw,2.6rem);
  align-items: stretch;
}
.sg-priority-main-card {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  padding: clamp(1.5rem,3vw,2.4rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(242,138,0,.24), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(16,168,189,.18), transparent 32%),
    rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 30px 90px rgba(16,32,31,.12);
  overflow: hidden;
}
.sg-priority-main-card::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(16,32,31,.10);
}
.sg-priority-main-card::after {
  content: "";
  position: absolute;
  left: 50%; top: 52%;
  width: 62%; height: 62%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(242,138,0,.42), rgba(16,168,189,.35), rgba(66,184,131,.24), rgba(242,138,0,.42));
  filter: blur(34px);
  opacity: .42;
}
.sg-energy-core { position: relative; z-index: 2; height: 100%; min-height: 430px; }
.sg-core-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 48px;
  padding: .7rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(16,32,31,.12);
  box-shadow: 0 18px 44px rgba(16,32,31,.11);
  color: var(--graphite);
  font-weight: 900;
  font-size: .9rem;
  text-align: center;
}
.sg-core-node-main {
  left: 50%; top: 47%;
  transform: translate(-50%, -50%);
  min-width: 150px;
  min-height: 64px;
  background: var(--graphite);
  color: var(--cream);
}
.sg-core-node-pv { left: 50%; top: 5%; transform: translateX(-50%); border-color: rgba(242,138,0,.85); color: #8A4D00; }
.sg-core-node-battery { left: 0; top: 38%; border-color: rgba(16,168,189,.85); color: #087D8D; }
.sg-core-node-irve { right: 0; top: 38%; border-color: rgba(16,168,189,.85); color: #087D8D; }
.sg-core-node-usage { left: 50%; bottom: 5%; transform: translateX(-50%); border-color: rgba(66,184,131,.85); color: #26724F; }
.sg-core-line {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  width: 72%; height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(16,32,31,.18);
}
.sg-core-line::before, .sg-core-line::after {
  content: "";
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  border: 1px solid rgba(16,32,31,.10);
}
.sg-core-line::after { inset: 36%; }

.sg-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1rem,2vw,1.4rem); }
.sg-feature-card,
.sg-card {
  position: relative;
  border-radius: 30px;
  padding: clamp(1.25rem,2.2vw,1.75rem);
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 24px 70px rgba(16,32,31,.09);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sg-feature-card:hover,
.sg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 90px rgba(16,32,31,.12);
}
.sg-feature-card { min-height: 220px; }
.sg-feature-card::before,
.sg-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--feature-accent, var(--sg-turquoise));
}
.sg-feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem; height: 2.15rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(16,32,31,.06);
  color: var(--graphite);
  font-weight: 900;
  font-size: .9rem;
}
.sg-feature-card h3,
.sg-card h3 {
  margin: 0 0 .75rem 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: clamp(1.35rem,2vw,1.75rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.sg-feature-card p,
.sg-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: clamp(1rem, 1vw, 1.08rem);
}
.sg-feature-pv { --feature-accent: var(--sg-orange); }
.sg-feature-battery, .sg-feature-irve { --feature-accent: var(--sg-turquoise); }
.sg-feature-control { --feature-accent: var(--thermal); }
.sg-feature-wood { --feature-accent: var(--wood); }

.sg-impact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(1.5rem,3vw,2.4rem);
  padding: clamp(1.25rem,2.5vw,1.8rem);
  border-radius: 30px;
  background: var(--graphite);
  color: var(--cream);
  box-shadow: 0 24px 80px rgba(16,32,31,.16);
}
.sg-impact-title {
  margin: 0 0 .35rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem,2vw,1.9rem);
  line-height: 1.08;
  color: #fff;
}
.sg-impact-strip p {
  margin: 0;
  color: rgba(246,241,232,.84);
  line-height: 1.65;
}
.sg-impact-badges { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }
.sg-impact-badge {
  display: inline-flex;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-weight: 900;
  font-size: .88rem;
}
.sg-impact-badge:nth-child(2) { background: rgba(16,168,189,.34); border-color: rgba(16,168,189,.38); }
.sg-impact-badge:nth-child(3) { background: rgba(242,138,0,.34); border-color: rgba(242,138,0,.38); }

/* Alliances */
.sg-alliance-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1rem,2vw,1.5rem); position: relative; z-index: 2; }
.sg-alliance-card { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }

/* Services */
.sg-services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem,2vw,1.5rem);
}
.sg-service-card { min-height: 370px; display: flex; flex-direction: column; justify-content: space-between; }
.sg-service-icon {
  width: 62px; height: 62px;
  margin-bottom: 1.4rem;
  border-radius: 20px;
  background: radial-gradient(circle at 35% 28%, var(--feature-accent), transparent 40%), rgba(16,32,31,.06);
  border: 1px solid rgba(16,32,31,.10);
  animation: sg-subtle-pulse 6s ease-in-out infinite;
}
.sg-service-card ul { margin: 1.2rem 0 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.85; font-size: 1rem; }

/* RGE */
.sg-rge-grid,
.sg-proof-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem,2vw,1.5rem);
}
.sg-rge-card {
  border-radius: 30px;
  padding: clamp(1.2rem,2.5vw,1.8rem);
  background: var(--graphite);
  color: var(--cream);
  min-height: 270px;
  box-shadow: 0 24px 80px rgba(16,32,31,.16);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sg-rge-logo {
  display: block;
  width: min(100%, 270px);
  aspect-ratio: 420 / 180;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  border-radius: 22px;
}
.sg-rge-qualipv { background-image: url("../img/Logo-QualiPV-RGE2026.jpg"); }
.sg-rge-qualipac { background-image: url("../img/Logo-QualiPAC-RGE2026.jpg"); }
.sg-rge-qualisol { background-image: url("../img/Logo-QualiSOL-RGE2026.jpg"); }
.sg-recharge-elecplus { background-image: url("../img/Logo-RechargeElec-QualitENR.jpg"); }
.sg-rge-card h3 {
  margin: 0 0 .35rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.sg-rge-card p {
  margin: 0;
  color: rgba(246,241,232,.82);
  line-height: 1.7;
}

/* Proof / contact */
.sg-proof-card { min-height: 270px; }
.sg-contact-box {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(300px,.55fr);
  gap: clamp(1.5rem,4vw,4rem);
  align-items: center;
  padding: clamp(1.6rem,3vw,2.5rem);
  border-radius: 36px;
  background: var(--graphite);
  color: var(--cream);
}
.sg-contact-box h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem,4vw,4rem);
  line-height: .96;
  letter-spacing: -.05em;
}
.sg-contact-box p { color: rgba(246,241,232,.84); line-height: 1.7; font-size: 1.05rem; }
.sg-contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Footer */
.sg-footer {
  position: relative;
  margin-top: clamp(60px,8vw,120px);
  padding: clamp(48px,7vw,90px) 0 28px;
  background: #0E1B1A;
  color: var(--cream);
  overflow: hidden;
}
.sg-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sg-orange), var(--sg-turquoise));
}
.sg-footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) repeat(3, minmax(160px,.45fr));
  gap: clamp(2rem,5vw,5rem);
}
.sg-footer-logo {
  display: block;
  width: min(100%, 290px);
  height: 92px;
  margin-bottom: 1rem;
  background-image: url("../img/logo-full.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}
.sg-footer a { color: rgba(246,241,232,.84); text-decoration: none; }
.sg-footer a:hover { color: #fff; }
.sg-footer h2,
.sg-footer h3 { color: #fff; font-family: Georgia, "Times New Roman", serif; }
.sg-footer-muted { color: rgba(246,241,232,.76); line-height: 1.7; }
.sg-footer-list { display: grid; gap: .75rem; }
.sg-footer-bottom {
  margin-top: clamp(2.5rem,5vw,5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246,241,232,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(246,241,232,.64);
  font-size: .95rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes sg-soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes sg-subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,168,189,0); }
  50% { box-shadow: 0 0 0 10px rgba(16,168,189,.07); }
}
@media (prefers-reduced-motion: reduce) {
  .sg-hero-composition, .sg-service-icon { animation: none !important; }
}

/* Responsive */
@media (max-width: 1200px) {
  .energy-hero { width: min(100% - 28px, 100%); }
  .hero-inner, .sg-container { width: min(100% - 48px, 1320px) !important; }
  .hero-grid { grid-template-columns: minmax(340px,.9fr) minmax(480px,1.1fr); gap: clamp(2rem,4vw,4rem); }
  .hero-title { font-size: clamp(2.45rem, 4.8vw, 4.25rem); }
}
@media (max-width: 1100px) {
  .sg-section-head, .sg-priority-grid, .sg-impact-strip, .sg-contact-box { grid-template-columns: 1fr; }
  .sg-section-lead { max-width: 760px; }
  .sg-priority-main-card { min-height: 460px; }
  .sg-impact-badges { justify-content: flex-start; }
  .sg-services-grid, .sg-rge-grid, .sg-proof-grid { grid-template-columns: 1fr; }
  .sg-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  body.admin-bar .sg-header { top: 0; }
  .sg-header-inner {
    width: min(100% - 28px, 100%);
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .sg-brand-logo { width: 190px; height: 56px; }
  .sg-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: .25rem;
  }
  .energy-hero { width: min(100% - 24px, 100%); min-height: auto; border-radius: 0 0 36px 36px; }
  .hero-inner, .sg-container { width: min(100% - 32px, 1180px) !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .sg-hero-composition { min-height: auto; max-width: none; margin-left: 0; padding: 1.4rem; animation: none; }
  .sg-hero-panel-main, .sg-hero-panel-secondary { width: 100%; margin-left: 0; margin-right: 0; }
  .sg-hero-mini-badges { position: relative; margin-top: 1.2rem; }
  .sg-alliance-layout { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  body { font-size: 16.5px; }
  .sg-section-box { width: min(100% - 24px, 100%); border-radius: 36px; }
  .sg-section-title { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .sg-feature-grid { grid-template-columns: 1fr; }
  .sg-priority-main-card { min-height: 560px; border-radius: 28px; }
  .sg-energy-core { min-height: 500px; }
  .sg-core-node { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
  .sg-core-node-pv { top: 3%; }
  .sg-core-node-battery { top: 23%; }
  .sg-core-node-main { top: 43%; transform: translate(-50%, -50%) !important; }
  .sg-core-node-irve { top: 61%; }
  .sg-core-node-usage { bottom: 4%; }
  .sg-impact-strip, .sg-contact-box { border-radius: 24px; }
  .sg-footer-grid, .sg-footer-bottom { grid-template-columns: 1fr; flex-direction: column; }
  .sg-footer-logo { width: min(100%, 240px); height: 80px; }
  .sg-chip { white-space: normal; }
}


/* Correctifs v2.2 : centrage des symboles + arrondis RGE */

/* Icônes des cartes services : centrage propre du symbole lumineux */
.sg-service-icon {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68) !important;
}

.sg-service-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--feature-accent, var(--sg-turquoise));
  opacity: 0.34;
  filter: blur(7px);
}

.sg-service-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--feature-accent, var(--sg-turquoise));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--feature-accent, var(--sg-turquoise)) 10%, transparent);
}

/* Meilleur centrage aussi pour les petits numéros des cartes */
.sg-feature-number {
  display: inline-grid !important;
  place-items: center;
  text-align: center;
  line-height: 1;
}

/* Logos / images RGE : arrondis forcés et centrage */
.sg-rge-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 420 / 180;
  border-radius: 24px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 24px);
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center center !important;
  background-size: contain !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* Si les logos officiels sont insérés en <img> dans Gutenberg au lieu des spans CSS */
.sg-rge-card img,
.sg-rge-card .wp-block-image img,
.sg-rge-logo img {
  display: block;
  width: min(100%, 300px);
  max-height: 128px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: #ffffff;
  border-radius: 24px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 24px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* Cas particulier : si l'image officielle contient beaucoup de blanc, on garde une carte propre */
.sg-rge-card .wp-block-image {
  margin: 0 0 1rem 0;
  border-radius: 24px;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

/* Cartes RGE un peu plus propres avec logo + texte */
.sg-rge-card {
  align-items: flex-start;
}

.sg-rge-card h3 {
  margin-top: 0.2rem;
}

/* Lisibilité complémentaire : textes un peu plus denses mais plus contrastés */
.sg-service-card p,
.sg-feature-card p,
.sg-card p,
.sg-section-lead {
  color: #4E5E59;
}

.sg-service-card li {
  color: #4E5E59;
}

/* Animation encore plus subtile sur les pictos */
.sg-service-icon {
  animation: sg-subtle-pulse-centered 7s ease-in-out infinite;
}

@keyframes sg-subtle-pulse-centered {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16,168,189,0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16,168,189,.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-service-icon {
    animation: none !important;
  }
}

@media (max-width: 740px) {
  .sg-rge-logo,
  .sg-rge-card img,
  .sg-rge-card .wp-block-image img {
    width: min(100%, 260px);
    max-height: 116px;
  }
}


/* Correctifs v2.3 : suppression espace blanc après header + bouton retour haut */

/* Supprime l'espace automatique que WordPress peut ajouter entre les template-parts */
.wp-site-blocks {
  padding-top: 0 !important;
}

.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

.wp-site-blocks > header + main,
.wp-site-blocks > .sg-header + .sg-page,
.sg-header + .sg-page,
main.sg-page,
.sg-page {
  margin-top: 0 !important;
}

.energy-hero {
  margin-top: 0 !important;
}

/* Si le template parent ajoute un groupe vide ou un spacing global avant le contenu */
body.home main,
body.front-page main {
  padding-top: 0 !important;
}

/* Bouton retour en haut */
.sg-back-to-top {
  position: fixed;
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  z-index: 999;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(16, 168, 189, 0.98), rgba(8, 125, 141, 0.98));
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(16, 32, 31, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.sg-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sg-back-to-top:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 28px 72px rgba(16, 32, 31, 0.28);
  background:
    linear-gradient(135deg, rgba(242, 138, 0, 0.98), rgba(16, 168, 189, 0.98));
}

.sg-back-to-top:focus-visible {
  outline: 3px solid rgba(242, 138, 0, 0.45);
  outline-offset: 4px;
}

.sg-back-to-top svg {
  width: 22px;
  height: 22px;
  display: block;
}

.sg-back-to-top-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 740px) {
  .sg-back-to-top {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-back-to-top {
    transition: none !important;
  }
}


/* Correctifs v2.4 : espace sous header + bouton retour haut robuste */

/* Supprime les espacements automatiques WordPress entre header et contenu */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > .sg-header,
.sg-header {
  margin-bottom: 0 !important;
}

.wp-site-blocks > header + *,
.wp-site-blocks > .sg-header + *,
.sg-header + *,
header + main,
header + .sg-page {
  margin-top: 0 !important;
}

main.sg-page,
.sg-page,
body.home main,
body.front-page main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Le "vide" visible venait surtout du padding haut du hero : on rapproche le contenu du header */
.energy-hero {
  margin-top: 0 !important;
  padding-top: clamp(30px, 3.5vw, 58px) !important;
  min-height: auto !important;
}

/* Compense l'ancrage avec le header sticky */
#accueil,
#photovoltaique-stockage-irve,
#solutions,
#rge,
#realisations,
#contact {
  scroll-margin-top: 110px;
}

/* Bouton retour haut : fonctionne même si le JS est mis en cache ou ne se charge pas */
.sg-back-to-top {
  position: fixed;
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  z-index: 9999;
  width: 54px;
  height: 54px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(16, 168, 189, 0.98), rgba(8, 125, 141, 0.98));
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 22px 60px rgba(16, 32, 31, 0.22);
  cursor: pointer;
  opacity: 0.88;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.sg-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sg-back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 28px 72px rgba(16, 32, 31, 0.28);
  background:
    linear-gradient(135deg, rgba(242, 138, 0, 0.98), rgba(16, 168, 189, 0.98));
}

.sg-back-to-top:focus-visible {
  outline: 3px solid rgba(242, 138, 0, 0.45);
  outline-offset: 4px;
}

.sg-back-to-top svg {
  width: 22px;
  height: 22px;
  display: block;
}

.sg-back-to-top-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 740px) {
  .sg-back-to-top {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }

  .energy-hero {
    padding-top: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-back-to-top {
    transition: none !important;
  }
}


/* Correctifs v2.5 : menu/header robuste */

/* Header toujours visible et bien au-dessus du contenu */
.sg-header {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  width: 100% !important;
  margin: 0 !important;
}

body.admin-bar .sg-header {
  top: 32px !important;
}

/* Navigation forcée visible, même si WordPress garde une ancienne personnalisation */
.sg-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.sg-brand,
.sg-nav,
.sg-nav a {
  visibility: visible !important;
  opacity: 1 !important;
}

.sg-nav {
  display: flex !important;
}

/* Empêche le logo de remonter/couper dans l'admin bar */
.sg-brand-logo {
  min-height: 58px;
  background-position: left center !important;
}

/* Supprime l'impression de bande blanche sans masquer le menu */
.sg-header + .sg-page,
.sg-header + main,
.wp-site-blocks > .sg-header + *,
.wp-site-blocks > header + * {
  margin-top: 0 !important;
}

/* Pour les visiteurs non connectés, le hero commence directement après le header */
body:not(.admin-bar) .energy-hero {
  padding-top: clamp(30px, 3.5vw, 58px) !important;
}

/* Pour l'admin connecté, on évite que l'admin bar masque le header */
body.admin-bar .energy-hero {
  padding-top: clamp(30px, 3.5vw, 58px) !important;
}

/* Sur mobile, garder le menu accessible en défilement horizontal */
@media (max-width: 900px) {
  .sg-header-inner {
    gap: 0.8rem !important;
  }

  .sg-nav {
    display: flex !important;
    overflow-x: auto !important;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 782px) {
  body.admin-bar .sg-header {
    top: 46px !important;
  }
}


/* =========================================================
   Pages internes v3.0
   ========================================================= */

.sg-subpage {
  background:
    radial-gradient(circle at 10% 12%, rgba(16,168,189,.055), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(242,138,0,.07), transparent 28%),
    var(--cream);
}

.sg-subpage-hero {
  position: relative;
  overflow: hidden;
  width: min(1760px, calc(100% - 32px));
  margin-inline: auto;
  padding-top: clamp(54px, 6vw, 98px);
  padding-bottom: clamp(54px, 6vw, 98px);
  border-radius: 0 0 58px 58px;
  background:
    radial-gradient(circle at 82% 24%, rgba(242,138,0,.24), transparent 30%),
    radial-gradient(circle at 76% 82%, rgba(16,168,189,.18), transparent 34%),
    linear-gradient(135deg, #F8F2E7 0%, #EEF2EA 100%);
  border-bottom: 1px solid rgba(16,32,31,.08);
}

.sg-subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,32,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,32,31,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}

.sg-subpage-hero > * {
  position: relative;
  z-index: 2;
}

.sg-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.2rem;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 750;
}

.sg-breadcrumb a {
  color: #087D8D;
  text-decoration: none;
}

.sg-subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.sg-subpage-title {
  margin: 0 0 1.25rem;
  max-width: 930px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: clamp(2.7rem, 5.8vw, 6rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .92;
}

.sg-subpage-lead {
  max-width: 780px;
  margin: 0;
  color: #4E5E59;
  font-size: clamp(1.08rem, 1.22vw, 1.28rem);
  line-height: 1.75;
}

.sg-subpage-aside {
  border-radius: 34px;
  padding: clamp(1.35rem, 2.2vw, 2rem);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 30px 90px rgba(16,32,31,.11);
}

.sg-subpage-aside h3 {
  margin: 0 0 .9rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.sg-subpage-aside p {
  margin: 0;
  color: #4E5E59;
  line-height: 1.7;
}

.sg-subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.sg-detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

.sg-detail-sticky {
  position: sticky;
  top: 120px;
  border-radius: 34px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: var(--graphite);
  color: var(--cream);
  box-shadow: 0 24px 80px rgba(16,32,31,.16);
}

.sg-detail-sticky h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  line-height: 1;
}

.sg-detail-sticky p {
  color: rgba(246,241,232,.82);
  line-height: 1.7;
}

.sg-detail-list {
  display: grid;
  gap: .8rem;
  margin-top: 1.4rem;
}

.sg-detail-list span {
  display: flex;
  gap: .7rem;
  color: rgba(246,241,232,.88);
  font-weight: 760;
}

.sg-detail-list span::before {
  content: "";
  width: .55rem;
  height: .55rem;
  margin-top: .58rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sg-orange), var(--sg-turquoise));
}

.sg-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.sg-step-card {
  min-height: 250px;
}

.sg-comparison {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.sg-comparison-card {
  min-height: 300px;
}

.sg-mini-table {
  margin-top: 1.3rem;
  display: grid;
  gap: .7rem;
}

.sg-mini-row {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(16,32,31,.10);
}

.sg-mini-row strong {
  color: var(--graphite);
}

.sg-mini-row span {
  color: #4E5E59;
}

.sg-faq-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
}

.sg-faq-item {
  border-radius: 26px;
  padding: clamp(1.2rem, 2vw, 1.65rem);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 18px 54px rgba(16,32,31,.06);
}

.sg-faq-item h3 {
  margin: 0 0 .65rem;
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.sg-faq-item p {
  margin: 0;
  color: #4E5E59;
  line-height: 1.7;
}

.sg-contact-form-shell {
  border-radius: 34px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 24px 70px rgba(16,32,31,.08);
}

.sg-form-placeholder {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.sg-form-line {
  min-height: 54px;
  border-radius: 18px;
  background: rgba(16,32,31,.055);
  border: 1px solid rgba(16,32,31,.10);
}

.sg-form-line.big {
  min-height: 140px;
}

.sg-map-placeholder {
  min-height: 360px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(16,168,189,.20), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(242,138,0,.18), transparent 30%),
    rgba(255,255,255,.70);
  border: 1px solid rgba(16,32,31,.10);
  box-shadow: 0 24px 70px rgba(16,32,31,.08);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.sg-map-placeholder strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--graphite);
  line-height: 1;
  margin-bottom: .7rem;
}

.sg-map-placeholder span {
  color: #4E5E59;
}

.sg-gallery-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.sg-gallery-card {
  min-height: 340px;
  padding: 0;
  overflow: hidden;
}

.sg-gallery-media {
  min-height: 190px;
  background:
    radial-gradient(circle at 30% 30%, rgba(242,138,0,.22), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(16,168,189,.20), transparent 34%),
    rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(16,32,31,.08);
}

.sg-gallery-body {
  padding: clamp(1.2rem, 2vw, 1.55rem);
}

.sg-gallery-body h3 {
  margin: 0 0 .6rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  font-size: 1.45rem;
}

.sg-gallery-body p {
  margin: 0;
  color: #4E5E59;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .sg-subpage-grid,
  .sg-detail-grid,
  .sg-comparison {
    grid-template-columns: 1fr;
  }

  .sg-detail-sticky {
    position: relative;
    top: auto;
  }

  .sg-step-grid,
  .sg-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .sg-subpage-hero {
    width: min(100% - 24px, 100%);
    border-radius: 0 0 36px 36px;
  }

  .sg-subpage-title {
    font-size: clamp(2.35rem, 14vw, 3.7rem);
  }

  .sg-mini-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}


/* =========================================================
   Correctif RGE via médiathèque WordPress
   À garder tout en bas du fichier symbionergie.css
   ========================================================= */

/* On désactive les anciens logos RGE en background si les anciens spans existent encore */
.sg-rge-logo.sg-rge-qualipv,
.sg-rge-logo.sg-rge-qualipac,
.sg-rge-logo.sg-rge-qualisol {
  background-image: none !important;
}

/* Logos RGE importés dans la médiathèque et insérés en vraies images HTML */
.sg-rge-logo-img {
  display: block !important;
  width: min(100%, 300px) !important;
  height: 128px !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.85rem !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 24px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* Compatibilité si les logos sont ajoutés via un bloc Image Gutenberg dans une carte RGE */
.sg-rge-card .wp-block-image,
.sg-rge-card figure {
  margin: 0 0 1rem 0 !important;
  width: fit-content;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.sg-rge-card .wp-block-image img,
.sg-rge-card figure img,
.sg-rge-card img.sg-rge-logo-img {
  display: block !important;
  width: min(100%, 300px) !important;
  height: 128px !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.85rem !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 24px);
}

@media (max-width: 740px) {
  .sg-rge-logo-img,
  .sg-rge-card .wp-block-image img,
  .sg-rge-card figure img,
  .sg-rge-card img.sg-rge-logo-img {
    width: min(100%, 260px) !important;
    height: 116px !important;
  }
}
