:root {
  --navy: #21242f;
  --navy-2: #2a2e3b;
  --navy-3: #343948;
  --white: #ffffff;
  --grey: #adadad;
  --grey-2: #7a7a7a;
  --line: rgba(173, 173, 173, 0.18);
  --accent: #6ec1e4;
  --paper: #f6f6f4;
  --ink: #21242f;
  --font: "Alef", "Roboto", system-ui, sans-serif;
  --font-ui: "Roboto", system-ui, sans-serif;
  --wrap: 1200px;
  --arrow: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }

.label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--grey);
}
.arrow-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.arrow-link:hover { border-color: currentColor; }

/* Bandeau supérieur */
.topbar {
  background: var(--white);
  color: var(--navy);
  text-align: center;
  padding: 10px 16px;
}
.topbar a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 500;
}

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(33, 36, 47, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { font-size: 22px; letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap; }
.brand small { display: block; font-family: var(--font-ui); font-size: 10px; letter-spacing: 1.6px; color: var(--grey); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.burger {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: none; border: 1px solid var(--line); cursor: pointer;
}
.burger span { width: 20px; height: 1px; background: var(--white); display: block; }

/* Menu plein écran */
.nav-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  overflow-y: auto;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay .wrap { width: 100%; }
.nav-top { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.close {
  background: none; border: 1px solid var(--line); color: var(--white);
  width: 44px; height: 44px; font-size: 18px; cursor: pointer;
}
.nav-list { list-style: none; margin: 32px 0 48px; padding: 0; }
.nav-list li { border-bottom: 1px solid var(--line); }
.nav-list a {
  display: block; padding: 14px 0;
  font-size: clamp(22px, 4vw, 34px);
  transition: color .2s, padding-left .2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); padding-left: 8px; }
.nav-list .sub a { font-size: clamp(18px, 3vw, 26px); color: var(--grey); }
.nav-list .sub a:hover { color: var(--white); }

/* Héros */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 72px);
  line-height: 1.05; font-weight: 400; margin: 18px 0 32px; max-width: 16ch;
}
.hero p.lead { color: var(--grey); max-width: 58ch; font-size: 18px; margin: 0 0 32px; }

.page-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 400; line-height: 1.1; margin: 14px 0 20px; }
.page-hero p { color: var(--grey); max-width: 62ch; font-size: 18px; margin: 0; }

/* Visuels générés (pas d'images externes) */
.visual {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 30%, rgba(110, 193, 228, .35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(97, 206, 112, .22), transparent 45%),
    linear-gradient(135deg, var(--navy-3), var(--navy-2));
  position: relative; overflow: hidden;
}
.visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent);
}
.visual span {
  position: absolute; left: 20px; bottom: 16px; z-index: 1;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey);
}
.visual.v2 { background: radial-gradient(circle at 70% 30%, rgba(110, 193, 228, .4), transparent 50%), linear-gradient(160deg, #2c3243, var(--navy)); }
.visual.v3 { background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .15), transparent 50%), linear-gradient(200deg, #3a3f51, var(--navy-2)); }

/* Article mis en avant */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section h2.title { font-size: clamp(28px, 4vw, 40px); font-weight: 400; margin: 10px 0 40px; line-height: 1.15; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.feature h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 400; line-height: 1.15; margin: 12px 0 24px; }

/* Encarts */
.callouts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.callout { background: var(--navy); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 26px; display: flex; flex-direction: column; gap: 18px; min-height: 240px; transition: background .2s; }
.callout:hover { background: var(--navy-2); }
.callout .icon { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-content: center; }
.callout .icon svg { width: 20px; height: 20px; stroke: var(--white); fill: none; stroke-width: 1.5; }
.callout h4 { font-size: 20px; font-weight: 400; line-height: 1.3; margin: 0; flex: 1; }

/* Documentation */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc-cat { background: var(--navy-2); border: 1px solid var(--line); padding: 28px; }
.doc-cat header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.doc-cat h3 { font-size: 21px; font-weight: 400; margin: 0; }
.count {
  font-family: var(--font-ui); font-size: 12px; min-width: 28px; height: 28px;
  display: grid; place-content: center; border: 1px solid var(--line); color: var(--grey);
}
.doc-cat ul { list-style: none; margin: 0; padding: 0; }
.doc-cat li { border-top: 1px solid var(--line); }
.doc-cat li a { display: flex; gap: 10px; padding: 11px 0; font-size: 15px; color: #dcdcdc; transition: color .2s; }
.doc-cat li a::before { content: "↳"; color: var(--grey); font-family: var(--arrow); }
.ar { font-family: var(--arrow); }
.doc-cat li a:hover { color: var(--accent); }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 21px; font-weight: 400; line-height: 1.3; margin: 6px 0 0; }
.card p { color: var(--grey); margin: 0; flex: 1; }

/* Offre (bloc clair) */
.offer { background: var(--paper); color: var(--ink); padding: 96px 0; }
.offer .label { color: var(--grey-2); }
.offer p.big { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; max-width: 30ch; margin: 16px 0 32px; }
.offer .arrow-link { color: var(--ink); }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }

/* Contenu des pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; font-weight: 400; margin: 48px 0 16px; }
.prose p, .prose li { color: #d0d0d0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile { background: var(--navy-2); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 22px; font-weight: 400; margin: 0; }
.tile p { color: var(--grey); margin: 0; flex: 1; }
.tile .num { font-family: var(--font-ui); font-size: 12px; color: var(--accent); letter-spacing: 1.6px; }
.stat { font-size: 48px; line-height: 1; color: var(--white); }

/* Clouds Salesforce */
.clouds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cloud-card { background: var(--navy-2); border: 1px solid var(--line); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.cloud-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cloud-card .icon { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-content: center; }
.cloud-card .icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.cloud-card h3 { font-size: 22px; font-weight: 400; margin: 0; }
.cloud-card p { color: var(--grey); margin: 0; flex: 1; font-size: 15px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-top: 1px solid var(--line); padding: 14px 0 14px 28px; position: relative; color: #d0d0d0; }
.checklist li::before { content: "↳"; font-family: var(--arrow); color: var(--accent); position: absolute; left: 0; }
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.docs-side { position: sticky; top: 100px; align-self: start; }
.docs-side h4 { font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey); margin: 24px 0 8px; font-weight: 500; }
.docs-side a { display: block; padding: 5px 0; color: #cfcfcf; font-size: 15px; }
.docs-side a:hover { color: var(--accent); }
.doc-entry { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.doc-entry h3 { font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.doc-entry p { margin: 0; color: var(--grey); }

/* Pied de page */
.footer { padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer p { color: var(--grey); margin: 0 0 8px; }
.footer h5 { font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--white); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li a { display: block; padding: 4px 0; color: var(--grey); }
.footer li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p, .footer-bottom a { font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey); margin: 0; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Fenêtre de contact */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .8); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--white); color: var(--ink); width: min(520px, 100%); padding: 40px 32px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-box h2 { font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.modal-box p { color: var(--grey-2); margin: 0 0 24px; }
.modal-box .close { position: absolute; top: 12px; right: 12px; color: var(--ink); border-color: #ddd; }
.form { display: grid; gap: 14px; }
.form label { font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey-2); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink);
  border: 1px solid #d6d6d6; padding: 12px; background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.form .btn { background: var(--navy); color: #fff; border-color: var(--navy); justify-self: start; }
.form .btn:hover { background: transparent; color: var(--navy); }

/* Révélation au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .callouts { grid-template-columns: repeat(2, 1fr); }
  .docs, .news, .grid-3, .clouds { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header .btn { display: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .feature, .offer-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .callouts, .docs, .news, .grid-3, .clouds { grid-template-columns: 1fr; }
  .callout { min-height: 0; }
}
.section[id] { scroll-margin-top: 76px; }

/* Prise de rendez-vous */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: inherit; }
.section .reveal[style*="center"] .btn-row { justify-content: center; }
.booking { background: var(--white); border: 1px solid var(--line); min-height: 700px; }
.booking iframe { display: block; width: 100%; height: 760px; border: 0; }
.booking-empty { min-height: 0; background: var(--navy-2); padding: 48px 32px; text-align: center; }
.booking-empty h3 { font-size: 26px; font-weight: 400; margin: 0 0 8px; }
.booking-empty p { color: var(--grey); margin: 0 0 24px; }
.booking-note { color: var(--grey); font-size: 14px; margin-top: 16px; }

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); font-family: var(--font-ui); font-size: 12px; letter-spacing: 1.6px;
  color: var(--grey); transition: border-color .2s, color .2s;
}
.lang-switch strong { color: var(--white); font-weight: 500; }
.lang-switch .sep { opacity: .5; }
.lang-switch:hover { border-color: var(--white); color: var(--white); }
