/* ==========================================================================
   LM PEINTURE 83 — Feuille de style principale
   Peintre & jointeur à Toulon (Var)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Neutres */
  --ink: #0b0c10;
  --ink-2: #16181f;
  --ink-3: #2a2d38;
  --grey: #6b7080;
  --grey-2: #9aa0b0;
  --line: #e4e2dd;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --paper-3: #edeae4;

  /* Palette de marque (les 6 couleurs du brief) */
  --bleu: #1b4fd8;
  --vert: #17a34a;
  --jaune: #f7ba0b;
  --orange: #f4711f;
  --rouge: #d92d20;
  --blanc: #ffffff;

  /* Couleur d'accent du site (bleu profond).
     --accent      : aplats et fonds
     --accent-text : variante assombrie, utilisée dès que l'accent sert de texte
                     ou d'icône sur fond clair (contraste AA garanti)
     --accent-ink  : couleur du texte posé SUR un aplat d'accent */
  --accent: var(--bleu);
  --accent-text: var(--bleu);
  --accent-ink: #ffffff;
  --accent-soft: rgba(27, 79, 216, 0.12);

  /* Typo */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Échelle fluide */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.4rem);

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 9rem);
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1320px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.4rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--dark {
  background: var(--ink);
  color: #d8dae2;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--paper { background: var(--paper-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 3px;
  background: var(--accent);
}
.section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow::before { background: var(--accent); }

.h-xl { font-size: var(--step-4); }
.h-lg { font-size: var(--step-3); }
.h-md { font-size: var(--step-2); }
.h-sm { font-size: var(--step-1); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 60ch;
}
.section--dark .lead { color: #b9bdca; }

.muted { color: var(--grey); }
.section--dark .muted { color: var(--grey-2); }

/* Bandeau nuancier : la signature graphique du site */
.nuancier-bar {
  display: flex;
  height: 6px;
  width: 100%;
}
.nuancier-bar span { flex: 1; }
.nuancier-bar span:nth-child(1) { background: var(--vert); }
.nuancier-bar span:nth-child(2) { background: var(--jaune); }
.nuancier-bar span:nth-child(3) { background: var(--orange); }
.nuancier-bar span:nth-child(4) { background: var(--rouge); }
.nuancier-bar span:nth-child(5) { background: var(--bleu); }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(11, 12, 16, 0.45);
}
.btn:hover::after { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: currentColor;
}
.btn--ghost:hover { --btn-fg: #fff; }

/* Contextes à fond sombre : le bouton fantôme doit passer en blanc. */
.section--dark .btn--ghost,
.hero .btn--ghost,
.cta-final .btn--ghost,
.pagehead .btn--ghost,
.mobile-nav .btn--ghost { --btn-fg: #fff; }
.section--dark .btn--ghost::after,
.hero .btn--ghost::after,
.cta-final .btn--ghost::after,
.pagehead .btn--ghost::after,
.mobile-nav .btn--ghost::after { background: var(--accent); }
.hero .btn--ghost:hover,
.cta-final .btn--ghost:hover,
.mobile-nav .btn--ghost:hover { --btn-fg: var(--accent-ink); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-fg: #fff; }

.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Lien souligné animé */
.link-u {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-text);
  padding-bottom: 2px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* --------------------------------------------------------------------------
   5. Barre de progression au scroll
   -------------------------------------------------------------------------- */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  background: transparent;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.scroll-rail.is-hidden { opacity: 0; }
.scroll-rail__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--vert),
    var(--jaune),
    var(--orange),
    var(--rouge),
    var(--bleu)
  );
  background-size: 100vw 100%;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   6. Écran d'ouverture (rideau de peinture)
   -------------------------------------------------------------------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  pointer-events: none;
}
.curtain__panel {
  flex: 1;
  height: 100%;
  transform: translateY(0);
  transition: transform 0.85s var(--ease);
}
.curtain__panel:nth-child(1) { background: var(--vert); transition-delay: 0.30s; }
.curtain__panel:nth-child(2) { background: var(--jaune); transition-delay: 0.24s; }
.curtain__panel:nth-child(3) { background: var(--orange); transition-delay: 0.18s; }
.curtain__panel:nth-child(4) { background: var(--rouge); transition-delay: 0.12s; }
.curtain__panel:nth-child(5) { background: var(--bleu); transition-delay: 0.06s; }
.curtain.is-open .curtain__panel { transform: translateY(-101%); }
.curtain.is-done { display: none; }

/* --------------------------------------------------------------------------
   7. En-tête / navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    transform 0.45s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding 0.4s var(--ease);
}
.header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-stuck .header__inner { padding-block: 0.7rem; }
.header.is-hidden { transform: translateY(-105%); }

/* Toutes les pages ouvrent sur un bandeau sombre : tant que l'en-tête n'est pas
   collé, il se pose dessus et doit donc passer en blanc. */
.header:not(.is-stuck) .brand,
.header:not(.is-stuck) .nav a,
.header:not(.is-stuck) .header__tel { color: #fff; }
.header:not(.is-stuck) .brand__tag { color: rgba(255, 255, 255, 0.72); }
.header:not(.is-stuck) .header__tel svg { color: #fff; }
.header:not(.is-stuck) .burger { border-color: rgba(255, 255, 255, 0.8); }
.header:not(.is-stuck) .burger span { background: #fff; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand__tag {
  font-size: 0.66rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
}

/* flex-shrink:0 — sur cet en-tête à 3 blocs, un rétrécissement partiel du menu
   provoque un chevauchement visuel avec les liens de droite (le texte des
   liens ne s'enroule jamais, donc le débordement reste rendu par-dessus le
   voisin). Le menu doit soit tenir en entier, soit basculer sur le bouton
   burger (voir les points de rupture plus bas) — jamais un entre-deux. */
.nav { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 0; }
.nav a {
  position: relative;
  white-space: nowrap;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--accent-text); }

.header__cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.header__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5rem 0.2rem;
}
.header__tel svg { width: 1.05em; height: 1.05em; color: var(--accent-text); }
.header .btn { padding: 0.85rem 1.4rem; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--ink);
  color: #fff;
  padding: 7rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav > a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s;
}
.mobile-nav > a:hover { color: var(--jaune); }
.mobile-nav__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.mobile-nav__foot a.btn { font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   8. Héros
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88svh, 780px);
  display: flex;
  align-items: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 10% 0%, rgba(27, 79, 216, 0.45), transparent 55%),
    radial-gradient(60% 80% at 95% 100%, rgba(244, 113, 31, 0.32), transparent 60%),
    radial-gradient(50% 60% at 60% 100%, rgba(23, 163, 74, 0.18), transparent 60%);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.55) 0%, rgba(11, 12, 16, 0.42) 45%, rgba(11, 12, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.55) 0%, rgba(11, 12, 16, 0.05) 55%);
}

.hero__inner { width: 100%; }
.hero__title {
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.6rem;
  max-width: 18ch;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  transition: color 0.5s var(--ease);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
}
.hero__eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 0 4px rgba(23, 163, 74, 0.28);
}

.hero__sub {
  color: #cfd3dd;
  font-size: var(--step-1);
  max-width: 46ch;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__badges ul { display: contents; }
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  color: #e8eaf0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__badges svg { width: 1.05rem; height: 1.05rem; color: var(--vert); flex: none; }

/* Nuancier vertical à droite du héros */
.hero__swatches {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(10px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.hero__swatches span { flex: 1; }
.hero__swatches span:nth-child(1) { background: var(--vert); }
.hero__swatches span:nth-child(2) { background: var(--jaune); }
.hero__swatches span:nth-child(3) { background: var(--orange); }
.hero__swatches span:nth-child(4) { background: var(--rouge); }
.hero__swatches span:nth-child(5) { background: var(--bleu); }

/* Héros compact des pages intérieures */
.pagehead {
  position: relative;
  padding-top: clamp(9rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--ink);
  color: #cfd3dd;
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(27, 79, 216, 0.35), transparent 55%),
    radial-gradient(90% 90% at 90% 100%, rgba(244, 113, 31, 0.22), transparent 60%);
}
.pagehead h1 { color: #fff; font-size: var(--step-4); text-transform: uppercase; letter-spacing: -0.035em; }
.pagehead .lead { color: #b9bdca; margin-top: 1.4rem; }
.pagehead .nuancier-bar { position: absolute; left: 0; right: 0; bottom: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: var(--step--1);
  color: var(--grey-2);
}
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* --------------------------------------------------------------------------
   9. Révélations au scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   10. Chiffres clés
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.section--dark .stats { border-color: rgba(255, 255, 255, 0.14); }
.stats__item {
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
}
.section--dark .stats__item { border-color: rgba(255, 255, 255, 0.14); }
.stats__item:last-child { border-right: 0; }
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.section--dark .stats__num { color: #fff; }
.stats__num sup { font-size: 0.42em; vertical-align: super; color: var(--accent-text); }
.stats__label {
  display: block;
  margin-top: 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.section--dark .stats__label { color: var(--grey-2); }

/* --------------------------------------------------------------------------
   11. Grilles génériques
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 5vw, 3.8rem);
}
.section-head > div { max-width: 62ch; }

/* --------------------------------------------------------------------------
   12. Cartes prestations
   -------------------------------------------------------------------------- */
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--svc, var(--accent));
}
.service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px -26px rgba(11, 12, 16, 0.4);
}
.service__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--svc, var(--accent));
  margin-bottom: 1.4rem;
}
.service__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  color: var(--svc, var(--accent));
}
.service h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.service p { color: var(--grey); font-size: 0.96rem; }
.service__more {
  margin-top: auto;
  padding-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svc, var(--accent));
}
.service__more svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.service:hover .service__more svg { transform: translateX(5px); }

.service__list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.service__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
  color: var(--grey);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--svc, var(--accent));
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   12b. Photos d'illustration
   -------------------------------------------------------------------------- */
.feature-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img--wide { aspect-ratio: 16 / 10; }
.feature-img--tall { aspect-ratio: 4 / 5; }

/* --------------------------------------------------------------------------
   13. Étapes / process
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.section--dark .step { border-color: rgba(255, 255, 255, 0.14); }
.step:last-child { border-bottom: 1px solid var(--line); }
.section--dark .step:last-child { border-color: rgba(255, 255, 255, 0.14); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent-text);
}
.section--dark .step::before { color: var(--accent); opacity: 0.7; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--grey); margin: 0; }
.section--dark .step p { color: var(--grey-2); }

/* --------------------------------------------------------------------------
   15. Cartes engagement
   -------------------------------------------------------------------------- */
.quote {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote p { font-size: 1.02rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   16. Zones d'intervention
   -------------------------------------------------------------------------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.zones li {
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.zones li:hover { border-color: var(--accent-text); color: var(--accent-text); }
.section--dark .zones li { border-color: rgba(255, 255, 255, 0.2); }
.section--dark .zones li:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary { color: var(--accent-text); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding-bottom: 1.6rem; color: var(--grey); max-width: 72ch; }

/* --------------------------------------------------------------------------
   18. Appel à l'action final
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(27, 79, 216, 0.5), transparent 60%),
    radial-gradient(70% 100% at 85% 100%, rgba(244, 113, 31, 0.35), transparent 60%);
}
.cta-final h2 {
  font-size: var(--step-4);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 18ch;
}
.cta-final .lead { color: #c9cdd8; }

/* --------------------------------------------------------------------------
   19. Formulaire
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field label .req { color: var(--rouge); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--accent); }
.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--grey);
}
.form__note { font-size: 0.84rem; color: var(--grey); }
.hp { position: absolute; left: -9999px; opacity: 0; }

.contact-card {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--ink);
  color: #cfd3dd;
  border-radius: var(--radius-lg);
}
.contact-card h3 { color: #fff; font-size: var(--step-1); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { width: 1.35rem; height: 1.35rem; color: var(--accent); flex: none; margin-top: 0.2rem; }
.contact-item strong {
  display: block;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contact-item a { color: #e8eaf0; text-decoration: none; }
.contact-item a:hover { color: var(--jaune); }

.map-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   20. Pied de page
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #9aa0b0;
  font-size: 0.94rem;
}
.footer .nuancier-bar { margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.footer a { color: #c5c9d4; text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: #fff; }
/* Spécificité renforcée (.footer + la classe) pour gagner sur la règle
   générique .footer a ci-dessus : le bouton doit garder sa propre couleur
   de texte, pas le gris des liens de navigation du pied de page. */
.footer .btn { color: var(--btn-fg); }
.footer .footer__top { color: #9aa0b0; }
.footer .footer__top:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer .brand { color: #fff; margin-bottom: 1.2rem; }
.footer .brand__tag { color: var(--grey-2); }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s;
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 1.05rem; height: 1.05rem; }

.footer .btn { margin-top: 1.4rem; }

/* Coordonnées : réutilise .contact-item (déjà stylé pour fond sombre),
   avec un gabarit plus compact adapté à la densité du pied de page. */
.footer .contact-item { gap: 0.7rem; margin-bottom: 1rem; }
.footer .contact-item:last-child { margin-bottom: 0; }
.footer .contact-item svg { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; color: var(--accent); }
.footer .contact-item strong {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--grey-2);
  font-weight: 700;
}
.footer .contact-item span,
.footer .contact-item a { color: #e8eaf0; font-size: 0.9rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9aa0b0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.footer__top svg { width: 1rem; height: 1rem; transform: rotate(-90deg); }
.footer__top:hover { color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   21. Barre d'action mobile
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0.6rem;
  gap: 0.5rem;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.action-bar.is-visible { transform: translateY(0); }
.action-bar a {
  flex: 1;
  padding: 0.9rem 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   22. Contenu éditorial (pages services)
   -------------------------------------------------------------------------- */
.prose h2 { font-size: var(--step-2); margin-top: 2.4rem; margin-bottom: 1rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; margin-bottom: 0.7rem; }
.prose > *:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 0.6rem; margin: 0 0 1.4rem; }
.prose ul li { position: relative; padding-left: 1.7rem; color: var(--ink-3); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
}
.prose strong { color: var(--ink); }

.callout {
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.callout p { color: var(--ink-3); }
.callout strong { color: var(--ink); }

.aside-box {
  position: sticky;
  top: 7rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.aside-box h3 { font-size: var(--step-1); margin-bottom: 0.9rem; }
.aside-box .btn { width: 100%; margin-top: 1rem; }

.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
/* Points de rupture mesurés : le menu ne s'enroule jamais (nav a { white-space:
   nowrap }) et rien ne rétrécit (flex-shrink:0 sur nav/marque/CTA) — l'en-tête
   tient en entier ou bascule sur le burger, jamais un entre-deux qui coupe le
   bouton « Devis gratuit ». Les seuils ci-dessous incluent une marge de
   sécurité au-delà de la largeur de contenu réellement nécessaire. */
@media (max-width: 1320px) {
  .header__tel { display: none; }
}

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .aside-box { position: static; }
}

@media (max-width: 1200px) {
  .nav, .header__tel { display: none; }
  .burger { display: block; }
  .header__cta .btn { display: none; }
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2n) { border-right: 0; }
  .stats__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section--dark .stats__item:nth-child(n + 3) { border-color: rgba(255, 255, 255, 0.14); }
  .step { grid-template-columns: 4rem 1fr; }
  .step > p { grid-column: 2; }
  .action-bar { display: flex; }
  body { padding-bottom: 4.6rem; }
}

@media (max-width: 700px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 7.5rem; }
  .section-head { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   24. Accessibilité — mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .curtain { display: none; }
}

/* --------------------------------------------------------------------------
   25. Impression
   -------------------------------------------------------------------------- */
@media print {
  .header, .action-bar, .curtain, .scroll-rail, .mobile-nav { display: none !important; }
  body { color: #000; background: #fff; }
  .section--dark, .cta-final, .footer { background: #fff !important; color: #000 !important; }
}

/* --------------------------------------------------------------------------
   26. Accent sur fond sombre — l'accent brut y est déjà lisible
   -------------------------------------------------------------------------- */
.section--dark, .cta-final, .pagehead, .footer, .hero, .contact-card, .mobile-nav {
  --accent-text: var(--accent);
}
