/* ==========================================================================
   Pulsalab — feuille de style unique
   Aucune dépendance externe : polices auto-hébergées, aucune image distante.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #0f1b24;
  --ink-soft: #3b4a56;
  --ink-mute: #66757f;
  --paper: #fbf8f3;
  --paper-2: #f2ebdf;
  --paper-3: #ffffff;
  --brass: #a67c4a;
  --brass-soft: #d9c3a3;
  --line: rgba(15, 27, 36, 0.12);
  --line-strong: rgba(15, 27, 36, 0.22);
  --shadow: 0 24px 60px -32px rgba(15, 27, 36, 0.45);
  --radius: 2px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }

section[id],
main[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 120;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- entête --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(251, 248, 243, 0.96);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  transform: translateY(-3px);
}
.brand small {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); border-bottom-color: var(--brass); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

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

/* --- boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px -18px rgba(15, 27, 36, 0.9);
}
.btn-primary:hover { background: #182b38; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 0.65rem 1.1rem; font-size: 0.84rem; }
.btn svg { width: 15px; height: 15px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 58%;
  height: 100%;
  background: radial-gradient(120% 90% at 100% 0%, #efe6d8 0%, rgba(242, 235, 223, 0) 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "opsz" 144;
}
.hero .lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.19rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.84rem;
  color: var(--ink-mute);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-note li { display: flex; align-items: center; gap: 0.45rem; }
.hero-note svg { width: 14px; height: 14px; color: var(--brass); flex: none; }

.hero-deonto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.hero-deonto svg { width: 14px; height: 14px; color: var(--brass); flex: none; }
.hero-deonto a { color: var(--ink-soft); }

.portrait {
  margin: 0;
  position: relative;
  isolation: isolate;
}
.portrait picture { display: block; }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.96) contrast(1.02);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  z-index: -1;
}
.portrait figcaption {
  position: absolute;
  left: -1px;
  bottom: -1px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 78%;
}
.portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

/* --- bandeau chiffres ----------------------------------------------------- */

.figures {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}
.figures ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.figures li {
  padding: 1.6rem 1.6rem 1.6rem 0;
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}
.figures li:first-child { border-left: 0; padding-left: 0; }
.figures strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}
.figures span { font-size: 0.86rem; color: var(--ink-mute); }

/* --- sections ------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.9rem; }
.lede { font-size: 1.08rem; color: var(--ink-soft); }

.section-alt { background: var(--paper-3); border-block: 1px solid var(--line); }

/* --- réalisations --------------------------------------------------------- */

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.work {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.work-body { padding: 1.35rem 1.5rem 1.6rem; }
.work h3 { margin-bottom: 0.35rem; }
.work p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.work a.more {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
/* Un SVG inline sans dimensions explicites prend 300x150 px par défaut : sans
   cette règle, la flèche du lien « Ouvrir la démonstration » occupait tout le
   bas de la carte. */
.work a.more svg { width: 14px; height: 14px; flex: none; }

/* aperçus réels — captures des démonstrations, dans un cadre de navigateur */

.shot {
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work:hover .shot img { transform: scale(1.035); }
.shot-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(251, 248, 243, 0.94);
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.34rem 0.6rem;
  border-radius: 2px;
}
.shot-hover {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(15, 27, 36, 0.82), rgba(15, 27, 36, 0));
  color: #fff;
  font-size: 0.82rem;
  padding: 2.2rem 1rem 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work:hover .shot-hover,
.shot:focus-visible .shot-hover { opacity: 1; }

.works-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* aperçu du héros : une capture réelle dans un cadre de navigateur */

.preview {
  position: relative;
  margin: 0;
}
.preview-frame {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 70px -44px rgba(15, 27, 36, 0.65);
  transform: rotate(-1.1deg);
  transition: transform 0.5s ease;
}
.preview-frame:hover { transform: rotate(0deg); }
.preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0.7rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 27, 36, 0.18);
}
.preview-bar span {
  margin-left: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.preview-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.preview-badge {
  position: absolute;
  left: 1.25rem;
  bottom: -1.25rem;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 0.6rem 0.95rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-soft);
  box-shadow: 0 18px 40px -30px rgba(15, 27, 36, 0.6);
  max-width: calc(100% - 2.5rem);
  white-space: nowrap;
}
.preview-badge a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

/* --- méthode -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
}
.step {
  padding: 2rem 1.6rem 0 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--brass);
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
}
.step:not(:first-child) { padding-left: 1.6rem; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* --- inclus --------------------------------------------------------------- */

.included {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.inc-list { list-style: none; margin: 0; padding: 0; }
.inc-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.inc-list li:first-child { padding-top: 0; }
.inc-list svg { width: 20px; height: 20px; color: var(--brass); margin-top: 3px; }
.inc-list strong { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 0.1rem; }
.inc-list span { font-size: 0.9rem; color: var(--ink-soft); }

.price-card {
  background: var(--ink);
  color: var(--paper);
  padding: 2.2rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.price-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(217, 195, 163, 0.35);
  border-radius: 50%;
  right: -90px;
  top: -90px;
}
.price-card .eyebrow { color: var(--brass-soft); }
.price-card .eyebrow::before { background: var(--brass-soft); }
.price-card .amount {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.price-card .amount small {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(251, 248, 243, 0.7);
  margin-left: 0.35rem;
}
.price-card p { color: rgba(251, 248, 243, 0.78); font-size: 0.93rem; }
.price-card .btn {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  margin-top: 1.4rem;
}
.price-card .btn:hover { background: #fff; }
.price-card .fine {
  font-size: 0.78rem;
  color: rgba(251, 248, 243, 0.55);
  margin-top: 0.9rem;
  text-align: center;
}

/* --- portrait / à propos -------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about figure { margin: 0; }
.about img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about blockquote {
  margin: 1.8rem 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--ink);
}
.about .sign {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
}
.about .sign strong { color: var(--ink); font-weight: 600; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--brass);
  line-height: 1;
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-top: 0.9rem; max-width: 52rem; }
.faq .answer p { font-size: 0.96rem; color: var(--ink-soft); }

/* --- contact -------------------------------------------------------------- */

.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { color: var(--paper); }
.contact .eyebrow { color: var(--brass-soft); }
.contact .eyebrow::before { background: var(--brass-soft); }
.contact p { color: rgba(251, 248, 243, 0.78); }
.contact a.mail {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  font-size: 1.05rem;
}
.contact dl {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
}
.contact dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.5);
  margin-bottom: 0.2rem;
}
.contact dd { margin: 0; font-size: 0.98rem; }

.form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(251, 248, 243, 0.14);
  padding: 1.8rem;
  border-radius: var(--radius);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.6);
  margin-bottom: 0.45rem;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(251, 248, 243, 0.18);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(251, 248, 243, 0.35); }
.form .btn { width: 100%; background: var(--paper); color: var(--ink); }
.form .fine {
  font-size: 0.76rem;
  color: rgba(251, 248, 243, 0.5);
  margin: 0.9rem 0 0;
  line-height: 1.5;
}
.form .fine a { color: inherit; text-decoration: underline; }

/* Piège à robots : hors écran, jamais focusable par le clavier */
.field-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Retour du formulaire (envoi réussi ou échec), lu par les lecteurs d'écran */
.form-status {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.45;
  border: 1px solid transparent;
}
.form-status.is-ok {
  background: rgba(120, 180, 130, 0.14);
  border-color: rgba(120, 180, 130, 0.5);
  color: #dff0e2;
}
.form-status.is-error {
  background: rgba(210, 130, 120, 0.14);
  border-color: rgba(210, 130, 120, 0.55);
  color: #f4dfdb;
}
.form .btn[disabled] { opacity: 0.65; cursor: progress; }

/* --- pied de page --------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 243, 0.62);
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  padding: 2.2rem 0;
  font-size: 0.84rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* --- pages secondaires ---------------------------------------------------- */

.page { padding: clamp(3rem, 6vw, 5rem) 0 5rem; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; color: var(--ink-soft); }
.prose .note {
  margin-top: 2.4rem;
  background: var(--paper-2);
  border-left: 2px solid var(--brass);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.prose .note strong { color: var(--ink); }

/* --- apparition au défilement -------------------------------------------- */

/* Le contenu est visible par défaut : l'animation n'est qu'un agrément. Si le
   JavaScript ne s'exécute pas (bloqueur, erreur), la page reste lisible au lieu
   de rester entièrement vide sous la ligne de flottaison. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .work:hover { transform: none; }
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid,
  .included,
  .about,
  .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; }
  .portrait::after { inset: 14px -14px -14px 14px; }
  .hero::before { display: none; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; }
  .step:nth-child(2n) { border-right: 0; }
  .figures ul { grid-template-columns: repeat(2, 1fr); }
  .figures li:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about { gap: 2.5rem; }
  .about figure { max-width: 420px; }
}

@media (max-width: 900px) {
  /* Six entrées + un bouton ne tiennent plus dans la barre dès ~900 px :
     la navigation passe en menu déroulant (à 768 px, le bouton sortait de
     l'écran et créait un défilement horizontal). */
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1.2rem;
  }
  .nav.is-open .nav-links li { width: 100%; }
  .nav.is-open .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .works { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-left: 0 !important; }
  .figures ul { grid-template-columns: 1fr; }
  .figures li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .figures li:first-child { border-top: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .portrait figcaption { position: static; max-width: none; margin-top: 0.9rem; }
  .price-card { padding: 1.7rem; }
}

/* --- compléments (grille de trois étapes, aperçus) ------------------------ */

.steps--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .steps--3 { grid-template-columns: 1fr 1fr; }
  .steps--3 .step:nth-child(3) { border-right: 0; }
  .preview { margin-bottom: 1.8rem; }
}

@media (max-width: 720px) {
  .steps--3 { grid-template-columns: 1fr; }
  .preview-badge {
    position: static;
    max-width: none;
    margin-top: 1rem;
    white-space: normal;
  }
  .preview-frame { transform: none; }
}
