/* =====================================================
   PAGE SECTEUR — BÂTIMENT ERP (COLLECTIVITÉS)
   Energywell — Version institutionnelle premium
===================================================== */


/* ===============================
   HERO
=============================== */

.hero-enterprise--erp {
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  background: url("../../images/batiment-erp.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
}

/* HERO — BÂTIMENT ERP : éclaircissement maîtrisé */
.hero-enterprise--erp .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.45) 0%,
    rgba(2, 6, 23, 0.65) 100%
  );
}


.hero-enterprise--erp .hero-product-inner {
  position: relative;
  z-index: 2;
  max-width: 960px; /* + respiration */
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #ffffff;
}

.hero-enterprise--erp .hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-enterprise--erp h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  text-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

.hero-enterprise--erp .hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-enterprise--erp .hero-meta {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}


/* ===============================
   INTRO
=============================== */

.sector-intro {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

.sector-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.sector-intro-text {
  max-width: 600px;
}

.sector-intro-text .lead {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1.75rem;
  color: #020617;
}

.sector-intro-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.1rem;
}

.sector-intro-media {
  display: flex;
  justify-content: flex-end;
}

.sector-intro-media img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 36px 90px rgba(2, 6, 23, 0.2);
}


/* ===============================
   ENJEUX / GOUVERNANCE
=============================== */

.sector-focus {
  padding: 6.5rem 1.5rem;
  background: linear-gradient(180deg, #f1f6fb 0%, #ffffff 100%);
  text-align: center;
}

.sector-focus-intro {
  max-width: 780px;
  margin: 0 auto 4.5rem;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #475569;
}

.sector-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
  max-width: 1120px;
  margin: 0 auto;
}

.sector-card {
  background: #ffffff;
  padding: 3.25rem 2.75rem;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 44px 110px rgba(2, 6, 23, 0.16);
}

.sector-kpi {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 0.85rem;
}

.sector-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: #020617;
  letter-spacing: -0.015em;
}

.sector-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}


/* ===============================
   TEXTE RÉGLEMENTAIRE
=============================== */

.sector-focus-text {
  padding: 4rem 1.5rem;
  background: transparent;
  text-align: center;
}

.sector-focus-text .sector-focus-intro {
  max-width: 860px;
  margin: 0 auto;
}


/* ===============================
   CTA FINAL — INSTITUTIONNEL
=============================== */

.hotel-cta-final {
  position: relative;
  padding: 7.5rem 1.5rem;
  background: #020617;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.hotel-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(20,184,166,0.2), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(59,130,246,0.2), transparent 55%);
  pointer-events: none;
}

.hotel-cta-final .cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hotel-cta-final h2 {
  font-size: clamp(2.1rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
  letter-spacing: -0.03em;
}

.hotel-cta-final .cta-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 2.75rem;
}

.hotel-cta-final .cta-reassurance {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
}


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

@media (max-width: 1024px) {

  .sector-intro-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .sector-intro-media {
    justify-content: center;
  }

  .sector-cards {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-enterprise--erp {
    min-height: var(--hero-min-height, 85vh);
  }
}

@media (max-width: 640px) {

  .hero-enterprise--erp h1 {
    font-size: 2rem;
  }

  .hero-enterprise--erp .hero-lead {
    font-size: 1.05rem;
  }
}


/* ===============================
   FIX ESPACES VIDES — SAFE
=============================== */

.page-erp .sector-intro,
.page-erp .sector-intro-grid {
  min-height: auto;
}


/* ===============================
   INTRO — VISUEL DROIT (DESIGN)
=============================== */

.sector-intro-media {
  display: flex;
  justify-content: flex-end;
}

.intro-visual {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  background:
    linear-gradient(
      135deg,
      #f8fafc 0%,
      #eef2f7 100%
    );
  box-shadow:
    0 40px 90px rgba(2, 6, 23, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

/* Effet profondeur / techno */
.intro-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(20,184,166,0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(59,130,246,0.18),
      transparent 60%
    );
}

/* Liseré subtil premium */
.intro-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(2,6,23,0.06);
}
.intro-visual {
  background:
    linear-gradient(135deg, rgba(2,6,23,0.4), rgba(2,6,23,0.7)),
    url("assets/images/intro-erp.jpg") center / cover no-repeat;
}
.intro-visual {
  backdrop-filter: blur(6px);
}


/* ===============================
   INTRO — ALIGNEMENT CONTENU
=============================== */

.sector-intro .container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem; /* clé pour éviter le texte collé */
}
@media (min-width: 1280px) {
  .sector-intro .container-narrow {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
.sector-intro-text {
  max-width: 560px; /* un peu plus étroit = plus lisible */
}


/* ===============================
   ENJEUX — CARTES PREMIUM
=============================== */

.sector-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sector-card {
  position: relative;
  background: #ffffff;
  padding: 3.5rem 3rem;
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(2, 6, 23, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Barre verticale institutionnelle */
.sector-card::before {
  content: "";
  position: absolute;
  top: 3rem;
  left: 0;
  width: 4px;
  height: calc(100% - 6rem);
  background: linear-gradient(
    180deg,
    #0f766e,
    #14b8a6
  );
  border-radius: 0 4px 4px 0;
  opacity: 0.9;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 50px 120px rgba(2, 6, 23, 0.14);
}

/* KPI — élément principal */
.sector-kpi {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

/* Titre */
.sector-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #020617;
  line-height: 1.35;
}

/* Texte */
.sector-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #475569;
}
@media (max-width: 768px) {

  .sector-cards {
    gap: 2rem;
  }

  .sector-card {
    padding: 2.5rem 2rem;
  }

  .sector-card::before {
    top: 2.5rem;
    height: calc(100% - 5rem);
  }
}
.sector-card:nth-child(2)::before {
  background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.sector-card:nth-child(3)::before {
  background: linear-gradient(180deg, #7c3aed, #a855f7);
}


/* ===============================
   ANIMATION APPARITION — CARTES
=============================== */

.sector-card {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

/* État visible */
.sector-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Décalage progressif (cascade) */
.sector-card:nth-child(1) {
  transition-delay: 0.05s;
}
.sector-card:nth-child(2) {
  transition-delay: 0.12s;
}
.sector-card:nth-child(3) {
  transition-delay: 0.18s;
}
.sector-card.is-visible {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}



/* ===============================
   TEXTE RÉGLEMENTAIRE — PREMIUM
=============================== */

.sector-focus-text {
  padding: 5rem 1.5rem;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
}

.sector-focus-text .sector-focus-intro {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 3.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
  text-align: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(2, 6, 23, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Accent institutionnel */
.sector-focus-text .sector-focus-intro::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(
    90deg,
    #0f766e,
    #14b8a6
  );
  border-radius: 3px;
}
@media (max-width: 768px) {

  .sector-focus-text {
    padding: 4rem 1.5rem;
  }

  .sector-focus-text .sector-focus-intro {
    padding: 2.5rem 2rem;
    font-size: 1.05rem;
  }
}
.sector-focus-text .sector-focus-intro {
  border-left: 4px solid #0f766e;
  text-align: left;
}


/* ===============================
   MICRO-TITRE — RÉGLEMENTAIRE
=============================== */

.sector-micro-title {
  display: block;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #0f766e;
}
/* ===============================
   ANIMATION — TEXTE RÉGLEMENTAIRE
=============================== */

.sector-focus-text {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.sector-focus-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.sector-focus-text.is-visible {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ===============================
   COMMENT ÇA FONCTIONNE
=============================== */

.how-it-works {
  padding: 6.5rem 1.5rem;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
  text-align: center;
}

.section-eyebrow {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0f766e;
}

.how-title {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #020617;
  letter-spacing: -0.02em;
}

.how-intro {
  max-width: 760px;
  margin: 0 auto 4.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.how-step {
  position: relative;
  padding: 3rem 2.5rem;
  background: #ffffff;
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(2, 6, 23, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Numéro d’étape */
.how-step-number {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: -0.02em;
}

.how-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #020617;
}

.how-step p {
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}
/* ===============================
   ANIMATION — COMMENT ÇA FONCTIONNE
=============================== */

.how-step {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.how-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.how-step:nth-child(1) { transition-delay: 0.05s; }
.how-step:nth-child(2) { transition-delay: 0.12s; }
.how-step:nth-child(3) { transition-delay: 0.18s; }
@media (max-width: 1024px) {

  .how-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .how-step {
    padding: 2.5rem 2rem;
  }
}

.hero-enterprise--erp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.10) 100%
  );
  pointer-events: none;
}
.hero-enterprise--erp h1,
.hero-enterprise--erp .hero-lead {
  text-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* =====================================================
   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 ERP — IMAGE ÉCLAIRCIE
=============================== */

.hero-enterprise--erp {
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  background: url("../../images/batiment-erp.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Calque image corrigée */
.hero-enterprise--erp::before {
  content: "";
  position: absolute;
  inset: 0;

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

  /* 🔥 RÉGLAGE LUMIÈRE PRO */
  filter: brightness(1.25) contrast(1.06) saturate(1.08);

  z-index: 0;
}
