/* IACHECK V1 — landing claire. Direction : light luxury × éditorial (inspiration Vocalis/SoulBox). */
:root {
  --bg: #fbfcfe;
  --bg-soft: #f2f5fa;
  --card: #ffffff;
  --line: #e4e9f2;
  --text: #0c1220;
  --dim: #5b6676;
  --accent: #2f6bff;
  --accent-ink: #1d49c4;
  --accent-2: #0bbf8a;
  --warn: #d97706;
  --bad: #dc2626;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --text-hero: clamp(2.6rem, 1.2rem + 6.5vw, 6.2rem);
  --text-h2: clamp(1.9rem, 1rem + 3.4vw, 3.5rem);
  --space-section: clamp(5rem, 3rem + 8vw, 10.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(12, 18, 32, .05), 0 4px 14px rgba(12, 18, 32, .05);
  --shadow-lg: 0 24px 70px rgba(18, 36, 84, .14);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .3vw, 1.08rem);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.022em; }

/* ---- Mode landing : fleet / insurance ----
   !important nécessaire : ce sont des utilitaires de visibilité transverses,
   qui doivent l'emporter sur les règles de composant (.btn-ghost, etc.)
   quel que soit leur ordre dans la feuille de style. */
.m-fleet, .m-insurance { display: none !important; }
body[data-mode="fleet"] .m-fleet { display: revert !important; }
body[data-mode="insurance"] .m-insurance { display: revert !important; }
/* revert seul donne display:inline pour <a> — les CTA ont besoin d'inline-flex */
body[data-mode="fleet"] a.m-fleet.btn-cta, body[data-mode="fleet"] a.m-fleet.btn-ghost,
body[data-mode="insurance"] a.m-insurance.btn-cta, body[data-mode="insurance"] a.m-insurance.btn-ghost {
  display: inline-flex !important;
}

.mode-switch { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.mode-switch__btn {
  border: 0; background: transparent; color: var(--dim); font-family: var(--font-body); font-weight: 600;
  font-size: .78rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.mode-switch__btn[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.mode-switch--mobile { display: none; margin: 10px auto 0; width: fit-content; }
@media (max-width: 1020px) {
  .nav .mode-switch:not(.mode-switch--mobile) { display: none; }
  .mode-switch--mobile { display: flex; }
}

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(251, 252, 254, .8);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nav__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.nav__brand em { font-style: normal; color: var(--accent); }
.nav__brand span { font-size: .6rem; color: var(--dim); margin-left: 6px; letter-spacing: .3em; vertical-align: super; }
.nav__logo { width: 24px; height: 24px; }
.nav nav { display: flex; gap: 26px; font-size: .9rem; color: var(--dim); font-weight: 500; }
.nav nav a { position: relative; transition: color .2s; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav nav a:hover { color: var(--text); }
.nav nav a:hover::after { right: 0; }
@media (max-width: 720px) { .nav nav { display: none; } }

/* ---- Boutons ---- */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  color: #fff; font-weight: 600; font-size: .95rem;
  padding: 13px 27px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(47, 107, 255, .3);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-cta:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 16px 40px rgba(47, 107, 255, .4); }
.btn-cta--sm { padding: 9px 19px; font-size: .85rem; box-shadow: 0 4px 14px rgba(47, 107, 255, .25); }
.btn-cta--lg { padding: 17px 40px; font-size: 1.08rem; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 13px 27px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--dim); font-weight: 550; font-size: .95rem;
  background: var(--card); transition: .25s var(--ease);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---- Hero : bannière photo plein cadre (édito, pas de stack centrée générique) ---- */
.hero-banner {
  position: relative; width: 100%; overflow: hidden; isolation: isolate;
  height: clamp(560px, 94vh, 920px);
  display: flex; align-items: flex-end;
}
.hero-banner__media { position: absolute; inset: 0; z-index: -1; }
.hero-banner__photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  filter: saturate(1.06) contrast(1.03);
}
.hero-banner__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 58px 58px; mix-blend-mode: overlay; pointer-events: none;
}
.hero-banner__scan {
  position: absolute; top: 14%; bottom: 32%; width: 3px; left: 60%;
  background: linear-gradient(180deg, transparent, #4de0ae 20%, #4de0ae 80%, transparent);
  box-shadow: 0 0 34px 7px rgba(11, 191, 138, .5);
  animation: sweep 6.5s var(--ease) infinite alternate;
}
@keyframes sweep { from { left: 58%; } to { left: 94%; } }
.hero-banner__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 18, .1) 0%, rgba(5, 9, 18, .22) 40%, rgba(5, 9, 18, .92) 100%),
    linear-gradient(100deg, rgba(5, 9, 18, .82) 0%, rgba(5, 9, 18, .5) 38%, rgba(5, 9, 18, 0) 64%);
}
.scan-box {
  position: absolute; border: 2px solid #ffb020; border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, .15), inset 0 0 30px rgba(255, 176, 32, .1);
  animation: blink 2.8s ease-in-out infinite;
}
.scan-box span {
  position: absolute; top: -30px; left: -2px; white-space: nowrap;
  font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  background: rgba(20, 24, 34, .82); color: #ffcf7d; backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 6px;
}
.scan-box--1 { left: 62%; top: 44%; width: 15%; height: 15%; }
.scan-box--2 { left: 79%; top: 33%; width: 14%; height: 14%; border-color: #ff5d6c; animation-delay: 1.3s; }
.scan-box--2 span { color: #ffb3ba; }
@keyframes blink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.hero-banner__badge {
  position: absolute; z-index: 2; top: clamp(6rem, 5rem + 3vw, 7.5rem); right: clamp(20px, 4vw, 56px);
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  color: #eafff6; background: rgba(9, 42, 32, .55); backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 191, 138, .5); padding: 7px 15px; border-radius: 999px;
}
.hero-banner__badge i {
  width: 8px; height: 8px; border-radius: 50%; background: #29e6a7;
  box-shadow: 0 0 10px #29e6a7; animation: blink 1.8s infinite;
}
.hero-banner__float {
  position: absolute; z-index: 2; top: clamp(9.5rem, 8rem + 4vw, 12rem); right: clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px;
  padding: 12px 18px; text-align: left; box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.hero-banner__float b { font-family: var(--font-display); font-size: .95rem; display: block; color: var(--text); }
.hero-banner__float span { font-size: .74rem; color: var(--dim); }
@media (max-width: 720px) { .hero-banner__float { display: none; } }

.hero-banner__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 760px;
  padding: 0 clamp(20px, 5vw, 64px) clamp(3rem, 2rem + 5vw, 5.5rem);
  color: #fff;
}
.hero-banner__content .hero__eyebrow { color: #bcd4ff; }
.hero-banner__content .hero__title { font-size: clamp(2.1rem, 1rem + 5.2vw, 4.6rem); color: #fff; }
.hero-banner__content .hero__title-accent {
  background: linear-gradient(100deg, #8ab4ff 12%, #6be8bd 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-banner__content .hero__sub { color: rgba(255, 255, 255, .82); max-width: 540px; margin: 22px 0 32px; }
.btn-ghost--on-dark {
  border-color: rgba(255, 255, 255, .32); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
}
.btn-ghost--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; }

.hero__eyebrow, .section__eyebrow {
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 22px;
}
.hero__title { font-size: var(--text-hero); }
.hero__title span { display: block; }
.hero__title-accent {
  background: linear-gradient(100deg, var(--accent) 15%, var(--accent-2) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 640px; color: var(--dim); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats-strip { padding: clamp(2.6rem, 2rem + 2.4vw, 3.8rem) 24px 0; }
.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  margin: 0 auto; width: min(880px, 92vw);
  box-shadow: var(--shadow-sm);
}
.hero__stats > div { background: var(--card); padding: 24px 16px; }
.hero__stats b { font-family: var(--font-display); font-size: 2.1rem; display: block; letter-spacing: -.02em; color: var(--accent-ink); }
.hero__stats span { color: var(--dim); font-size: .82rem; }

/* ---- Sections ---- */
.section { max-width: 1200px; margin: 0 auto; padding: var(--space-section) 24px 0; }
.section__title { font-size: var(--text-h2); margin-bottom: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
.section__body { color: var(--dim); max-width: 500px; }

/* Workflow — cartes claires, rythme décalé */
.flow {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px;
}
.flow__step {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 26px 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.flow__step::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.flow__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.flow__step:hover::before { transform: scaleX(1); }
.flow__step:nth-child(odd) { translate: 0 16px; }
.flow__num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.3px rgba(47, 107, 255, .45);
  display: block; margin-bottom: 10px;
}
.flow__step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.flow__step p { color: var(--dim); font-size: .92rem; }

/* Split IA */
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 880px) { .section--split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; color: var(--dim); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 191, 138, .13); color: var(--accent-2); font-size: .72rem; font-weight: 700;
}

.report-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg); transition: transform .5s var(--ease);
  font-size: .92rem;
}
.report-card:hover { transform: rotate(0deg) scale(1.02); }
.report-card header {
  padding: 15px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); letter-spacing: .04em; font-size: .86rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px; background: var(--bg-soft);
}
.report-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 9px var(--accent-2); animation: blink 2s infinite; }
.report-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--dim); }
.report-row b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.sev { font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.sev--warn { background: rgba(217, 119, 6, .12); color: var(--warn); }
.sev--info { background: rgba(47, 107, 255, .1); color: var(--accent); }
.sev--bad { background: rgba(220, 38, 38, .1); color: var(--bad); }
.sev--doc { background: rgba(11, 191, 138, .12); color: #07835e; }
.report-row--doc { background: rgba(11, 191, 138, .04); }
.report-card footer { padding: 15px 22px; color: var(--dim); font-size: .85rem; }
.report-card .alert { color: var(--warn); }

/* Bento rôles */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.bento__cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
  position: relative; overflow: hidden;
}
.bento__cell::after {
  content: ""; position: absolute; inset: auto -25% -55% auto; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .1), transparent);
  opacity: 0; transition: opacity .45s;
}
.bento__cell:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(47, 107, 255, .35); }
.bento__cell:hover::after { opacity: 1; }
/* Rôle mis en avant selon le mode : gestionnaire en mode fleet, assurance en mode insurance. */
body[data-mode="fleet"] .bento__cell--role[data-role="manager"],
body[data-mode="insurance"] .bento__cell--role[data-role="insurer"] {
  grid-column: span 2;
  background: linear-gradient(120deg, rgba(47, 107, 255, .07), var(--card) 55%);
}
@media (max-width: 560px) {
  body[data-mode="fleet"] .bento__cell--role[data-role="manager"],
  body[data-mode="insurance"] .bento__cell--role[data-role="insurer"] { grid-column: span 1; }
}
.bento__cell h3 { font-size: 1.15rem; margin-bottom: 8px; }
.bento__cell p { color: var(--dim); font-size: .93rem; }

/* Bande sinistre — contraste sombre assumé sur page claire */
.section--band {
  margin-top: var(--space-section);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(47, 107, 255, .16), transparent 60%),
    #0d1424;
  color: #eef1f6;
  padding: var(--space-section) 0;
}
.band__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section--band .section__eyebrow { color: #7ea4ff; }
.chain { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.chain__node {
  flex: 1 1 190px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 24px 22px;
  transition: transform .4s var(--ease), background .4s;
}
.chain__node:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.chain__node b { font-family: var(--font-display); display: block; margin-bottom: 6px; font-size: 1.05rem; }
.chain__node span { color: #9aa5b8; font-size: .86rem; }
.chain__arrow { align-self: center; color: #7ea4ff; font-size: 1.5rem; font-weight: 700; }
@media (max-width: 720px) { .chain__arrow { display: none; } }

/* CTA final */
.cta-final { text-align: center; padding: var(--space-section) 24px; }
.cta-final h2 { font-size: var(--text-h2); margin-bottom: 34px; }
.cta-final em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-final__note { color: var(--dim); font-size: .88rem; margin-top: 18px; }

.footer {
  border-top: 1px solid var(--line); padding: 28px 24px 36px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--dim); font-size: .82rem; max-width: 1200px; margin: 0 auto;
}
.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__brand em { font-style: normal; color: var(--accent); font-weight: 600; }
.footer__logo { width: 18px; height: 18px; }

/* ---- Transitions d'apparition — translate + blur, ease expo ---- */
.reveal {
  opacity: 0; transform: translateY(30px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.d1 { transition-delay: .09s; } .d2 { transition-delay: .18s; }
.d3 { transition-delay: .27s; } .d4 { transition-delay: .38s; } .d5 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-banner__scan, .scan-box, .hero-banner__badge i, .report-card .dot { animation: none; }
  html { scroll-behavior: auto; }
}
