/* =========================================================
   FOURNEO — Landing page
   Thème clair, couleurs de marque réelles (extraites du logo) :
   bleu marine #063473 (dominante) + rouge #D51013 (accent, sobre).
   Une seule section sombre conservée (Contact) pour la rupture
   de rythme finale ; tout le reste est clair (blanc / gris tinté).
   Motif répété : icône dans cercle marine, cartes à coins arrondis.
   ========================================================= */

:root {
  /* Marque — échantillonnée directement sur le logo FOURNEO */
  --navy: #063473;         /* bleu marine — couleur dominante */
  --navy-dark: #001C5D;    /* marine profond — fond de la section sombre */
  --red: #D51013;          /* rouge — accent, CTA, rare */
  --red-dark: #A80D10;     /* rouge hover/pressed */

  --paper: #FFFFFF;
  --paper-2: #F4F7FB;      /* fond clair secondaire (sections teintées) */
  --paper-border: #E3E8F0;

  --text-dark: #10192B;    /* texte sur fond clair */
  --text-dark-muted: #5B6B84;
  --text-light: #F3F6FB;   /* texte sur fond sombre (contact) */
  --text-light-muted: #9AACC9;

  --ink: var(--navy-dark);      /* fond sombre (contact uniquement) */
  --ink-2: #0B2B5C;             /* cartes sur fond sombre */
  --ink-border: #1C3F72;

  --accent: var(--navy);        /* alias sémantique conservé pour les icônes */
  --accent-2: var(--navy);
  --cta: var(--red);
  --cta-ink: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(6, 52, 115, 0.22);
  --shadow-dark: 0 20px 50px -18px rgba(0, 0, 0, 0.45);

  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fond réseau IoT (canvas fixe, derrière tout) ---------- */
#networkBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, #EEF2F8 0%, #F7F9FC 55%, #EEF2F8 100%);
}

/* Tout le contenu doit passer au-dessus du canvas fixe pour que les
   sections translucides (glass) laissent voir le réseau derrière elles. */
main, .footer { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-dark-muted); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.on-dark { color: var(--text-light); }
.on-dark-muted { color: var(--text-light-muted); }

img, svg { display: block; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--accent {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(213, 16, 19, 0.45);
}
.btn--accent:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 16px 32px -10px rgba(213, 16, 19, 0.55); }
.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--paper-border);
}
.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(6, 52, 115, 0.05);
  transform: translateY(-2px);
}
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; padding: 15px 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand__logo { height: 34px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  color: var(--text-dark-muted);
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: rgba(244, 247, 251, 0.45);
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 360px at 82% 15%, rgba(6, 52, 115, 0.08), transparent 70%),
    radial-gradient(420px 320px at 8% 90%, rgba(213, 16, 19, 0.06), transparent 70%);
  pointer-events: none;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 52, 115, 0.18) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 75% 30%, black, transparent 65%);
  opacity: 0.7;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(6, 52, 115, 0.07);
  border: 1px solid rgba(6, 52, 115, 0.14);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(213, 16, 19, 0.16);
}
.eyebrow--on-dark {
  color: #CFE0F7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero h1 { color: var(--text-dark); }
.hero__lead {
  color: var(--text-dark-muted);
  font-size: 1.08rem;
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* dashboard mock */
.hero__visual {
  position: relative;
  /* Laisse la capture déborder vers le bord droit du viewport sur grand
     écran (jusqu'à 180px), sans jamais la resserrer sur petit écran. */
  margin-right: max(-180px, min(0px, calc((1180px - 100vw) / 2)));
}
.mock {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(6, 52, 115, 0.06), 0 0 80px -20px rgba(6, 52, 115, 0.35);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
}
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: #C7D2E3; }
.mock__title {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-dark-muted);
  font-weight: 500;
}
.mock__screenshot { width: 100%; display: block; }

.floatcard {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.floatcard svg { width: 16px; height: 16px; color: var(--navy); }
.floatcard--1 { top: -14px; right: 18px; }
.floatcard--2 { bottom: 22px; left: -18px; }

/* ---------- Generic section ---------- */
.section { padding: 96px 0; background: rgba(255, 255, 255, 0.55); }
.section--dark { background: rgba(0, 28, 93, 0.82); }
.section--tint { background: rgba(244, 247, 251, 0.55); }
.section__head { max-width: 62ch; margin-bottom: 52px; }
.section__lead { font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Feature cards ---------- */
.feature {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-top-color: var(--navy);
  box-shadow: 0 26px 55px -22px rgba(6, 52, 115, 0.3);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(6, 52, 115, 0.08);
  box-shadow: inset 0 0 0 1px rgba(6, 52, 115, 0.12);
  color: var(--navy);
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { color: var(--text-dark); }
.feature p { color: var(--text-dark-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Vue d'ensemble FIIP (image) ---------- */
.solution-visual {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.solution-visual__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(6, 52, 115, 0.06);
}

/* ---------- Flow (how it works) ---------- */
.flow {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  counter-reset: step;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  opacity: 0.22;
  z-index: 0;
}
.flow__step {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--step-color, var(--navy));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color, var(--navy)) 14%, transparent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.flow__step:nth-child(1) { --step-color: #063473; }
.flow__step:nth-child(2) { --step-color: #143E7A; }
.flow__step:nth-child(3) { --step-color: #4A3277; }
.flow__step:nth-child(4) { --step-color: #7B2A5E; }
.flow__step:nth-child(5) { --step-color: #A81E3B; }
.flow__step:nth-child(6) { --step-color: #D51013; }
.flow__step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow__step p { font-size: 0.85rem; margin: 0; }

/* ---------- Product cards (matériel) ---------- */
.product-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--navy);
  box-shadow: 0 26px 55px -22px rgba(6, 52, 115, 0.3);
}
.product-card--ai:hover { border-top-color: var(--red); }
.product-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: rgba(244, 247, 251, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.product-card__media svg { width: 38%; height: 38%; color: var(--navy); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(6, 52, 115, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-card p { font-size: 0.88rem; margin: 0; }
.product-card--ai .product-card__media svg { color: var(--red); }
.product-card--ai .product-card__tag { color: var(--red); background: rgba(213, 16, 19, 0.08); }

.product-card__specs {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--paper-border);
  display: grid;
  gap: 6px;
}
.product-card__specs li {
  font-size: 0.78rem;
  color: var(--text-dark-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.product-card__specs li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--navy);
}
/* ---------- Module cards ---------- */
.module-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}
.module-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--red);
  box-shadow: 0 26px 55px -22px rgba(213, 16, 19, 0.22);
}
.module-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(213, 16, 19, 0.08);
  box-shadow: inset 0 0 0 1px rgba(213, 16, 19, 0.14);
  color: var(--red);
  margin-bottom: 16px;
}
.module-card__icon svg { width: 21px; height: 21px; }
.module-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Contact (seule section sombre) ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__details { display: grid; gap: 14px; margin-top: 28px; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact__item svg { width: 18px; height: 18px; color: #7FA3D6; flex-shrink: 0; }
.contact__item--static { color: var(--text-light-muted); font-weight: 500; }

.contact__form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-dark);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-light);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-light-muted); }
.field select option { color: var(--text-dark); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #7FA3D6;
  box-shadow: 0 0 0 3px rgba(127, 163, 214, 0.2);
}
.form__status {
  margin: 14px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7FA3D6;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.brand--footer { margin-right: 0; }
.footer__links { display: flex; gap: 22px; font-size: 0.86rem; }
.footer__links a { color: var(--text-dark-muted); }
.footer__links a:hover { color: var(--navy); }
.footer__copy { color: var(--text-dark-muted); font-size: 0.8rem; margin: 0; width: 100%; order: 3; text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .floatcard--1, .floatcard--2 { display: none; }
}

@media (max-width: 1100px) {
  .nav__links { gap: 18px; font-size: 0.86rem; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

.nav.is-open .nav__links {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  flex-direction: column;
  padding: 20px 24px;
  gap: 16px;
}
.nav.is-open .nav__cta {
  display: inline-flex;
  position: absolute;
  top: 210px;
  right: 24px;
}
