/* ==========================================================================
   Be Power — site vitrine
   Identité « Finary » : clair & épuré, premium. Titres Poppins.
   Bleu pervenche #5682F2 · or #C79A5B · pêche #FDBC71 · lavande #DCBFDE
   ========================================================================== */

:root {
  --brand: #5682f2;
  --brand-dark: #3f63c9;
  --brand-light: #6897fe;
  --violet: #6243c4;
  --gold: #c79a5b;
  --peach: #fdbc71;
  --lavender: #dcbfde;
  --ink: #141415;
  --slate: #475569;
  --slate-lt: #64748b;
  --muted: #959ba4;
  --bg: #f7f7fa;
  --card: #ffffff;
  --border: #e6eaf2;
  --tint: #eef2fe;
  --tint-gold: #f6eedf;

  --gradient: linear-gradient(125deg, #0a1538 0%, #14225e 40%, #243a92 66%, #5a3a90 88%, #c79a5b 100%);
  --gradient-data: linear-gradient(125deg, #0a1538 0%, #16245e 45%, #283f93 72%, #463a7e 100%);
  --gradient-soft: linear-gradient(135deg, #e6ebfb 0%, #e8e6f4 62%, #f3ecdd 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

/* Icônes Material Symbols (servies par Google Fonts) */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- En-tête / navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--slate); transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 17px; }
.lead { font-size: 19px; color: var(--slate); }

/* ---------- Hero ---------- */
.hero { background: var(--gradient); color: #fff; padding: 96px 0 88px; }
.hero .eyebrow { color: var(--peach); display: inline-flex; align-items: center; gap: 8px; }
.hero h1 { color: #fff; font-size: 50px; max-width: 760px; margin-top: 18px; }
.hero p { color: #d7def2; font-size: 19px; max-width: 600px; margin-top: 20px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; font-size: 13.5px; color: #c9d2ec; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--peach); }

/* Hero en 2 colonnes : texte + visuel app */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-grid .hero h1, .hero-copy h1 { margin-top: 18px; }
.hero-visual { position: relative; }

/* Aperçu stylisé de l'application */
.app-preview {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px -25px rgba(5, 12, 40, 0.55);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.app-top {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #f3f5fb; border-bottom: 1px solid var(--border);
}
.app-top .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.app-top .dot.r { background: #ff5f57; }
.app-top .dot.a { background: #febc2e; }
.app-top .dot.g { background: #28c840; }
.app-top .app-title { margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--slate-lt); }
.app-body { padding: 18px; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-kpi { background: var(--tint); border-radius: 12px; padding: 12px 13px; }
.app-kpi .k-label { display: block; font-size: 11px; color: var(--slate-lt); font-weight: 500; }
.app-kpi .k-val { display: block; font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 3px; font-family: "Poppins", sans-serif; }
.app-kpi.warn { background: var(--tint-gold); }
.app-kpi.warn .k-val { color: var(--gold); }
.app-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.app-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
}
.app-row .r-ref { font-size: 13px; font-weight: 500; color: var(--ink); }
.app-row .r-sub { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; }
.app-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.app-badge.b { background: #e6effe; color: #2f56b5; }
.app-badge.v { background: #ece4f6; color: #6243c4; }
.app-badge.o { background: #f6eedf; color: #9a6e25; }
.app-badge.gr { background: #e2f3ea; color: #1d7a4f; }

/* Carte notification flottante */
.app-notif {
  position: absolute; left: -22px; bottom: -22px;
  background: #fff; border-radius: 14px; padding: 12px 15px;
  box-shadow: 0 18px 40px -18px rgba(5, 12, 40, 0.5);
  display: flex; align-items: center; gap: 11px; max-width: 240px;
}
.app-notif .n-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.app-notif .n-title { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.app-notif .n-sub { font-size: 11px; color: var(--muted); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .app-notif { left: 0; }
}

/* Aperçu Kanban MES-Pro (style screenshot) */
.solution-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.solution-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink); }
.solution-points li i { color: var(--gold); margin-top: 2px; font-size: 20px; }
.mes-shot {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 28px 55px -25px rgba(5, 12, 40, 0.4);
}
.mes-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; background: #f3f5fb; }
.mes-col { background: #e9edf6; border-radius: 11px; padding: 9px 8px; }
.col-h { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--slate); padding: 2px 4px 9px; }
.col-h .count { background: #fff; color: var(--slate-lt); border-radius: 999px; font-size: 10px; padding: 1px 7px; }
.mes-card { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; margin-bottom: 7px; }
.mes-card:last-child { margin-bottom: 0; }
.mes-card .m-ref { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.mes-card .m-adr { font-size: 10px; color: var(--muted); margin-top: 1px; }
.m-tag { display: inline-block; margin-top: 7px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.m-tag.b { background: #e6effe; color: #2f56b5; }
.m-tag.v { background: #ece4f6; color: #6243c4; }
.m-tag.o { background: #f6eedf; color: #9a6e25; }
.m-tag.gr { background: #e2f3ea; color: #1d7a4f; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--tint); color: var(--brand);
}
.icon.gold { background: var(--tint-gold); color: var(--gold); }

/* ---------- Cartes produit ---------- */
.product-card { display: flex; flex-direction: column; border-top: 3px solid var(--brand); }
.product-logo { display: block; }
.product-card.gold { border-top-color: var(--gold); }
.product-card.anis { border-top-color: #9CCC2F; }
.product-card.anis li i { color: #7ba517; }
.product-card.anis .product-link { color: #7ba517; }
.product-card .tagline { color: var(--muted); font-size: 14px; margin-top: 2px; }
.product-card .desc { color: var(--slate); font-size: 15px; margin-top: 12px; }
.product-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.product-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink); }
.product-card li i { color: var(--brand); margin-top: 3px; }
.product-card.gold li i { color: var(--gold); }
.product-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-weight: 600; color: var(--brand); }
.product-card.gold .product-link { color: var(--gold); }
.product-link:hover { gap: 11px; transition: gap .15s; }

/* ---------- Cartes expertise (types de raccordement + photo) ---------- */
.exp-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.exp-img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); }
.exp-img::after {
  content: "Photo à venir";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.exp-img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.exp-body { padding: 20px 22px 24px; }
.exp-badge {
  display: inline-block; background: var(--tint); color: var(--brand-dark);
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
}
.exp-badge.gold { background: var(--tint-gold); color: #9a6e25; }
.exp-body h3 { font-size: 17px; margin-top: 10px; }
.exp-body p { color: var(--muted); font-size: 14px; margin-top: 7px; }

/* ---------- Bandes spéciales ---------- */
.band-soft { background: var(--gradient-soft); border-radius: var(--radius); padding: 48px; }
.band-soft .eyebrow { color: var(--violet); }
.band-soft h2 { font-size: 28px; margin-top: 10px; max-width: 520px; }
.band-soft p { color: var(--slate); margin-top: 12px; max-width: 600px; font-size: 16px; }

.dark { background: var(--gradient-data); color: #fff; }
.dark .eyebrow { color: var(--peach); }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: #c9d2ec; }
.dark-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.dark-card i { color: var(--brand-light); font-size: 22px; }
.dark-card h3 { font-size: 16.5px; margin-top: 12px; }
.dark-card p { color: #c9d2ec; font-size: 13.5px; margin-top: 6px; }

/* ---------- Workflow / étapes ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step.gold .step-num { background: var(--gold); }
.step h3 { font-size: 17px; }
.step p { color: var(--slate-lt); font-size: 14.5px; margin-top: 3px; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: 36px; max-width: 640px; margin: 0 auto; }
.cta-final p { color: var(--slate); font-size: 18px; margin-top: 14px; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Pied de page ---------- */
.footer { background: #0d1430; color: #aab4d4; padding: 56px 0 28px; }
.footer .brand { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col { min-width: 180px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col p, .footer-col a { display: block; color: #aab4d4; font-size: 13.5px; margin-bottom: 7px; }
.footer-col a:hover { color: #fff; }
.footer-about { max-width: 260px; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 12.5px; color: #7682a8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Pages de contenu (légal / contact) ---------- */
.page-head { background: var(--gradient-data); color: #fff; padding: 72px 0 56px; }
.page-head h1 { color: #fff; font-size: 40px; }
.page-head p { color: #c9d2ec; margin-top: 12px; font-size: 17px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--slate); font-size: 15.5px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--tint); }
.notice {
  background: var(--tint-gold); border: 1px solid #e6d3b0; border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 14px; color: #8a6a2f; margin: 24px 0;
}

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-size: 14px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86,130,242,.15); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .info-item i { color: var(--brand); font-size: 22px; margin-top: 2px; }
.contact-info h3 { font-size: 16px; }
.contact-info p { color: var(--slate); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px;
    box-shadow: 0 22px 40px -22px rgba(5, 12, 40, 0.3);
  }
  .nav-links.open a { padding: 12px 0; font-size: 16px; }
  .nav-links.open .btn { margin-top: 10px; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero { padding: 64px 0 60px; }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .band-soft { padding: 32px; }
  .page-head h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .cta-final h2 { font-size: 27px; }
}
