/* =====================================================
   ENERGYWELL — PAGE PRODUIT (FINAL CLEAN VERSION)
===================================================== */

/* =====================================================
   VARIABLES LOCALES (complément variables.css)
===================================================== */
:root {
  --ew-green: #59C14D;
  --ew-dark: #081510;
  --ew-ink: #07121f;
  --ew-muted: #5b6876;
  --ew-bg-soft: #f6f8fb;
  --ew-card: #ffffff;

  --radius-lg: 18px;
  --radius-xl: 22px;

  --shadow-soft: 0 30px 60px rgba(0,0,0,.06);
  --shadow-strong: 0 40px 80px rgba(0,0,0,.35);
}

/* =====================================================
   HERO PRODUIT
===================================================== */
.hero-enterprise--product {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  position: relative;

  background-image: url("../../images/Energywell-produit.jpg");
  background-size: cover;
  background-position: center;
}

.hero-enterprise--product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,30,45,.6),
    rgba(0,30,45,.25)
  );
}

.hero-enterprise--product::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 72px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0),
    #ffffff
  );
}

.hero-product-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  color: #ffffff;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .75rem;
}

/* =====================================================
   INTRO PRODUIT
===================================================== */
.product-intro {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(79,138,47,.08), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--ew-bg-soft));
  text-align: center;
}

.product-intro-inner {
  max-width: 820px;
  margin: 0 auto;
}

.product-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ew-green);
  font-weight: 600;
}

.product-intro h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

.product-lead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(7,18,31,.8);
}

/* =====================================================
   THERMOSTAT HIGHLIGHT (DARK SPLIT)
===================================================== */
.thermostat-highlight {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background: linear-gradient(135deg, #0f2f44, #123e5a);
  color: #ffffff;
}

.thermostat-highlight-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.thermostat-features-icons {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  row-gap: 1rem;
}

.thermostat-features-icons li {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.thermostat-visual {
  animation: floatSoft 6.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.25));
}

@keyframes floatSoft {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .thermostat-visual { animation: none; }
}

/* =====================================================
   BLOCS PRODUITS
===================================================== */
.product-block {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.product-alt {
  background: linear-gradient(180deg, #f6f8fb, #ffffff);
}

.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--ew-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.product-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
}

.product-tagline {
  font-weight: 600;
  color: var(--ew-green);
  margin: .75rem 0 1.25rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.product-features li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1rem;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ew-green);
  font-weight: 800;
}

/* =====================================================
   PLATEFORME LOGICIELLE — PREMIUM DARK
===================================================== */
.product-software-premium {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background: linear-gradient(135deg, #0e1f17, #0b2a1d);
  color: #ffffff;
}

.product-software-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-software-content .lead {
  color: #cfe6db;
  margin: 1.5rem 0;
}

.list-premium li {
  margin-bottom: .75rem;
  padding-left: 1.5rem;
  position: relative;
}

.list-premium li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3bd17f;
}

.product-software-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

/* =====================================================
   KPI STRIP
===================================================== */
.kpi-strip {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(59,209,127,.12), transparent 55%),
    var(--ew-dark);
}

.kpi-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  text-align: center;
}

.kpi-card strong {
  font-size: 3rem;
  color: #3bd17f;
}

.kpi-card span {
  color: #b6d8c8;
}

/* =====================================================
   COMPARATIF PRODUITS (VUE)
===================================================== */
.cmp-section {
  padding: clamp(4.5rem, 7vw, 6.5rem) 1.5rem;
  background: #f4faf7;
}

.cmp-container {
  max-width: 1120px;
  margin: 0 auto;
}

.cmp-toggle {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.cmp-tab {
  border-radius: 999px;
  padding: .6rem 1rem;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.cmp-tab.is-active {
  border-color: var(--ew-green);
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}

/* =====================================================
   CTA FINAL
===================================================== */
.contact-vip {
  padding: clamp(4.5rem, 7vw, 6.5rem) 1.5rem;
  background: linear-gradient(180deg, #0F172A, #020617);
  color: #ffffff;
  text-align: center;
}

.contact-vip-inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact-lead {
  opacity: .9;
  margin: 1.5rem 0 2.5rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .thermostat-highlight-grid,
  .product-grid,
  .product-software-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-software-visual {
    order: -1;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }
}



/* =====================================================
   COMPARATIF PRODUITS — VERSION STABLE FINALE
===================================================== */

.cmp-section {
  padding: clamp(4.5rem, 7vw, 6.5rem) 1.5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(89,193,77,.08), transparent 60%),
    #f4faf7;
}

.cmp-container {
  max-width: 960px;
  margin: 0 auto;
}

.cmp-eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(7,18,31,.6);
  margin-bottom: 8px;
  display: inline-block;
}

.cmp-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.75rem;
}

/* ===== Toggle ===== */

.cmp-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cmp-tab {
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.cmp-tab.is-active {
  border-color: #59C14D;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}

.cmp-tab-badge {
  margin-left: .5rem;
  font-size: .75rem;
  opacity: .7;
}

/* ===== Desktop table ===== */

.cmp-desktop {
  display: block;
}

.cmp-table {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
}

.cmp-tr {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.cmp-th {
  background: linear-gradient(180deg, #0f2d22, #0b231a);
  color: #ffffff;
  font-weight: 700;
}

.cmp-td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #edf2ef;
}

.cmp-td.is-crit {
  background: #f8fbf9;
  font-weight: 600;
}

.cmp-tr:last-child .cmp-td {
  border-bottom: none;
}

/* ===== Mobile card ===== */

.cmp-mobile {
  display: none;
}

.cmp-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
}

.cmp-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cmp-card dl {
  margin: 0;
}

.cmp-card dt {
  font-weight: 600;
  font-size: .85rem;
  opacity: .7;
}

.cmp-card dd {
  margin: 0 0 1rem 0;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .cmp-desktop {
    display: none;
  }
  .cmp-mobile {
    display: block;
  }
}



/* =====================================================
   HERO PRODUIT — TEXTE CENTRÉ
===================================================== */

.hero-enterprise--product {
  display: flex;
  align-items: center;      /* centrage vertical */
  justify-content: center;  /* centrage horizontal */
  text-align: center;       /* centrage du texte */
}

.hero-product-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow */
.hero-eyebrow {
  margin-bottom: 0.75rem;
  text-align: center;
}

/* H1 */
.hero-product-inner h1 {
  margin: 0 auto 1.25rem;
  text-align: center;
}

/* Texte descriptif */
.hero-product-inner p {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}


/* =====================================================
   TRANSITION DE SECTION — DÉGRADÉ DOUX
===================================================== */

.section-transition {
  height: clamp(48px, 8vw, 96px);
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(246,248,251,0.65) 50%,
    rgba(246,248,251,1) 100%
  );
}


/* =====================================================
   COMPARATIF — TRANSITION DOUCE ENTRE PRODUITS
===================================================== */

.cmp-desktop,
.cmp-mobile {
  animation: cmpFadeSlide .35s ease-out both;
}

@keyframes cmpFadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cmp-th {
  background: linear-gradient(
    135deg,
    #0b231a 0%,
    #0f2d22 60%,
    #123a2d 100%
  );
}
.cmp-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
@media (max-width: 640px) {
  .cmp-toggle {
    justify-content: center;
  }
}

.cmp-th {
  background: linear-gradient(
    135deg,
    #0b231a 0%,
    #0f2d22 60%,
    #123a2d 100%
  );
}
.cmp-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
@media (max-width: 640px) {
  .cmp-toggle {
    justify-content: center;
  }
}


/* =====================================================
   COMPARATIF — CENTRAGE DE L’EYEBROW
===================================================== */

.cmp-eyebrow {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.cmp-title {
  text-align: center;
}


/* === SUPPRESSION REFLET SOUS HERO === */
.hero-enterprise--product::after {
  display: none !important;
}


/* =====================================================
   COMPARATIF — RÉÉQUILIBRAGE VISUEL DES COLONNES
===================================================== */

.cmp-tr {
  grid-template-columns: 1fr 1fr;
}
.cmp-td:not(.is-crit) {
  text-align: center;
}
.cmp-th .cmp-td {
  text-align: center;
}
.cmp-desktop {
  margin-top: 1.5rem;
}


/* =====================================================
   COMPARATIF — CORRECTION STRUCTURELLE DÉFINITIVE
===================================================== */

/* 1. Masquer la fausse cellule "Critère" UNIQUEMENT dans le header */
.cmp-th .cmp-td.is-crit {
  display: none;
}

/* 2. Faire prendre toute la largeur à la cellule produit */
.cmp-th .cmp-td:not(.is-crit) {
  grid-column: 1 / -1;
  text-align: center;
}

/* 3. Sécuriser la grille */
.cmp-th {
  grid-template-columns: 1fr;
}


/* =====================================================
   COMPARATIF — SÉPARATION DES TEXTES DANS L’EN-TÊTE
===================================================== */

/* Forcer un retour à la ligne entre le nom et l’usage */
.cmp-th .cmp-td span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.35rem;
}


/* =====================================================
   PRODUCT VX — SUPPRESSION ESPACE TEXTE / IMAGE
   (padding interne)
===================================================== */

.product-block.product-alt .product-grid {
  padding-left: 2rem;
  padding-right: 2rem;
  gap: 1.25rem;
}
.product-block.product-alt .product-grid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 1rem;
}

/* =====================================================
   HEADER — STRUCTURE BLOQUÉE (FINAL)
===================================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    height: 72px;
    min-height: 72px;
}

.header-container {
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
}

.header-nav a {
    flex-shrink: 0;
}

@media (min-width: 1600px) {
    .header-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

.hero-enterprise--product {
  position: relative;
  background-image: url("../../images/Energywell-produit.jpg");
  background-size: cover;
  background-position: center;
}

/* IMAGE ÉCLAIRCIE */
.hero-enterprise--product::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: inherit;
  background-size: cover;
  background-position: center;

  /* 🔑 réglages clés */
  filter: brightness(1.18) contrast(1.05) saturate(1.05);

  z-index: 0;
}
