/* ================================================================
   Boulevard Security — feuille de style
   ================================================================ */

:root {
  --navy-950: #060b16;
  --navy-900: #0a1222;
  --navy-800: #111c33;
  --navy-700: #1a2744;
  --blue: #2756a8;
  --blue-dark: #1f4688;
  --blue-light: #5b8ee0;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --success: #15803d;
  --error: #b91c1c;
  --wa: #25d366;

  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(10, 18, 34, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Inter", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

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

.ico {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1em;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--light { color: var(--blue-light); }
.accent { color: var(--blue-light); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  font-family: inherit;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(39, 86, 168, 0.7); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--white { background: #fff; color: var(--navy-900); }
.btn--white:hover { background: #e8eefb; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 34, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s, background 0.25s;
}
.header.is-scrolled { background: rgba(10, 18, 34, 0.97); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.brand__text small {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  color: #e2e8f0;
  position: relative;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue-light);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (bannière pleine largeur) ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(39, 86, 168, 0.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(39, 86, 168, 0.18), transparent 60%),
    var(--navy-900);
  color: #cbd5e1;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
  padding-top: clamp(32px, 6vh, 72px);
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero h1 { font-size: clamp(2.4rem, min(5vw, 7.2vh), 4rem); }
.hero__media { position: relative; margin: 0; }
.hero__media img {
  width: 100%;
  height: min(calc(100svh - var(--header-h) - 190px), 600px);
  min-height: 380px;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 2px solid rgba(91, 142, 224, 0.5);
  border-radius: 24px;
  z-index: -1;
}
.hero__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 34, 0.8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero__text { max-width: 640px; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero__lead { font-size: 1.14rem; max-width: 34em; color: #d6deea; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(20px, 3.5vh, 32px) 0 clamp(20px, 3.5vh, 36px); }
.hero__cnaps {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dispo { padding-left: 18px; }
.hero__dispo .dot { flex-shrink: 0; }
.hero__cnaps strong { display: block; color: #fff; font-size: 0.95rem; }
.hero__cnaps span { display: block; font-size: 0.76rem; color: #94a3b8; letter-spacing: 0.02em; }
.hero__cnaps strong span { display: inline; font-size: inherit; color: inherit; letter-spacing: 0; }

.illus {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(6, 11, 22, 0.55);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ---------- Bandeau défilant ---------- */
.ticker { position: relative; z-index: 1; background: var(--blue); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 28px;
  position: relative;
}
.ticker span::after { content: "◆"; position: absolute; right: -6px; font-size: 0.6rem; top: 50%; transform: translateY(-50%); opacity: 0.55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Bandeau confiance ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item .ico {
  width: 44px; height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(39, 86, 168, 0.1);
  color: var(--blue);
}
.trust__item strong { display: block; color: var(--ink); font-size: 0.97rem; }
.trust__item span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section__sub { color: var(--muted); font-size: 1.06rem; }
.section__sub a { color: var(--blue); font-weight: 600; }

.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; font-size: 0.94rem; color: var(--ink); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks--light li { color: #e2e8f0; }

/* ---------- Prestations (onglets) ---------- */
.missions { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.missions__tabs { display: flex; flex-direction: column; gap: 10px; }
.missions__tab {
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.missions__tab:hover { border-color: var(--blue); transform: translateX(3px); }
.missions__tab strong { display: block; font-size: 1rem; }
.missions__tab small { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.missions__num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #cbd5e1; transition: color 0.2s; }
.missions__tab[aria-selected="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow);
}
.missions__tab[aria-selected="true"] small { color: #94a3b8; }
.missions__tab[aria-selected="true"] .missions__num { color: var(--blue-light); }
.missions__tab:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.mission {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: panelIn 0.45s ease;
}
.mission[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mission__media { position: relative; }
.mission__media img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 40%; }
.mission__body {
  padding: 32px 34px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "title list" "text list" "btn list";
  grid-template-rows: auto 1fr auto;
  column-gap: 40px;
}
.mission__body h3 { grid-area: title; font-size: 1.9rem; }
.mission__body > p { grid-area: text; color: var(--text); }
.mission__body .checks { grid-area: list; margin: 0; align-content: start; padding-top: 6px; }
.mission__body .btn { grid-area: btn; justify-self: start; }

/* ---------- Secteurs (mosaïque) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 16px; }
.tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}
.tile--wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 11, 22, 0.88) 0%, rgba(6, 11, 22, 0.25) 55%, transparent 100%); transition: background 0.3s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::before { background: linear-gradient(0deg, rgba(31, 70, 136, 0.92) 0%, rgba(6, 11, 22, 0.3) 60%, transparent 100%); }
.tile__text { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.tile__text h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.15em; }
.tile__text p { margin: 0; font-size: 0.88rem; color: #cbd5e1; }
.tile .illus { top: 12px; bottom: auto; }

/* ---------- Référence ---------- */
.case { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.case__media img { width: 100%; height: auto; max-height: 720px; object-fit: cover; object-position: center bottom; border-radius: 24px; box-shadow: var(--shadow); }
.case__place { font-weight: 600; color: var(--blue); margin-top: -0.4em; }
.case h2 sup { font-size: 0.5em; }
.case__facts { margin: 28px 0 32px; display: grid; gap: 18px; }
.case__facts div { border-left: 3px solid var(--blue); padding-left: 18px; }
.case__facts dt { font-weight: 700; color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.case__facts dd { margin: 4px 0 0; font-size: 0.96rem; }

/* ---------- Engagements ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--navy-700); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--navy-900); padding: 36px 28px; transition: background 0.3s; }
.pillar:hover { background: var(--navy-800); }
.pillar__num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--blue-light); line-height: 1; display: block; margin-bottom: 18px; }
.pillar p { margin: 0; font-size: 0.94rem; color: #94a3b8; }

/* ---------- Méthode ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px);
  opacity: 0.4;
}
.steps li { position: relative; text-align: center; padding: 0 8px; }
.steps span {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px #fff;
}
.steps p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #dbe6fb; padding: 120px 0; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 11, 22, 0.94) 0%, rgba(13, 32, 70, 0.82) 45%, rgba(6, 11, 22, 0.25) 100%);
}
.cta-band__inner > div:first-child { max-width: 560px; }
.cta-band h2 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.cta-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta-band h2 { color: #fff; margin-bottom: 0.25em; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 400px; gap: 14px; }
.gallery__item { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg-alt); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform 0.5s; }
.gallery__item:hover img { transform: scale(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(6, 11, 22, 0.92); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox__close { position: fixed; top: 16px; right: 20px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--blue); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; background: var(--blue); color: #fff; }
.faq details p { padding: 0 24px 22px; margin: 0; font-size: 0.95rem; }

/* ---------- Recrutement ---------- */
.recruit {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--navy-900);
  border-radius: 28px;
  overflow: hidden;
  color: #cbd5e1;
}
.recruit__media { position: relative; }
.recruit__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--navy-900) 0%, transparent 45%); }
.recruit__media img { width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 30%; }
.recruit__text {
  padding: 8px 56px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "kicker list" "title list" "text btn";
  column-gap: 56px;
  align-items: start;
}
.recruit__text .kicker { grid-area: kicker; }
.recruit__text h2 { grid-area: title; }
.recruit__text > p:not(.kicker) { grid-area: text; }
.recruit__text .checks { grid-area: list; margin-top: 8px; }
.recruit__text .btn { grid-area: btn; justify-self: start; align-self: end; }
.recruit__text h2 { color: #fff; }
.recruit .checks { margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); flex-shrink: 0; }
.contact__label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list div > span:not(.contact__label) {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.contact__list a:hover { color: var(--blue); }

.form { background: #fff; border-radius: 22px; padding: 36px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form h3 { margin: 0; font-size: 1.8rem; }
.form__hint { margin: -10px 0 4px; font-size: 0.88rem; color: var(--success); font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 86, 168, 0.18);
}
.form.was-validated :invalid { border-color: var(--error); }
.form__check { flex-direction: row !important; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; font-size: 0.85rem !important; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.form.was-validated .form__check input:invalid { outline: 2px solid var(--error); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--error); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-950); color: #94a3b8; padding: 72px 0 28px; font-size: 0.92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-700); }
.footer__brand p { margin-top: 18px; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--font); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; font-size: 0.78rem; line-height: 1.6; }
.footer__legal p { margin: 0; max-width: 720px; }

/* ---------- Boutons flottants ---------- */
/* ---------- Assistant guidé ---------- */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.assistant__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 600 0.95rem var(--font);
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(39, 86, 168, 0.8);
  transition: transform 0.2s, background 0.2s;
}
.assistant__launcher:hover { transform: translateY(-2px); background: var(--blue-dark); }
.assistant__launcher:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.assistant__ico-close { display: none; }
.assistant.is-open .assistant__ico-open, .assistant.is-open .assistant__label { display: none; }
.assistant.is-open .assistant__ico-close { display: block; }
.assistant.is-open .assistant__launcher { width: 58px; padding: 0; justify-content: center; background: var(--navy-900); }

.assistant__nudge {
  position: relative;
  max-width: 270px;
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow);
  animation: panelIn 0.4s ease;
}
.assistant__nudge[hidden] { display: none; }
.assistant__nudge-open { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 14px 34px 14px 16px; font: 500 0.9rem var(--font); color: var(--ink); cursor: pointer; }
.assistant__nudge-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; }

.assistant__panel {
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(6, 11, 22, 0.55);
  animation: panelIn 0.3s ease;
}
.assistant__panel[hidden] { display: none; }
.assistant__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--navy-900); color: #fff; }
.assistant__head strong { display: block; font-size: 0.98rem; }
.assistant__head span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #94a3b8; }
.assistant__close { margin-left: auto; border: 0; background: none; color: #cbd5e1; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.assistant__close:hover { color: #fff; }

.assistant__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); overscroll-behavior: contain; }
.assistant__msg { margin: 0; max-width: 86%; padding: 11px 14px; font-size: 0.92rem; line-height: 1.5; border-radius: 16px; }
.assistant__msg--bot { white-space: pre-line; align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assistant__msg--user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.assistant__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.assistant__typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: typing 1s infinite ease-in-out; }
.assistant__typing span:nth-child(2) { animation-delay: 0.15s; }
.assistant__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.assistant__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.assistant__chips.is-old { display: none; }
.assistant__chip {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 0.84rem var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.assistant__chip:hover, .assistant__chip:focus-visible { background: var(--blue); color: #fff; outline: none; }
.assistant__chip--action { background: var(--blue); color: #fff; }
.assistant__chip--action:hover { background: var(--blue-dark); }
.assistant__chip--discret { border-color: var(--line); color: var(--muted); background: transparent; font-weight: 500; }
.assistant__chip--discret:hover, .assistant__chip--discret:focus-visible { background: var(--line); color: var(--ink); }

.assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.assistant__form input { flex: 1; min-width: 0; border: 1px solid #cbd5e1; border-radius: 999px; padding: 10px 16px; font: 400 0.95rem var(--font); color: var(--ink); background: var(--bg-alt); }
.assistant__form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(39, 86, 168, 0.18); }
.assistant__form button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.assistant__note { margin: 0; padding: 0 12px 10px; font-size: 0.7rem; color: var(--muted); text-align: center; background: #fff; }

.mobile-bar { display: none; }

/* ---------- Apparition au défilement ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .missions { grid-template-columns: 280px 1fr; }
  .mission__body { grid-template-columns: 1fr; grid-template-areas: "title" "text" "list" "btn"; grid-template-rows: none; }
  .mission__body .checks { margin-bottom: 24px; }
  .mission__media img { aspect-ratio: 3 / 2; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 18px; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  /* menu plein écran sous l'en-tête (position absolue : le flou de l'en-tête casse « fixed ») */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    padding-bottom: calc(var(--header-h) + 32px) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy-900);
    border-top: 1px solid var(--navy-700);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 32px;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    visibility: hidden;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  /* menu ouvert : on masque l'assistant et la barre d'action pour garder les liens lisibles */
  body.no-scroll .assistant, body.no-scroll .mobile-bar { display: none; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--navy-700); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; padding: 0.9em; font-size: 1rem; }

  .case, .contact, .faq, .recruit { grid-template-columns: 1fr; gap: 48px; }
  .missions { grid-template-columns: 1fr; gap: 20px; }
  .missions__tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; }
  .missions__tabs::-webkit-scrollbar { display: none; }
  .missions__tab { flex: 0 0 auto; scroll-snap-align: start; padding: 14px 16px; }
  .missions__tab:hover { transform: none; }
  .hero { min-height: 0; }
  .hero .ticker { order: -1; padding: 10px 0; }
  .hero .ticker span { font-size: 0.98rem; padding: 0 20px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
  .hero__media { max-width: 460px; width: calc(100% - 18px); margin: 0 auto; }
  .hero__media img { height: auto; aspect-ratio: 4 / 5; }
  .cta-band { padding: 88px 0; }
  .cta-band__bg::after { background: linear-gradient(0deg, rgba(6, 11, 22, 0.94) 0%, rgba(13, 32, 70, 0.8) 60%, rgba(6, 11, 22, 0.45) 100%); }
  .faq .section__head { position: static; }
  .recruit { gap: 0; }
  .recruit__media img { aspect-ratio: 16 / 9; }
  .recruit__text { padding: 8px 32px 40px; grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "text" "list" "btn"; }
  .recruit__text .checks { margin: 0 0 28px; }
  .case__media { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .trust__inner, .pillars, .steps { grid-template-columns: 1fr; }
  .missions__tabs { margin: 0 -16px; padding: 4px 16px 8px; }
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile--wide { grid-column: auto; }
  .mission__body { padding: 26px 22px; }
  .mission__body .btn { justify-self: stretch; }
  .hero__badges { flex-direction: column; }
  .hero__cnaps { width: 100%; }
  .gallery { grid-auto-rows: 240px; }
  .form { padding: 26px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .recruit__text { padding: 4px 22px 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band__actions .btn { flex: 1; }

  /* barre d'action fixe en bas d'écran */
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: #fff;
    box-shadow: 0 -6px 20px -8px rgba(10, 18, 34, 0.3);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-bar__call { border: 2px solid var(--ink); color: var(--ink); }
  .mobile-bar__quote { background: var(--blue); color: #fff; }
  .assistant { right: 12px; bottom: 84px; }
  .assistant__launcher { height: 52px; padding: 0 16px 0 14px; }
  .assistant.is-open .assistant__launcher { width: 52px; }
  .assistant__label { display: none; }
  .assistant:not(.is-open) .assistant__launcher { width: 52px; padding: 0; justify-content: center; }
  .assistant__panel { height: min(520px, calc(100vh - 170px)); height: min(520px, calc(100svh - 170px)); }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
