/* =========================================================
   B2Life — Site vitrine
   Charte graphique : #060931 / #587291 / #98A4B3 / #D8E5E6
   Typo : Poppins
   ========================================================= */

:root {
  --navy:      #060931;
  --steel:     #587291;
  --steel-200: #98A4B3;
  --light:     #d8e5e6;
  --ink:       #0a0e2e;
  --white:     #ffffff;

  --bg:        #f5f8fa;
  --text:      #1c2233;
  --muted:     #5b6478;

  --grad: linear-gradient(135deg, #587291 0%, #060931 100%);
  --grad-soft: linear-gradient(135deg, #98a4b3 0%, #587291 60%, #060931 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(6, 9, 49, .08);
  --shadow:    0 18px 50px rgba(6, 9, 49, .14);
  --shadow-lg: 0 30px 80px rgba(6, 9, 49, .22);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
section { scroll-margin-top: 90px; }

/* ---------- Logo mark (cercles + barres) ---------- */
.logo-mark, .brand__logo {
  display: inline-flex;
  align-items: stretch;
  gap: 14%;
  height: 1em;
  aspect-ratio: 1.05 / 1;
}
.brand__logo { width: 28px; height: 28px; gap: 3px; }
.logo-bar {
  flex: 1;
  background: currentColor;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 14%;
}
.brand__logo .logo-bar { border-radius: 4px; gap: 3px; }
.logo-bar--circles { background: transparent; flex: 1.15; }
.logo-circle { flex: 1; background: currentColor; border-radius: 999px; }

.logo-mark--xl { width: 110px; height: 110px; color: var(--white); }
.logo-mark--md { width: 56px; height: 56px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
  font-family: inherit;
}
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(6, 9, 49, .28); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(6, 9, 49, .38); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(6, 9, 49, .25); }
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--navy); font-weight: 800; }
.brand__name { font-size: 1.3rem; letter-spacing: -.03em; }
.nav.is-scrolled .brand, .nav.is-scrolled .nav__links a { color: var(--navy); }

.nav__links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav__links a {
  position: relative;
  font-weight: 500;
  font-size: .94rem;
  color: var(--navy);
  opacity: .85;
  transition: opacity .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--steel); transition: width .25s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .3rem; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.nav__burger span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; opacity: .5;
  pointer-events: none;
}
.hero__glow--1 { width: 540px; height: 540px; background: radial-gradient(circle, #98a4b3, transparent 70%); top: -140px; right: -120px; }
.hero__glow--2 { width: 460px; height: 460px; background: radial-gradient(circle, #587291, transparent 70%); bottom: -160px; left: -140px; opacity: .35; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(88, 114, 145, .12);
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; color: var(--navy); margin-bottom: 1.4rem; }
.grad-text {
  background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__tagline { font-style: italic; color: var(--steel); font-weight: 500; }

/* Hero art */
.hero__art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__card {
  position: relative;
  background: var(--grad);
  border-radius: 32px;
  width: 280px; height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__card::before {
  content: ""; position: absolute; inset: 0; border-radius: 32px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%);
}
.hero__card-name { color: #fff; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }

.hero__chip {
  position: absolute;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  padding: .7rem 1.1rem;
  border-radius: 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.hero__chip--1 { top: 6%; left: -4%; animation-delay: .4s; }
.hero__chip--2 { bottom: 14%; right: -8%; animation-delay: 1.1s; }
.hero__chip--3 { bottom: -2%; left: 8%; animation-delay: 1.8s; }

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

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { background: var(--navy); color: #fff; padding: 1.4rem 0; }
.trust__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.trust__inner > span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.trust ul { display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: center; }
.trust li { font-weight: 600; opacity: .85; font-size: .98rem; }

/* =========================================================
   SECTIONS (générique)
   ========================================================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.5rem; }
.section--soft { max-width: none; background: linear-gradient(180deg, #eef3f6, #f5f8fa); }
.section--soft > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--dark { max-width: none; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,114,145,.5), transparent 70%); top: -120px; left: -120px; filter: blur(60px);
}
.section--dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; position: relative; }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 1rem;
}
.kicker--light { color: var(--steel-200); }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--navy); margin-bottom: 1rem; }
.section--dark .section__head h2 { color: #fff; }
.section__sub { font-size: 1.08rem; color: var(--muted); }
.section__sub--light { color: var(--steel-200); }

/* ---------- Pillars (projet) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pillar {
  background: #fff; border-radius: var(--radius); padding: 2.2rem;
  border: 1px solid rgba(6,9,49,.06); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar__icon {
  width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 16px; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(88,114,145,.16), rgba(6,9,49,.08));
}
.pillar h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: .6rem; }
.pillar p { color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat {
  text-align: center; padding: 2rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.stat__num {
  display: block; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff, #98a4b3);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .8rem;
}
.stat__label { font-size: .95rem; color: var(--steel-200); }
.stat__label strong { color: #fff; }
.stats__source { text-align: center; margin-top: 2rem; font-size: .85rem; color: var(--steel-200); opacity: .7; }

/* ---------- Solution ---------- */
.solution { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.solution__art { display: grid; place-items: center; }
.solution__text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy); margin-bottom: 1.2rem; }
.solution__text > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 1.6rem; }
.solution__text .btn { margin-top: 1.8rem; }

.checklist { display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2.1rem; color: var(--text); font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
  background: var(--grad); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700;
}

/* Phone mockup */
.phone {
  position: relative;
  width: 270px; height: 540px;
  background: var(--navy);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
  animation: float 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: var(--navy); border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0c1242, #060931);
  border-radius: 28px;
  padding: 2.6rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  overflow: hidden;
}
.phone__title { color: #fff; font-weight: 800; font-size: 1.2rem; margin-top: .3rem; }
.phone__sub { color: var(--steel-200); font-size: .78rem; margin-bottom: .4rem; }
.phone__field { width: 100%; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.phone__btn { width: 100%; padding: .55rem; border-radius: 9px; background: var(--steel); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; }
.phone__btn--light { background: rgba(255,255,255,.1); }
.phone__or { width: 100%; text-align: center; position: relative; color: var(--steel-200); font-size: .7rem; margin: .2rem 0; }
.phone__or::before, .phone__or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: rgba(255,255,255,.12); }
.phone__or::before { left: 0; } .phone__or::after { right: 0; }
.phone__msg { font-size: .72rem; padding: .45rem .7rem; border-radius: 12px; max-width: 85%; }
.phone__msg--in { align-self: flex-start; background: rgba(255,255,255,.12); color: #fff; border-bottom-left-radius: 3px; margin-top: .4rem; }
.phone__msg--out { align-self: flex-end; background: var(--steel); color: #fff; border-bottom-right-radius: 3px; }

/* ---------- Cards (pour qui) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2.2rem;
  border: 1px solid rgba(6,9,49,.07); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card--feature { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.card--feature h3 { color: #fff; }
.card--feature li { color: rgba(255,255,255,.92); }
.card--feature li::before { color: #fff; }

.card__badge {
  display: inline-block; align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
  background: rgba(88,114,145,.14); color: var(--steel);
}
.card__badge--accent { background: rgba(255,255,255,.2); color: #fff; }
.card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 1.2rem; }
.card ul { display: grid; gap: .8rem; }
.card li { position: relative; padding-left: 1.7rem; font-size: .96rem; color: var(--muted); }
.card li::before {
  content: "→"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--steel);
}

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.partner {
  display: grid; place-items: center; text-align: center;
  padding: 1.8rem 1rem; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid rgba(6,9,49,.07);
  font-weight: 600; color: var(--steel); font-size: .95rem;
  transition: transform .3s var(--ease), color .3s, box-shadow .3s;
}
.partner:hover { transform: translateY(-5px); color: var(--navy); box-shadow: var(--shadow-sm); }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; background: var(--navy); color: #fff; padding: 6rem 1.5rem; overflow: hidden; text-align: center; }
.cta__glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,114,145,.55), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(40px); pointer-events: none;
}
.cta__inner { position: relative; max-width: 680px; margin: 0 auto; }
.cta__inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta__inner > p { color: var(--steel-200); font-size: 1.1rem; margin-bottom: 2.4rem; }
.cta__form { display: flex; gap: .8rem; max-width: 480px; margin: 0 auto 1.2rem; flex-wrap: wrap; }
.cta__form input {
  flex: 1; min-width: 200px;
  padding: 1rem 1.4rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; font-family: inherit;
  transition: border-color .25s, background .25s;
}
.cta__form input::placeholder { color: var(--steel-200); }
.cta__form input:focus { outline: none; border-color: var(--steel-200); background: rgba(255,255,255,.14); }
.cta__form input.is-error { border-color: #ff8a8a; }
.cta__note { font-size: .82rem; color: var(--steel-200); opacity: .8; }
.cta__note.is-success { color: #b9f6c8; opacity: 1; font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #04061f; color: #fff; padding: 3.5rem 1.5rem 1.5rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; color: #fff; }
.footer__brand .brand__logo { color: #fff; flex-shrink: 0; }
.footer__brand strong { display: block; font-size: 1.3rem; }
.footer__brand span { color: var(--steel-200); font-size: .92rem; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a, .footer__contact a { color: var(--steel-200); font-size: .94rem; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact strong, .footer__nav strong { color: #fff; margin-bottom: .3rem; }
.footer__bottom {
  max-width: var(--maxw); margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .85rem; color: var(--steel-200); opacity: .7;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; gap: 3rem; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .solution { grid-template-columns: 1fr; gap: 3rem; }
  .solution__text { text-align: center; }
  .checklist { display: inline-grid; text-align: left; }
  .solution__text .checklist li { margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    padding: 1.5rem; gap: 1.2rem; box-shadow: var(--shadow); margin: 0;
  }
  .pillars, .cards { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__chip { font-size: .76rem; padding: .55rem .8rem; }
}

@media (max-width: 460px) {
  .stats, .partners { grid-template-columns: 1fr; }
  .hero__chip--2 { right: -2%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
