/* Synapseo — site TPE / PME
   Palette alignée sur le logo : marine, cyan, gris charbon */

:root {
  --paper: #f5f8fc;
  --paper-deep: #e8eef6;
  --ink: #1e3a5f;
  --ink-soft: #334155;
  --ink-mute: #64748b;
  --copper: #0ea5e9;
  --copper-deep: #0284c7;
  --copper-soft: rgba(14, 165, 233, 0.14);
  --navy: #1e3a5f;
  --navy-deep: #0f172a;
  --sky: #38bdf8;
  --line: rgba(30, 58, 95, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 4px;
  --max: 1120px;
  --font-serif: var(--font-sans);
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 720px);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img,
.brand__logo {
  width: auto;
  height: 68px;
  max-width: min(300px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.brand__word,
.brand__tagline {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Libellés courts desktop / longs dans le menu hamburger */
.nav__long { display: none; }
.nav__short { display: inline; }

.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] {
  color: var(--ink);
}

.nav a.btn,
.nav .btn {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a.btn-primary,
.nav .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
}

.nav a.btn-primary:hover,
.nav .btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #1e3a5f 100%);
  border-color: var(--navy-deep);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 4px 0;
}

@media (max-width: 960px) {
  .brand img,
  .brand__logo {
    height: 60px;
    max-width: min(270px, 52vw);
  }
  .nav { gap: 1rem; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    z-index: 2;
  }
  .brand img,
  .brand__logo {
    height: 48px;
    max-width: min(210px, 58vw);
  }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    right: auto;
    width: 100vw;
    margin-left: -50vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1.25rem 1.35rem;
    background: rgba(245, 248, 252, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: none;
    max-height: min(78vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) {
    padding: 0.95rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__short { display: none; }
  .nav__long { display: inline; }
  .nav a.btn,
  .nav .btn {
    margin-top: 0.85rem;
    width: 100%;
    min-height: 48px;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  .nav-toggle span {
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #1e3a5f 100%);
  border-color: var(--navy-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-copper {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 55%, #1e3a5f 100%);
  color: var(--white);
  border-color: transparent;
}

.btn-copper:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 45%, #1e3a5f 100%);
  border-color: transparent;
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 36ch;
}

.hero__frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(26, 24, 20, 0.72));
  color: var(--white);
  font-size: 0.85rem;
}

.live-promise {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-left: 3px solid var(--copper);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.4;
  min-height: 3.2em;
  transition: opacity 0.25s var(--ease);
}

.live-promise.is-fading { opacity: 0.35; }

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--deep {
  background: var(--paper-deep);
}

.section--ink {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #0c4a6e 100%);
  color: var(--white);
}

.section--ink a { color: #7dd3fc; }
.section--ink .btn-primary {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
}
.section--ink .btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}
.section--ink .btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--ink-mute);
  font-size: 1.1rem;
}

.section--ink .section-head p { color: rgba(241, 245, 249, 0.78); }

/* —— Door cards —— */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1100px) {
  .doors:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr);
  }
  .doors:has(> :nth-child(5):last-child) > :nth-child(-n+3) {
    grid-column: span 2;
  }
  .doors:has(> :nth-child(5):last-child) > :nth-child(n+4) {
    grid-column: span 3;
  }
}

@media (max-width: 600px) {
  .doors { grid-template-columns: 1fr; }
}

.door-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.door-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.door-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.door-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.door-card:hover .door-card__media img {
  transform: scale(1.04);
}

.door-card__body {
  padding: 1.4rem 1.35rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.door-card__body h3 { margin-bottom: 0.4em; }

.door-card__body p {
  color: var(--ink-mute);
  flex: 1;
  margin-bottom: 1rem;
}

.door-card__link {
  font-weight: 600;
  color: var(--copper-deep);
  font-size: 0.95rem;
}

/* —— Diagnostic —— */
.diag {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.diag__progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.diag__dot {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}

.diag__dot.is-done,
.diag__dot.is-current {
  background: var(--copper);
}

.diag__step {
  display: none;
  animation: rise 0.35s var(--ease);
}

.diag__step.is-active { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.diag__q {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 1.25rem;
}

.diag__choices {
  display: grid;
  gap: 0.65rem;
}

.choice {
  text-align: left;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.choice:hover,
.choice:focus-visible {
  border-color: var(--copper);
  background: var(--copper-soft);
  outline: none;
}

.choice:active { transform: scale(0.995); }

.choice strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.choice span {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-mute);
}

.diag__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.diag__back {
  background: none;
  border: none;
  color: var(--ink-mute);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0;
}

.diag__back:disabled {
  opacity: 0;
  pointer-events: none;
}

.diag__meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* —— Brief —— */
.brief {
  display: none;
  animation: rise 0.4s var(--ease);
}

.brief.is-visible { display: block; }

.brief__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--copper-soft);
  color: var(--copper-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.brief__title {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.brief__intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.brief__gestures {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  counter-reset: g;
}

.brief__gestures li {
  counter-increment: g;
  position: relative;
  padding: 1.1rem 0 1.1rem 3.2rem;
  border-top: 1px solid var(--line);
}

.brief__gestures li:last-child { border-bottom: 1px solid var(--line); }

.brief__gestures li::before {
  content: counter(g, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--copper);
}

.brief__gestures strong {
  display: block;
  margin-bottom: 0.25rem;
}

.brief__gestures span {
  color: var(--ink-mute);
  font-size: 0.98rem;
}

/* —— Profile banner —— */
.profile-banner {
  display: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.profile-banner.is-visible { display: block; }

.profile-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.profile-banner a {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
}

.profile-banner a:hover { color: var(--white); }

/* —— Page hero (doors) —— */
.page-hero {
  padding: 3rem 0 0;
}

.page-hero .hero__lead {
  max-width: 40rem;
}

.page-hero .btn-row {
  margin-top: 1.35rem;
}

.page-hero__media {
  margin-top: 2rem;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 2.2 / 1;
  max-height: 420px;
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

@media (max-width: 700px) {
  .page-hero__media {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

/* —— Visual duo (2 images mid-page) —— */
.visual-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.visual-duo figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 0;
}

.visual-duo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: var(--paper-deep);
}

.visual-duo figcaption {
  padding: 0.85rem 1.1rem 1.05rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  min-height: 4.25rem;
  display: flex;
  align-items: center;
}

@media (max-width: 800px) {
  .visual-duo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .visual-duo img {
    aspect-ratio: 16 / 10;
  }
  .visual-duo figcaption {
    min-height: 0;
  }
}

/* —— Scenario switcher —— */
.scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.scenario-btn {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.scenario-btn:hover {
  border-color: var(--copper);
  color: var(--ink);
}

.scenario-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.scenario-panel {
  display: none;
  animation: rise 0.3s var(--ease);
}

.scenario-panel.is-active { display: block; }

.scenario-panel h3 { margin-top: 0.25rem; }

.use-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.use-list li[data-priority="1"] { order: 1; border-left: 3px solid var(--copper); }
.use-list li[data-priority="2"] { order: 2; }
.use-list li[data-priority="3"] { order: 3; }

.use-list strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

/* —— Method steps —— */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
}

.step__n {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  color: var(--copper);
}

.step p { color: var(--ink-mute); margin: 0; }

.method-visual {
  margin-top: 2.5rem;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.method-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-aside {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-aside dl {
  margin: 1.25rem 0 0;
}

.contact-aside dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-top: 1rem;
}

.contact-aside dd {
  margin: 0.25rem 0 0;
}

.contact-aside a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: var(--white);
}

.field textarea { min-height: 140px; resize: vertical; }

.field-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.field-check input { margin-top: 0.3rem; }

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-ok {
  display: block;
  background: #e6f2e8;
  color: #1f4d2a;
}

.form-status.is-err {
  display: block;
  background: #f8e8e4;
  color: #7a2e1f;
}

.brief-preview {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--copper-soft);
  border-left: 3px solid var(--copper);
  font-size: 0.95rem;
}

/* —— Legal —— */
.legal {
  padding: 3.5rem 0 5rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal ul { padding-left: 1.2rem; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  background: var(--paper-deep);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.footer-newsletter {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.footer-newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-newsletter input[type="email"] {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.footer-newsletter .btn {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  min-height: 44px;
}

.footer-newsletter__note {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}

.footer-newsletter__msg {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.footer-newsletter__msg.is-ok { color: var(--navy); }
.footer-newsletter__msg.is-err { color: #b42318; }

/* —— Share button —— */
.share-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.share-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
}

.share-btn.is-done {
  background: var(--paper-deep);
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .share-btn {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }
  .footer-newsletter__row {
    flex-direction: column;
  }
  .footer-newsletter .btn {
    width: 100%;
  }
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 0.45rem; }

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover { color: var(--ink); }

.site-footer__brand {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.site-footer__logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.site-footer__copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* —— CTA band —— */
.cta-band {
  padding: 4rem 0;
  text-align: center;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--ink-mute);
  font-size: 1.1rem;
}

.cta-band--visual {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  min-height: 320px;
  display: flex;
  align-items: center;
}

.cta-band--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.9) 28%, rgba(30, 58, 95, 0.55));
  z-index: 1;
}

.cta-band--visual .container {
  position: relative;
  z-index: 2;
}

.cta-band--visual .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-band--visual p { color: rgba(241, 245, 249, 0.85); }

/* —— Split content —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.split--media-first .split__media {
  order: -1;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--media-first .split__media { order: 0; }
}

.split__media {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.contact-aside .split__media {
  margin-top: 1.5rem;
}

.contact-visuals {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-visuals .split__media {
  margin-top: 0;
  aspect-ratio: 4 / 3;
}

.contact-visuals .split__media--tall {
  aspect-ratio: 16 / 10;
}

@media (min-width: 801px) {
  .contact-visuals {
    grid-template-columns: 1fr;
  }
}


/* —— Prose + marque S (desktop) —— */
/* Grille 1fr | texte | 1fr : le texte reste au centre exact ; le S occupe la gouttière gauche. */
.prose-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(720px, calc(100% - 2.5rem)) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 2.5vw, 2.75rem);
  align-items: center;
  width: 100%;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.prose-band .container-narrow {
  grid-column: 2;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.prose-band__mark {
  display: none;
}

.prose-band__mark img {
  width: 100%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 12px 28px rgba(14, 165, 233, 0.22));
}

@media (min-width: 960px) {
  .prose-band__mark {
    display: block;
    grid-column: 1;
    justify-self: end;
    align-self: center;
    width: min(100%, clamp(140px, 12vw, 200px));
    max-width: 100%;
    pointer-events: none;
  }
}

@media (min-width: 1200px) {
  .prose-band__mark {
    width: min(100%, clamp(160px, 13vw, 220px));
  }
}

/* —— Rich content blocks —— */
.prose {
  max-width: 40rem;
}

.prose h2 { margin-bottom: 1rem; }

.prose p {
  color: var(--ink-mute);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
}

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

.prose__pull {
  margin-top: 1.75rem !important;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--copper);
  background: var(--paper);
  color: var(--ink) !important;
  font-family: var(--font-sans);
  font-size: 1.25rem !important;
  line-height: 1.45 !important;
}

.myth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .myth-grid { grid-template-columns: 1fr; }
}

.myth-card {
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.myth-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.myth-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.myth-card p {
  margin: 0;
  color: var(--ink-mute);
  line-height: 1.6;
}

.calm-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: calm;
}

.calm-steps li {
  counter-increment: calm;
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.12);
  color: rgba(241, 245, 249, 0.78);
  line-height: 1.55;
}

.section:not(.section--ink) .calm-steps li {
  border-bottom-color: var(--line);
  color: var(--ink-mute);
}

.calm-steps li::before {
  content: counter(calm, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  color: var(--copper);
}

.calm-steps strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.section:not(.section--ink) .calm-steps strong { color: var(--ink); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-col {
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.compare-col h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-col li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  color: var(--ink-mute);
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.compare-col li:last-child { border-bottom: none; }

.compare-col--yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}

.compare-col--no li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #9a4a4a;
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq__item {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--copper);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
}

.faq__item[open] summary::after { content: "−"; }

.faq__item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-mute);
  line-height: 1.65;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.why-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.why-card p {
  margin: 0;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* —— Misc —— */
.muted { color: var(--ink-mute); }

.kicker-line {
  width: 3rem;
  height: 2px;
  background: var(--copper);
  margin: 0 0 1.25rem;
  border: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Mobile optimization —— */
@media (max-width: 700px) {
  body {
    font-size: 1.02rem;
    overflow-x: clip;
  }

  .container,
  .container-narrow {
    width: min(100% - 1.5rem, var(--max));
  }

  h1 { font-size: clamp(1.85rem, 8.2vw, 2.45rem); }
  h2 { font-size: clamp(1.45rem, 6.2vw, 1.95rem); }
  h3 { font-size: clamp(1.12rem, 4.5vw, 1.35rem); }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero__grid {
    gap: 1.25rem;
  }

  .hero__lead {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .hero__frame {
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }

  .hero__caption {
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .live-promise {
    margin-top: 1.15rem;
    padding: 0.9rem 1rem;
    font-size: 1.02rem;
    min-height: 0;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.7rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 1.5rem;
  }

  .section-head p {
    font-size: 1.02rem;
  }

  .btn {
    padding: 0.85rem 1.2rem;
    min-height: 48px;
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.15rem;
  }

  .btn-row .btn {
    width: 100%;
  }

  .doors {
    gap: 0.85rem;
  }

  .door-card__media {
    aspect-ratio: 16 / 10;
  }

  .door-card__body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .door-card__body h3 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .diag {
    padding: 1.15rem;
  }

  .choice {
    padding: 1rem 1rem;
    min-height: 64px;
  }

  .choice span {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .diag__nav {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .brief__gestures li {
    padding-left: 2.75rem;
  }

  .brief .btn-row .btn {
    width: 100%;
  }

  .profile-banner {
    padding: 0.7rem 0;
    font-size: 0.9rem;
  }

  .profile-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .page-hero {
    padding: 1.75rem 0 0;
  }

  .page-hero__media {
    margin-top: 1.35rem;
    aspect-ratio: 16 / 10;
  }

  .scenarios {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .scenarios::-webkit-scrollbar { display: none; }

  .scenario-btn {
    flex: 0 0 auto;
    padding: 0.65rem 0.95rem;
    min-height: 42px;
    white-space: nowrap;
  }

  .use-list li {
    padding: 1.1rem 1.1rem;
  }

  .myth-card,
  .why-card,
  .compare-col {
    padding: 1.2rem 1.15rem;
  }

  .prose__pull {
    font-size: 1.1rem !important;
    padding: 1rem 1.1rem;
  }

  .faq__item summary {
    padding: 1rem 1.1rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  .faq__item p {
    padding: 0 1.1rem 1.1rem;
  }

  .contact-form,
  .contact-aside {
    padding: 1.15rem;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* évite le zoom iOS */
    padding: 0.85rem 0.9rem;
  }

  .cta-band {
    padding: 2.75rem 0;
  }

  .cta-band--visual {
    min-height: 260px;
    text-align: left;
  }

  .cta-band--visual .container {
    padding-block: 0.5rem;
  }

  .cta-band h2 {
    text-wrap: balance;
  }

  .site-footer {
    padding: 2rem 0 1.75rem;
    margin-top: 1rem;
  }

  .site-footer__grid {
    gap: 1.5rem;
  }

  .site-footer li {
    margin-bottom: 0.55rem;
  }

  .site-footer a {
    display: inline-block;
    padding: 0.15rem 0;
  }

  .split__media {
    aspect-ratio: 16 / 10;
  }

  .visual-duo {
    gap: 0.85rem;
  }

  .visual-duo figure {
    grid-template-rows: auto auto;
  }

  .visual-duo figcaption {
    padding: 0.75rem 0.95rem 0.95rem;
    font-size: 0.9rem;
  }

  .contact-visuals {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .contact-visuals .split__media,
  .contact-visuals .split__media--tall {
    aspect-ratio: 1 / 1;
  }

  .calm-steps li {
    padding-left: 2.75rem;
  }

  .page-hero .hero__lead {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .container,
  .container-narrow {
    width: min(100% - 1.15rem, var(--max));
  }

  .brand img,
  .brand__logo {
    height: 42px;
    max-width: min(180px, 55vw);
  }

  .hero__frame {
    max-height: none;
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-toggle span { transition: none; }
}
