:root {
  --navy: #0f2a44;
  --navy-2: #163a5c;
  --blue: #1f6fb2;
  --blue-dark: #185a91;
  --blue-soft: #e8f1fa;
  --ink: #16212d;
  --muted: #566476;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 68, .06), 0 8px 24px rgba(15, 42, 68, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:target { scroll-margin-top: 84px; }
section[id] { scroll-margin-top: 72px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(31, 111, 178, .45); outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--blue); }
.header-call { white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(180deg, #f3f7fb 0%, #fff 100%); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.eyebrow-light { color: #9cc8ef; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .ico { color: var(--blue); width: 18px; height: 18px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.hero-card-title { font-size: 1.15rem; margin-bottom: 18px; }
.mode { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.mode h3 { margin-bottom: 4px; font-size: 1rem; }
.mode p { margin: 0; color: var(--muted); font-size: .93rem; }
.mode-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.hero-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; text-decoration: none; }
.hero-card-link .ico { width: 18px; height: 18px; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c4d3e3; box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.card-ico { width: 28px; height: 28px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

/* Dark band */
.section-dark { background: var(--navy); color: #d7e3ef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.lead-light { font-size: 1.08rem; color: #c3d4e5; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
.feature-list { display: grid; gap: 14px; }
.feature { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); }
.feature .ico { width: 26px; height: 26px; color: #9cc8ef; margin-top: 2px; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: .94rem; color: #c3d4e5; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }

/* Limits */
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.limits li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.limits .ico { color: #a2471f; margin-top: 3px; }
.limits span { color: var(--muted); }
.limits strong { color: var(--ink); }

/* Zone + map */
.zones { display: grid; gap: 18px; margin-top: 28px; }
.zones h3 { margin-bottom: 4px; }
.zones p { margin: 0; color: var(--muted); font-size: .95rem; }
.map-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-link { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-weight: 600; text-decoration: none; background: #fff; border-top: 1px solid var(--line); }
.map-link .ico { width: 18px; height: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--navy); }
.linklike { background: none; border: 0; padding: 0; font: 600 1.05rem var(--font); color: var(--blue); cursor: pointer; }
.linklike:hover { text-decoration: underline; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; border: 0; padding: 0; margin: 0; }
.field em { color: #a2471f; font-style: normal; }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  border: 1px solid #c9d3de; border-radius: 8px; padding: 11px 12px; background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 178, .18); }
.choice { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.choice legend { float: left; margin-right: 8px; font-weight: 500; }
.choice label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { margin-top: 3px; }
.form-status { margin: 0; font-size: .94rem; min-height: 1.4em; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a2471f; }
.is-invalid { border-color: #a2471f !important; }

/* Footer */
.site-footer { background: #0b1f33; color: #a9bbcd; padding: 56px 0 24px; font-size: .94rem; }
.site-footer a { color: #d7e3ef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.brand-footer, .brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #8aa0b6; }
.brand-footer { margin-bottom: 14px; }
.footer-title { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* Legal page */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p, .legal li { color: #34414f; }

/* Chat widget */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--font); }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--font); box-shadow: 0 8px 24px rgba(15, 42, 68, .3);
}
.chat-launcher:hover { background: var(--navy-2); }
.chat[data-state="open"] .chat-launcher { display: none; }
.chat-panel {
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 42, 68, .25); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--navy); color: #fff; }
.chat-head strong { display: block; font-size: 1rem; }
.chat-sub { display: block; font-size: .78rem; color: #b9cde0; margin-top: 2px; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg-assistant { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-owner { background: var(--blue-soft); border: 1px solid #c8dcf0; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.msg-system { align-self: center; font-size: .8rem; color: var(--muted); text-align: center; max-width: 95%; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8b7; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; border: 1px solid #c9d3de; border-radius: 10px; padding: 10px 12px; font: 400 .95rem var(--font); max-height: 120px; }
.chat-form textarea:focus { outline: none; border-color: var(--blue); }
.chat-send { width: 44px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); background: #fff; }

/* Responsive */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; }
}
@media (max-width: 900px) {
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; }
  .nav-toggle { display: block; margin-left: 0; }
  .header-inner { gap: 12px; }
  .header-call { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .cards, .cards-3, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero-cta .btn { width: 100%; }
  .map-wrap iframe { height: 320px; }
  .contact-form { padding: 20px; }
  .chat { right: 12px; bottom: 12px; }
  .chat-launcher span { display: none; }
  .chat-launcher { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; padding-top: 4px; }
.price-list span { font-weight: 600; color: var(--ink); font-size: .95rem; }
.price-list small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.price-list strong { white-space: nowrap; color: var(--navy); font-size: 1.08rem; text-align: right; }
.price-list strong em { display: block; font-style: normal; font-weight: 500; font-size: .74rem; color: var(--muted); }
.price-notes { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .93rem; }
.price-notes li { display: flex; align-items: center; gap: 8px; }
.price-notes .ico { width: 18px; height: 18px; color: var(--blue); }
@media (max-width: 960px) { .prices { grid-template-columns: 1fr; } }
