/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --paper: #f5f3ee;
  --paper-2: #ecE8df;
  --surface: #fbfaf7;
  --ink: #16191d;
  --ink-2: #3b3f46;
  --muted: #62666e;
  --line: #d9d4c8;
  --line-soft: #e6e1d6;
  --accent: #b24a2a;        /* brique : accent distinctif */
  --accent-soft: #f3e3db;
  --accent-ink: #8f3a20;
  --dark: #14171a;
  --dark-2: #1d2125;
  --dark-line: #2f3439;
  --dark-text: #e9e6df;
  --dark-muted: #a7a9ab;
  --accent-on-dark: #e58a63;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(22, 25, 29, .04), 0 12px 32px -12px rgba(22, 25, 29, .14);
}

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

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

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

h1, h2, h3 { margin: 0; font-weight: 500; color: inherit; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.08; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

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

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .96875rem; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; color: var(--accent-ink); text-decoration: none;
  margin-top: auto;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 1.4rem; height: 1.4rem; border-radius: 6px;
  background: var(--ink);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; right: 4px; bottom: 4px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-on-dark);
}
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.brand-tag {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: .1rem .35rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav ul a {
  font-size: .9375rem; color: var(--ink-2); text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 1px;
  transition: background-size .3s var(--ease), color .2s;
  padding-block: .25rem;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--ink); background-size: 100% 1px; }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 1.1rem; height: 1.5px; background: var(--ink);
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; transform: none; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 4.25rem 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -24px rgba(22, 25, 29, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block; padding: .9rem 0; font-size: 1.0625rem; background: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav .btn { width: 100%; min-height: 3rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.25rem);
  font-weight: 400;
  max-width: 14ch;
}
.lead {
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem;
  font-size: .9rem; color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent);
}

.agenda {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.agenda-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.agenda-day { font-family: var(--font-display); font-size: 1.35rem; }
.badge-example {
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: .2rem .6rem;
  white-space: nowrap;
}
.agenda-list { display: grid; gap: .5rem; }
.agenda-item {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: .9rem;
  padding: .95rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: var(--paper);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.agenda-item.is-accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-soft)); background: var(--accent-soft); }
.agenda-time { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 600; color: var(--muted); padding-top: .1rem; }
.agenda-item.is-accent .agenda-time { color: var(--accent-ink); }
.agenda-title { font-weight: 600; font-size: .98rem; }
.agenda-note { font-size: .875rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.agenda-foot {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: .875rem; color: var(--ink-2); font-style: italic; font-family: var(--font-display);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.section-intro { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.0625rem; max-width: 40rem; }
.footnote { margin-top: 1.5rem; font-size: .8125rem; color: var(--muted); }

/* --- Journée type ------------------------------------------------------- */
.day-demo {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.day-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.day-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: 1.15rem 1.5rem; border: 0; background: transparent; cursor: pointer; text-align: left;
  position: relative; color: var(--muted);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.day-tab + .day-tab { border-left: 1px solid var(--line-soft); }
.day-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.day-tab:hover { color: var(--ink); background: var(--paper); }
.day-tab[aria-selected="true"] { color: var(--ink); }
.day-tab[aria-selected="true"]::after { transform: scaleX(1); }
.day-tab-time { font-variant-numeric: tabular-nums; font-size: .8125rem; font-weight: 600; letter-spacing: .03em; }
.day-tab[aria-selected="true"] .day-tab-time { color: var(--accent); }
.day-tab-label { font-weight: 500; font-size: 1rem; }

.day-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.day-panel:not([hidden]) { animation: panel-in .45s var(--ease); }
.day-explain h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; }
.day-explain > p { margin-top: 1rem; color: var(--ink-2); }
.day-meta { margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.day-meta div { padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.day-meta dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.day-meta dd { margin: .3rem 0 0; font-size: .96875rem; }

.doc {
  margin: 0; align-self: start;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden;
}
.doc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.15rem; border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.doc-title { font-weight: 600; font-size: .9375rem; }
.doc-body { padding: 1.25rem 1.25rem 1.5rem; }
.doc-h {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-ink);
  margin-top: 1.25rem;
}
.doc-h:first-child { margin-top: 0; }
.doc-list { margin-top: .5rem; display: grid; gap: .45rem; }
.doc-list li {
  position: relative; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2);
}
.doc-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .35rem; height: 1px; background: var(--ink-2);
}
.doc-check li::before {
  top: .45em; width: .45rem; height: .25rem; background: none;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.doc-list strong { color: var(--ink); font-weight: 600; }
.doc-validate {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 500; color: var(--accent-ink);
  background: var(--accent-soft); padding: .35rem .75rem; border-radius: 999px;
}
.doc-validate span { font-size: .55rem; animation: pulse 2.4s ease-in-out infinite; }

/* Apparition ligne à ligne dans la démo */
.day-panel:not([hidden]) .doc-body > * { animation: line-in .5s var(--ease) both; }
.day-panel:not([hidden]) .doc-body > *:nth-child(2) { animation-delay: .06s; }
.day-panel:not([hidden]) .doc-body > *:nth-child(3) { animation-delay: .12s; }
.day-panel:not([hidden]) .doc-body > *:nth-child(4) { animation-delay: .18s; }
.day-panel:not([hidden]) .doc-body > *:nth-child(5) { animation-delay: .24s; }
.day-panel:not([hidden]) .doc-body > *:nth-child(6) { animation-delay: .30s; }
.day-panel:not([hidden]) .doc-body > *:nth-child(7) { animation-delay: .36s; }

@media (max-width: 820px) {
  .day-tabs { grid-template-columns: repeat(4, minmax(9.5rem, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tab { padding: 1rem 1.1rem; }
  .day-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .day-tabs { grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .day-tab { padding: .85rem .9rem; }
  .day-tab + .day-tab { border-left: 0; }
  .day-tab:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .day-tab:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .day-tab-time { font-size: .75rem; }
  .day-tab-label { font-size: .84rem; line-height: 1.3; }
}

/* --- Méthode ------------------------------------------------------------ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step {
  display: flex; flex-direction: column;
  padding-top: 1.5rem; border-top: 1px solid var(--ink);
}
.step-num {
  font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--accent);
  margin-bottom: 1.25rem; font-weight: 400;
}
.step h3 { font-size: 1.25rem; }
.step > p { margin-top: .85rem; color: var(--ink-2); font-size: 1rem; }
.step .step-out {
  margin-top: auto; padding-top: 1.25rem; font-size: .9375rem; color: var(--ink);
}
.step-out span {
  display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: .25rem;
}
.step-out { margin-top: 1.25rem; }

.not-list {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.not-title { font-weight: 600; font-size: .9375rem; }
.not-list ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.not-list li { display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; color: var(--ink-2); }
.not-list li::before {
  content: ""; width: .8rem; height: 1.5px; background: var(--accent);
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .not-list { flex-direction: column; align-items: flex-start; }
  .not-list ul { flex-direction: column; }
}

/* --- Cartes configuration ---------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.75rem; min-height: 15rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); font-size: .96875rem; }
.card-icon {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: 10px; background: var(--paper); border: 1px solid var(--line-soft);
  margin-bottom: .5rem;
}
.card-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon svg { stroke: var(--accent); }
.chip {
  margin-top: auto; align-self: flex-start;
  font-size: .75rem; font-weight: 500; color: var(--muted);
  padding: .25rem .65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-soft);
}
.card-quiet { background: transparent; border-style: dashed; border-color: var(--line); }
.card-quiet:hover { transform: none; box-shadow: none; }
.card-quiet h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 1.5rem; }
}

/* --- Confidentialité (sombre) ------------------------------------------ */
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark .section-intro { color: var(--dark-muted); }
.section-dark :focus-visible { outline-color: var(--accent-on-dark); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar {
  padding: 1.75rem; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-2);
  position: relative;
}
.pillar::before {
  content: ""; display: block; width: 2rem; height: 2px; background: var(--accent-on-dark); margin-bottom: 1.5rem;
}
.pillar h3 { font-size: 1.1875rem; }
.pillar p { margin-top: .75rem; color: var(--dark-muted); font-size: .96875rem; }
.conf-note {
  margin-top: 2.5rem; max-width: 50rem; font-size: .9375rem; color: var(--dark-muted);
  padding-left: 1.25rem; border-left: 2px solid var(--dark-line);
}
@media (max-width: 880px) { .pillars, .pillars-4 { grid-template-columns: 1fr; } }

/* --- Profils ------------------------------------------------------------ */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.profile {
  padding: 2rem 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease);
}
.profile:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-soft)); }
.profile-role {
  font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--accent); font-weight: 400;
}
.profile h3 { margin-top: .5rem; font-size: 1rem; color: var(--muted); font-weight: 500; }
.profile-uses { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.profile-uses li {
  padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  font-size: .96875rem; color: var(--ink-2);
}
.profile-uses strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: .2rem; }
@media (max-width: 880px) { .profiles { grid-template-columns: 1fr; } }

/* --- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.contact-copy > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--ink-2); }
.contact-points { margin-top: 2rem; display: grid; gap: .75rem; }
.contact-points li { display: flex; gap: .75rem; align-items: baseline; color: var(--ink-2); }
.contact-points li::before { content: "—"; color: var(--accent); }

.form-wrap {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3.5vw, 2.25rem); box-shadow: var(--shadow);
}
.demo-banner {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline;
  padding: .8rem 1rem; margin-bottom: 1.5rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--radius-sm);
  background: var(--accent-soft); font-size: .875rem; color: var(--ink-2);
}
.demo-banner strong {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink);
}

.contact-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-size: .875rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font-size: 1rem; /* ≥16px : évite le zoom iOS */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316191d' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; background-size: .7rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--accent); }
.field-error { font-size: .8125rem; color: var(--accent-ink); }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.field-check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--ink-2); }
.field-check .field-error { grid-column: 2; }
.form-legal { font-size: .78rem; color: var(--muted); text-align: center; }

.form-success { padding-block: 1rem; }
.form-success:focus { outline: none; }
.success-title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .75rem; }
.form-success p:not(.success-title) { color: var(--ink-2); margin-bottom: 1.5rem; }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }


/* --- Démo : note vocale, audio, alertes -------------------------------- */
.voice-quote {
  margin: .6rem 0 0; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-soft);
  font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--ink-2);
}
.route-list { margin-top: .6rem; display: grid; gap: .5rem; }
.route-list li {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: baseline;
  padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: var(--surface);
}
.route-type {
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent-ink); background: var(--accent-soft); padding: .15rem .5rem; border-radius: 999px;
}
.route-text { font-size: .9375rem; color: var(--ink); }
.route-dest { grid-column: 2; font-size: .8125rem; color: var(--muted); }

.doc-alert li::before {
  top: .5em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent);
}

.audio-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  padding: .8rem .9rem; margin-bottom: 1.25rem;
  border-radius: var(--radius-sm); background: var(--ink); color: var(--paper);
}
.audio-play {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 2.5rem; padding: .45rem .95rem .45rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--paper);
  font-size: .8125rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.audio-play:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.audio-play:focus-visible { outline-color: var(--accent-on-dark); }
.audio-icon {
  width: 0; height: 0; border-style: solid; border-width: .38rem 0 .38rem .62rem;
  border-color: transparent transparent transparent var(--accent-on-dark);
}
.audio-play[aria-pressed="true"] .audio-icon {
  width: .6rem; height: .7rem; border: 0;
  border-left: .2rem solid var(--accent-on-dark); border-right: .2rem solid var(--accent-on-dark);
}
.audio-title { font-size: .875rem; font-weight: 600; }
.audio-sub { font-size: .75rem; color: var(--dark-muted); }
.audio-wave { display: flex; align-items: center; gap: 3px; height: 1.5rem; }
.audio-wave i {
  display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--dark-muted); opacity: .6;
}
.audio-wave i:nth-child(3n) { height: 70%; }
.audio-wave i:nth-child(4n+1) { height: 50%; }
.audio-wave i:nth-child(5n+2) { height: 90%; }
.audio-card.is-playing .audio-wave i { background: var(--accent-on-dark); opacity: 1; animation: wave 1s ease-in-out infinite; }
.audio-card.is-playing .audio-wave i:nth-child(2n) { animation-delay: -.3s; }
.audio-card.is-playing .audio-wave i:nth-child(3n) { animation-delay: -.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (max-width: 480px) {
  .audio-card { grid-template-columns: 1fr auto; }
  .audio-play { grid-column: 1 / -1; justify-self: start; order: 3; }
}

/* --- Architecture : capture → mémoire → traitement → restitution ------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.flow-step {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.75rem 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.05rem; top: 2rem; z-index: 1;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  font-size: .9rem; color: var(--accent); background: var(--paper-2); border-radius: 50%;
}
.flow-num {
  width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-size: 1rem; color: var(--paper); background: var(--ink);
}
.flow-kicker { margin-top: .6rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.flow-step h3 { font-size: 1.0625rem; }
.flow-step p:not(.flow-kicker) { font-size: .9375rem; color: var(--ink-2); }
.flow-step:nth-child(2) { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-soft)); }
.principle {
  margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.4; max-width: 50rem;
}
.principle strong { font-family: var(--font-body); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); display: block; margin-bottom: .35rem; }
@media (max-width: 1020px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 1.5rem; top: auto; bottom: -1.3rem; display: grid; }
}

/* --- Confidentialité : 4 piliers, profils : binôme --------------------- */
@media (min-width: 881px) { .pillars-4 { grid-template-columns: repeat(2, 1fr); } }
.duo {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius);
  border: 1px dashed var(--line); color: var(--ink-2); font-size: .96875rem;
}
.duo strong { color: var(--ink); }


.profile-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.profile-main:hover { border-color: var(--ink); }
.profile-main .profile-role { color: var(--accent-on-dark); }
.profile-main h3 { color: var(--dark-muted); }
.profile-main .profile-uses li { color: var(--dark-muted); border-top-color: var(--dark-line); }
.profile-main .profile-uses strong { color: var(--paper); }
.profiles-more { margin-top: 1rem; font-size: .9375rem; color: var(--muted); }
.codir {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem 3rem; align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line-soft));
}
.codir .eyebrow { margin-bottom: .6rem; }
.codir h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2; }
.codir > p { color: var(--ink-2); }
@media (max-width: 780px) { .codir { grid-template-columns: 1fr; } }


/* --- Cloud / local / hybride ------------------------------------------- */
.hosting {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.hosting-head { max-width: 44rem; }
.hosting-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; }
.hosting-head p { margin-top: .75rem; color: var(--ink-2); }
.hosting-options { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hosting-option { padding: 1.35rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-soft); }
.hosting-option.is-accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line-soft)); }
.hosting-kicker { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.hosting-option h4 { margin: .4rem 0 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.hosting-option p:not(.hosting-kicker) { margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 880px) { .hosting-options { grid-template-columns: 1fr; } }


/* --- Sélecteur de langue ---------------------------------------------- */
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang-switch a {
  display: grid; place-items: center; min-width: 2.25rem; min-height: 2rem; padding: 0 .55rem;
  border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  color: var(--muted); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 1120px) {
  .header-inner { gap: .75rem; }
  .brand { margin-right: auto; }
  .nav-toggle { order: 3; }
}
.site-nav ul a, .brand-name, .site-nav .btn { white-space: nowrap; }
@media (max-width: 440px) {
  .brand-tag { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom)); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  font-size: .8125rem; color: var(--muted);
}
.footer-inner a { text-decoration: none; color: var(--ink-2); }
.footer-inner a:hover { color: var(--accent); }

/* ==========================================================================
   Animations
   ========================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
