:root {
  --bg: #181b2e;
  --bg-deep: #11142a;
  --surface: #20243d;
  --surface-2: #272c4a;
  --line: #333a5e;
  --text: #e8ecf6;
  --muted: #a9b2c8;
  --accent: #51aefc;
  --accent-dark: #2554ac;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8cc8ff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--accent); color: #0b1020;
  padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 8px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 27, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 14px; flex-wrap: wrap;
}
.brand img { width: 200px; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; text-transform: uppercase;
  letter-spacing: .06em; font-size: 14px; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .btn { margin-left: 4px; }
.nav a.lang-switch { font-weight: 700; font-size: 13px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }
.nav a.lang-switch:hover { border-color: var(--accent); }
.reveal-email { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.reveal-email:hover { color: #8cc8ff; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #0b1020;
  border: 2px solid var(--accent); transition: transform .15s, background .15s;
  font-size: 15px; letter-spacing: .02em;
}
.btn:hover { background: #8cc8ff; border-color: #8cc8ff; color: #0b1020; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.nav .btn { padding: 9px 18px; color: #0b1020; text-transform: none; letter-spacing: 0; border-bottom: 2px solid var(--accent); }

/* Hero */
.hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(81, 174, 252, .18), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(37, 84, 172, .35), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
  color: var(--accent); font-weight: 600; margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: none; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.005em; }
h3 { font-size: 20px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: none; margin: 18px 0 30px; }
.hero .lede + .lede { margin-top: -8px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Sections */
section { padding: clamp(48px, 7vw, 84px) 0; }
section.alt { background: var(--bg-deep); border-block: 1px solid var(--line); }
.section-head { max-width: none; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { color: #fff; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: 15px;
}

.note { color: var(--muted); font-size: 15px; margin-top: 22px; max-width: none; }

/* Service detail */
.service {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 860px) { .service { grid-template-columns: 5fr 7fr; gap: 48px; } }
.service h2 { font-size: clamp(24px, 3vw, 32px); }
.service .tagline { color: var(--accent); font-weight: 600; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.service ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.service li { margin-bottom: 6px; }
.service p { color: var(--muted); margin: 0 0 12px; }

/* Contact */
.contact-card dl { margin: 0; }
.contact-card dt { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 18px; }

/* Hero with trust card */
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.trust {
  background: rgba(32, 36, 61, .85); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 14px;
  box-shadow: 0 20px 50px rgba(5, 8, 25, .35);
}
.trust h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 14px; }
.trust ul { list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; line-height: 1.5; }
.trust li:first-child { border-top: 0; }
.trust svg { flex: 0 0 24px; width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* Icons */
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(81, 174, 252, .12); border: 1px solid rgba(81, 174, 252, .3); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.service-card .service-img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.service-img.wide { margin-bottom: 22px; }
.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card p { flex: 1; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps h3 { margin: 14px 0 8px; color: #fff; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 700; }

/* Leader */
.leader { display: grid; gap: 36px; align-items: center; }
@media (min-width: 820px) { .leader { grid-template-columns: 280px 1fr; gap: 54px; } .leader.big { grid-template-columns: 340px 1fr; align-items: start; } }
.leader img { width: 100%; max-width: 340px; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; aspect-ratio: 2 / 3; box-shadow: 0 20px 50px rgba(5, 8, 25, .4); }
.leader h2 { margin-bottom: 4px; }
.leader p { color: var(--muted); }
.leader .role { color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.cred h3 { color: var(--accent); }
.cred.wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .grid.cols-3.fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mini { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 20px 0 6px; }
.service .icon { margin-bottom: 14px; }

/* FAQ */
.faq-wrap { max-width: none; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Form */
.form-card { max-width: 820px; margin-inline: auto; }
.form-card h2 { font-size: clamp(24px, 3vw, 30px); }
.form-intro { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 18px; flex: 1 1 260px; }
.field-row { display: flex; gap: 18px; flex-wrap: wrap; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--text); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(81, 174, 252, .25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { color: var(--muted); font-size: 14px; margin: 4px 0 20px; }
button.btn { cursor: pointer; font-family: inherit; }
button.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.form-status.ok { background: rgba(37, 172, 78, .12); border-color: #25ac4e; color: #b6f0c8; }
.form-status.error { background: rgba(255, 99, 99, .12); border-color: #ff6363; color: #ffc9c9; }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose p, .prose li { color: var(--muted); }

/* CTA band */
.band {
  background: linear-gradient(120deg, var(--accent-dark), #1b3f86);
  border-radius: var(--radius); padding: clamp(28px, 5vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.band p { margin: 0; color: #d6e3fb; }
.band .btn { background: #fff; border-color: #fff; color: #11285a; }
.band .btn:hover { background: #e8f1ff; border-color: #e8f1ff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 42px 0 30px; background: var(--bg-deep); color: var(--muted); font-size: 15px; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 640px) {
  .site-header { position: static; }
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .brand img { width: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Résumé */
.summary { padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.summary-box { max-width: none; }
.summary-box h2 { font-size: clamp(24px, 3vw, 32px); }
.summary-box p { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); margin: 0 0 14px; }
.summary-box p:last-child { margin-bottom: 0; }

/* Texte d'introduction de l'accueil */
.hero-text { max-width: none; }
.hero-text .lede { margin: 0 0 16px; max-width: none; font-size: clamp(17px, 1.7vw, 20px); }
.hero-text-wide h1 { max-width: none; }
.hero-text .lede a { color: var(--accent); font-weight: 600; }
.hero-text + .cta-row { margin-top: 28px; }

/* Pages de service */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--accent); }
.crumbs span { margin: 0 6px; }
.detail-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 940px) { .detail-grid { grid-template-columns: 1.4fr 1fr; } }
.detail-main .service-img { margin-bottom: 28px; }
.detail-main h2 { margin-bottom: 14px; }
.detail-main p { color: var(--muted); }
.detail-side ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.detail-side li { margin-bottom: 6px; }
.detail-side p { color: var(--muted); }

/* Menu déroulant des services */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.sub-toggle { background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px 6px; display: inline-flex; align-items: center; border-radius: 6px; }
.sub-toggle:hover { color: var(--accent); }
.sub-toggle svg { width: 12px; height: 8px; transition: transform .15s; }
.nav-item.open .sub-toggle svg { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px; display: none; z-index: 60;
  position: absolute; top: calc(100% - 2px); left: -14px; min-width: 310px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(5, 8, 25, .45);
}
.nav-item.open .submenu { display: block; }
.submenu a { display: block; padding: 10px 12px; border-bottom: 0; text-transform: none; letter-spacing: 0; font-size: 15px; border-radius: 8px; }
.submenu a:hover, .submenu a:focus-visible { background: rgba(81, 174, 252, .12); color: var(--accent); }
@media (hover: hover) and (min-width: 641px) {
  .nav-item.has-sub:hover .submenu, .nav-item.has-sub:focus-within .submenu { display: block; }
}
@media (max-width: 640px) {
  .nav-item { flex-wrap: wrap; }
  .submenu { position: static; flex-basis: 100%; min-width: 0; margin-top: 6px; box-shadow: none; }
}
