:root {
  --navy: #002a7f;
  --navy-2: #0055a4;
  --orange: #e1000f;
  --orange-2: #b8000c;
  --ink: #1c2430;
  --muted: #5d6b7c;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e2e8f0;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--orange); }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 1.15rem; }
.logo-text strong { font-weight: 800; }
.logo-text em { font-style: normal; color: var(--orange); font-weight: 700; }
.logo-mark { width: 40px; height: 48px; flex-shrink: 0; overflow: visible; }
.logo-mark.sm { width: 30px; height: 36px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--orange); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 14px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, #e6eefb 0%, transparent 45%), radial-gradient(900px 400px at 100% 10%, #fde8e9 0%, transparent 60%), linear-gradient(180deg, #f4f7fb, #fff); padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--orange-2); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #e7f6ec; color: #18884a; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

.hero-card { position: relative; }
.cert { background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,42,127,.25); border: 1px solid var(--line); transform: rotate(-2deg); }
.cert-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }
.cert-title { font-weight: 800; color: var(--navy); }
.cert-sub { font-size: .85rem; color: var(--muted); }
.cert-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: .93rem; border-bottom: 1px solid #f1f4f8; }
.cert-row span { color: var(--muted); }
.cert-stamp { margin-top: 18px; display: inline-block; color: #18884a; border: 2px solid #18884a; padding: 6px 14px; border-radius: 8px; font-weight: 800; transform: rotate(-4deg); }
.float-badge { position: absolute; bottom: -18px; right: 10px; background: var(--navy); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 12px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,42,127,.3); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 1.6rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pills { list-style: none; padding: 0; }
.pills li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.tip { background: #fff5f5; border: 1px solid #f7c6c9; border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 16px 18px; color: #5a1a1e; }
.tip.big { padding: 28px; align-self: start; }
.tip.big h3 { color: var(--orange-2); }
.tip ul { margin: 0; padding-left: 20px; }

.table { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row b { color: var(--navy); display: block; }
.row span { font-size: .85rem; color: var(--muted); }
.row p { margin: 0; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0; }
.tags span { background: var(--bg-alt); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--navy); }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 0 20px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

.contact-box { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe6f3; border-radius: 22px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-box h2 { color: #fff; }
.contact-box .cta-row { margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--muted); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,42,127,.55); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 32px; }
.close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.progress { height: 6px; background: var(--bg-alt); border-radius: 99px; margin: 4px 0 24px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--orange); transition: width .3s; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 800; color: var(--navy); margin-bottom: 14px; font-size: 1.05rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--orange); border-color: transparent; }
.invalid { border-color: #d33; background: #fff6f6; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.consent input { width: auto; margin-top: 3px; }
.actions { display: flex; justify-content: space-between; margin-top: 10px; }
.done { text-align: center; padding: 10px 0 20px; }
.ok { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e7f6ec; color: #18884a; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; margin: 20px auto 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .topbar .btn-sm { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .contact-box { padding: 28px; }
  .two { grid-template-columns: 1fr; }
  .logo { font-size: 1rem; white-space: nowrap; }
  .topbar .btn-sm { white-space: nowrap; padding: 9px 12px; font-size: .85rem; }
  .section { padding: 56px 0; }
}

/* Bandeau tricolore */
.topbar::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #e1000f 66.66%); border-bottom: 1px solid var(--line); }
.footer { border-top: 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #e1000f 66.66%); }
.contact-box { background: linear-gradient(135deg, #002a7f, #0055a4 70%); box-shadow: inset 0 -6px 0 #e1000f; }

/* SIRET */
.hint { font-weight: 400; color: var(--muted); }
.siret-row { display: flex; gap: 8px; margin: -8px 0 6px; }
.siret-row input { margin-top: 0; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.siret-row input:disabled { background: var(--bg-alt); color: var(--muted); }
.siret-row .btn { flex-shrink: 0; }
.siret-msg { min-height: 1.2em; margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.siret-msg.err { color: var(--orange-2); }
.company { background: #f1f5fc; border: 1px solid #c9d7ef; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; }
.company b { color: var(--navy); display: block; font-size: 1rem; }
.company span { color: var(--muted); display: block; }
.company .closed { color: var(--orange-2); font-weight: 700; }
.autofilled { background: #f1f5fc; border-color: #9fb6e0; }

/* Page devis */
.wiz-page { background: var(--bg-alt); }
.topbar-tel { margin-left: auto; text-decoration: none; font-weight: 700; color: var(--navy); white-space: nowrap; }
.wiz { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; margin: 0 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; counter-reset: st; }
.stepper li { counter-increment: st; text-align: center; padding: 10px 6px; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.stepper li::before { content: counter(st) ". "; }
.stepper li.past { color: var(--navy-2); }
.stepper li.active { background: var(--navy); color: #fff; }
.wiz .progress { margin: 0 0 18px; background: #dfe6f1; }
.wiz-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 20px 50px -30px rgba(0,42,127,.35); }
.back { border: 0; background: var(--bg-alt); color: var(--navy); font: inherit; font-weight: 600; font-size: .88rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; margin-bottom: 14px; }
.q { font-size: clamp(1.25rem, 3vw, 1.55rem); margin-bottom: 20px; text-wrap: balance; }
.btn-block { width: 100%; justify-content: center; margin-top: 18px; padding: 16px; font-size: 1.02rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .full { grid-column: 1 / -1; }
textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.card-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; color: var(--navy); margin: 0; transition: border-color .15s, background .15s; }
.card-choice input { position: absolute; opacity: 0; pointer-events: none; }
.card-ico { font-size: 2.2rem; }
.card-choice:has(input:checked) { border-color: var(--navy-2); background: #eef3fc; }
.card-choice:has(input:focus-visible) { outline: 2px solid var(--orange); }
.cards.invalid .card-choice, .yn.invalid .yn-btns span, .radios.invalid label { border-color: #d33; }

.yn { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eef1f6; font-weight: 600; }
.yn-btns { display: flex; gap: 8px; flex-shrink: 0; }
.yn-btns label { margin: 0; }
.yn-btns input, .radios input { position: absolute; opacity: 0; pointer-events: none; }
.yn-btns span { display: inline-block; min-width: 64px; text-align: center; padding: 9px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.yn-btns input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.yn-btns input:focus-visible + span { outline: 2px solid var(--orange); }
.sub { margin: 12px 0 4px 0; padding: 16px 16px 4px; background: var(--bg-alt); border-radius: 12px; }
.sub .yn { border-bottom-color: #e2e8f0; }

.radios { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.radios legend { width: 100%; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.radios label { position: relative; margin: 0; padding: 10px 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.radios label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.radios label:has(input:focus-visible) { outline: 2px solid var(--orange); }

.act-search { position: relative; }
.act-search input { margin-top: 0; }
.act-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,42,127,.3); }
.act-results li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.act-results li:hover, .act-results li:focus { background: #eef3fc; outline: none; }
.act-results li.disabled { color: var(--muted); cursor: default; background: none; text-decoration: line-through; }
.act-h { font-size: .95rem; margin: 22px 0 10px; }
.act-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.act-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #c9d7ef; background: #f1f5fc; border-radius: 10px; font-weight: 600; color: var(--navy); }
.act-list button { border: 0; background: none; color: var(--orange); font-size: 1rem; cursor: pointer; }

@media (max-width: 640px) {
  .wiz-card { padding: 22px 18px; }
  .cards { grid-template-columns: 1fr; }
  .card-choice { flex-direction: row; text-align: left; padding: 14px 16px; }
  .card-ico { font-size: 1.6rem; }
  .grid2 { grid-template-columns: 1fr; }
  .stepper li { font-size: 0; padding: 8px 4px; }
  .stepper li::before { font-size: .9rem; content: counter(st); }
  .stepper li.active { font-size: .78rem; }
  .stepper li.active::before { content: counter(st) ". "; font-size: .78rem; }
  .yn { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar-tel { font-size: .85rem; }
}
@media (max-width: 560px) {
  .topbar-inner { gap: 10px; }
  .logo { font-size: .95rem; gap: 6px; }
  .logo-mark { width: 30px; height: 36px; }
}
