/* ============ POWER CAPITAL — Sections ============ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { position: relative; display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; transition: opacity .35s ease; }
.brand-logo--dark { position: absolute; top: 50%; left: 0; transform: translateY(-50%); opacity: 0; }
/* At rest: white logo visible, dark hidden. Scrolled: swap. */
.site-header.scrolled .brand-logo--white { opacity: 0; }
.site-header.scrolled .brand-logo--dark { opacity: 1; }

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  transition: color .35s ease;
}
.site-header.scrolled .nav a { color: var(--navy); }
.nav a:hover { color: var(--blue-light); }
.site-header.scrolled .nav a:hover { color: var(--blue); }

/* Right-side header cluster: demo button + language toggle */
.header-actions { display: flex; align-items: center; gap: 16px; }
/* demo button label: full text by default, short label kicks in on small screens */
.btn-demo__short { display: none; }

/* Burger button — hidden on desktop, shown ≤980px (see responsive.css) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 8px;
  background: none; border: none; cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .35s ease;
}
.site-header.scrolled .burger span { background: var(--navy); }
/* animate to an X when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu — collapsed by default */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.open { max-height: 320px; }
.mobile-menu a {
  padding: 16px 24px;
  font-size: 16px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg-soft); }

/* Demo button: transparent/outline at rest, blue when scrolled */
.header-inner .btn--primary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  transition: all .35s ease;
}

/* Language toggle FR | EN — matches the header theme (white at rest, navy scrolled) */
.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255,255,255,0.7);
  padding: 2px 2px;
  transition: color .35s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { color: #fff; font-weight: 700; }
.lang-sep { color: rgba(255,255,255,0.45); font-size: 13px; transition: color .35s ease; }
/* scrolled theme */
.site-header.scrolled .lang-btn { color: var(--grey-text); }
.site-header.scrolled .lang-btn:hover { color: var(--navy); }
.site-header.scrolled .lang-btn.is-active { color: var(--navy); }
.site-header.scrolled .lang-sep { color: var(--grey-light); }
.site-header.scrolled .header-inner .btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('../images/hero-eolien.png') center/cover no-repeat;
  overflow: hidden;
}
/* subtle top gradient so the white header stays legible over the bright sky */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(7,17,37,0.28), rgba(7,17,37,0));
  z-index: 1;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 23vh;
  gap: 20px;
  padding-left: 32px; padding-right: 32px;
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: #0E6898;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 1000px;
  white-space: normal;
}

/* ---------- QUI SOMMES-NOUS ---------- */
.about { padding: 96px 0; position: relative; z-index: 1; background: #fff; }
.about-top { margin-bottom: 64px; }
/* gradient rule BELOW the intro row (under image + paragraph) */
.about-rule { margin-top: 44px; }
.about-intro-row {
  display: flex;
  gap: 56px;
  align-items: stretch;
  margin-top: 40px;
}
.about-intro-text { flex: 1; max-width: 600px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.about-intro-text p {
  font-family: 'BDO Grotesk', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.7;
  letter-spacing: -0.2px;
  color: var(--navy);
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}
.about-intro-image {
  position: relative;
  flex: 0 0 480px;
  width: 480px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin-left: auto;   /* push the image hard against the right edge */
}
/* generous landscape image (preferred earlier layout) — larger than the text,
   not flattened to the text height. */
.about-intro-image > img:first-child { width: 100%; height: 100%; object-fit: cover; }

/* Quinconce */
.quinconce { display: flex; flex-direction: column; gap: 0; }
.quinconce .rule { height: 1px; background: var(--border2); margin: 8px 0; width: 100%; }
.quincunx-row {
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}
.quincunx-row--reverse { flex-direction: row-reverse; }
.quincunx-img { flex: 0 0 480px; max-width: 480px; }
.quincunx-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .5s ease;
}
.quincunx-img:hover img { transform: scale(1.04); }
.quincunx-text { flex: 1; display: flex; flex-direction: column; gap: 0; }
.quincunx-text h3 { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: var(--space-2); }
.quincunx-text .accent { width: 48px; height: 3px; border-radius: 2px; display: block; margin-bottom: var(--space-3); }
.accent--orange { background: var(--orange); }
.accent--green { background: var(--green); }
.accent--blue { background: var(--blue); }
.quincunx-text p { font-family: 'BDO Grotesk', sans-serif; font-weight: 400; font-size: 18px; line-height: 1.65; color: var(--grey-text); text-align: justify; hyphens: none; -webkit-hyphens: none; }

/* ---------- PRODUITS ---------- */
/* soft tinted background so the white stacking cards lift off it with shadow */
.products { padding: 96px 0; background: var(--bg-soft); }
.products-header { display: flex; flex-direction: column; align-items: center; gap: 32px; margin-bottom: 48px; }
.products-header .rule--gradient { margin: 0; }
.pci-logo-long { height: 48px; width: auto; }
.products-stack { display: flex; flex-direction: column; gap: 28px; }
/* each card is a white premium panel (radius + soft multi-layer shadow), Framer-style */
.product-card {
  display: flex;
  gap: 56px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  box-shadow:
    0 .6px 1.6px -1.5px rgba(11,19,36,.14),
    0 2.3px 6px -3px rgba(11,19,36,.12),
    0 10px 26px -4.5px rgba(11,19,36,.10);
}
.product-img {
  flex: 0 0 480px;
  max-width: 480px;
  border-radius: 14px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
/* PCI image: fill completely, no blue bands */
.product-img--pci { background: #0a1f6e; }
.product-img--pci img { object-fit: cover; }
.product-text { flex: 1; display: flex; flex-direction: column; gap: 0; }
.product-text h3 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
}
.product-subtitle { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: var(--space-3); }
.product-subtitle--blue { color: var(--blue); }
.product-subtitle--orange { color: var(--orange); }
.product-subtitle--green { color: var(--green); }
.product-subtitle--navy { color: #2E5BBA; }
.product-text p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-text);
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  margin: 0;
}

/* ---------- ÉQUIPE ---------- */
.team { padding: 96px 0; background: #fff; }
.team-header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.team-header .rule--gradient { margin-bottom: 4px; }
.team-intro { font-size: 17px; line-height: 1.6; color: var(--grey-text); max-width: 1100px; }
.team-body { display: flex; gap: 64px; align-items: center; }
.team-visual {
  position: relative;
  flex: 0 0 440px;
  width: 440px;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
}
.team-visual > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.team-visual::after { content: ""; position: absolute; inset: 0; background: rgba(7,17,37,0.14); }
.team-members { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--space-6); }
.member { display: flex; gap: 20px; align-items: flex-start; }
.member-photo { width: 130px; height: 130px; border-radius: 0; object-fit: cover; flex: 0 0 130px; }
.member-info { flex: 1; display: flex; flex-direction: column; gap: var(--space-1); }
.member-info h4 { font-size: 21px; font-weight: 600; color: var(--navy); }
.member-role { font-size: 15px; color: var(--grey-light); }
.member-info p { font-size: 15px; line-height: 1.55; color: var(--grey-text); margin-top: var(--space-1); }

/* ---------- CONTACT ---------- */
.contact {
  position: relative;
  padding: var(--section-pad) 24px;
  background-image: url('../images/contact-eolien.png');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  justify-content: center;
}
.contact-tint { position: absolute; inset: 0; background: linear-gradient(rgba(7,17,37,0.55), rgba(7,17,37,0.68)); }
.contact-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.contact-logo { width: 160px; height: auto; }
.contact-title { font-size: 48px; font-weight: 600; color: #fff; }
.contact-sub { font-size: 15px; color: rgba(255,255,255,0.85); }
.contact-form {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* honeypot anti-bot — hidden from humans, off-screen and non-focusable */
.honeypot-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-form input:not(.honeypot-field), .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border2);
  background: var(--bg-soft2);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--navy);
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--grey-light); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
/* contact required-fields note */
.contact-note { font-size: 12.5px; color: var(--grey-light); text-align: left; margin: 2px 0 2px; }
/* contact submit feedback */
.contact-feedback { min-height: 20px; font-size: 14px; color: #fff; margin-top: 4px; }
.contact-feedback--ok { color: #7CF0C8; }
.contact-feedback--error { color: #FFB3B3; }
.contact-feedback--pending { color: rgba(255,255,255,0.8); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #fff; padding: var(--space-8) 48px var(--space-6); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}
.footer-left { display: flex; flex-direction: column; gap: 24px; }
.footer-logo { width: 210px; height: auto; }
.footer-mails { font-size: 16px; color: rgba(255,255,255,0.7); }
.footer-nav { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.footer-nav a { font-size: 16px; color: rgba(255,255,255,0.8); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-divider { border: none; height: 1px; background: rgba(255,255,255,0.12); max-width: var(--max); margin: var(--space-4) auto var(--space-3); }
.footer-copy { max-width: var(--max); margin: 0 auto; font-size: 12px; color: rgba(255,255,255,0.5); }
