/* ONIMA design system : single stylesheet, mockup-derived tokens.
   Greens sampled from the operator's mockups; navy from the brand board.
   Sections: tokens, base, layout, buttons, header, footer, hero, KPIs,
   product, map, project cards, method, CTA, forms, prose, responsive. */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --green: #4fae37;          /* sidebar active green (sampled 79,174,55) */
  --green-deep: #259204;     /* NOUVEAU badge green (37,146,4) */
  --green-soft: #8cce88;     /* probability ring green (140,206,136) */
  --green-tint: #e8f5e4;
  --navy: #000a16;           /* sidebar navy (0,10,22) */
  --navy-2: #0a1628;
  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #6b7684;
  --line: #e5e7eb;
  --line-soft: #eef1ee;
  --bg: #f7f8f7;
  --bg-alt: #eef3ee;
  --card: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --shadow-deep: 0 30px 70px rgba(0, 10, 22, .26), 0 8px 20px rgba(0, 10, 22, .12);

  --container: 1120px;
  --gutter: 20px;
  --section-y: clamp(64px, 6.4vw, 88px);
  --block-gap: clamp(28px, 3.2vw, 40px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ============================================================
   2. Base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; color: var(--navy-2); }
:focus-visible { outline: 3px solid rgba(79, 174, 55, .5); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ============================================================
   3. Layout
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(44px, 4.6vw, 60px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, .78); }

.section__head { max-width: 72ch; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section__lead { margin-top: 12px; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 17.5px); max-width: 72ch; }
.section__body { margin-top: var(--block-gap); }
.section__foot { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Small hero for inner pages (tarifs, carte, actualites, contact, legal) */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line-soft); padding: clamp(44px, 5.2vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-hero__kicker { color: var(--green-deep); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 12px; }
.page-hero__title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.page-hero__lead { margin-top: 14px; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 18px); max-width: 68ch; }
.page-hero__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Generic reusable blocks for the other pages */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 14px; }

/* Long-form text: legal pages, articles */
.prose { max-width: 72ch; color: var(--ink-soft); font-size: 16.5px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; margin-top: 38px; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.prose h2 + p, .prose h3 + p { margin-top: 10px; }
.prose p, .prose li { line-height: 1.68; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--green); }
.prose strong { color: var(--navy-2); }
.prose blockquote { border-left: 3px solid var(--green); padding-left: 16px; color: var(--ink-soft); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { color: var(--navy-2); font-weight: 700; }
.prose code { background: #f2f4f7; border-radius: 6px; padding: 2px 6px; font-size: 14px; }

/* ============================================================
   4. Buttons and pills
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  border-radius: 12px; padding: 11px 18px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(79, 174, 55, .32); }
.btn--primary:hover { background: #449930; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.btn--ghost-light:hover { border-color: var(--green-soft); color: var(--green-soft); transform: translateY(-1px); }
.btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.chip { background: #f2f4f7; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.chip--green { background: var(--green-tint); border-color: #cfe8c8; color: var(--green-deep); }
.kicker { color: var(--green-deep); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }

/* ============================================================
   5. Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.site-header__brand img { height: 44px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 18px; }

.site-nav { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.site-nav__link { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .12s ease, border-color .12s ease; }
.site-nav__link:hover { color: var(--green-deep); }
.site-nav__link[aria-current="page"] { color: var(--navy-2); font-weight: 600; border-bottom-color: var(--green); }

/* Mobile menu (details/summary, no framework) */
.site-menu { display: none; position: relative; }
.site-menu__toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  cursor: pointer; list-style: none;
}
.site-menu__toggle::-webkit-details-marker { display: none; }
.site-menu__bars { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy-2); transition: background .15s ease; }
.site-menu__bars::before, .site-menu__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--navy-2); transition: transform .15s ease, top .15s ease; }
.site-menu__bars::before { top: -6px; }
.site-menu__bars::after { top: 6px; }
.site-menu[open] .site-menu__bars { background: transparent; }
.site-menu[open] .site-menu__bars::before { top: 0; transform: rotate(45deg); }
.site-menu[open] .site-menu__bars::after { top: 0; transform: rotate(-45deg); }
.site-menu__panel {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 70;
  width: min(80vw, 268px); display: grid; gap: 2px; padding: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.site-menu__link { padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.site-menu__link:hover { background: var(--bg); color: var(--green-deep); }
.site-menu__cta { margin-top: 8px; width: 100%; }

/* ============================================================
   6. Footer
   ============================================================ */
.site-footer { background: var(--navy-2); color: rgba(255, 255, 255, .72); padding: clamp(44px, 5vw, 64px) 0 32px; font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { height: 44px; max-height: 44px; width: auto; }
.site-footer__tagline { margin-top: 16px; color: var(--green-soft); font-weight: 700; letter-spacing: .05em; }
.site-footer__legal { margin-top: 8px; color: rgba(255, 255, 255, .6); max-width: 34ch; }
.site-footer__swiss { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.site-footer__swiss-flag { width: 34px; height: 34px; border-radius: 3px; flex: none; display: block; }
.site-footer__swiss-text { margin: 0; }
.site-footer__swiss-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; }
.site-footer__swiss-sub { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.site-footer__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.site-footer__list { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.site-footer__list a { color: rgba(255, 255, 255, .78); }
.site-footer__list a:hover { color: var(--green-soft); }
.site-footer__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .55);
}
.site-footer a { transition: color .12s ease; }

/* ============================================================
   7. Hero
   ============================================================ */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: clamp(48px, 5.6vw, 80px) 0 clamp(48px, 5.2vw, 72px); overflow-x: clip; }
.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero__kicker { color: var(--green-deep); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.hero__title { font-size: clamp(33px, 4.4vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.hero__lead { margin-top: 18px; font-size: clamp(16.5px, 1.6vw, 18px); color: var(--ink-soft); max-width: 54ch; }
.hero__tagline { margin-top: 14px; font-weight: 700; color: var(--green-deep); letter-spacing: .06em; }
.hero__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stack : 3 aperçus produit superposés, cliquables (positions 0/1/2) */
.hero__visual { position: relative; }
.hero-stack { position: relative; width: 100%; aspect-ratio: 10 / 8.6; }
.hero-stack__item {
  position: absolute; margin: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  background: #fff;
  transition: left .55s cubic-bezier(.22, .8, .3, 1),
              top .55s cubic-bezier(.22, .8, .3, 1),
              width .55s cubic-bezier(.22, .8, .3, 1),
              transform .55s cubic-bezier(.22, .8, .3, 1),
              box-shadow .55s ease, filter .55s ease;
  will-change: left, top, width, transform;
}
.hero-stack__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-stack__item:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero-stack__item[data-pos="0"] {
  z-index: 3; left: 0; top: 8%; width: 72%;
  transform: scale(1);
  box-shadow: var(--shadow-deep); filter: none;
}
.hero-stack__item[data-pos="1"] {
  z-index: 2; left: 47%; top: 0; width: 53%;
  transform: scale(.97);
  box-shadow: var(--shadow-lg); filter: saturate(.96) brightness(.99);
}
.hero-stack__item[data-pos="2"] {
  z-index: 1; left: 51%; top: 54%; width: 47%;
  transform: scale(.94);
  box-shadow: var(--shadow-lg); filter: saturate(.92) brightness(.985);
}
.hero-stack__item:not([data-pos="0"]):hover { transform: scale(1.015); filter: none; }

/* ============================================================
   8. KPI banner
   ============================================================ */
.kpis { background: var(--navy); color: #fff; padding: 30px 0; }
.kpis__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
/* Bandeau a six tuiles (landing) : chiffres plus serres, une valeur ne doit
   jamais deborder de sa colonne. */
.kpis__inner--six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.kpi { padding: 0 6px; min-width: 0; }
.kpi__value { display: block; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--green-soft); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpis__inner--six .kpi__value { font-size: clamp(24px, 2.5vw, 34px); }
/* Valeur TEXTUELLE (montant formate) : plus petite, jamais tabulaire. */
.kpi__value--text { font-variant-numeric: normal; letter-spacing: -0.01em; }
.kpis__inner--six .kpi__value--text { font-size: clamp(19px, 1.7vw, 23px); }
.kpi__label { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .74); }
.kpis__inner--six .kpi__label { font-size: 12.5px; }

/* ============================================================
   9. Product value grid
   ============================================================ */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.value-card__title { font-size: 17px; font-weight: 700; }
.value-card__title::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--green); margin-bottom: 14px; }
.value-card__text { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   10. Map embed
   Le composant de carte est PARTAGE avec le portail : sa mise en page vit
   dans portal-carte.css (source de verite) et son habillage public dans
   onima-carte-public.css. Plus rien ici.
   ============================================================ */

/* ============================================================
   11. Project cards
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
/* Une cellule = la carte (partagee avec l'app, sans lien interne) et son
   bouton, dont la destination depend du contexte de connexion. */
.project-cell { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.project-cell > .project-card { flex: 1 1 auto; }
.project-cell__cta { align-self: flex-start; }
.project-card { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-card__media { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(160deg, #e4ebe4 0%, #d3ddd3 100%); }
.project-card__image { width: 100%; height: 100%; object-fit: cover; }
.project-card__badge { position: absolute; top: 14px; left: 14px; background: var(--green-tint); color: var(--green-deep); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; }
.project-card__status { position: absolute; bottom: 14px; left: 14px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 600; font-size: 13px; padding: 6px 12px 6px 26px; border-radius: var(--radius-pill); box-shadow: var(--shadow); }
.project-card__status::before { content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--status-color, var(--green)); }
.project-card__body { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.project-card__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.project-card__title { font-size: 20px; font-weight: 800; }
.project-card__location { margin-top: 4px; color: var(--ink-soft); font-size: 14.5px; }
.project-card__location::before { content: "\1F4CD"; margin-right: 5px; font-size: 13px; }
.project-card__chips { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.project-card__lifecycle { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.project-card__legend { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }

/* probability ring (conic gradient) */
.prob-ring { --size: 88px; width: var(--size); min-width: var(--size); text-align: center; }
.prob-ring__value { display: grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%; font-weight: 800; font-size: 19px; color: var(--navy-2); background:
  radial-gradient(closest-side, var(--card) 78%, transparent 79% 100%),
  conic-gradient(var(--green) calc(var(--prob) * 1%), #e6e9e6 0); }
.prob-ring__label { display: block; margin-top: 7px; font-size: 10.5px; color: var(--ink-soft); line-height: 1.3; }

/* stepper : 8 lifecycle steps, dot + short label + quarter */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); column-gap: 4px; row-gap: 20px; position: relative; }
.stepper__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1px; }
.stepper__step:not(:last-child)::after { content: ""; position: absolute; top: 9px; left: calc(50% + 13px); right: calc(-50% + 9px); height: 3px; border-radius: 2px; background: var(--line); z-index: 0; }
.stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.stepper__label { display: block; margin-top: 9px; min-height: 2.5em; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink-soft); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.stepper__quarter { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper__quarter--est { font-style: italic; }
.stepper__hint { display: block; margin-top: 2px; font-size: 10px; line-height: 1.2; color: var(--green-deep); }

.stepper__step--done:not(:last-child)::after { background: var(--green); }
.stepper__step--done .stepper__dot { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.stepper__step--done .stepper__label { color: var(--navy-2); }
.stepper__step--current .stepper__dot { border-color: var(--green); box-shadow: 0 0 0 4px rgba(79, 174, 55, .2); }
.stepper__step--current .stepper__label { color: var(--navy-2); font-weight: 700; }
.stepper__step--inferred:not(:last-child)::after { background: var(--green-soft); }
.stepper__step--inferred .stepper__dot { background: var(--green-tint); border-color: var(--green-soft); }
.stepper__step--inferred .stepper__dot::before { content: "\2713"; font-size: 11px; line-height: 1; color: var(--green-deep); font-weight: 800; }
.stepper__step--inferred .stepper__label { color: var(--ink-soft); }
.stepper__step--skipped:not(:last-child)::after { background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px); }
.stepper__step--skipped .stepper__dot { border-color: #dfe3df; background: #f4f6f4; }
.stepper__step--skipped .stepper__label, .stepper__step--skipped .stepper__quarter { color: #98a2a8; }
.stepper__step--upcoming .stepper__label { color: var(--ink-faint); font-weight: 500; }

/* facts row */
.project-card__facts { display: flex; gap: 26px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.fact__label { font-size: 12px; color: var(--ink-soft); }
.fact__value { font-size: 15.5px; font-weight: 700; color: var(--navy-2); margin-top: 3px; }
.fact--wide { flex: 1; min-width: 220px; }
.fact__hint { color: var(--green-deep); font-weight: 700; }

/* ============================================================
   12. Method
   ============================================================ */
.method { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.method__step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.method__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green-deep); font-weight: 800; font-size: 18px; }
.method__title { margin-top: 16px; font-size: 17px; font-weight: 700; }
.method__text { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   13. Final CTA
   ============================================================ */
.cta { background: var(--navy); color: #fff; padding: var(--section-y) 0; }
.cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #fff; }
.cta__text { margin-top: 14px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.cta__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta__contact { margin-top: 22px; font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.cta__contact a { color: var(--green-soft); font-weight: 700; }

/* ============================================================
   14. Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field__input, .field__textarea, .field__select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fbfcfb;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.field__textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field__input:focus, .field__textarea:focus, .field__select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(79, 174, 55, .14); background: #fff; }
.field__hint { font-size: 12.5px; color: var(--ink-faint); }
.field__error { font-size: 13px; color: #b42318; font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__hp { position: absolute; left: -9999px; opacity: 0; }
.notice { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; }
.notice--ok { background: var(--green-tint); color: var(--green-deep); }
.notice--error { background: #fee4e2; color: #b42318; }

/* ============================================================
   15. Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .site-nav { gap: 18px; font-size: 14.5px; }
  .hero-stack { max-width: 560px; margin: 0 auto; }
  /* Six tuiles ne tiennent plus sur une ligne : deux rangees de trois. */
  .kpis__inner--six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-header__actions { gap: 12px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; perspective: none; }
  .hero-stack { max-width: 100%; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .site-header__inner { height: 64px; }
  .site-header__brand img { height: 38px; }
  .kpis__inner { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .kpis__inner--six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .kpis__inner--six .kpi__value { font-size: clamp(24px, 7vw, 32px); }
  .kpis__inner--six .kpi__value--text { font-size: clamp(18px, 5.4vw, 24px); }
  .kpi__label { font-size: 13px; }
  .kpis__inner--six .kpi__label { font-size: 12.5px; }
  .value-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
  .project-card__body { padding: 20px 18px; }
  .prob-ring { --size: 76px; }
  .prob-ring__value { font-size: 17px; }
  .prob-ring__label { font-size: 10px; }
  .stepper { grid-template-columns: repeat(4, 1fr); column-gap: 6px; row-gap: 22px; }
  .stepper__step:nth-child(4n)::after { display: none; }
  .stepper__label { min-height: 0; font-size: 12px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .site-header__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Cookie note (regime suisse : information + droit de refus) ---------- */
.cookie-note[hidden] { display: none; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; }
.cookie-note__text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; margin: 0; }
.cookie-note__more { color: var(--green-deep); font-weight: 600; text-decoration: underline; }
.cookie-note__ok { white-space: nowrap; }
@media (max-width: 560px) { .cookie-note { flex-direction: column; align-items: stretch; text-align: center; } }

/* opt-out control on the privacy page */
.ga-optout { margin-top: 14px; padding: 14px 16px; background: var(--green-tint); border-radius: var(--radius); font-size: 14px; }
.ga-optout__state { font-weight: 700; color: var(--navy-2); }
.ga-optout button { margin-top: 8px; }

/* ---------- Preuve anti-robot (auto-hebergee, voir web/antibot.py) ---------- */
.antibot-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.antibot-note:empty { display: none; }
.antibot-note::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.antibot-note[data-state="ok"]::before { background: var(--green-deep); }
.antibot-note[data-state="fail"] { color: #b42318; }
.antibot-note[data-state="fail"]::before { background: #b42318; }
