:root {
  --navy: #07152f;
  --navy-soft: #0d2242;
  --navy-deep: #050f22;
  --blue: #09a9e8;
  --blue-hover: #17b7f2;
  --lime: #a8df27;
  --paper: #f4f4ef;
  --paper-alt: #e9eee9;
  --ink: #0b1b32;
  --muted: #58687a;
  --line: #ccd1d2;
  --line-dark: rgba(255, 255, 255, .18);
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; }
h2 { margin: 0 0 24px; font-size: clamp(32px, 4.2vw, 58px); letter-spacing: -.045em; }
h2 em, h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
h3 { margin: 0 0 12px; font-size: 22px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: white; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* En-tête */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
  padding: 0 var(--gutter);
  color: white;
  background: rgba(7, 21, 47, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}
.brand { flex: 0 0 auto; width: 138px; display: block; }
.brand img { display: block; width: 100%; filter: brightness(0) invert(1); }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--blue); border-color: var(--blue); }
.topbar-cta { display: flex; align-items: center; gap: 18px; }
.topbar-cta .btn { padding: 12px 16px; }
.topbar-phone { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--navy); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--navy); color: white; }
.btn-ghost { color: inherit; border: 1px solid currentColor; }

/* Accueil */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
  color: white;
  background: var(--navy);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent 5%, black 65%);
  pointer-events: none;
}
.hero .wrap, .page-hero .wrap { position: relative; }
.hero h1 { max-width: 980px; margin: 26px 0 26px; font-size: clamp(42px, 6.4vw, 96px); line-height: .95; letter-spacing: -.06em; }
.hero-lead { max-width: 680px; margin: 0; color: #b8c6d5; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-actions .btn-ghost { color: white; border-color: rgba(255, 255, 255, .4); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 54px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line-dark); color: #b9c9da; font-size: 14px; }
.hero-proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--lime); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: #b9c9da; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--lime); }

/* Pages intérieures */
.page-hero { position: relative; overflow: hidden; padding: 46px 0 clamp(56px, 7vw, 90px); color: white; background: var(--navy); }
.page-hero h1 { max-width: 960px; margin: 22px 0 22px; font-size: clamp(36px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: #8192a7; font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: white; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.tone-dark { color: white; background: var(--navy); }
.tone-alt { background: var(--paper-alt); }
.label { margin: 0 0 26px; color: #607083; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.label::before { content: ""; display: inline-block; width: 24px; height: 2px; margin: 0 10px 4px 0; background: var(--blue); }
.tone-dark .label { color: #8293a7; }
.section-intro { max-width: 720px; margin: 0 0 54px; color: var(--muted); font-size: 19px; }
.tone-dark .section-intro { color: #aebccc; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 110px); }
.split p { color: var(--muted); }
.tone-dark .split p { color: #aebccc; }
.split .lead { color: var(--ink); font-size: 21px; line-height: 1.55; }
.tone-dark .split .lead { color: white; }
.more { margin-top: 30px; }

/* Cartes */
.cards { display: grid; border-top: 1px solid var(--line); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; min-height: 280px; padding: 30px 28px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-decoration: none; transition: background .25s ease; }
.cols-2 .card:nth-child(2n), .cols-3 .card:nth-child(3n), .cols-4 .card:nth-child(4n) { border-right: 0; }
a.card:hover { background: rgba(9, 169, 232, .07); }
.card-num { color: var(--blue); font-size: 12px; letter-spacing: .14em; }
.card h3 { margin: 46px 0 14px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 26px; font-size: 14px; font-weight: 700; }
.card-more svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tone-dark .cards, .tone-dark .card { border-color: var(--line-dark); }
.tone-dark .card p { color: #aebccc; }
.tone-dark a.card:hover { background: var(--navy-soft); }

/* Listes et étapes */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.tone-dark .checklist li { border-color: var(--line-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 30px 26px 10px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps span { color: var(--blue); font-size: 12px; }
.steps h3 { margin: 40px 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Protocoles */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 10px 16px; border: 1px solid var(--line); font-weight: 700; }
.tone-dark .tags li { border-color: var(--line-dark); }

/* Texte long */
.prose { max-width: 760px; }
.prose h2 { margin-top: 56px; font-size: clamp(26px, 3vw, 38px); }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #33445a; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #0679a8; }
.prose .note { padding: 20px 24px; background: var(--paper-alt); border-left: 3px solid var(--lime); }
.meta-line { color: #8192a7; font-size: 14px; }

/* Fiche projet */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 0 10px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: #607083; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* FAQ */
.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 46px 22px 0; font-size: 19px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; color: var(--blue); font-size: 28px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); }

/* Liens liés */
.related { margin-top: 70px; }
.related ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.related a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.related a:hover { color: #0679a8; }
.related svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Bandeau d'appel */
.cta-band { padding: clamp(64px, 8vw, 110px) 0; background: var(--blue); color: var(--navy); }
.cta-band .label { color: var(--navy); }
.cta-band .label::before { background: var(--navy); }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: clamp(30px, 7vw, 100px); }
.cta-band h2 { margin: 0; }
.cta-band h2 em { color: white; }
.cta-grid p { margin-top: 0; font-size: 18px; }

/* Formulaire */
.form { display: grid; gap: 28px; max-width: 860px; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend, .form label.field-label { display: block; margin-bottom: 12px; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; background: white; border: 1px solid var(--line); cursor: pointer; }
.choices input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%;
  padding: 14px 14px;
  background: white;
  border: 1px solid #b9c2c6;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
}
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { margin: 6px 0 0; color: #6e7b88; font-size: 14px; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.form .consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue); }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: none; padding: 16px 20px; background: #fde8e8; border-left: 3px solid #c0392b; }
.alert.show { display: block; }
.contact-aside { padding: 28px; background: var(--navy); color: white; }
.contact-aside p { color: #aebccc; }
.contact-aside a { color: white; font-weight: 700; }
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 5vw, 70px); align-items: start; }

/* Pied de page */
.footer { padding: 70px 0 30px; color: #93a0af; background: var(--navy-deep); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 50px; }
.footer img { display: block; width: 150px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: white; }
.footer-title { margin: 0 0 16px; color: white; font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.mobile-cta { display: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px var(--gutter) 24px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 17px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .topbar-phone { display: none; }
}

@media (max-width: 900px) {
  .split, .cta-grid, .contact-layout { grid-template-columns: 1fr; }
  .cols-3, .cols-4, .steps { grid-template-columns: 1fr 1fr; }
  .cols-3 .card:nth-child(3n), .cols-4 .card:nth-child(4n) { border-right: 1px solid var(--line); }
  .cols-3 .card:nth-child(2n), .cols-4 .card:nth-child(2n) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar { height: 66px; gap: 14px; }
  .menu { top: 66px; }
  .brand { width: 112px; }
  .topbar-cta { display: none; }
  .cols-2, .cols-3, .cols-4, .steps, .fields, .footer-grid { grid-template-columns: 1fr; }
  .card, .cols-3 .card:nth-child(3n), .cols-4 .card:nth-child(4n) { min-height: 0; border-right: 0; }
  .card h3 { margin-top: 22px; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 16px; }
  .btn { white-space: normal; }
  .mobile-cta {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .mobile-cta a { padding: 18px 10px; color: white; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; }
  .mobile-cta-main { background: var(--blue); color: var(--navy) !important; }
}

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