/* ==========================================================================
   Tracker4Fleet : design system
   Palette échantillonnée pixel par pixel depuis les logos officiels :
   marine #343C4C, bleu ciel #37B6FF, blanc. Aucune autre couleur dominante.
   Le bleu ciel pur ne suffit pas en contraste sur blanc pour du texte :
   les liens et textes bleus sur fond clair utilisent --t4f-blue-ink (WCAG AA).
   ========================================================================== */

/* ---- Fonts auto-hébergées (pas de Google Fonts en runtime) ----
   Geist (variable 100-900) : titres et texte, grotesque technique premium.
   IBM Plex Mono : données (plaques, chiffres, labels de tableau de bord). */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

/* ---- Design tokens ---- */
:root {
  /* Couleurs exactes du logo */
  --t4f-navy: #343c4c;        /* marine du wordmark */
  --t4f-blue: #37b6ff;        /* bleu ciel du « 4 » et des ondes */
  --t4f-white: #ffffff;

  /* Nuances dérivées (tints/shades des deux bleus, autorisées par la charte) */
  --t4f-navy-deep: #262d3b;   /* bandeaux secondaires, hover sur marine */
  --t4f-navy-soft: #46516633; /* traits/soulignés discrets sur fonds foncés */
  --t4f-ink: #262d3b;         /* texte principal sur fond clair */
  --t4f-ink-2: #4c576b;       /* texte secondaire sur fond clair */
  --t4f-blue-ink: #0a6db8;    /* bleu accessible pour liens/texte sur blanc (AA) */
  --t4f-blue-deep: #0857a0;   /* hover des liens */
  --t4f-blue-soft: #eaf6ff;   /* fonds teintés, puces */
  --t4f-grey-100: #f2f4f7;    /* fonds alternés de sections */
  --t4f-grey-200: #e4e8ee;    /* bordures cartes */
  --t4f-grey-300: #cdd4de;    /* bordures champs */

  --font-heading: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(38, 45, 59, 0.06), 0 8px 24px rgba(38, 45, 59, 0.08);
  --shadow-pop: 0 4px 12px rgba(38, 45, 59, 0.14), 0 16px 40px rgba(38, 45, 59, 0.18);
  --container: 1160px;
  --header-h: 72px;
}

/* ---- Reset et base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--t4f-ink);
  background: var(--t4f-white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--t4f-blue-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--t4f-blue-deep); }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--t4f-blue); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--t4f-navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 640;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--t4f-navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 620; font-size: 1rem;
  padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--t4f-blue); color: var(--t4f-navy); }
.btn-primary:hover { background: #5cc3ff; color: var(--t4f-navy-deep); }
.btn-navy { background: var(--t4f-navy); color: #fff; }
.btn-navy:hover { background: var(--t4f-navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--t4f-navy); border-color: var(--t4f-navy); }
.btn-outline:hover { background: var(--t4f-navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--t4f-navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 12px rgba(20, 24, 32, 0.25);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px; min-height: var(--header-h);
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 0.99rem; font-weight: 540;
  color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 13px; border-radius: 8px;
}
.nav-link:hover, .nav-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav-link[aria-current='page'], .nav-item.is-active > .nav-link, .nav-item.is-active > .nav-toggle {
  box-shadow: inset 0 -3px 0 var(--t4f-blue);
  border-radius: 8px 8px 0 0;
}
.nav-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.nav-item.is-open .nav-caret { transform: rotate(225deg) translateY(-1px); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 8px; margin: 0; list-style: none; display: none; z-index: 110;
}
.nav-item.is-open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--t4f-navy); text-decoration: none; font-weight: 520; font-size: 0.98rem;
}
.nav-dropdown a:hover { background: var(--t4f-blue-soft); color: var(--t4f-navy); }
.nav-dropdown a[aria-current='page'] { background: var(--t4f-blue-soft); box-shadow: inset 3px 0 0 var(--t4f-blue); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-phone {
  color: #fff; text-decoration: none; font-family: var(--font-heading);
  font-weight: 560; font-size: 0.97rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px;
}
.header-phone:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.header-phone svg { width: 16px; height: 16px; fill: var(--t4f-blue); }
.btn-login {
  font-family: var(--font-heading); font-weight: 560; font-size: 0.93rem;
  color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.5); white-space: nowrap;
}
.btn-login:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-quote {
  font-family: var(--font-heading); font-weight: 640; font-size: 0.93rem;
  background: var(--t4f-blue); color: var(--t4f-navy); text-decoration: none;
  padding: 10px 18px; border-radius: 8px; white-space: nowrap;
}
.btn-quote:hover { background: #5cc3ff; color: var(--t4f-navy-deep); }

/* Sélecteur de langue */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; }
.lang-switch a {
  color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.82rem; font-weight: 620;
  padding: 4px 8px; border-radius: 6px; font-family: var(--font-heading);
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang-switch a[aria-current='true'] { background: var(--t4f-blue); color: var(--t4f-navy); }

/* Burger mobile */
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; gap: 5px; margin-left: auto;
}
.nav-burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-phone span, .btn-login { display: none; }
}
@media (max-width: 920px) {
  .nav-burger { display: flex; }
  .header-actions { margin-left: 0; }
  .btn-quote, .lang-switch, .header-phone { display: none; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--t4f-navy-deep); flex-direction: column; align-items: stretch;
    padding: 12px 16px 22px; gap: 4px; margin: 0;
    box-shadow: 0 20px 40px rgba(20, 24, 32, 0.4); max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.is-open { display: flex; }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1.05rem; }
  .nav-dropdown { position: static; box-shadow: none; background: rgba(255, 255, 255, 0.06); min-width: 0; }
  .nav-dropdown a { color: #fff; }
  .nav-dropdown a:hover, .nav-dropdown a[aria-current='page'] { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .main-nav .mobile-extras { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 6px 0; }
  .main-nav .mobile-extras .lang-switch, .main-nav .mobile-extras .header-phone, .main-nav .mobile-extras .btn-quote, .main-nav .mobile-extras .btn-login { display: inline-flex; }
}
@media (min-width: 921px) { .main-nav .mobile-extras { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--t4f-navy) 0%, var(--t4f-navy-deep) 100%);
  color: #fff; padding: 84px 0 90px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -180px; top: -120px; width: 560px; height: 560px;
  border-radius: 50%; border: 90px solid rgba(55, 182, 255, 0.07); pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; right: 40px; bottom: -260px; width: 480px; height: 480px;
  border-radius: 50%; border: 70px solid rgba(55, 182, 255, 0.05); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: rgba(255, 255, 255, 0.85); max-width: 58ch; }
.hero-kicker {
  display: inline-block; font-family: var(--font-heading); font-weight: 620; font-size: 0.86rem;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--t4f-blue);
  margin-bottom: 18px;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }

/* Bandeau de réassurance sous le hero */
.trust-bar { background: var(--t4f-navy-deep); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.trust-bar ul {
  max-width: var(--container); margin: 0 auto; padding: 18px 24px; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 28px;
}
.trust-bar li {
  color: rgba(255, 255, 255, 0.88); font-size: 0.94rem; font-weight: 520; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.trust-bar li::before {
  content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--t4f-blue);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 74px 0; }
.section-grey { background: var(--t4f-grey-100); }
.section-navy { background: var(--t4f-navy); color: rgba(255, 255, 255, 0.88); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: var(--t4f-blue); }
.section-kicker {
  display: block; font-family: var(--font-heading); font-weight: 620; font-size: 0.84rem;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--t4f-blue-ink); margin-bottom: 10px;
}
.section-navy .section-kicker { color: var(--t4f-blue); }
.section-intro { max-width: 62ch; color: var(--t4f-ink-2); font-size: 1.1rem; }
.section-navy .section-intro { color: rgba(255, 255, 255, 0.82); }

/* Grilles de cartes */
.cards { display: grid; gap: 22px; margin-top: 40px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--t4f-grey-200); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.card h3 { margin-top: 14px; }
.card p { color: var(--t4f-ink-2); margin-bottom: 0.6em; }
.card > a { margin-top: auto; font-weight: 560; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--t4f-blue-soft);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--t4f-blue-ink); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a.card-link { text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.12s; }
a.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); color: inherit; }
a.card-link h3 { color: var(--t4f-navy); }

/* Listes de features à puce */
.feature-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.feature-list li { padding-left: 32px; position: relative; margin: 0; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--t4f-blue-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6db8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.section-navy .feature-list li::before { background-color: rgba(55, 182, 255, 0.18); }

/* Deux colonnes texte + visuel */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.reverse > :first-child { order: 0; } }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 36px; }
.stat { border-left: 3px solid var(--t4f-blue); padding-left: 18px; }
.stat .stat-num { font-family: var(--font-heading); font-weight: 680; font-size: 2rem; color: var(--t4f-navy); line-height: 1.1; }
.section-navy .stat .stat-num { color: #fff; }
.stat .stat-label { color: var(--t4f-ink-2); font-size: 0.95rem; }
.section-navy .stat .stat-label { color: rgba(255, 255, 255, 0.78); }

/* Badge INCERT / certifications */
.badge-incert {
  display: inline-flex; align-items: center; gap: 10px; background: var(--t4f-blue-soft);
  border: 1px solid #bfe3fb; color: var(--t4f-navy); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 0.95rem; font-family: var(--font-heading);
}
.badge-incert::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--t4f-blue-ink); }
.section-navy .badge-incert { background: rgba(55, 182, 255, 0.14); border-color: rgba(55, 182, 255, 0.4); color: #fff; }

/* ---- FAQ (details/summary, sans JS) ---- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--t4f-grey-200); border-radius: var(--radius);
  background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-heading); font-weight: 600; color: var(--t4f-navy); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2.5px solid var(--t4f-blue-ink); border-bottom: 2.5px solid var(--t4f-blue-ink);
  transform: rotate(45deg); transition: transform 0.15s; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > div { padding: 0 22px 20px; color: var(--t4f-ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---- Bloc CTA final ---- */
.cta-final { background: linear-gradient(160deg, var(--t4f-navy) 0%, var(--t4f-navy-deep) 100%); color: #fff; padding: 72px 0; }
.cta-final h2 { color: #fff; max-width: 26ch; }
.cta-final p { color: rgba(255, 255, 255, 0.84); max-width: 60ch; }
.cta-final .hero-ctas { margin-top: 26px; }
.cta-final .cta-phone { color: #fff; font-family: var(--font-heading); font-weight: 620; font-size: 1.15rem; text-decoration: none; }
.cta-final .cta-phone:hover { color: var(--t4f-blue); }

/* ---- Fil d'Ariane (bandeau marine, continu avec le hero de page) ---- */
.breadcrumb-bar { background: #ffffff; font-size: 0.88rem; }
.breadcrumb-bar ol {
  max-width: var(--container); margin: 0 auto; padding: 16px 24px 0;
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; color: var(--t4f-ink-2);
}
.breadcrumb-bar li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb-bar li + li::before { content: '›'; color: var(--t4f-grey-300); }
.breadcrumb-bar a { color: var(--t4f-ink-2); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--t4f-blue-ink); text-decoration: underline; }
.breadcrumb-bar [aria-current='page'] { color: var(--t4f-navy); font-weight: 540; }

/* ---- Page hero (pages intérieures) ---- */
.page-hero {
  position: relative; overflow: hidden; color: var(--t4f-ink); padding: 44px 0 62px;
  background:
    radial-gradient(760px 420px at 88% -20%, rgba(55, 182, 255, 0.16), transparent 60%),
    radial-gradient(560px 380px at -4% 10%, rgba(10, 109, 184, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--t4f-grey-100) 82%);
}
.page-hero::before {
  content: ''; position: absolute; top: -50px; right: 5%; width: 260px; height: 260px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 70%, rgba(55, 182, 255, 0.12), transparent 62%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--t4f-navy); max-width: 24ch; }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--t4f-ink-2); max-width: 62ch; margin-bottom: 0; }
.page-hero .hero-kicker { margin-bottom: 12px; color: var(--t4f-blue-ink); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; }
/* Hero avec image d'illustration (split texte + photo) */
.page-hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; gap: 26px; } }
.page-hero-media { margin: 0; }
.page-hero-media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); display: block; }
.page-hero .hero-ctas { margin-top: 28px; }

/* ---- Prose (pages légales, blog) ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.97rem; }
.prose th, .prose td { border: 1px solid var(--t4f-grey-200); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--t4f-grey-100); font-family: var(--font-heading); font-weight: 600; color: var(--t4f-navy); }

/* ---- Formulaires ---- */
.form-card {
  background: #fff; border: 1px solid var(--t4f-grey-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 36px; max-width: 720px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-heading); font-weight: 580; font-size: 0.95rem; color: var(--t4f-navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--t4f-grey-300); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; color: var(--t4f-ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--t4f-blue); outline: 2px solid rgba(55, 182, 255, 0.35); outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--t4f-ink-2); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-family: var(--font-heading); font-weight: 580; font-size: 0.95rem; color: var(--t4f-navy); margin-bottom: 8px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row label {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--t4f-grey-300);
  border-radius: 8px; padding: 10px 16px; cursor: pointer; font-weight: 500; font-size: 0.98rem;
}
.choice-row label:has(input:checked) { border-color: var(--t4f-blue-ink); background: var(--t4f-blue-soft); }
.choice-row input { accent-color: var(--t4f-blue-ink); }
.form-status { margin-top: 16px; font-weight: 560; display: none; }
.form-status.ok { display: block; color: #14691f; }
.form-status.err { display: block; color: #a3231d; }
/* Honeypot : champ invisible pour les humains, rempli par les bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--t4f-navy); color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.footer-main {
  max-width: var(--container); margin: 0 auto; padding: 60px 24px 40px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; gap: 36px;
}
@media (max-width: 1080px) { .footer-main { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-col h2 {
  color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 620; margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col li { margin: 0; }
.footer-col a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-col a:hover { color: var(--t4f-blue); }
.footer-contact address { font-style: normal; line-height: 1.7; }
.footer-contact a { color: rgba(255, 255, 255, 0.9); }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-socials a:hover { border-color: var(--t4f-blue); background: rgba(55, 182, 255, 0.12); }
.footer-socials svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom { background: var(--t4f-navy-deep); }
.footer-bottom-inner {
  max-width: var(--container); margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
  font-size: 0.86rem; color: rgba(255, 255, 255, 0.6);
}
.footer-bottom-inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-bottom-inner li { margin: 0; }
.footer-bottom-inner a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.footer-bottom-inner a:hover { color: #fff; text-decoration: underline; }

/* ---- Divers ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Home « Signal » : hero clair type centre de supervision
   (carte live avec véhicule animé), portes, gamme, bande de preuve.
   ========================================================================== */
.hero-signal {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(55,182,255,0.18), transparent 62%),
    radial-gradient(680px 500px at -6% 8%, rgba(10,109,184,0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--t4f-grey-100) 78%);
}
.hero-signal .container { position: relative; z-index: 2; }
.sig-radar { position: absolute; top: -180px; right: -140px; width: 620px; height: 620px; pointer-events: none; z-index: 1; }
.sig-radar span { position: absolute; inset: 0; margin: auto; border: 1.4px solid rgba(55,182,255,0.38); border-radius: 50%; animation: sig-ping 4.8s ease-out infinite; }
.sig-radar span:nth-child(2) { animation-delay: 1.2s; }
.sig-radar span:nth-child(3) { animation-delay: 2.4s; }
.sig-radar span:nth-child(4) { animation-delay: 3.6s; }
@keyframes sig-ping { 0% { width: 70px; height: 70px; opacity: 0.85; } 100% { width: 620px; height: 620px; opacity: 0; } }
.sig-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6; z-index: 1; }

.sig-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(30px, 5vw, 58px); align-items: center; padding: clamp(46px, 7vw, 96px) 0 clamp(44px, 6vw, 82px); }
@media (max-width: 900px) { .sig-grid { grid-template-columns: 1fr; } }
.sig-kicker { display: inline-block; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--t4f-blue-ink); margin-bottom: 18px; }
.hero-signal h1 { color: var(--t4f-navy); font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.03; margin: 0 0 0.35em; }
.hero-signal h1 em { font-style: normal; color: var(--t4f-blue-ink); }
.sig-lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--t4f-ink-2); max-width: 46ch; margin: 0 0 30px; }
.sig-ctas { display: flex; flex-wrap: wrap; gap: 13px; }
.sig-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); margin-top: 38px; }
.sig-stats b { font-family: var(--font-mono); font-weight: 500; font-size: 1.8rem; color: var(--t4f-navy); display: block; line-height: 1; }
.sig-stats span { font-size: 0.8rem; color: var(--t4f-ink-2); margin-top: 6px; display: block; }

/* Console live */
.sig-console { background: #fff; border: 1px solid var(--t4f-grey-200); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-pop); }
.sig-console-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sig-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: #0c8a55; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.sig-live i { width: 8px; height: 8px; border-radius: 50%; background: #17b877; animation: sig-beat 1.9s infinite; }
@keyframes sig-beat { 0% { box-shadow: 0 0 0 0 rgba(23,184,119,0.5); } 70% { box-shadow: 0 0 0 9px rgba(23,184,119,0); } 100% { box-shadow: 0 0 0 0 rgba(23,184,119,0); } }
.sig-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--t4f-ink-2); }
/* Scène navigation : carte réaliste qui défile sous un véhicule fixe + données CAN-bus live */
.sig-nav { position: relative; height: 232px; border-radius: 12px; overflow: hidden; border: 1px solid var(--t4f-grey-200); background: #e9edf3; }
.sig-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.sig-nav-badge { position: absolute; left: 10px; top: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: #0c8a55; background: rgba(255,255,255,0.86); border: 1px solid var(--t4f-grey-200); border-radius: 7px; padding: 4px 8px; }
.sig-nav-badge i { width: 6px; height: 6px; border-radius: 50%; background: #17b877; }
.sig-nav-driver { position: absolute; right: 10px; top: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.02em; color: var(--t4f-navy); background: rgba(255,255,255,0.86); border: 1px solid var(--t4f-grey-200); border-radius: 7px; padding: 4px 8px; }
.sig-nav-driver svg { width: 12px; height: 12px; flex-shrink: 0; }
.sig-nav-driver .ok { width: 6px; height: 6px; border-radius: 50%; background: #17b877; flex-shrink: 0; }
@media (max-width: 560px) { .sig-nav-driver { left: 10px; right: auto; top: 44px; } }
.sig-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.gauge { background: #fff; border: 1px solid var(--t4f-grey-200); border-radius: 12px; padding: 11px 6px 9px; text-align: center; box-shadow: 0 1px 2px rgba(16,26,42,0.05); }
.g-svg { width: 88%; max-width: 124px; height: auto; display: block; margin: 0 auto; }
.g-track { fill: none; stroke: #e7ebf1; stroke-width: 9; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--t4f-blue); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 150.8; transition: stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1); }
.g-speed .g-fill { stroke: #1e86d6; }
.g-rpm .g-fill { stroke: #3aa0ff; }
.g-fuel .g-fill { stroke: #17b877; }
.g-temp .g-fill { stroke: #f2994a; }
.g-read { margin-top: -15px; font-family: var(--font-mono); font-weight: 500; color: var(--t4f-navy); font-size: 0.98rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.g-read small { display: block; font-size: 0.5rem; color: var(--t4f-ink-2); margin: 3px 0 0; font-weight: 500; letter-spacing: 0.04em; }
.g-label { margin-top: 5px; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--t4f-ink-2); }
@media (max-width: 480px) { .sig-gauges { grid-template-columns: repeat(2, 1fr); } }

/* Deux portes */
.home-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .home-doors { grid-template-columns: 1fr; } }
.home-door { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--t4f-grey-200); background: #fff; box-shadow: var(--shadow-card); transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.home-door:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: transparent; color: inherit; }
.home-door.fleet { background: linear-gradient(158deg, #eaf4ff, #ffffff 72%); }
.home-door.theft { background: linear-gradient(158deg, #e9f8f1, #ffffff 72%); }
.home-door .door-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.7); border: 1px solid var(--t4f-grey-200); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.home-door .door-ico svg { width: 26px; height: 26px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-door.fleet .door-ico svg { stroke: var(--t4f-blue-ink); }
.home-door.theft .door-ico svg { stroke: #0c8a55; }
.home-door h3 { color: var(--t4f-navy); font-size: 1.35rem; margin: 0 0 8px; }
.home-door p { color: var(--t4f-ink-2); margin: 0 0 16px; max-width: 36ch; }
.home-door .door-go { margin-top: auto; font-family: var(--font-heading); font-weight: 620; font-size: 0.98rem; color: var(--t4f-blue-ink); }
.home-door.theft .door-go { color: #0c8a55; }

/* Gamme : 5 niveaux */
.range { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 940px) { .range { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .range { grid-template-columns: 1fr; } }
.rung { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--t4f-grey-200); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow-card); transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; }
.rung::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--t4f-blue), var(--t4f-blue-ink)); transform: scaleX(0); transform-origin: left; transition: transform 0.28s; }
.rung:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: transparent; }
.rung:hover::after { transform: scaleX(1); }
.rung .rung-n { font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; color: var(--t4f-blue-ink); letter-spacing: 0.06em; }
.rung h3 { margin: 12px 0 8px; font-size: 1.08rem; }
.rung p { margin: 0; color: var(--t4f-ink-2); font-size: 0.9rem; line-height: 1.5; }

/* Bande de preuve marine */
.proof-band { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--t4f-navy) 0%, var(--t4f-navy-deep) 100%); color: #eaf1fb; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 820px) { .proof-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .proof-band { grid-template-columns: 1fr; } }
.proof-band .glow { position: absolute; top: -120px; right: -70px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(55,182,255,0.3), transparent 62%); pointer-events: none; }
.proof-band .pf { position: relative; }
.proof-band .pf b { font-family: var(--font-mono); font-weight: 500; font-size: 1.55rem; color: var(--t4f-blue); display: block; line-height: 1; }
.proof-band .pf span { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin-top: 9px; display: block; line-height: 1.45; }

/* ==========================================================================
   Plateforme : montage captures (cadre app) + section app mobile
   ========================================================================== */
.app-window { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-pop); border: 1px solid var(--t4f-grey-200); background: #fff; }
.app-window .bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--t4f-grey-100); border-bottom: 1px solid var(--t4f-grey-200); }
.app-window .bar .dots { display: flex; gap: 6px; flex-shrink: 0; }
.app-window .bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e2; display: block; }
.app-window .bar .url { font-family: var(--font-mono); font-size: 0.72rem; color: var(--t4f-ink-2); background: #fff; border: 1px solid var(--t4f-grey-200); border-radius: 6px; padding: 4px 14px; }
.app-window img { display: block; width: 100%; height: auto; }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
@media (max-width: 760px) { .shots-2 { grid-template-columns: 1fr; } }
/* Même échelle pour les 2 captures secondaires : ratio commun + recadrage par le haut */
.shots-2 .app-window img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; height: auto; }
.shot { margin: 0; }
.shot figcaption { margin-top: 12px; color: var(--t4f-ink-2); font-size: 0.96rem; }
.shot figcaption b { color: var(--t4f-navy); font-family: var(--font-heading); font-weight: 620; display: block; margin-bottom: 2px; }

/* Section app mobile */
.app-mobile-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .app-mobile-grid { grid-template-columns: 1fr; } }
.phones { display: flex; gap: 18px; justify-content: center; }
.phone { width: 190px; flex-shrink: 0; border-radius: 26px; background: #0e1622; padding: 8px; box-shadow: var(--shadow-pop); border: 1px solid rgba(255,255,255,0.08); }
.phone:nth-child(2) { margin-top: 26px; }
@media (max-width: 480px) { .phone:nth-child(2) { display: none; } }
.phone .screen { border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 19; position: relative; background: linear-gradient(180deg, var(--t4f-navy), var(--t4f-navy-deep)); display: flex; align-items: center; justify-content: center; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen .ph { text-align: center; color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 14px; }
.phone .screen .ph svg { width: 40px; height: 40px; margin-bottom: 10px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #0e1622; color: #fff; border-radius: 12px; padding: 9px 18px 9px 15px; text-decoration: none; border: 1px solid rgba(255,255,255,0.12); transition: background 0.15s; }
.store-badge:hover { background: #1a2536; color: #fff; }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge .t { line-height: 1.15; }
.store-badge .t small { display: block; font-size: 0.62rem; color: rgba(255,255,255,0.7); }
.store-badge .t b { display: block; font-family: var(--font-heading); font-weight: 640; font-size: 1rem; }

/* Bloc QR de téléchargement (section app mobile) */
.qr-block { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px 16px; background: var(--t4f-grey-100); border: 1px solid var(--t4f-grey-200); border-radius: 14px; flex-wrap: wrap; }
.qr-block .lbl { font-size: 0.92rem; color: var(--t4f-ink-2); max-width: 15ch; line-height: 1.4; }
.qr-code { text-align: center; }
.qr-code img { width: 92px; height: 92px; display: block; border-radius: 8px; border: 1px solid var(--t4f-grey-200); background: #fff; }
.qr-code span { display: block; font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t4f-ink-2); margin-top: 6px; }
