/* ==========================================================================
   Nendi — site vitrine
   Feuille de style unique
   1. Tokens
   2. Base & typographie
   3. Utilitaires de mise en page
   4. Composants (boutons, cartes, badges, formulaire)
   5. Header / navigation
   6. Sections (hero, concept, modules, CTA, contact)
   7. Schémas SVG
   8. Footer
   9. Animations & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Couleurs de marque (relevées sur la charte Nendi) */
  --brand:        #20a4f3;
  --brand-600:    #0e8bd8;
  --brand-700:    #0a6fae;
  --brand-050:    #eaf6fe;
  --brand-100:    #d3ecfd;

  --navy-900:     #071522;
  --navy-800:     #0b1f33;
  --navy-700:     #123049;

  --ink:          #15212c;
  --ink-2:        #4c5c6b;
  --ink-3:        #7d8b98;

  --line:         #e4e9ee;
  --line-strong:  #cfd8e0;
  --surface:      #ffffff;
  --surface-alt:  #f5f8fb;
  --surface-tint: #eff6fc;

  --warn:         #ff4d6d;
  --warn-soft:    #ffe9ee;

  /* Typographie */
  --font-display: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .18vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --step-2:  clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2.125rem, 1.7rem + 1.9vw, 3.4rem);
  --step-5:  clamp(2.5rem, 1.85rem + 2.9vw, 4.25rem);

  /* Espacement / rythme */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 8vw, 8rem);

  /* Rayons & ombres */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(12, 32, 50, .06), 0 2px 8px rgba(12, 32, 50, .04);
  --shadow-md: 0 2px 6px rgba(12, 32, 50, .05), 0 14px 34px -12px rgba(12, 32, 50, .16);
  --shadow-lg: 0 4px 12px rgba(12, 32, 50, .06), 0 28px 60px -20px rgba(12, 32, 50, .28);
  --shadow-brand: 0 10px 30px -10px rgba(32, 164, 243, .55);

  --ease: cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--step-5); font-weight: 600; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }

p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { font-weight: 600; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--brand-100); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-900); color: #fff;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--alt { background: var(--surface-alt); }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--surface-tint) 100%); }
.section--dark {
  background: var(--navy-900);
  color: #cfdcea;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: var(--step-1); }
.section--dark .section-head p { color: #a9bed3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--brand); flex: none;
}
.section-head--center .eyebrow::before { display: none; }
.section--dark .eyebrow { color: var(--brand); }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid > *, .split > *, .compare > *, .contact-grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

.lead { font-size: var(--step-1); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* 4. Composants ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: .975rem; font-weight: 600; line-height: 1;
  padding: 1rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: var(--shadow-brand); }
.btn--primary:hover { --btn-bg: var(--brand-600); box-shadow: 0 14px 34px -10px rgba(32,164,243,.65); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-fg: var(--brand-700); border-color: var(--brand); background: var(--brand-050); }

.btn--on-dark {
  --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

.btn--sm { padding: .7rem 1.15rem; font-size: .875rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600;
  color: var(--brand-700);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card--hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}
a.card { color: inherit; display: block; }
a.card:hover { color: inherit; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--warn { background: var(--warn-soft); color: var(--warn); }

/* Carte compacte : grilles denses, colonnes étroites */
.card--feature { padding: clamp(1.25rem, 2.2vw, 1.65rem); }
.card--feature h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.card--feature p { font-size: var(--step--1); }
.card--feature .card-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: .95rem; }
.card--feature .card-icon svg { width: 21px; height: 21px; }

/* Carte module */
.module-card {
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
.module-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), #6fd0ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.module-card--hover:hover::before, .module-card:focus-within::before { transform: scaleX(1); }
.module-card .module-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .16em; color: var(--ink-3);
  margin-bottom: .9rem;
}
.module-card ul { list-style: none; padding: 0; margin: 1.35rem 0 1.75rem; }
.module-card li {
  position: relative; padding-left: 1.6rem;
  color: var(--ink-2); font-size: var(--step--1);
}
.module-card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.module-card .link-arrow { margin-top: auto; }

/* Liste à puces cochées */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.check-list li {
  position: relative; padding-left: 2.25rem; margin: 0;
  color: var(--ink-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fae' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.check-list--dark li { color: #b7c8d8; }
.check-list--dark li::before { background-color: rgba(32,164,243,.16); }
.check-list strong { display: block; color: var(--ink); margin-bottom: .1rem; }
.check-list--dark strong { color: #fff; }

/* Liste "problème" */
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pain-list li { position: relative; padding-left: 2.25rem; margin: 0; color: var(--ink-2); }
.pain-list strong { display: block; color: var(--ink); margin-bottom: .1rem; }
.pain-list li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--warn-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d6d' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .04em;
  padding: .38rem .8rem; border-radius: 999px;
  background: var(--brand-050); color: var(--brand-700);
}
.badge--warn { background: var(--warn-soft); color: #d32950; }
.badge--dark { background: rgba(255,255,255,.1); color: #dcecfa; }

/* 5. Header ---------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(12, 32, 50, .5);
}
.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.brand__name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  letter-spacing: -.02em; line-height: 1;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav__link {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--ink-2);
  padding: .55rem .9rem; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-alt); }
.nav__link[aria-current="page"] { color: var(--brand-700); background: var(--brand-050); }

.header .btn { margin-left: .6rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; position: relative; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900);
  color: #d5e3f0;
  padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(4.5rem, 9vw, 8rem);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero-city.jpg") center / cover no-repeat;
  opacity: .22;
  filter: saturate(.55);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(32,164,243,.42) 0%, rgba(32,164,243,0) 62%),
    radial-gradient(70% 60% at 8% 92%, rgba(14,139,216,.28) 0%, rgba(14,139,216,0) 60%),
    linear-gradient(168deg, rgba(7,21,34,.92) 0%, rgba(7,21,34,.82) 45%, rgba(7,21,34,.95) 100%);
}
.hero__inner { position: relative; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, #6fd0ff, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.05rem, .98rem + .5vw, 1.3rem); color: #b9cddf; max-width: 40em; }
.hero .btn-row { margin-top: 2.25rem; }

/* Hero secondaire (pages internes) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: #b9cddf;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 100% at 88% 0%, rgba(32,164,243,.4) 0%, rgba(32,164,243,0) 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero__art {
  min-width: 0;
  filter: drop-shadow(0 30px 60px rgba(0, 12, 24, .45));
}
.page-hero--split h1 { max-width: 14ch; }

.page-hero h1 { color: #fff; font-size: var(--step-4); margin-bottom: .8rem; }
.page-hero p { font-size: var(--step-1); max-width: 60ch; color: #b9cddf; }
.page-hero .eyebrow { color: var(--brand); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--step--1); color: #7f9ab2; margin-bottom: 1.5rem;
  list-style: none; padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: #a9c3d8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #4f6d87; }

/* Bandeau CTA -------------------------------------------------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy-900);
  color: #c4d6e6;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.cta__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/cta-workspace.jpg") center 30% / cover no-repeat;
  opacity: .3; filter: saturate(.5);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 120% at 95% 0%, rgba(32,164,243,.5) 0%, rgba(32,164,243,0) 60%),
    linear-gradient(100deg, rgba(7,21,34,.96) 20%, rgba(7,21,34,.72) 100%);
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #b0c6d9; max-width: 48ch; }
.cta .btn-row { margin-top: 2rem; }
.cta__inner { position: relative; max-width: 660px; }

/* Avant / Après ------------------------------------------------------------ */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.compare__panel {
  min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
}
.compare__panel > .badge { align-self: flex-start; }
.compare__panel--after { border-color: var(--brand-100); background: linear-gradient(180deg, #fff, var(--brand-050)); }
.compare__panel h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.compare__panel > p { color: var(--ink-2); font-size: var(--step--1); margin-bottom: 1.5rem; }
.compare__figure { margin: auto 0 0; }

/* Étapes numérotées -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.step {
  position: relative; padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.4rem; top: 1.4rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  background: var(--brand); color: #fff;
}
.step h4 { margin-bottom: .25rem; }
.step p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }

/* Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

.contact-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card__label {
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .2rem;
}
.contact-card__value {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500;
  color: var(--ink); letter-spacing: -.01em; word-break: break-word;
}
a.contact-card__value:hover { color: var(--brand-700); }
.contact-card__note { font-size: var(--step--1); color: var(--ink-2); margin-top: .2rem; }

.contact-list { display: grid; gap: 1rem; }

/* Formulaire */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; color: var(--ink);
}
.field label .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c5c6b' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(32,164,243,.18);
}
.field input::placeholder, .field textarea::placeholder { color: #a6b2bd; }

.form__consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: var(--step--1); color: var(--ink-2);
}
.form__consent input { width: 18px; height: 18px; flex: none; margin-top: .15rem; accent-color: var(--brand); }

.form__note { font-size: var(--step--1); color: var(--ink-3); }

.form-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

/* Honeypot anti-spam */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* FAQ / accordéon ---------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; padding: 0 1.4rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-1);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 1.55rem;
  width: 12px; height: 12px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq p { color: var(--ink-2); padding-bottom: 1.3rem; margin: 0; }

/* 7. Schémas SVG ----------------------------------------------------------- */
.figure { margin: 0; min-width: 0; }
.figure__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
.figure__scroll > svg { min-width: 460px; width: 100%; height: auto; display: block; }
.figure figcaption {
  margin-top: 1rem; font-size: var(--step--1); color: var(--ink-3);
  text-align: center;
}
.diagram-card {
  min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.svg-label { font-family: var(--font-display); font-size: 13px; font-weight: 500; fill: #4c5c6b; }
.svg-label--sm { font-size: 11.5px; font-weight: 400; fill: #7d8b98; }
.svg-label--head { font-size: 13.5px; font-weight: 600; fill: #15212c; }
.svg-label--brand { fill: #0a6fae; font-weight: 600; }
.svg-label--white { fill: #fff; font-weight: 600; }

/* Illustrations d'en-tête des pages module (fond sombre) ------------------- */
.illus { width: 100%; height: auto; display: block; overflow: visible; }
.illus-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  fill: #9fbdd6;
}
.illus-label--strong { font-size: 13px; font-weight: 600; fill: #ffffff; }
.illus-label--white  { font-size: 15px; font-weight: 600; fill: #ffffff; }
.illus-label--white-soft { font-size: 12px; font-weight: 500; fill: #ffffff; opacity: .82; }

/* Indice de défilement horizontal sur les schémas trop larges pour l'écran */
@media (max-width: 560px) {
  .figure__scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, rgba(0,0,0,.15) 100%);
    mask-image: linear-gradient(90deg, #000 86%, rgba(0,0,0,.15) 100%);
  }
}

/* 8. Footer ---------------------------------------------------------------- */
.footer {
  background: var(--navy-900); color: #91a8bd;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.footer a { color: #b8ccdd; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand:hover { color: #fff; }
.footer .brand__mark { color: var(--brand); }
.footer__tagline { max-width: 32ch; color: #8ba2b7; }
.footer h4 {
  color: #fff; font-size: .8rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer li { margin: 0; }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  align-items: center; justify-content: space-between;
  color: #7189a0;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* 9. Animations ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .split--wide-left { grid-template-columns: minmax(0, 1fr); }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero--split h1 { max-width: none; }
  .page-hero__art { max-width: 520px; margin-top: .5rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    margin-left: 0;
    clip-path: inset(0 0 100% 0);
    opacity: 0; pointer-events: none;
    transition: clip-path .35s var(--ease), opacity .25s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav .btn { display: inline-flex; margin: .75rem 0 0; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .compare { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn--block-mobile { width: 100%; }
}

/* Impression --------------------------------------------------------------- */
@media print {
  .header, .footer, .nav-toggle, .cta, .btn { display: none !important; }
  body { color: #000; }
  .hero, .page-hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--dark h2 { color: #000 !important; }
  .hero__bg, .cta__bg, .hero::after, .page-hero::after { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
