/* =====================================================
   PAGE SECTEUR — BÂTIMENTS PUBLICS
===================================================== */

/* ===============================
   HEADER
=============================== */
.header-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
}

/* ===============================
   HERO
=============================== */
.hero-enterprise {
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-enterprise--sector {
  padding-top: 110px;
}

.hero-enterprise--public {
  background: url("../../images/batiment-public.jpg") 60% center / cover no-repeat;
}

.hero-enterprise--public .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.65)
  );
}

.hero-product-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

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

.hero-enterprise h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  opacity: 0.95;
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===============================
   INTRO TEXTE / IMAGE
=============================== */
.hero-enterprise + .sector-intro {
  margin-top: 4rem;
}

.sector-intro {
  margin-top: -2rem;
  padding: 6rem 1.5rem 6rem;
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.sector-intro-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

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

.sector-intro-text .lead {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

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

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

.sector-intro-media img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

/* ===============================
   PREUVE / CONTEXTE
=============================== */
.sector-proof {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, #f1f6fb 0%, #ffffff 100%);
  text-align: center;
}

.sector-proof::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
}

.proof-text {
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 600;
  max-width: 880px;
  margin: 0 auto 1.25rem;
  color: #0f172a;
}

.proof-text strong {
  color: var(--color-primary);
}

.proof-connector {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  max-width: 720px;
  margin: 0 auto;
}

/* ===============================
   ENJEUX / CARTES
=============================== */
.sector-focus {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%);
  text-align: center;
}

.sector-focus::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
}

.sector-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

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

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

.sector-card {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

.sector-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

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

/* ===============================
   CTA FINAL
=============================== */
.hotel-cta-final {
  position: relative;
  padding: 7rem 1.5rem;
  background: linear-gradient(
    135deg,
    #020617 0%,
    #020617 100%
  );
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.hotel-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 25% 35%,
      rgba(34, 197, 94, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 65%,
      rgba(56, 189, 248, 0.25),
      transparent 55%
    );
  pointer-events: none;
}

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

.hotel-cta-final h2 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hotel-cta-final .cta-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e5e7eb;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.hotel-cta-final .btn-primary {
  padding: 1rem 2.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #a3e635,
    #22c55e,
    #38bdf8
  );
  color: #020617;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 1024px) {
  .sector-intro-grid,
  .sector-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hero-enterprise--sector {
    padding-top: 90px;
  }
}

@media (max-width: 640px) {
  .sector-intro,
  .sector-focus,
  .sector-proof {
    padding: 4rem 1.5rem;
  }

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


/* ===============================
   COMMENT ÇA FONCTIONNE
=============================== */
.sector-how {
  padding: 6rem 1.5rem;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f3f7fc 100%
  );
  text-align: center;
}

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

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

.sector-how-step {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.step-index {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

.sector-how-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.sector-how-step p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
}

/* Responsive */
@media (max-width: 1024px) {
  .sector-how-steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sector-how-step {
    text-align: center;
  }
}

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

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

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

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

/* Carte */
.sector-how-step {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  text-align: center; /* clé */
}

/* Numéros 01 / 02 / 03 — centrés */
.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

/* Titres */
.sector-how-step h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

/* Texte */
.sector-how-step p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
}

/* Responsive */
@media (max-width: 1024px) {
  .sector-how-steps {
    grid-template-columns: 1fr;
  }
}
.step-index {
  display: block;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

/* ===============================
   ANIMATION CASCADE — COMMENT ÇA FONCTIONNE
=============================== */

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

/* état visible */
.sector-how-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* délais en cascade */
.sector-how-step:nth-child(1) {
  transition-delay: 0.1s;
}
.sector-how-step:nth-child(2) {
  transition-delay: 0.25s;
}
.sector-how-step:nth-child(3) {
  transition-delay: 0.4s;
}
.sector-how-step {
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================
   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;
    }
}
