:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
/* Direction : sections plein écran et espaces généreux, typographie grotesque contemporaine.
   Palette sobre : papier froid, encre graphite, un seul accent vif (cobalt).
   Repères : une maquette de résultat de recherche sur l'accueil, des services en lignes pleine largeur,
   une bande sombre pour « À propos », la navigation en bas à gauche et « Nous écrire » en bas à droite. */

:root {
  --paper: #2a2d31;
  --surface: #33373c;
  --tint: #2f3337;
  --ink: #eef0f2;
  --muted: #b4bac1;
  --line: #454b52;
  --accent: #5fbf96;
  --accent-hover: #86d6b1;
  --accent-soft: #2a3d34;
  --on-accent: #1f2327;
  --band: #202327;
  --band-ink: #eef0f2;
  --band-muted: #b4bac1;
  --band-line: #3a4046;
  --shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.45);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
/* Même palette claire sur tous les appareils (téléphone, tablette, ordinateur),
   quel que soit le réglage clair/sombre du système. */
:root[data-theme="dark"] {
  --paper: #2a2d31;
  --surface: #33373c;
  --tint: #2f3337;
  --ink: #eef0f2;
  --muted: #b4bac1;
  --line: #454b52;
  --accent: #5fbf96;
  --accent-hover: #86d6b1;
  --accent-soft: #2a3d34;
  --on-accent: #1f2327;
  --band: #202327;
  --band-ink: #eef0f2;
  --band-muted: #b4bac1;
  --band-line: #3a4046;
  --shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

/* Bande au-dessus de l'en-tête collant (encoche du téléphone). */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--surface);
}

/* Conteneur : marge latérale d'au moins 16px, y compris sur les bandes pleine largeur. */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; }

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
p { margin: 0; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- En-tête et menu ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand em { font-style: normal; color: var(--accent); }

.burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: var(--surface);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.menu-links {
  list-style: none;
  margin: 0;
  padding: 16px 0 32px;
}
.menu-links a {
  display: block;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-links a:hover,
.menu-links a:focus-visible { color: var(--accent); }
.menu-cta { width: 100%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-block { width: 100%; }

/* ---------- Sections plein écran ---------- */
.screen {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 10vw, 128px);
}
.screen > .wrap { width: 100%; }
section[id] { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }

.hero { background: var(--paper); }
.services { background: var(--surface); }
.about { background: var(--band); color: var(--band-ink); }
.contact { background: var(--paper); }

/* ---------- Accueil ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-grid > div { min-width: 0; }
.kicker {
  margin-bottom: 26px;
  font-weight: 600;
  color: var(--accent);
}
.lead {
  max-width: 34ch;
  margin: 32px 0 40px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.serp {
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.serp-query {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.serp-query svg { flex: 0 0 auto; color: var(--muted); }
.serp-result { padding: 20px 4px; }
.serp-result + .serp-result { border-top: 1px solid var(--line); }
.serp-result.is-you {
  margin: 8px 0;
  padding: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
}
.serp-result.is-you + .serp-result { border-top: 0; }
.serp-url { font-size: 0.86rem; color: var(--muted); }
.serp-title {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
}
.serp-desc { font-size: 0.95rem; color: var(--muted); }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.74rem;
  font-weight: 700;
  vertical-align: middle;
}
.bar {
  display: block;
  height: 10px;
  margin: 10px 0;
  border-radius: 6px;
  background: var(--line);
}
.bar.long { width: 88%; }
.bar.short { width: 62%; }
.serp-caption {
  margin: 18px 4px 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- Bandeau d'accueil : nom de l'entreprise en haut, illustration en bas ---------- */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 60vh, 600px);
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px) 0;
  text-align: center;
  background: var(--tint);
  border-radius: 28px;
}
.hero-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
}
.brand-name {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--accent); }
.hero-banner .kicker {
  position: relative;
  margin: 14px 0 0;
}
.hero-grid { margin-top: clamp(48px, 6vw, 80px); }
.hero-grid h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  margin-bottom: 26px;
}

/* ---------- Services ---------- */
.intro {
  max-width: 56ch;
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--muted);
}
.svc-list {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px clamp(32px, 6vw, 88px);
  padding-block: clamp(32px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.svc-title { min-width: 0; }
.svc-title h3 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.svc-body { min-width: 0; }
.svc-body > p { font-size: 1.08rem; color: var(--muted); max-width: 52ch; }
.svc-body ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.svc-body li {
  position: relative;
  padding-left: 30px;
}
.svc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 16px;
  height: 2px;
  background: var(--accent);
}
.for-who {
  margin-top: 22px;
  font-size: 0.98rem;
  color: var(--muted);
}
.for-who strong { color: var(--ink); }
.svc-body .btn { margin-top: 28px; }
.pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- À propos ---------- */
.about-lead {
  max-width: 58ch;
  margin-top: 26px;
  font-size: 1.12rem;
  color: var(--band-muted);
}
.steps {
  counter-reset: step;
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}
.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 1px solid var(--band-line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--band-muted);
}
.steps h3 { color: var(--band-ink); margin-bottom: 10px; font-size: 1.5rem; }
.steps p { color: var(--band-muted); max-width: 32ch; }
.about .btn-primary { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-grid > div { min-width: 0; }
.checks {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.form { min-width: 0; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.field {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  min-width: 0;
}
.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
}
.field select { cursor: pointer; }
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-bottom-color: var(--accent);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 28px;
  font-size: 0.93rem;
  color: var(--muted);
}
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.status {
  min-height: 1.5em;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.foot {
  padding-block: 40px 140px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}
.foot-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- Widget « Nous écrire » (bas à droite) ---------- */
.chat-toggle {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 16;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.2s;
}
.chat-toggle:hover { background: var(--accent-hover); }
.chat-panel {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 17;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100svh - 160px);
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.chat-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.chat-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.chat-panel .small { margin-bottom: 18px; }
.chat-panel .field { margin-bottom: 16px; }
.chat-panel .field input,
.chat-panel .field textarea { font-size: 1rem; }
.chat-panel .consent { margin-bottom: 20px; font-size: 0.88rem; }

/* ---------- Apparition au défilement ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero h1,
.hero .kicker,
.hero .lead,
.hero .actions,
.hero .serp {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .kicker { animation-delay: 0s; }
.hero h1 { animation-delay: 0.08s; }
.hero .lead { animation-delay: 0.18s; }
.hero .actions { animation-delay: 0.26s; }
.hero .serp { animation-delay: 0.36s; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .svc { grid-template-columns: 1fr; }
  .svc { gap: 20px; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}

@media (max-width: 560px) {
  .hero-banner { min-height: 0; padding-bottom: 260px; }
  .hero-art { height: 240px; }
}


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

/* Compléments du site multi-pages : en-têtes de page, blocs, cartes, appel à l'action, pied de page.
   Ce fichier se charge après base.css. */

/* Ancres : l'en-tête collant ne masque pas les titres */
[id] { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }

a { color: var(--accent); }

/* Menu : page en cours */
.menu-links a[aria-current="page"] { color: var(--accent); }

/* Blocs de contenu */
.block {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--paper);
}
.block.alt { background: var(--surface); }
.block.dark { background: var(--band); color: var(--band-ink); }
.block.dark h2,
.block.dark h3 { color: var(--band-ink); }
.block.dark .btn-primary { margin-top: clamp(32px, 4vw, 48px); }

.block-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* En-tête des pages secondaires */
.page-hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px);
  background: var(--paper);
}
.page-hero.dark { background: var(--band); color: var(--band-ink); }
.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}
.page-hero.dark h1 { color: var(--band-ink); }
.page-hero .pill { margin-bottom: 24px; }
.page-hero .lead {
  max-width: 46ch;
  margin: 28px 0 0;
}
.page-hero .about-lead { margin-top: 26px; }

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.card:hover,
a.card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-tag {
  margin-bottom: 36px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.card p {
  font-size: 0.98rem;
  color: var(--muted);
}
.card-link {
  margin-top: auto;
  padding-top: 28px;
  font-weight: 700;
  color: var(--accent);
}
.block.dark .card {
  background: var(--band);
  border-color: var(--band-line);
}
.block.dark .card p { color: var(--band-muted); }
.block.dark a.card:hover,
.block.dark a.card:focus-visible { border-color: var(--accent); }

/* Deux colonnes : titre à gauche, texte à droite */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split > div { min-width: 0; }
.split p {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.split p + p { margin-top: 18px; }
.split .checks { margin-top: 28px; }

/* Appel à l'action dans un bandeau */
.cta-band {
  padding: clamp(32px, 5vw, 64px);
  background: var(--band);
  color: var(--band-ink);
  border-radius: 28px;
}
.cta-band .h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-band .intro { margin-top: 18px; }
.cta-band .actions { margin-top: 32px; }

/* Fiches de service détaillées */
.svc-title h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}
.svc-sub + .svc-sub { margin-top: 36px; }
.svc-sub h3 { margin-bottom: 14px; font-size: 1.1rem; }
.svc-sub ul { margin-top: 0; }

/* Étapes numérotées */
.plan {
  counter-reset: plan;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan li {
  counter-increment: plan;
  position: relative;
  padding-left: 52px;
  color: var(--muted);
}
.plan li::before {
  content: counter(plan);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
}
.plan li strong {
  display: block;
  color: var(--ink);
}


/* Pied de page sur fond bleu marine */
.foot {
  background: var(--band);
  border-top: 0;
  color: var(--band-muted);
}
.foot .foot-brand { color: var(--band-ink); }
.foot .small { color: var(--band-muted); }
.foot a {
  color: var(--band-ink);
  text-underline-offset: 3px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 22px 0 18px;
  padding: 0;
  list-style: none;
}
.foot-links a {
  font-weight: 600;
  text-decoration: none;
}
.foot-links a:hover,
.foot-links a[aria-current="page"] { text-decoration: underline; }

/* Apparition au défilement : décalage vertical seulement, le contenu reste visible au repos */
@keyframes rise {
  from { transform: translateY(24px); }
  to { transform: none; }
}

.contact-sub {
  margin-top: 40px;
  font-size: 1.1rem;
}

/* Repères à compléter avant la mise en ligne (mentions légales) */
.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Mentions légales et confidentialité */
.legal { max-width: 760px; }
.legal-title {
  margin: 56px 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.legal-title:first-child { margin-top: 0; }
.legal-sub {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}
.legal p {
  margin-top: 10px;
  color: var(--muted);
}
.legal-list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.legal-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.legal-list dt { font-weight: 600; color: var(--ink); }
.legal-list dd { margin: 0; color: var(--muted); }
.legal .legal-date { margin-top: 48px; }
@media (max-width: 560px) {
  .legal-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Adaptation aux écrans */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}


/* Appels à l'action sur fond bleu marine : boutons clairs et lisibles dans les deux thèmes */
.cta-band .h2 { color: var(--band-ink); }
.cta-band .intro { color: var(--band-muted); }
.cta-band .btn-primary { background: var(--band-ink); color: var(--band); }
.cta-band .btn-primary:hover { background: var(--band-muted); }
.cta-band .btn-ghost { color: var(--band-ink); box-shadow: inset 0 0 0 1.5px var(--band-muted); }
.cta-band .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--band-ink); }

/* Accueil : bandeau de marque sans image */
.hero-banner { min-height: 0; padding-bottom: clamp(40px, 6vw, 72px); }

/* Coordonnées directes sur la page Contact */
.contact-direct p { margin: 0 0 14px; display: grid; gap: 2px; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-direct a {
  font-weight: 600;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Refonte visuelle : cartes des rubriques */
.cards { gap: 20px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 26px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 16px 34px -22px rgb(0 0 0 / 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.06), 0 24px 40px -22px rgb(0 0 0 / 0.4);
}
.card-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card h3 { font-size: 1.35rem; line-height: 1.2; margin: 18px 0 10px; }
@media (prefers-reduced-motion: reduce) {
  .card, a.card:hover { transition: none; transform: none; }
}

/* Titre principal penché vers la droite, pour un effet tourné vers l'avenir */
h1 {
  font-style: oblique 8deg;
}

/* Logo dans l'en-tête */
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

/* Réalisations : chaque site a sa couleur (bordure haute, étiquette, lien) */
.card-real {
  border-top: 4px solid var(--c);
  padding-top: 34px;
}
.card-real:hover { border-color: var(--c); }
.card-real .card-tag {
  background: var(--c);
  color: #1f2327;
  font-weight: 700;
}
.card-real h3 { font-size: 1.5rem; }
.card-real .card-link { color: var(--c); }

/* Réalisations : cartes pleines, bien visibles */
a.card.card-real {
  background: var(--c);
  border: 0;
  color: #1f2327;
  padding: 36px 28px 30px;
  box-shadow: 0 18px 36px -20px rgb(0 0 0 / 0.6);
}
a.card.card-real:hover {
  border: 0;
  box-shadow: 0 26px 44px -20px rgb(0 0 0 / 0.7);
}
.card-real h3,
.card-real p { color: #1f2327; }
.card-real p { opacity: 0.88; }
.card-real .card-tag {
  background: rgb(31 35 39 / 0.16);
  color: #1f2327;
}
.card-real .card-link {
  color: #1f2327;
  font-weight: 700;
}

/* ==========================================================================
   Direction artistique « brief » : même identité que le flyer.
   Ce fichier est chargé après base.css et extra.css : il redéfinit les
   couleurs, les polices et les composants de la nouvelle identité.
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  color-scheme: light;
  --paper: #FFF8F6;        /* fond blanc rosé principal */
  --surface: #FFFFFF;      /* sections alternées et cartes */
  --tint: #FCE6E1;         /* bandes et surfaces roses très pâles */
  --ink: #0B1A3A;          /* bleu nuit : textes et blocs forts */
  --muted: #4A5570;        /* texte secondaire (contraste AA sur crème) */
  --line: #F1D3CB;
  --accent: #C8625C;       /* rose brique : soulignés, chiffres, accents */
  --accent-text: #A94B46;  /* rose brique foncé : petits textes (AA) */
  --accent-hover: #A94B46;
  --accent-soft: #F2C2B9;  /* rose poudré : formes et fonds roses */
  --gold: #E3B23C;         /* jaune moutarde : offre et CTA principal */
  --on-accent: #0B1A3A;
  --band: #0B1A3A;
  --band-ink: #FFF8F6;
  --band-muted: #C9CFDD;
  --band-line: #22305A;
  --shadow: 0 24px 50px -30px rgba(11, 26, 58, 0.35);
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---------- En-tête ---------- */
.top {
  background: rgba(255, 248, 246, 0.94);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}
.top.is-compact {
  box-shadow: 0 10px 26px -20px rgba(11, 26, 58, 0.45);
}
.top .brand-logo { height: 60px; transition: height 0.3s ease; }
.top .top-inner { height: auto; padding-top: 12px; padding-bottom: 12px; }
.top.is-compact .top-inner { padding-top: 8px; padding-bottom: 8px; }
.top.is-compact .brand-logo { height: 46px; }
.top-inner { gap: 14px; }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn-audit {
  padding: 10px 16px;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ---------- Boutons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 0;
  box-shadow: 0 12px 24px -16px rgba(227, 178, 60, 0.9);
}
.btn-primary:hover {
  background: #EDC052;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Titres soulignés (coup de feutre) ---------- */
.b-under { position: relative; display: inline-block; }
.b-underline {
  position: absolute;
  left: -2%;
  bottom: -0.2em;
  width: 104%;
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
}
.b-underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.b-hero .b-underline path {
  stroke-dashoffset: 1;
  animation: b-draw 1s 0.9s ease forwards;
}
@supports (animation-timeline: view()) {
  .b-section .b-underline path {
    stroke-dashoffset: 1;
    animation: b-draw linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* ---------- Accueil : hero ---------- */
.b-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}
.b-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.b-kicker {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.b-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04;
  font-style: oblique 8deg;
  margin: 0 0 22px;
}
.b-wd { white-space: nowrap; }
.b-split--js .b-ch { display: inline-block; opacity: 0; }
.b-split--js.is-in .b-ch {
  animation: b-letter-up 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
  animation-delay: calc(var(--c) * 26ms + 120ms);
}
.b-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
}
.b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.b-actions .btn { padding: 14px 24px; }

/* Visuel du hero : mockups qui se succèdent en fondu */
.b-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 560px;
  width: 100%;
  justify-self: end;
}
.b-mock {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: b-cycle 12s infinite;
}
.b-mock:nth-child(2) { animation-delay: 4s; }
.b-mock:nth-child(3) { animation-delay: 8s; }

.b-mock-browser {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.b-mock-bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: var(--tint);
}
.b-mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.b-screen {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.95rem;
}
.b-screen strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 6px;
}

.b-macaron {
  position: absolute;
  z-index: 2;
  top: -22px;
  right: -14px;
  width: 124px;
  height: 124px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 16px 30px -18px rgba(11, 26, 58, 0.6);
  transition: transform 2.4s ease;
}
.b-macaron:hover { transform: rotate(352deg); }

/* Formes décoratives */
.b-blob {
  position: absolute;
  pointer-events: none;
  background: var(--accent-soft);
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  animation: b-breathe 9s ease-in-out infinite alternate;
}
.b-blob-1 {
  width: 620px;
  height: 620px;
  right: -200px;
  top: -200px;
  opacity: 0.95;
}

/* ---------- Bandeau de preuve ---------- */
.b-proof {
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(40px, 6vw, 70px) 0;
}
.b-proof-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}
.b-big {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: 1;
  color: var(--accent-soft);
}
.b-proof-text {
  max-width: 30em;
  margin: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.4;
}
.b-proof small {
  display: block;
  margin-top: 12px;
  color: var(--band-muted);
  font-size: 0.9rem;
}

/* ---------- Sections communes ---------- */
.b-section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.b-section.b-alt { background: var(--surface); }
.b-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  margin: 0;
  max-width: 16em;
}
.b-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36em;
  margin: 16px 0 0;
}
.b-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.b-check li {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}
.b-check li::before {
  content: "✓";
  color: var(--accent-text);
  font-weight: 800;
  flex: none;
}

/* ---------- Réalisations ---------- */
.b-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.b-case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.b-case:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 34px 60px -30px rgba(11, 26, 58, 0.45);
}
.b-case-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
}
.b-case-visual .b-mock-browser { box-shadow: none; }
.b-case-visual .b-screen { font-size: 0.9rem; padding-right: 34%; }
.b-screen.b-screen-photo {
  display: block;
  padding: 0;
  background: #fff;
}
.b-screen-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.b-case-visual .b-screen.b-screen-photo { padding: 0; }
.b-phone {
  position: absolute;
  right: 10px;
  bottom: -14px;
  width: 27%;
  aspect-ratio: 9 / 18;
  margin: 0;
  border: 6px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding: 6px;
  box-shadow: var(--shadow);
}
.b-case h3 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.b-type {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}
.b-case p.b-need {
  color: var(--muted);
  margin: 12px 0 0;
}
.b-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}
.b-tags li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}
.b-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 700;
}
.b-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.b-links a:hover { color: var(--accent-text); }

/* ---------- Services ---------- */
.b-svc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.b-svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  transition: transform 0.3s ease;
}
.b-svc-card:hover { transform: translateY(-4px); }
.b-svc-card h3 { font-size: 1.35rem; margin: 0 0 10px; }
.b-svc-card p { color: var(--muted); margin: 0 0 16px; }
.b-svc-card.is-main {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--band-ink);
}
.b-svc-card.is-main h3 { color: var(--band-ink); }
.b-svc-card.is-main p { color: var(--band-muted); }
.b-svc-card.is-main .b-check li::before { color: var(--accent-soft); }
.b-svc-card.is-main .b-check li { color: var(--band-ink); }
.b-svc-card .b-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.b-svc-card.is-main .b-link { color: var(--band-ink); }
.b-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Comment ça marche ---------- */
.b-steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.b-step {
  position: relative;
  border-top: 4px solid var(--accent);
  padding-top: 22px;
}
.b-step-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
}
.b-step h3 { font-size: 1.4rem; margin: 14px 0 10px; }
.b-step p { color: var(--muted); margin: 0; }
.b-arrow {
  position: absolute;
  top: 34px;
  right: -48px;
  width: 64px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pourquoi nous ---------- */
.b-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.b-why .b-check li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  margin: 0;
}
.b-why .b-check li:first-child { border-top: 1px solid var(--line); }
.b-why .b-check li::before { font-size: 1.2rem; }

/* ---------- CTA final ---------- */
.b-cta {
  position: relative;
  overflow: hidden;
  background: var(--band);
  color: var(--band-ink);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 68px);
}
.b-cta .b-title { color: var(--band-ink); }
.b-cta .b-blob-cta {
  width: 380px;
  height: 380px;
  right: -140px;
  bottom: -170px;
  opacity: 0.22;
}
.b-cta-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 26px 0 30px;
  font-weight: 700;
}
.b-cta-contact a {
  color: var(--band-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-soft);
}
.b-cta .btn { position: relative; z-index: 1; }

/* ---------- Animations ---------- */
@keyframes b-letter-up {
  from { opacity: 0; transform: translateY(0.9em) rotate(4deg); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes b-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes b-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@keyframes b-cycle {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 960px) {
  .b-hero-grid,
  .b-why { grid-template-columns: 1fr; }
  .b-stage { justify-self: center; margin-bottom: 64px; }
  .b-svc { grid-template-columns: 1fr 1fr; }
  .b-svc-card.is-main { grid-column: 1 / -1; }
  .b-steps { grid-template-columns: 1fr; gap: 34px; }
  .b-arrow { display: none; }
}

@media (max-width: 760px) {
  .top .brand-logo { height: 48px; }
  .btn-audit { padding: 8px 12px; font-size: 0.85rem; }
  .b-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    margin-inline: -16px;
    padding: 6px 16px 24px;
    scrollbar-width: none;
  }
  .b-cards::-webkit-scrollbar { display: none; }
  .b-case { flex: 0 0 84%; scroll-snap-align: center; }
  .b-svc { grid-template-columns: 1fr; }
  .b-blob-1 { width: 360px; height: 360px; right: -160px; }
  .b-macaron { width: 104px; height: 104px; font-size: 0.82rem; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .b-underline path { stroke-dashoffset: 0 !important; }
  .b-mock { opacity: 0; }
  .b-stage:not(.b-stage--js) .b-mock:first-child { opacity: 1; }
}

/* ---------- Page Réalisations ---------- */
.b-page-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(28px, 4vw, 48px);
}
.b-page-hero h1 {
  position: relative;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.06;
  font-style: oblique 8deg;
  margin: 0 0 18px;
  max-width: 18em;
}
.b-page-hero .b-underline { bottom: -0.12em; }
.b-project {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.b-project.b-alt { background: var(--surface); }
.b-project .b-title { margin-bottom: 12px; }
.b-project .b-tags { margin-top: 18px; }
.b-case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: 40px;
}
.b-case-study .b-case-visual { aspect-ratio: 4 / 3; margin-bottom: 0; }
.b-case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.b-fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.b-project.b-alt .b-fact { background: var(--paper); }
.b-fact h3 { font-size: 1.15rem; margin: 0 0 10px; }
.b-fact p { margin: 0; color: var(--muted); }
.b-fact .b-check li { margin: 6px 0; color: var(--ink); }
.b-todo {
  color: var(--accent-text) !important;
  font-weight: 700;
  background: rgba(232, 183, 174, 0.25);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 8px 10px;
}
.b-cta-inline {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--band);
  color: var(--band-ink);
}
.b-title-small {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--band-ink);
}
.b-cta-inline .btn-ghost { color: var(--band-ink); border-color: var(--band-ink); }
.b-cta-inline .btn-ghost:hover { background: var(--band-ink); color: var(--band); }
.b-project-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.b-project-compact .b-case-visual { aspect-ratio: 4 / 3; margin-bottom: 0; }
.b-project-compact .b-todo { grid-column: 1 / -1; justify-self: start; }
.b-soon { font-size: 0.95rem; }
@media (max-width: 960px) {
  .b-case-study,
  .b-project-compact { grid-template-columns: 1fr; }
  .b-case-facts { grid-template-columns: 1fr; }
}


/* Captures de bureau : le cadre prend le format réel de la capture, pour montrer la page entière, centrée. */
.b-case-visual:has(.b-screen-photo) { aspect-ratio: auto; }
.b-case-visual .b-screen-photo img { height: auto; }

/* ---------- Mouvement : vitrine du hero, relief et cartes ---------- */
.b-stage {
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.b-stage--js .b-mock {
  animation: none;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.b-stage--js .b-mock.is-active { opacity: 1; transform: none; }
.b-stage-controls {
  position: absolute;
  left: 0;
  bottom: -54px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.b-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.b-dot:hover { transform: scale(1.2); }
.b-dot[aria-pressed="true"] { background: var(--ink); transform: scale(1.25); }
.b-pause {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-left: 6px;
  cursor: pointer;
}
.b-dot:focus-visible,
.b-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.b-svc.b-svc--js .b-svc-card { opacity: 0; }
.b-svc.is-in .b-svc-card {
  opacity: 1;
  animation: b-card-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes b-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Immersion : progression, bandeau, parallaxe ---------- */
.b-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 40;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .b-progress {
      animation: b-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes b-progress { to { transform: scaleX(1); } }


@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .b-stage {
      animation: b-parallax linear both;
      animation-timeline: view();
    }
  }
}
@keyframes b-parallax {
  from { translate: 0 26px; }
  to { translate: 0 -26px; }
}

/* Cadre téléphone vide : masqué tant qu'il n'y a pas de capture mobile */
.b-case-visual:has(.b-screen-photo) > .b-phone:not(:has(img)) { display: none; }

/* ---------- Mouvement : bouton devis, boutons magnétiques, captures ---------- */
.btn-devis { position: relative; overflow: hidden; }
.btn-devis::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: b-sheen 4.8s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes b-sheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.btn-magnetic {
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease, color 0.2s ease;
}
.btn-magnetic:hover {
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px));
}
@media (max-width: 760px) {
  .top-cta .btn-ghost { display: none; }
  .btn-devis { font-size: 0.88rem; padding: 9px 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .b-screen-photo { overflow: hidden; }
  .b-screen-photo img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .b-case-visual:hover .b-screen-photo img { transform: scale(1.04); }
}


/* ---------- Ligne de services : chaque service est une station ---------- */
.b-metro-band { background: var(--tint); padding: clamp(64px, 9vw, 112px) 0; }
.b-metro-head { max-width: 40rem; margin-bottom: 36px; }
.b-metro-head .b-intro { margin: 18px 0 0; }
.b-metro-board {
  display: inline-block;
  margin: 0 0 clamp(40px, 5vw, 60px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
}
.b-metro { position: relative; }
.b-metro-line, .b-metro-fill, .b-metro-train { position: absolute; }
.b-metro-line {
  top: 11px;
  left: 8.333%;
  right: 8.333%;
  height: 6px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0.22;
}
.b-metro-fill {
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.b-metro-train {
  z-index: 3;
  width: 56px;
  height: 26px;
  border-radius: 9px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.b-metro-train::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 16px;
  top: 6px;
  height: 7px;
  border-radius: 3px;
  background: var(--gold);
}
.b-metro-train::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--paper);
}
.b-metro.is-live .b-metro-fill,
.b-metro.is-live .b-metro-train { opacity: 1; }

.b-metro-stations {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.b-station { position: relative; text-align: center; padding: 0 12px; }
.b-station-dot {
  display: block;
  width: 24px;
  height: 24px;
  margin: 2px auto 22px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--paper);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.b-station.is-passed .b-station-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}
.b-station--end .b-station-dot { background: var(--gold); }
.b-station--end.is-passed .b-station-dot { background: var(--gold); border-color: var(--ink); }
.b-station-name { margin: 0 0 6px; font-size: 0.88rem; color: var(--muted); }
.b-station-title {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}
.b-station-title:hover { color: var(--accent-text); }
.b-station-title:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.b-station-text { margin: 0; font-size: 0.95rem; color: var(--muted); }

@media (max-width: 760px) {
  .b-metro-stations { grid-template-columns: 1fr; }
  .b-station { text-align: left; padding: 0 0 40px 52px; }
  .b-station:last-child { padding-bottom: 0; }
  .b-station-dot { position: absolute; left: 0; top: 2px; margin: 0; }
  .b-metro-train { transform: translate(-50%, -50%) rotate(90deg); }
}

/* ---------- Fonds clairs, comme le flyer : crème et rose poudré ---------- */
.b-proof,
.b-cta-inline,
.block.dark {
  --band: var(--surface);
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  background: var(--surface);
  color: var(--ink);
}
.b-cta,
.cta-band,
.page-hero.dark {
  --band: #F8D8D0;
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  background: var(--band);
  color: var(--ink);
}
.b-cta .b-blob-cta { background: var(--accent); opacity: 0.28; }
.foot {
  --band: var(--paper);
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  background: var(--paper);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.b-svc-card.is-main {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
}
.b-svc-card.is-main p { color: var(--ink); }
