/* ============================================
   INTEGRAL — Modern site stylesheet
   ============================================ */

:root {
  /* ===== Charte INTEGRAL ===== */
  --bleu-profond: #131F44;        /* Pantone 5395 C */
  --bleu-tech: #2E3D88;            /* Pantone 287 C */
  --azur: #86C1CF;                 /* Pantone 2197 C */
  --emeraude: #73B073;             /* Pantone 7481 CP */
  --vert-sage: #488372;            /* Pantone 626 C */
  --beige: #FFF1DF;                /* Pantone 7506 C */

  /* ===== Tokens UI ===== */
  --bg-0: #0A1532;                 /* fond principal — bleu profond très foncé */
  --bg-1: var(--bleu-profond);
  --bg-2: #1A2858;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(134, 193, 207, 0.14);
  --border-strong: rgba(134, 193, 207, 0.30);
  --text: #FFF1DF;                 /* beige charte */
  --text-soft: #cbd6e6;
  --text-muted: #8094b3;
  --accent: var(--azur);           /* turquoise charte */
  --accent-2: var(--emeraude);     /* vert charte */
  --accent-3: var(--vert-sage);
  --danger: #ff7a8d;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-glow: 0 0 60px rgba(134, 193, 207, 0.22);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --grad-hero: radial-gradient(1200px 600px at 20% -10%, rgba(134, 193, 207, 0.22), transparent 60%),
               radial-gradient(900px 500px at 90% 0%, rgba(115, 176, 115, 0.18), transparent 60%);
  --grad-line: linear-gradient(90deg, transparent, var(--accent), transparent);
  --grad-button: linear-gradient(135deg, var(--azur) 0%, var(--emeraude) 100%);
  --grad-text: linear-gradient(135deg, #FFF1DF 0%, #86C1CF 55%, #73B073 100%);
  --grad-brand: linear-gradient(135deg, var(--bleu-tech) 0%, var(--vert-sage) 60%, var(--emeraude) 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1000px 600px at 80% -200px, rgba(134, 193, 207, 0.14), transparent 60%),
    radial-gradient(800px 400px at -10% 10%, rgba(115, 176, 115, 0.10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

p { color: var(--text-soft); }

::selection { background: var(--accent); color: var(--bg-0); }

/* ===== Layout helpers ===== */
.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}
.section {
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(50px, 7vw, 90px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(134, 193, 207, 0.08);
  border: 1px solid rgba(134, 193, 207, 0.25);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.title-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 720px;
  margin-bottom: 60px;
}
.section-head p { margin-top: 18px; font-size: 1.05rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .35s var(--ease);
  backdrop-filter: blur(0px);
}
.site-header.scrolled {
  background: rgba(10, 21, 50, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
}
.nav__logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: height .3s var(--ease);
}
.site-header.scrolled .nav__logo img { height: 36px; }
.site-header.scrolled .nav__logo { padding: 6px 14px; }
.footer-brand .nav__logo img { height: 60px; }
.nav__menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}

@media (max-width: 980px) {
  .btn-header {
    display: none!important;
  }
}

/* ===== Dropdown nav ===== */
.nav__menu li.has-sub { position: relative; }
.nav__menu .has-sub > a::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--ease);
  opacity: .6;
}
.nav__menu .has-sub:hover > a::after,
.nav__menu .has-sub:focus-within > a::after {
  transform: translateY(2px) rotate(225deg);
  opacity: 1;
}
.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 18px 10px 10px;
  background: rgba(10, 21, 50, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  list-style: none;
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all .25s var(--ease);
}
.nav__menu .has-sub:hover > .nav__sub,
.nav__menu .has-sub:focus-within > .nav__sub {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__sub a {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px !important;
  border-radius: 10px;
  width: 100%;
}
.nav__sub a strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__sub a small {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.nav__sub a:hover { background: var(--surface-strong); }
.nav__sub a:hover strong { color: var(--accent); }
.nav__sub a.active::after { display: none; }

@media (max-width: 980px) {
  .nav__menu .has-sub > a::after { display: none; }
  .nav__sub {
    position: static;
    min-width: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ===== Product hero (PATR.IOT / FlowIoT) ===== */
.product-page-hero {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
}
.product-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.product-page-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-page-hero__logo {
  position: relative;
  max-height: 64px;
  width: auto;
  aspect-ratio: 4/1;
  margin-bottom: 30px;
  filter: drop-shadow(0 8px 24px rgba(134, 193, 207, 0.25));
  overflow: hidden;
}
.product-page-hero__logo img {
  position: absolute;
  width: 100%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.product-page-hero__logo.flowiot-logo img{
  transform: translate(-65%, -50%);
}
.product-page-hero__logo.flowiot-logo {
  max-height: 90px;
  width: auto;
}
.product-page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}
.product-page-hero__lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 580px;
}
.product-page-hero__meta {
  display: flex; flex-wrap: nowrap; gap: 12px;
  margin-bottom: 32px;
}
.product-page-hero__meta span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-soft);
  text-wrap: nowrap;
}
.product-page-hero__meta span::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.product-page-hero__visual {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  width: 120%;
}
.product-page-hero__visual::before {
  content: '';
  position: absolute;
  width: 80%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 193, 207, 0.25), transparent 65%);
  animation: pulse 4s ease-in-out infinite;
}
.product-page-hero__visual img {
  position: relative;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

/* --- Tablet (≤980px) ---------------------------------------- */
@media (max-width: 980px) {
  .product-page-hero { padding: 140px 0 70px; }
  .product-page-hero__inner { grid-template-columns: 1fr; }
  .product-page-hero__visual { max-width: 360px; margin: 40px auto 0; }
  .product-page-hero__lead { font-size: 1.05rem; }
  /* Meta badges : 2 identic columns */
  .product-page-hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex-wrap: wrap;
  }
  .product-page-hero__meta span {
    white-space: normal;
    text-wrap: wrap;
  }
}

/* --- Large mobiles (≤640px) ---------------------------------- */
@media (max-width: 640px) {
  .product-page-hero { padding: 110px 0 60px; }
  .product-page-hero__logo { max-height: 54px; margin-bottom: 18px; }
  .product-page-hero h1 { margin-bottom: 16px; }
  .product-page-hero__lead { font-size: 0.95rem; margin-bottom: 22px; }
  .product-page-hero__meta { gap: 8px; margin-bottom: 22px; }
  .product-page-hero__meta span { font-size: 0.75rem; padding: 5px 10px; }
  .product-page-hero__visual { max-width: 260px; }
}

/* --- Small mobiles (≤480px) ---------------------------------- */
@media (max-width: 480px) {
  .product-page-hero { padding: 96px 0 52px; }
  .product-page-hero__visual { display: none; }
  .product-page-hero__meta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero__visual { display: none!important; }
}

/* ===== Spec table ===== */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.specs__row {
  display: contents;
}
.specs dt, .specs dd {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.specs dt {
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(10, 21, 50, 0.4);
  letter-spacing: 0.02em;
}
.specs dd {
  color: var(--text);
  font-weight: 500;
}
.specs dt:nth-last-of-type(1),
.specs dd:nth-last-of-type(1) { border-bottom: none; }
@media (max-width: 560px) {
  .specs { grid-template-columns: 1fr; }
  .specs dt { padding-bottom: 4px; border-bottom: none; }
  .specs dd { padding-top: 4px; }
}

/* ===== Bento specs grid ===== */
.bento-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.bento-specs__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s var(--ease), background .2s;
}
.bento-specs__item:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.bento-specs__item--wide { grid-column: span 2; }
.bento-specs__label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bento-specs__value {
  font-size: 1.55rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.bento-specs__sub {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 700px) {
  .bento-specs { grid-template-columns: repeat(2, 1fr); }
  .bento-specs__value { font-size: 1.25rem; }
}
@media (max-width: 460px) {
  .bento-specs { grid-template-columns: 1fr; }
  .bento-specs__item--wide { grid-column: span 1; }
}

/* ===== Specs descriptive list ===== */
.specs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.specs-list__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--border);
}
.specs-list__item:last-child { border-bottom: none; }
.specs-list__label {
  padding: 16px 22px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(10, 21, 50, 0.4);
  border-right: 2px solid var(--accent);
  display: flex;
  align-items: center;
}
.specs-list__value {
  padding: 16px 22px;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  align-items: center;
}
@media (max-width: 600px) {
  .specs-list__item { grid-template-columns: 1fr; }
  .specs-list__label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
  }
  .specs-list__value { padding: 12px 16px; }
}

/* ===== Use case grid (FlowIoT) ===== */
.use-case {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .35s var(--ease);
  display: grid;
  gap: 14px;
  align-content: start;
}
.use-case {
  grid-column: span 2;
}

.use-case:nth-child(5),
.use-case:nth-child(7) {
  grid-column: span 3;
}

.flowiot-use-cases .use-case:nth-child(5),
.flowiot-use-cases .use-case:nth-child(7) {
  grid-column: span 2;
}

.use-case:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(134, 193, 207, 0.06), rgba(115, 176, 115, 0.04));
}
.use-case__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(134, 193, 207, 0.12);
  border: 1px solid rgba(134, 193, 207, 0.25);
  display: grid; place-items: center;
  color: var(--accent);
}
.use-case__icon svg { width: 24px; height: 24px; }
.use-case h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.use-case p { font-size: 0.9rem; }
.nav__menu a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.nav__menu a:hover { color: var(--text); background: var(--surface); }
.nav__menu a.active { color: var(--text); }
.nav__menu a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--grad-button);
  border-radius: 2px;
}
.nav__cta { display: flex; gap: 10px; align-items: center; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav__menu {
    position: fixed;
    inset: 70px 16px auto 16px;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(10, 21, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .3s var(--ease);
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu li { width: 100%; }
  .nav__menu a { width: 100%; padding: 14px 16px; }
  .nav__burger { display: block; }
  .nav__cta .btn--ghost { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-button);
  color: #0A1532;
  box-shadow: 0 10px 30px rgba(134, 193, 207, 0.25), 0 0 0 0 rgba(134, 193, 207, 0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(134, 193, 207, 0.4), 0 0 0 4px rgba(134, 193, 207, 0.15);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(134, 193, 207, 0.10);
}

.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin-top: 24px;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.hero h1 span { display: inline-block; }
.hero__lead {
  font-size: 1.18rem;
  color: var(--text-soft);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-soft);
  text-wrap: nowrap;
}
.trust-pill svg { width: 14px; height: 14px; color: var(--emerald); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hero__stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad-button);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stat .lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero visual orb */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.wave {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.wave__halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 42%, rgba(134, 193, 207, 0.42), transparent 58%),
    radial-gradient(circle at 68% 58%, rgba(115, 176, 115, 0.32), transparent 58%);
  filter: blur(34px);
  z-index: 0;
  animation: waveHalo 7s ease-in-out infinite;
}
.wave__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* Secondary waves—animated horizontally (perfect loop on 600 units SVG = 1 period) */
.wave__line {
  transform-box: view-box;
  transform-origin: 0 600px;
  will-change: transform;
  animation: waveSlide var(--wave-dur, 12s) linear infinite;
}
.wave__line--2 { --wave-dur: 13s; animation-direction: reverse; }
.wave__line--3 { --wave-dur: 8s; }
.wave__line--4 { --wave-dur: 16s; animation-direction: reverse; }

/* Static main wave—no animation, serves as an anchor for the badges */
.wave__pulse-dot { filter: drop-shadow(0 0 8px rgba(255, 241, 223, 0.85)); }
.wave__pulse-dot--alt { filter: drop-shadow(0 0 8px rgba(115, 176, 115, 0.85)); }

/* Keywords anchored on the peaks/troughs of the main wave */
.wave__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.wave__anchor {
  position: absolute;
  transform: translate(-50%, -50%);
}
/* Quarters of arc of the main curve (viewBox 1200×1200, période 1200)
   Concave t=0.25 → x≈136,y≈900  /  t=0.75 → x≈464,y≈900
   Spike   t=0.25 → x≈736,y≈300  /  t=0.75 → x≈1065,y≈300 */
.wave__anchor--q1 { left: 11.3%;  top: 75%; }
.wave__anchor--q2 { left: 38.7%;  top: 75%; }
.wave__anchor--q3 { left: 61.3%;  top: 25%; }
.wave__anchor--q4 { left: 88.75%; top: 25%; }

/* Dot — point on the curve */
.wave__pin {
  position: relative;
  animation: nodeFloat 6s ease-in-out infinite;
}
.wave__pin-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 18px rgba(134, 193, 207, 0.35);
  animation: blink 2s ease-in-out infinite;
}

/* Label — text above for the points at the bottom of the curve (dip) */
.wave__pin-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  background: rgba(10, 21, 50, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}
.wave__anchor--q1 .wave__pin-label,
.wave__anchor--q2 .wave__pin-label { bottom: calc(100% + 9px); }

/* Label — text below for the points at the top of the curve (peaks) */
.wave__anchor--q3 .wave__pin-label,
.wave__anchor--q4 .wave__pin-label { top: calc(100% + 9px); }

/* Animation offsets */
.wave__anchor--q1 .wave__pin { animation-delay: 0s; }
.wave__anchor--q2 .wave__pin { animation-delay: 1.5s; }
.wave__anchor--q3 .wave__pin { animation-delay: 3s; }
.wave__anchor--q4 .wave__pin { animation-delay: 4.5s; }

/* Dots colors */
.wave__anchor--q2 .wave__pin-dot { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2), 0 0 18px rgba(115, 176, 115, 0.35); }
.wave__anchor--q3 .wave__pin-dot { background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3), 0 0 18px rgba(72, 131, 114, 0.35); }
.wave__anchor--q4 .wave__pin-dot { background: var(--beige);    box-shadow: 0 0 8px var(--beige),    0 0 18px rgba(255, 241, 223, 0.35); }

@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-600px); }
}
@keyframes waveHalo {
  0%, 100% { opacity: .8; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes nodeFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

@media (prefers-reduced-motion: reduce) {
  .wave__halo, .wave__line, .wave__pin, .wave__pin-dot { animation: none; }
  .wave__pulse-dot { display: none; }
}

/* --- Tablet (≤980px) ---------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 360px; margin: 40px auto 0; }
  .hero__lead { font-size: 1.05rem; }
  /* Trust pills : 2 identical columns */
  .hero__trust {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .trust-pill {
    white-space: normal;
  }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
}

/* --- Large mobile (≤640px) ---------------------------------- */
@media (max-width: 640px) {
  .hero { padding: 110px 0 70px; }
  .hero h1 { margin-top: 14px; margin-bottom: 16px; }
  .hero__lead { font-size: 0.95rem; margin-bottom: 24px; }
  /* CTAs full-width stacks */
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { justify-content: center; }
  /* Trust pills more compact */
  .trust-pill { font-size: 0.73rem; padding: 5px 10px; }
  /* Reduced visual, hidden labels (too narrow) */
  .hero__visual { max-width: 260px; }
  /* Stats */
  .hero__stats { gap: 10px; }
  .hero__stat .num { font-size: 1.8rem; }
  .hero__stat .lbl { font-size: 0.78rem; }
}

/* --- Small mobile (≤480px) ---------------------------------- */
@media (max-width: 480px) {
  .hero { padding: 96px 0 56px; }
  /* Hidden visual: space is given priority over text */
  /* Trust pills only column */
  .hero__trust { grid-template-columns: 1fr; }
  .hero__stat .num { font-size: 1.5rem; }
}

/* ===== Card grid ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
.grid--8 { grid-template-columns: repeat(8, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6, .grid--8 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .grid--6, .grid--8 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Card ===== */
.card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(134, 193, 207, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(134, 193, 207, 0.12);
  border: 1px solid rgba(134, 193, 207, 0.25);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--accent);
  transition: all .35s var(--ease);
}
.card:hover .card__icon {
  background: rgba(134, 193, 207, 0.2);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.card__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* ===== Solutions / Markets compact tile ===== */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .35s var(--ease);
  text-align: left;
  min-height: 200px;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(134, 193, 207, 0.06), rgba(72, 131, 114, 0.04));
}
.tile__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.tile h3 { font-size: 1.1rem; }
.tile p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== Avantages numbered list ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.benefit__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--grad-button);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 18px;
}
.benefit h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}
.benefit p { font-size: 0.92rem; }
.benefit:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
@media (max-width: 980px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ===== IoT highlight section ===== */
.iot-banner {
  position: relative;
  padding: clamp(60px, 8vw, 100px) clamp(28px, 4vw, 60px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(134, 193, 207, 0.18), transparent 60%),
    radial-gradient(700px 350px at 100% 100%, rgba(72, 131, 114, 0.22), transparent 60%),
    linear-gradient(135deg, #131F44, #0A1532);
  border: 1px solid var(--border-strong);
}
.iot-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.iot-banner__head { margin-bottom: 36px; }
.iot-banner__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.iot-product {
  display: block;
  padding: 24px 22px;
  background: rgba(10, 21, 50, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.iot-product:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.iot-product__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(134, 193, 207, 0.10);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.iot-product--patriot .iot-product__badge { color: var(--accent-3); background: rgba(115, 176, 115, 0.10); }
.iot-product__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.iot-product p { font-size: 0.9rem; }

@media (max-width: 980px) {
  .iot-banner__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .iot-banner__products { grid-template-columns: 1fr; }
  .btn-discover { width: 100%; justify-content: center; }
}

/* ===== Marquee / partners ===== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  padding: 24px 0;
}
.marquee__track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee__item {
  flex: 0 0 auto;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft);
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== CTA banner ===== */
.cta-banner {
  position: relative;
  padding: clamp(50px, 8vw, 90px) clamp(28px, 5vw, 70px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(134, 193, 207, 0.22), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(72, 131, 114, 0.22), transparent 50%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 580px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner__actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 640px) {
  .cta-banner__actions .btn { width: 100%; justify-content: center; }
}

/* ===== Form ===== */
.form {
  display: grid;
  gap: 18px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: grid; gap: 6px; }
.form__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(10, 21, 50, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 21, 50, 0.8);
  box-shadow: 0 0 0 4px rgba(134, 193, 207, 0.12);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--text-muted); }

.form__check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--text-muted);
}
.form__check input { margin-top: 4px; accent-color: var(--accent); }

.form__msg {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form__msg.success {
  display: block;
  background: rgba(115, 176, 115, 0.10);
  border: 1px solid rgba(115, 176, 115, 0.3);
  color: var(--accent-3);
}
.form__msg.error {
  display: block;
  background: rgba(255, 85, 119, 0.10);
  border: 1px solid rgba(255, 85, 119, 0.3);
  color: var(--danger);
}

/* ===== Contact info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-info__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(134, 193, 207, 0.10);
  border: 1px solid rgba(134, 193, 207, 0.25);
  display: grid; place-items: center;
  color: var(--accent);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info__item p, .contact-info__item a { font-size: 0.95rem; color: var(--text-soft); }
.contact-info__item a:hover { color: var(--accent); }

.contact-btn-group {
  display: flex;
  flex-direction: column;
}

.addresses-section .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.addresses-section .card .card__link {
  margin-top: 0;
}
/* ===== Footer ===== */
.site-footer {
  position: relative;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
}

.footer-brand p { font-size: 0.92rem; max-width: 320px; margin-top: 18px; }
.footer-col h5 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem; 
}
.footer-col a {
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom a:hover { color: var(--accent); }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.page-hero h1 { margin-top: 18px; }
.page-hero p {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: 1.1rem;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Solution details (solutions page) ===== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 30px;
  border-top: 1px solid var(--border);
}

.feature img {
  width: 75%;
  border-radius: 8px;
  object-fit: cover;
  margin-left: auto;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 18px 0; }
  .feature img {
    width: 100%;
    margin-left: 0;
  }
}

#groupe .grid .card .card__img {
  margin-bottom: 15px;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  position: relative;
}

#groupe .grid .card .card__img img {
  width: 100%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== Scroll-to-top ===== */
.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #0A1532;
  display: grid; place-items: center;
  border: none;
  opacity: 0;
  transform: translateY(20px) scale(.9);
  pointer-events: none;
  transition: all .35s var(--ease);
  z-index: 90;
  box-shadow: 0 10px 30px rgba(134, 193, 207, 0.4);
}
.to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.05); }
.to-top svg { width: 20px; height: 20px; }

/* ===== IoT page specific ===== */
.product-hero {
  position: relative;
  padding: 80px 0;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.product-hero--patriot {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(115, 176, 115, 0.18), transparent 60%),
    radial-gradient(700px 350px at 100% 100%, rgba(134, 193, 207, 0.14), transparent 60%),
    linear-gradient(135deg, #0F2A24, #0F2A24);
}
.product-hero--flowiot {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(134, 193, 207, 0.22), transparent 60%),
    radial-gradient(700px 350px at 10% 100%, rgba(72, 131, 114, 0.20), transparent 60%),
    linear-gradient(135deg, #131F44, #0A1532);
}
.product-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 clamp(28px, 5vw, 60px);
}
@media (max-width: 980px) {
  .product-hero__inner { grid-template-columns: 1fr; }
}
.product-hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.product-hero__features {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}
.product-hero__features li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.product-hero__features li svg {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--accent);
  margin-top: 2px;
}
.product-hero--patriot .product-hero__features li svg { color: var(--accent-3); }

.product-mock {
  position: relative;
  padding: 30px;
  background: rgba(10, 21, 50, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  font-family: 'Space Grotesk', monospace;
}
.product-mock::before {
  content: '● ● ●';
  display: block;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-bottom: 18px;
}
.product-mock__metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.product-mock__metric:last-child { border-bottom: none; }
.product-mock__metric .lbl { color: var(--text-muted); }
.product-mock__metric .val {
  font-weight: 600;
  color: var(--accent);
}
.product-hero--patriot .product-mock__metric .val { color: var(--accent-3); }
.product-mock__metric .pill {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  background: rgba(115, 176, 115, 0.15);
  color: var(--accent-3);
  border: 1px solid rgba(115, 176, 115, 0.3);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 50px; }
.hidden { display: none !important; }
