/* ==========================================================
   Le Bureau des Risques — bureaudesrisques.fr
   Design system : "Trust & Authority" (skill ui-ux-pro-max)
   Palette slate/navy, accent #0369A1, Plus Jakarta Sans.
   ========================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Italic-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary: #0f172a;
  --secondary: #334155;
  --accent: #0369a1;
  --accent-hover: #075985;
  --accent-soft: #e0f2fe;
  --bg: #f8fafc;
  --fg: #020617;
  --fg-soft: #475569;
  --muted: #e8ecf1;
  --border: #e2e8f0;
  --card: #ffffff;
  --ok: #15803d;
  --err: #dc2626;
  --amber: #d97706;

  --navy-2: #1e293b;
  --on-dark: #e2e8f0;
  --on-dark-soft: #94a3b8;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(2, 6, 23, 0.07), 0 1px 3px rgba(2, 6, 23, 0.05);
  --shadow-lg: 0 20px 45px -18px rgba(2, 6, 23, 0.28), 0 4px 14px rgba(2, 6, 23, 0.06);

  --wrap: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Reveal au scroll (désactivé si reduced-motion) ---------- */

body.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
body.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--r-full);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.2);
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(3, 105, 161, 0.55);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:hover { background: var(--accent); color: #fff; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(248, 250, 252, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--primary);
}
.brand-mark {
  width: 40px; height: 40px; flex: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #274363);
  border-radius: 12px;
  padding: 7px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--fg-soft);
  letter-spacing: 0.01em;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.tel-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}
.tel-link:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(3, 105, 161, 0.35), transparent 62%),
    radial-gradient(700px 380px at -8% 110%, rgba(51, 65, 85, 0.5), transparent 60%),
    linear-gradient(165deg, #0b1324 0%, var(--primary) 55%, #12203a 100%);
  color: #fff;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}
.hero-badge svg { width: 14px; height: 14px; flex: none; }

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 .hl { color: #7dd3fc; }
.hero .lede {
  font-size: 1.08rem;
  color: rgba(226, 232, 240, 0.92);
  max-width: 560px;
  margin-bottom: 14px;
}
.price-flash {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 22px;
}
.price-flash strong { font-size: 1.3rem; font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.hero-note { font-size: 0.88rem; color: var(--on-dark-soft); }

/* Carte de droite : aperçu du diagnostic */
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.hero-card-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
}
.hero-card-chip {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.hero-card ul { list-style: none; display: grid; gap: 11px; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--on-dark);
}
.hero-card li svg {
  width: 18px; height: 18px; flex: none;
  color: #4ade80;
  margin-top: 1px;
}
.hero-card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--on-dark-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card-foot svg { width: 15px; height: 15px; flex: none; color: #7dd3fc; }

.hero-proofs {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-proofs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.hero-proofs li svg { width: 15px; height: 15px; flex: none; color: #7dd3fc; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
section[id] { scroll-margin-top: 82px; }
.section-alt { background: #eef2f7; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-lede {
  font-size: 1.04rem;
  color: var(--fg-soft);
  max-width: 680px;
  margin-bottom: 28px;
}
.section p + p { margin-top: 12px; }

/* ---------- Alerte loi ---------- */

.alert {
  position: relative;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  padding: 20px 24px 20px 56px;
  margin: 4px 0 20px;
  box-shadow: var(--shadow-sm);
}
.alert-icon {
  position: absolute;
  left: 20px; top: 22px;
  width: 22px; height: 22px;
  color: var(--amber);
}
.alert p { font-size: 1.02rem; }
.alert-source {
  margin-top: 8px;
  font-size: 0.86rem !important;
  color: var(--fg-soft);
}

/* ---------- Étapes ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px 18px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2b4a6f);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1rem; color: var(--primary); margin-bottom: 7px; font-weight: 700; }
.steps p { font-size: 0.9rem; color: var(--fg-soft); }

.bonus {
  position: relative;
  background: linear-gradient(150deg, var(--primary), #16324f);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 24px 28px 24px 66px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.bonus::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.4), transparent 70%);
  pointer-events: none;
}
.bonus-icon {
  position: absolute;
  left: 24px; top: 26px;
  width: 26px; height: 26px;
  color: #7dd3fc;
}
.bonus h3 { color: #fff; margin-bottom: 8px; font-size: 1.06rem; font-weight: 700; }
.bonus strong { color: #fff; }

/* ---------- Tarifs ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
  align-items: stretch;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-feature {
  background: linear-gradient(160deg, var(--primary) 0%, #14304e 100%);
  border: 1px solid #2b4a6f;
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.card-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 3px; font-weight: 800; }
.card-feature h3 { color: #fff; }
.card-target { color: var(--fg-soft); font-size: 0.9rem; margin-bottom: 14px; }
.card-feature .card-target { color: var(--on-dark-soft); }
.card-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.card-feature .card-price { color: #fff; }
.card-price span { font-size: 0.95rem; font-weight: 600; color: var(--fg-soft); letter-spacing: 0; }
.card-feature .card-price span { color: var(--on-dark-soft); }
.card-list { list-style: none; flex: 1; }
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 5px 0;
  font-size: 0.92rem;
}
.card-list li svg {
  width: 17px; height: 17px; flex: none;
  color: var(--ok);
  margin-top: 3px;
}
.card-feature .card-list li svg { color: #4ade80; }
.card-foot { margin-top: 12px; font-size: 0.84rem; color: var(--fg-soft); }
.card-feature .card-foot { color: var(--on-dark-soft); }

.pricing-notes {
  max-width: 780px;
  font-size: 0.94rem;
  color: var(--fg-soft);
}
.pricing-notes p + p { margin-top: 9px; }
.pricing-notes strong { color: var(--fg); }

/* ---------- Qui ---------- */

.section-dark {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(3, 105, 161, 0.25), transparent 60%),
    var(--primary);
  color: var(--on-dark);
}
.section-dark .kicker { color: #7dd3fc; }
.section-dark .kicker::before { background: #7dd3fc; }
.section-dark h2 { color: #fff; }
.section-dark .lede { color: #f1f5f9; font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.section-dark a { color: #7dd3fc; }
.section-dark a:hover { color: #bae6fd; }

.creds {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 26px;
}
.creds li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.creds svg { width: 20px; height: 20px; flex: none; color: #7dd3fc; margin-top: 2px; }
.creds strong { display: block; color: #fff; margin-bottom: 2px; }

.verify { margin-top: 20px; font-size: 0.9rem; color: var(--on-dark-soft); }

/* ---------- Questions ---------- */

.qa {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.qa[open] { border-color: #bcd3e5; }
.qa summary {
  cursor: pointer;
  padding: 15px 52px 15px 20px;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  position: relative;
  font-size: 0.98rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.qa[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa-body { padding: 0 20px 18px; color: var(--fg-soft); font-size: 0.95rem; }
.qa-body p + p { margin-top: 9px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.3fr);
  gap: 24px;
  align-items: start;
}

.contact-direct { display: flex; flex-direction: column; gap: 12px; }
.contact-tel, .contact-mail {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-tel:hover, .contact-mail:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-ic {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
}
.contact-ic svg { width: 19px; height: 19px; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-soft);
  font-weight: 600;
}
.contact-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
  word-break: break-word;
}
.contact-zone { font-size: 0.9rem; color: var(--fg-soft); padding: 4px 6px 0; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
.form-intro { font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--fg);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.field-check input {
  margin-top: 4px; flex: none;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check label { font-weight: 400; font-size: 0.83rem; color: var(--fg-soft); cursor: pointer; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-status { margin-top: 12px; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); font-weight: 600; }

/* ---------- Mentions légales ---------- */

.legal h3 { color: var(--primary); margin: 26px 0 8px; font-weight: 700; }
.legal-back { margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #060b18;
  color: var(--on-dark-soft);
  padding: 34px 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
}
.footer-name { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.footer-legal { max-width: 420px; }
.footer-meta { text-align: right; }
.footer-meta p { margin-bottom: 3px; }
.site-footer a { color: #c9dcec; }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { max-width: 480px; }
}

@media (max-width: 720px) {
  .section { padding: 42px 0; }
  .hero { padding: 40px 0 36px; }
  .hero-proofs { gap: 7px 18px; margin-top: 22px; padding-top: 14px; }
  .brand-sub { display: none; }
  .tel-link { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
