/* ==========================================================================
   AVELIQ — feuille de style
   Direction : clair & minimal, grille suisse, bleu électrique en accent rare.
   Layout : grille 12 colonnes, titres alignés à gauche, filets fins, labels mono.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --paper: #F4F5F8;        /* Blanc cassé — fond */
  --white: #FFFFFF;        /* Surfaces */
  --ink: #111722;          /* Bleu nuit — texte, éléments forts */
  --slate: #252A38;        /* Gris ardoise — surfaces sombres secondaires */
  --accent: #4A5BFF;       /* Bleu électrique — accent sur fond clair */
  --accent-light: #8796FF; /* Bleu électrique clair — accent sur fond sombre */

  /* Dérivés */
  --text: #111722;
  --text-2: #464D5E;
  --muted: #6A7083;
  --line: #DCDFE8;
  --line-strong: #C5C9D6;
  --accent-soft: #E9ECFF;
  --accent-ink: #3445E6;

  /* Typographie */
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-display: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-label: .74rem;

  /* Espacements & formes */
  --container: 1240px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(72px, 9vw, 136px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* ---------- Typo utilitaires ---------- */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label--accent { color: var(--accent); }
.label .node { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 40em; color: var(--text-2); }

/* ---------- Boutons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 24px;
  border-radius: var(--radius-sm);
  font: 500 1rem/1 var(--font-sans);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent-light); color: var(--ink); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(244, 245, 248, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand svg { height: 30px; width: auto; }
.logo-node { fill: var(--accent); }
.site-footer .logo-node { fill: var(--accent-light); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 500; color: var(--text-2);
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--ink); }
.nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 2px;
}
.nav-link .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 360px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 24px 48px -24px rgba(17, 23, 34, .22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav-item:hover .chev, .nav-item.is-open .chev { transform: rotate(180deg); }
.dropdown a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 12px; border-radius: 10px; transition: background-color .2s; }
.dropdown a:hover { background: var(--paper); }
.dropdown .ico { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.dropdown .ico svg { width: 18px; height: 18px; }
.dropdown strong { font-weight: 500; font-size: .97rem; color: var(--ink); }
.dropdown span.d { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); border-color: var(--line); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 1.35rem; color: var(--ink); border-radius: 0; }
  .nav-link .chev { display: none; }
  .dropdown {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 14px;
  }
  .dropdown a { padding: 10px 0; }
  .dropdown a:hover { background: transparent; }
  .nav-cta { margin: 24px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .label { color: #9AA1B4; }
.section--ink .label--accent, .section--ink .accent { color: var(--accent-light); }
.section--ink .lead, .section--ink .prose { color: #B8BDCB; }

.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .label { grid-column: 1 / span 3; padding-top: .9em; align-self: start; }
.section-head .head-body { grid-column: 4 / -1; display: grid; gap: 20px; }
.section-head h2 { font-size: var(--fs-h2); max-width: 18em; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .label, .section-head .head-body { grid-column: 1; padding-top: 0; }
}

/* ---------- Hero accueil ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -0.045em; }
.hero h1 .serif { letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 12px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-2); }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Carte « flux d'automatisation » */
.flow-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(17, 23, 34, .04), 0 40px 80px -48px rgba(17, 23, 34, .35);
  overflow: hidden; min-width: 0;
}
.flow-card__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.flow-card__bar .dots { display: flex; gap: 6px; }
.flow-card__bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.flow-card__bar .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.flow-card__bar .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .15); }
.flow-svg { width: 100%; height: auto; }
.flow-svg .node rect { fill: var(--white); stroke: var(--line-strong); }
.flow-svg .node--hub rect { fill: var(--ink); stroke: var(--ink); }
.flow-svg .k { font: 500 9.5px var(--font-mono); letter-spacing: .1em; fill: var(--muted); }
.flow-svg .t { font: 500 14px var(--font-sans); fill: var(--ink); letter-spacing: -0.01em; }
.flow-svg .node--hub .k { fill: var(--accent-light); }
.flow-svg .node--hub .t { fill: var(--white); }
.flow-svg .wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow-svg .wire--live { stroke: var(--accent); stroke-dasharray: 3 7; animation: wire 1.4s linear infinite; }
.flow-svg .pulse { fill: var(--accent); }
.flow-svg .check { fill: var(--accent-soft); }
.flow-svg .check path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-card__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper); font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.flow-card__foot b { color: var(--ink); font-weight: 500; }
@keyframes wire { to { stroke-dashoffset: -20; } }

/* ---------- Bandeau signature ---------- */
.signature-band { border-block: 1px solid var(--line); background: var(--white); }
.signature-band .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; padding-block: 22px; }
.signature-band .sig { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.signature-band .sig i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.signature-band p { color: var(--muted); font-size: .95rem; }

/* ---------- Index des expertises ---------- */
.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1.4fr) 48px; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate; transition: padding .35s var(--ease);
}
.index-row::before { content: ""; position: absolute; inset: 0 -20px; background: var(--white); border-radius: var(--radius); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.index-row:hover::before { opacity: 1; }
.index-row .code { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.index-row h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); transition: color .25s; }
.index-row p { color: var(--text-2); font-size: .98rem; }
.index-row .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--ease); }
.index-row .go svg { width: 16px; height: 16px; }
.index-row:hover h3 { color: var(--accent); }
.index-row:hover .go { background: var(--ink); border-color: var(--ink); color: var(--white); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .index-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 16px; padding: 24px 0; }
  .index-row .code { grid-column: 1 / -1; }
  .index-row h3 { grid-column: 1; }
  .index-row p { grid-column: 1; }
  .index-row .go { grid-column: 2; grid-row: 2 / span 2; width: 44px; height: 44px; }
}

/* ---------- Grilles génériques ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Principes (colonnes séparées par des filets) */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.principle .ico svg { width: 20px; height: 20px; }
.principle h3 { font-size: var(--fs-h3); }
.principle p { color: var(--text-2); font-size: .98rem; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* Méthode (séquence réelle → numérotée) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid rgba(244, 245, 248, .14); }
.step { padding: 32px 28px 36px 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid rgba(244, 245, 248, .14); }
.step:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid rgba(244, 245, 248, .14); }
.step .n { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-light); letter-spacing: .08em; }
.step h3 { font-size: var(--fs-h3); color: var(--white); }
.step p { color: #B8BDCB; font-size: .97rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .step:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgba(244, 245, 248, .14); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* Cartes clients */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; align-content: start;
}
.card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: .96rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: var(--paper); }

/* Aperçu offres (accueil) */
.price-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.price-teaser > div { padding: 28px; display: grid; gap: 6px; align-content: start; }
.price-teaser > div + div { border-left: 1px solid var(--line); }
.price-teaser .k { font-size: .95rem; color: var(--text-2); }
.price-teaser .v { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-teaser .v small { font-size: .85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
@media (max-width: 900px) {
  .price-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-teaser > div:nth-child(3) { border-left: 0; }
  .price-teaser > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .price-teaser { grid-template-columns: 1fr; }
  .price-teaser > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- CTA final ---------- */
.cta-block { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta-block h2 { font-size: var(--fs-h1); letter-spacing: -0.04em; }
.cta-block .side { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 24px; align-items: end; }
.page-hero h1 { grid-column: 1 / span 8; font-size: var(--fs-h1); letter-spacing: -0.04em; }
.page-hero .lead { grid-column: 9 / -1; font-size: 1.08rem; }
.page-hero .hero-actions { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .page-hero h1, .page-hero .lead { grid-column: 1 / -1; }
}

/* Liste des prestations */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--ink); }
.service-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-item svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.service-item h3 { font-size: 1.12rem; letter-spacing: -0.015em; margin-bottom: 6px; line-height: 1.3; }
.service-item p { color: var(--text-2); font-size: .96rem; }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

/* Deux colonnes texte / aside */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.split > .main { grid-column: 1 / span 7; min-width: 0; }
.split > .aside { grid-column: 9 / -1; min-width: 0; }
@media (max-width: 900px) { .split > .main, .split > .aside { grid-column: 1 / -1; } }

/* Encart tarif */
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-box .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.price-box .row:last-of-type { border-bottom: 0; }
.price-box .row span { color: var(--text-2); }
.price-box .row strong { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-box .row strong small { font-weight: 400; font-size: .8rem; color: var(--muted); margin-right: 4px; letter-spacing: 0; }
.price-box .foot { padding: 16px 24px; background: var(--paper); border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.price-box .head { padding: 16px 24px; border-bottom: 1px solid var(--line); }

/* Outils / stack */
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li { font-family: var(--font-mono); font-size: .8rem; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .3s var(--ease), background-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 46em; }

/* ---------- Page Offres ---------- */
.offer-table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.offer-table th, .offer-table td { text-align: left; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-table th { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 18px; padding-bottom: 18px; }
.offer-table td:first-child { font-weight: 500; font-size: 1.08rem; letter-spacing: -0.015em; min-width: 200px; }
.offer-table td:first-child a:hover { color: var(--accent); }
.offer-table td.price { font-weight: 500; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.offer-table td.price small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-right: 4px; letter-spacing: 0; }
.offer-table td.desc { color: var(--text-2); min-width: 260px; }
.offer-table .group td { padding-top: 34px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 0; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 18px; align-content: start; position: relative; }
.plan--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan .badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--white); }
.plan h3 { font-size: 1.4rem; }
.plan .amount { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan--featured .amount small { color: #9AA1B4; }
.plan ul { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan--featured ul { border-color: rgba(244, 245, 248, .16); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .96rem; color: var(--text-2); }
.plan--featured li { color: #C9CDD8; }
.plan li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; }
.plan--featured li svg { color: var(--accent-light); }
.plan .btn { width: 100%; margin-top: 6px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.note-list { display: grid; gap: 12px; }
.note-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-2); font-size: .97rem; }
.note-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .7em; justify-self: center; }

/* ---------- À propos ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fact { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fact:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .big { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact p { color: var(--text-2); font-size: .96rem; }
@media (max-width: 760px) {
  .fact-grid { grid-template-columns: 1fr; }
  .fact:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
}

.quote { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 400; max-width: 22em; text-wrap: balance; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--ink); padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23111722' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .hint { font-size: .82rem; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .92rem; cursor: pointer; background: var(--white); transition: all .2s; user-select: none; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .88rem; color: var(--text-2); align-items: start; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: .92rem; color: var(--text-2); }
.form-status.is-ok { color: #1E8A55; }
.form-status.is-error { color: #C2362F; }

.contact-aside { display: grid; gap: 28px; }
.contact-aside .block { display: grid; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.contact-aside .block:last-child { border-bottom: 0; }
.contact-aside .mail { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; word-break: break-all; }
.contact-aside .mail:hover { color: var(--accent); }

/* ---------- Pages légales ---------- */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: .8em; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; margin-top: .6em; }
.todo { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: .85em; }
.notice { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: .93rem; color: var(--text-2); margin-bottom: 40px; }
.notice svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #B8BDCB; padding-block: clamp(64px, 8vw, 104px) calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-claim { font-size: clamp(2.2rem, 1rem + 5vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; color: var(--paper); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(244, 245, 248, .12); text-wrap: balance; }
.footer-claim .serif { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px; }
.footer-grid .brand { color: var(--paper); }
.footer-grid .brand svg { height: 28px; }
.footer-grid .about { display: grid; gap: 18px; align-content: start; max-width: 24em; font-size: .95rem; }
.footer-grid h4 { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8088A0; margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 10px; font-size: .95rem; }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(244, 245, 248, .12); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: #8088A0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid .about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Apparition douce (contenu visible au repos) ---------- */
.js .reveal { transform: translateY(14px); transition: transform .8s var(--ease); }
.js .reveal.is-in { transform: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flow-svg .pulse { display: none; }
  .js .reveal { transform: none; }
}

/* ---------- Page FAQ ---------- */
.faq-groups { display: grid; gap: clamp(48px, 6vw, 80px); }
.faq-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; scroll-margin-top: 100px; }
.faq-group > h2 { grid-column: 1 / span 3; font-size: 1.35rem; letter-spacing: -0.02em; padding-top: 22px; }
.faq-group > .faq { grid-column: 4 / -1; }
.faq .answer a { color: var(--ink); }
@media (max-width: 800px) {
  .faq-group { grid-template-columns: 1fr; gap: 12px; }
  .faq-group > h2, .faq-group > .faq { grid-column: 1; padding-top: 0; }
}

/* ---------- À propos : constat et manifeste ---------- */
.observations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.observation { display: grid; gap: 14px; align-content: start; padding: 32px 40px 32px 0; }
.observation + .observation { padding: 32px 0 32px 40px; border-left: 1px solid var(--line); }
.observation .n { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--accent); }
.observation h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; }
.observation p { color: var(--text-2); }
@media (max-width: 800px) {
  .observations { grid-template-columns: 1fr; }
  .observation, .observation + .observation { padding: 28px 0; border-left: 0; }
  .observation + .observation { border-top: 1px solid var(--line); }
}
.manifesto { margin: 0; display: grid; gap: 28px; max-width: 1000px; }
.manifesto blockquote { margin: 0; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; color: var(--white); text-wrap: balance; }
.manifesto blockquote .accent { color: var(--accent-light); }
.manifesto figcaption { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #9AA1B4; }

/* ---------- Page 404 ---------- */
.notfound { padding-block: clamp(56px, 8vw, 120px); }
.notfound-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.notfound-copy { display: grid; gap: 24px; min-width: 0; }
.notfound h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; }
.broken-flow { width: 100%; max-width: 460px; height: auto; justify-self: center; }
.broken-flow .wire { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 6; animation: wire 1.4s linear infinite; }
.broken-flow .wire--cut { stroke: var(--line-strong); animation: none; }
.broken-flow .box { fill: var(--white); stroke: var(--line-strong); }
.broken-flow .box--ghost { fill: transparent; stroke-dasharray: 4 4; }
.broken-flow .k { font: 500 9px var(--font-mono); letter-spacing: .1em; fill: var(--muted); }
.broken-flow .t { font: 500 13px var(--font-sans); fill: var(--ink); }
.broken-flow .t--ghost { fill: var(--muted); }
.broken-flow .gap path { stroke: #C2362F; stroke-width: 2; stroke-linecap: round; fill: none; }
.broken-flow .dot { fill: var(--accent); }
.broken-flow .code { font: 500 64px var(--font-sans); letter-spacing: -0.04em; fill: var(--line); }
@media (max-width: 860px) { .notfound-grid { grid-template-columns: 1fr; } .broken-flow { max-width: 360px; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .broken-flow .wire { animation: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
