/* =========================================================
   IBRF — Site vitrine
   Palette ancrée sur le logo : bleu marine profond + bleu ciel
   Display: Bricolage Grotesque · Texte: Hanken Grotesk
   ========================================================= */

:root {
  /* Brand */
  --navy-900: #0a1f33;
  --navy-800: #0e2a43;
  --navy-700: #143a5a;
  --sky-500: #3da5e0;
  --sky-400: #56b8f0;
  --sky-300: #8fd0f7;

  /* App tie-in (même indigo que l'application & le login Authelia) */
  --primary: #3f51b5;
  --primary-600: #36459c;

  /* Neutres */
  --bg: #f6f9fc;
  --surface: #ffffff;
  --ink: #0c1c2e;
  --muted: #5b708a;
  --border: #e2e9f1;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 67, 0.06), 0 4px 14px rgba(14, 42, 67, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(14, 42, 67, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(14, 42, 67, 0.35);

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, color 0.2s;
  white-space: nowrap;
}
.btn-lg { padding: 0.95rem 1.65rem; font-size: 1rem; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px -8px rgba(63, 81, 181, 0.7); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); }

.btn-soft { background: #e9eefb; color: var(--primary); }
.btn-soft:hover { background: #dee5fa; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--border); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }

.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 252, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--border); background: rgba(246, 249, 252, 0.92); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 132px;
  gap: 1.5rem;
}
.brand-logo { height: 112px; width: auto; display: block; }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.97rem;
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px; background: var(--primary);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 24px 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:not(.btn) { padding: 0.75rem 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 0.75rem; justify-content: center; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.blob-1 { width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--sky-400), transparent 70%); }
.blob-2 { width: 460px; height: 460px; bottom: -200px; left: -140px;
  background: radial-gradient(circle at 50% 50%, #c9defb, transparent 70%); opacity: 0.7; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 42, 67, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 42, 67, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; border: 1px solid var(--border);
  padding: 0.45rem 0.95rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 4px rgba(61, 165, 224, 0.2); }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 1.4rem 0 1.2rem; font-weight: 800; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--sky-500), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 33rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 2.5rem; }

.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: "Bricolage Grotesque"; font-size: 1.05rem; }
.hero-trust span { font-size: 0.85rem; color: var(--muted); }

/* Hero visual — water drop scanner */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.drop-card {
  position: relative;
  width: min(360px, 80%);
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  overflow: hidden;
}
.drop-card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.droplet { position: relative; width: 46%; display: grid; place-items: center; }
.droplet svg { width: 100%; fill: none; stroke: var(--sky-400); stroke-width: 3; filter: drop-shadow(0 0 18px rgba(86, 184, 240, 0.55)); }
.ripple {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(86, 184, 240, 0.5);
  animation: ripple 3s ease-out infinite;
}
.ripple-2 { animation-delay: 1.5s; }
@keyframes ripple {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky-400), transparent);
  box-shadow: 0 0 16px var(--sky-400);
  animation: scan 3.4s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 12%; } 50% { top: 88%; } }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  padding: 0.6rem 0.9rem; border-radius: 14px;
  font-size: 0.82rem; font-weight: 600; color: var(--navy-800);
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip .ic { color: var(--sky-500); }
.chip-a { top: 8%; right: -2%; }
.chip-b { bottom: 10%; left: -4%; animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Strip ---------------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.strip-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 24px; }
.strip-inner p { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.strip-inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 0; padding: 0; }
.strip-inner li { font-family: "Bricolage Grotesque"; font-weight: 600; font-size: 1.05rem; color: var(--navy-700); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 48rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1rem;
}
.kicker-light { color: var(--sky-400); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfe1f5; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.25rem;
  background: linear-gradient(150deg, #eaf4fd, #e9eefb);
  color: var(--primary);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Dark section / steps */
.section-dark { background: linear-gradient(165deg, var(--navy-800), var(--navy-900)); color: #fff; position: relative; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #aac3dd; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.step-no { font-family: "Bricolage Grotesque"; font-size: 2.2rem; font-weight: 800; color: var(--sky-400); display: block; margin-bottom: 0.75rem; }
.steps h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.45rem; }
.steps p { color: #a9c2dc; font-size: 0.95rem; }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.expertise-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.expertise-copy > p { color: var(--muted); font-size: 1.1rem; }
.check-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.check-list .ic { color: #fff; background: var(--sky-500); border-radius: 50%; padding: 4px; width: 1.5em; height: 1.5em; stroke-width: 2.4; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.stat strong { font-family: "Bricolage Grotesque"; font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--sky-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .suffix { font-family: "Bricolage Grotesque"; font-size: 1.6rem; font-weight: 700; color: var(--sky-500); }
.stat p { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* CTA panel */
.cta-panel { position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--primary), var(--navy-800)); color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem); box-shadow: var(--shadow-lg); }
.cta-bg { position: absolute; inset: 0; }
.blob-3 { width: 420px; height: 420px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(86, 184, 240, 0.6), transparent 70%); filter: blur(40px); }
.cta-content { position: relative; max-width: 40rem; }
.cta-content h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-content p { margin-top: 1rem; color: #d6e4f3; font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-900); color: #b6cae0; padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 50px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer-brand p { margin-top: 1rem; max-width: 28rem; font-size: 0.95rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.4rem 0; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; font-size: 0.85rem; color: #6f87a3; flex-wrap: wrap; gap: 0.5rem; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ripple, .scan-line, .float-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .float-chip { display: none; }
}
