/* =====================================================
   PAGE À PROPOS 
===================================================== */

/* ---------- HERO À PROPOS ---------- */

.hero-apropos {
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.hero-apropos .hero-overlay {
  background: linear-gradient(
    rgba(11, 31, 51, 0.65),
    rgba(11, 31, 51, 0.65)
  );
}


.hero-apropos .hero-enterprise-card {
  background: none;
  padding: 0;
  max-width: 820px;
}

.hero-apropos h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-apropos p {
  color: #e6eef4;
  font-size: 20px;
  line-height: 1.6;
}

/* ---------- SECTIONS GÉNÉRALES ---------- */

.section-standard,
.section-alt {
  padding: 96px 0;
}

.container-narrow {
  max-width: 880px;
}

/* ---------- MISSION ---------- */

.section-standard {
  background: #ffffff;
}

.section-standard h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #0b1f33;
}

.section-standard p {
  font-size: 17px;
  line-height: 1.8;
  color: #334e68;
  margin-bottom: 20px;
}

.section-standard a {
  color: #6cbc45;
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- SECTION ALT (EXPERTISE / ÉQUIPE / INVESTISSEURS) ---------- */

.section-alt {
  background: #f4f8fb;
}

.section-alt h2 {
  font-size: 30px;
  margin-bottom: 24px;
  color: #0b1f33;
}

.section-alt p {
  font-size: 17px;
  line-height: 1.75;
  color: #334e68;
  margin-bottom: 20px;
}

/* ---------- LISTES CHECK ---------- */

.list-check,
.list-values {
  margin-top: 32px;
  padding-left: 0;
  list-style: none;
}

.list-check li,
.list-values li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #0b1f33;
}

.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #6cbc45;
  font-weight: bold;
}

.list-values li strong {
  color: #0b1f33;
}

/* ---------- SECTION INVESTISSEURS / GRANDS COMPTES ---------- */

.section-alt:last-of-type {
  background: linear-gradient(
    180deg,
    #eef4f8 0%,
    #ffffff 100%
  );
}

/* ---------- CTA FINAL ---------- */

.contact-vip {
  background: linear-gradient(
    135deg,
    #0b1f33 0%,
    #123a5a 100%
  );
  color: #ffffff;
}

.contact-vip h2 {
  color: #ffffff;
}

.contact-vip p {
  color: #d6e2ec;
}

.contact-vip .btn-primary {
  background: #6cbc45;
  border: none;
}

.contact-vip .btn-primary:hover {
  background: #5aa63c;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .section-standard,
  .section-alt {
    padding: 72px 0;
  }

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

  .hero-apropos p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero-apropos h1 {
    font-size: 34px;
  }

  .hero-apropos p {
    font-size: 17px;
  }

  .section-standard h2,
  .section-alt h2 {
    font-size: 26px;
  }
}

/* =====================================================
   SECTION MISSION — BACKGROUND COLOR
===================================================== */

.section-mission {
  background: linear-gradient(
    180deg,
    #f4f8fb 0%,
    #ffffff 100%
  );
}

.section-mission h2 {
  color: #0b1f33;
}

.section-mission p {
  color: #334e68;
}
.section-mission {
  background: #eef4f8;
  border-top: 1px solid #e2ebf2;
  border-bottom: 1px solid #e2ebf2;
}


/* =====================================================
   H2 AVEC ICÔNE DISCRÈTE
===================================================== */

.section-standard h2,
.section-alt h2 {
  position: relative;
  padding-left: 34px;
}

.section-standard h2::before,
.section-alt h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6cbc45;
  opacity: 0.9;
}


/* =====================================================
   SECTION FOND SOMBRE — ALTERNANCE
===================================================== */

.section-dark {
  background: linear-gradient(
    135deg,
    #0b1f33 0%,
    #123a5a 100%
  );
}

.section-dark h2 {
  color: #ffffff;
}

.section-dark p,
.section-dark li {
  color: #d6e2ec;
}

.section-dark a {
  color: #6cbc45;
}

.section-dark .list-check li::before {
  color: #6cbc45;
}




/* ==========================
   HERO À PROPOS – CADRE TEXTE
========================== */

.hero-apropos .hero-enterprise-card {
  max-width: 520px;          /* limite la largeur */
  padding: 32px 40px;        /* réduit la hauteur */
  background: rgba(15, 40, 55, 0.65);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.hero-apropos h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
}

.hero-apropos p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 640px;
}
@media (max-width: 768px) {

  .hero-apropos .hero-enterprise-card {
    padding: 24px 20px;
    max-width: 100%;
  }

  .hero-apropos h1 {
    font-size: 32px;
  }

  .hero-apropos p {
    font-size: 16px;
  }
}



/* ==========================
   BACK TO TOP
========================== */

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #5aa637; /* vert Energywell */
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1200;
}

/* Visible au scroll */
#backToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  #backToTop {
    width: 46px;
    height: 46px;
    bottom: 16px;
    right: 16px;
  }
}

.hero-apropos h1 {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-apropos h1 {
        white-space: normal;
        text-align: center;
    }
}




/* =====================================================
À PROPOS – SECTIONS À CARTES (inspiré Secteurs)
===================================================== */

/* 3 éléments horizontaux par section */
.apropos-cards .sector-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .apropos-cards .sector-cards {
    grid-template-columns: 1fr;
  }
}
.apropos-cards .sector-card {
  text-align: center;
  height: 100%;
}
.apropos-cards .sector-icon {
  margin: 0 auto 1.4rem;
}
.apropos-cards .sector-card p {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.apropos-cards {
  padding: 5.5rem 0;
}

.apropos-cards + .apropos-cards {
  padding-top: 3rem;
}


/* SECTION POSITIONNEMENT */
.apropos-positionnement {
  padding: 6rem 0;
}

/* Liste verticale */
.apropos-rows {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Ligne icône + pavé */
.apropos-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* Icône */
.apropos-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 107, 79, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apropos-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0f6b4f;
  fill: none;
  stroke-width: 2;
}

/* Pavé texte */
.apropos-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.apropos-card p {
  margin: 0;
  max-width: 720px;
}

/* Responsive */
@media (max-width: 768px) {
  .apropos-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .apropos-card p {
    max-width: 100%;
  }
}


/* ============================
   SECTION SOMBRE ALTERNÉE
   ============================ */

.apropos-methode {
  background: #0f1f1a; /* vert/noir premium */
  color: #ffffff;
}
.apropos-methode h2,
.apropos-methode h3 {
  color: #ffffff;
}

.apropos-methode .section-eyebrow {
  color: #7fd1b2; /* vert doux */
}
.apropos-methode p {
  color: rgba(255, 255, 255, 0.85);
}
.apropos-methode .apropos-icon {
  background: rgba(127, 209, 178, 0.15);
}

.apropos-methode .apropos-icon svg {
  stroke: #7fd1b2;
}
.apropos-methode .apropos-row + .apropos-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}



/* ==========================
   HERO À PROPOS – IMAGE
========================== */

.hero-apropos {
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  justify-content: center;

  /* IMAGE HERO */
  background-image: url("../../images/apropos.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =====================================================
   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 À PROPOS – IMAGE + LUMINOSITÉ
========================== */

.hero-apropos {
  position: relative;
  min-height: var(--hero-min-height, 85vh);
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("../../images/apropos.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* ÉCLAIRCISSEMENT DE L’IMAGE */
.hero-apropos::before {
  content: "";
  position: absolute;
  inset: 0;

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

  /* 🔥 AJUSTEMENT LUMIÈRE */
  filter: brightness(1.22) contrast(1.06) saturate(1.08);

  z-index: 0;
}

/* OVERLAY LÉGER (PLUS AÉRIEN) */
.hero-apropos .hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(11, 31, 51, 0.32),
    rgba(11, 31, 51, 0.22)
  );

  z-index: 1;
}

/* CONTENU AU-DESSUS */
.hero-apropos .hero-enterprise-card,
.hero-apropos h1,
.hero-apropos p {
  position: relative;
  z-index: 2;
}


/* === FIX HERO MOBILE VISIBILITY === */
@media (max-width: 768px) {
  .hero p,
  .hero h1 + p,
  .hero .subtitle,
  .hero-description {
    color: #0b1c2d !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
