/* =========================================================
   Studio Delfino : feuille de style principale
   ========================================================= */

:root {
  --ink: #0F1F3D;        /* bleu nuit : titres, fonds forts */
  --blue: #2349C8;       /* bleu roi : actions */
  --blue-dark: #1A389E;
  --sky: #DCE5F6;        /* bleu pâle : surfaces */
  --mist: #F4F7FB;       /* fond de sections */
  --slate: #56637B;      /* texte secondaire */
  --line: #D6DEEB;
  --white: #FFFFFF;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius-s: 6px;
  --radius-l: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; }
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip:focus { top: 1rem; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-s);
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); }
.btn-small { padding: .6rem 1.1rem; font-size: .95rem; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sky); }

.link {
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--blue), var(--ink) 55%, var(--blue));
}
.logo-text { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; }

.nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--slate); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-text h1 { max-width: 14ch; }
.lead { margin-top: 1.6rem; font-size: 1.2rem; color: var(--slate); max-width: 34rem; }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-note { margin-top: 2.4rem; font-size: .95rem; color: var(--slate); padding-left: 1rem; border-left: 2px solid var(--sky); }

/* Navigateur de démonstration */
.hero-visual { position: relative; padding-bottom: 2.5rem; }
.browser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -30px rgba(15,31,61,.35);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1rem; background: var(--mist); border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url {
  flex: 1; display: flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .85rem; color: var(--slate);
}
.url-lock { width: 9px; height: 10px; border-radius: 2px; background: var(--slate); opacity: .6; }
.url-text::after {
  content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: var(--ink); vertical-align: -2px; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.browser-screen { position: relative; aspect-ratio: 16 / 11; }
.demo {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transition: opacity .6s ease;
}
.demo.is-active { opacity: 1; }
.demo-nav {
  display: flex; align-items: center; gap: 1.1rem; padding: .9rem 1.2rem;
  font-size: .78rem; color: var(--slate);
}
.demo-nav b { margin-right: auto; color: var(--ink); font-size: .9rem; }
.demo-nav em { font-style: normal; color: var(--white); background: var(--ink); padding: .3rem .7rem; border-radius: 4px; }
.demo-hero {
  flex: 1; margin: 0 1.2rem; border-radius: 10px; padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem;
  color: var(--white);
}
.demo-kicker { font-size: .78rem; opacity: .85; }
.demo-title { font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.75rem); line-height: 1.12; max-width: 17ch; }
.demo-btn { align-self: flex-start; font-size: .78rem; font-weight: 600; background: var(--white); color: var(--ink); padding: .45rem .9rem; border-radius: 4px; }
.demo-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; font-size: .76rem; color: var(--slate); }

/* Ambiances des trois démos : chaque commerce a sa propre identité */
.demo-resto   { background: radial-gradient(circle at 80% 20%, #E9A15B 0 18%, transparent 19%), linear-gradient(160deg, #A8462B, #5B2216); }
.demo-salon   { background: radial-gradient(circle at 78% 30%, #F3E3DA 0 14%, transparent 15%), linear-gradient(160deg, #B98C86, #6E4C55); }
.demo-artisan { background: repeating-linear-gradient(100deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px), linear-gradient(160deg, #7C6A4F, #3D3528); }

/* Téléphone */
.phone {
  position: absolute; right: -14px; bottom: 0; width: 26%;
  aspect-ratio: 9 / 18; background: var(--ink); border-radius: 22px; padding: 7px;
  box-shadow: 0 20px 40px -18px rgba(15,31,61,.5);
}
.phone-screen {
  height: 100%; background: var(--white); border-radius: 16px; padding: 18% 10% 10%;
  display: flex; flex-direction: column; gap: 8%;
}
.phone-line { height: 6px; border-radius: 3px; background: var(--sky); }
.phone-line.w80 { width: 80%; background: var(--ink); opacity: .85; }
.phone-line.w60 { width: 60%; }
.phone-block { flex: 1; border-radius: 8px; background: linear-gradient(160deg, var(--sky), #B9CBEE); }
.phone-cta { height: 14%; border-radius: 6px; background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-head p { margin-top: 1.2rem; color: var(--slate); font-size: 1.125rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; flex-wrap: wrap; }

/* Comparaison */
.compare { background: var(--mist); }
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { text-align: left; padding: 1.25rem 1.5rem; vertical-align: top; }
.compare-table thead th { font-weight: 600; font-size: .95rem; color: var(--slate); padding-bottom: 1rem; }
.compare-table thead th.col-site { color: var(--white); background: var(--ink); border-radius: var(--radius-s) var(--radius-s) 0 0; }
.compare-table tbody th { font-weight: 600; width: 26%; }
.compare-table tbody tr { border-top: 1px solid var(--line); }
.compare-table tbody td:not(.col-site) { color: var(--slate); }
.compare-table td.col-site { background: var(--white); font-weight: 500; box-shadow: inset 3px 0 0 var(--blue); }
.compare-table tbody tr:last-child td.col-site { border-radius: 0 0 var(--radius-s) var(--radius-s); }

/* Offre */
.offer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.offer-intro { position: sticky; top: 110px; }
.offer-intro p { margin: 1.2rem 0 2rem; color: var(--slate); font-size: 1.125rem; max-width: 30rem; }
.offer-intro .offer-note { margin: 1.4rem 0 0; font-size: .95rem; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { padding: 1.8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; }
.offer-list li:last-child { border-bottom: 1px solid var(--line); }
.offer-list p { color: var(--slate); }

/* Étapes (vraie séquence : numérotation justifiée) */
.steps { background: var(--ink); color: var(--white); }
.steps .section-head h2 { max-width: 16ch; }
.steps-list {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
}
.steps-list li { counter-increment: step; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.2); position: relative; }
.steps-list li::before {
  content: counter(step);
  display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; margin-bottom: 1.4rem; color: #8FA9EC;
}
.steps-list p { margin-top: .7rem; color: rgba(255,255,255,.72); }

/* Réalisations */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.work-item { text-decoration: none; display: block; }
.work-thumb {
  aspect-ratio: 16 / 10; border-radius: var(--radius-l); margin-bottom: 1.2rem;
  display: flex; align-items: flex-end; padding: 1.5rem; overflow: hidden;
  transition: transform .3s ease;
}
.work-item:hover .work-thumb { transform: translateY(-4px); }
.work-thumb span { font-family: var(--serif); font-size: 1.6rem; }
.work-thumb-techno { background: linear-gradient(150deg, #1F3E7A, #0F1F3D); color: var(--white); }
.work-empty .work-thumb {
  background: var(--mist); border: 1.5px dashed var(--line); color: var(--slate);
  align-items: center; justify-content: center;
}
.work-item p { margin-top: .3rem; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .work-thumb { transition: none; } }

/* Bientôt */
.soon { padding-top: 0; }
.soon-inner {
  background: var(--sky); border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.soon-inner > div { max-width: 40rem; }
.soon-tag { font-weight: 600; color: var(--blue); margin-bottom: .8rem; }
.soon-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.soon-inner p:last-child { margin-top: 1rem; color: var(--slate); }

/* CTA final */
.final { background: var(--mist); text-align: center; }
.final-inner { max-width: 40rem; }
.final-inner p { margin: 1.2rem 0 2.2rem; color: var(--slate); font-size: 1.125rem; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--slate); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.logo-footer { color: var(--ink); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-legal { display: grid; gap: .5rem; align-content: start; }
.footer-legal p { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .offer-grid { grid-template-columns: 1fr; }
  .offer-intro { position: static; }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 620px; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
    padding: .5rem .9rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem;
  }
  .nav ul.is-open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 1rem; text-align: center; }

  .offer-list li { grid-template-columns: 1fr; gap: .5rem; }
  .steps-list, .work-grid, .footer-grid { grid-template-columns: 1fr; }
  .demo-nav span { display: none; }
  .phone { width: 30%; right: -6px; }
  .browser-screen { aspect-ratio: 4 / 4; }

  /* Tableau comparatif empilé sur mobile */
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tbody tr { padding: 1.4rem 0; }
  .compare-table tbody th { width: 100%; padding: 0 0 .8rem; font-size: 1.1rem; }
  .compare-table td { padding: .8rem 1rem; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--slate); margin-bottom: .2rem; }
  .compare-table td.col-site, .compare-table tbody tr:last-child td.col-site { border-radius: var(--radius-s); }
  .compare-table td.col-site::before { color: var(--blue); }
}

/* ---------- Page 404 ---------- */
.error-page { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 4rem 0; }
.error-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.error-screen {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); color: var(--sky);
  background: var(--mist);
}
.error-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.error-text p { margin-top: 1.2rem; color: var(--slate); font-size: 1.125rem; max-width: 32rem; }
@media (max-width: 760px) { .error-inner { grid-template-columns: 1fr; } }
.error-screen.error-ok { color: var(--blue); }

/* ---------- Page contact ---------- */
.contact-page { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.contact-intro { position: sticky; top: 110px; }
.contact-intro h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); max-width: 12ch; }
.contact-promises { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.contact-promises li { padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--line); position: relative; }
.contact-promises li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -40px rgba(15,31,61,.35);
}
.progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.progress-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--sky); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 20%; background: var(--blue); transition: width .35s ease; }
.progress p { font-size: .9rem; color: var(--slate); white-space: nowrap; }

.step { border: 0; margin: 0 0 2.5rem; padding: 0; min-width: 0; }
.step legend { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; padding: 0; margin-bottom: 1.5rem; outline: none; }
.step-hint { color: var(--slate); margin: -0.8rem 0 1.3rem; }

/* Mode étapes (activé par JavaScript) */
.is-stepped .step { display: none; margin-bottom: 0; }
.is-stepped .step.is-current { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .is-stepped .step.is-current { animation: none; } .progress-bar span { transition: none; } }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choices-col { grid-template-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; flex-direction: column; justify-content: center; gap: .2rem; height: 100%;
  padding: 1rem 1.1rem 1rem 3rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 500; transition: border-color .15s, background .15s; position: relative;
}
.choice > span small { font-weight: 400; color: var(--slate); font-size: .92rem; }
.choice > span::before {
  content: ""; position: absolute; left: 1.1rem; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; border: 1.5px solid #A9B6CC; border-radius: 50%; background: var(--white);
}
.choice-check > span::before { border-radius: 4px; }
.choice:hover > span { border-color: #A9B6CC; }
.choice input:checked + span { border-color: var(--blue); background: #F1F5FD; }
.choice input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px var(--white); }
.choice-check input:checked + span::before {
  box-shadow: none;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .4rem; }
.step .field:not(.fields .field) { margin-top: 1.5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
.field input.is-invalid { border-color: #C2362B; }
::placeholder { color: #98A3B6; }

.consent { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.5rem; font-size: .95rem; color: var(--slate); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--blue); flex-shrink: 0; }
.consent a { color: var(--blue); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step-error { color: #C2362B; font-weight: 500; margin-top: 1rem; min-height: 1.4em; }
.step-error:empty { min-height: 0; margin: 0; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-nav .btn { margin-left: auto; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form-nav .btn:disabled { opacity: .6; cursor: wait; }
.form-nav [hidden] { display: none; }
.btn-back { background: none; border: 0; font: inherit; font-weight: 600; color: var(--slate); cursor: pointer; padding: .9rem 0; }
.btn-back:hover { color: var(--ink); }
/* Sans JavaScript : seul le bouton d'envoi est utile */
form:not(.is-stepped) #prevBtn, form:not(.is-stepped) #nextBtn { display: none; }

.form-success { padding: 2rem 0; outline: none; }
.form-success h2 { margin-bottom: 1rem; }
.form-success p { color: var(--slate); margin-bottom: 1.5rem; max-width: 34rem; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .contact-page { background: var(--mist); }
}
@media (max-width: 560px) {
  .choices, .fields { grid-template-columns: 1fr; }
}

/* =========================================================
   Animations
   Fil conducteur : des lignes qui se tracent et des contenus
   qui se posent doucement. Désactivées si l'utilisateur
   a demandé moins d'animations dans son système.
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Micro-interactions */
.btn { transition: background .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(35,73,200,.7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.link { transition: text-underline-offset .25s var(--ease), text-decoration-thickness .2s; }
.link:hover { text-underline-offset: 8px; }
.nav a:not(.btn) { transition: color .2s; }
.choice > span { transition: border-color .2s, background .2s, transform .2s var(--ease); }
.choice:active > span { transform: scale(.98); }

@media (prefers-reduced-motion: no-preference) {

  /* ---- Chargement du hero (une seule séquence orchestrée) ---- */
  .js .hero-text > *,
  .js .contact-intro > * { opacity: 0; animation: rise .9s var(--ease) forwards; }
  .js .hero-text > :nth-child(1), .js .contact-intro > :nth-child(1) { animation-delay: .05s; }
  .js .hero-text > :nth-child(2), .js .contact-intro > :nth-child(2) { animation-delay: .18s; }
  .js .hero-text > :nth-child(3), .js .contact-intro > :nth-child(3) { animation-delay: .3s; }
  .js .hero-text > :nth-child(4) { animation-delay: .42s; }

  .js .browser { opacity: 0; animation: browserIn 1.1s var(--ease) .25s forwards; }
  .js .phone { opacity: 0; animation: phoneIn 1s var(--ease) .75s forwards; }
  .js .form-card { opacity: 0; animation: rise 1s var(--ease) .3s forwards; }

  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes browserIn {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to { opacity: 1; transform: none; }
  }
  @keyframes phoneIn {
    from { opacity: 0; transform: translate(30px, 30px) rotate(4deg); }
    to { opacity: 1; transform: translate(0, var(--phone-shift, 0px)); }
  }
  .phone.is-floating { animation: none; opacity: 1; transform: translateY(var(--phone-shift, 0px)); }

  /* ---- Apparitions au défilement ---- */
  .js .section-head,
  .js .offer-intro,
  .js .compare-table tbody tr,
  .js .offer-list li h3, .js .offer-list li p,
  .js .steps-list li > *,
  .js .steps-list li::before,
  .js .work-item h3, .js .work-item p,
  .js .soon-inner > *,
  .js .final-inner > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
  }
  .js .is-visible .section-head, .js .section-head.is-visible,
  .js .offer-intro.is-visible,
  .js .compare-table tbody tr.is-visible,
  .js .offer-list li.is-visible h3, .js .offer-list li.is-visible p,
  .js .steps-list li.is-visible > *,
  .js .steps-list li.is-visible::before,
  .js .work-item.is-visible h3, .js .work-item.is-visible p,
  .js .soon-inner.is-visible > *,
  .js .final-inner.is-visible > * { opacity: 1; transform: none; }

  .js .offer-list li p { --d: 80ms; }
  .js .steps-list li > h3 { --d: 150ms; }
  .js .steps-list li > p { --d: 230ms; }
  .js .soon-inner > :nth-child(2), .js .final-inner > :nth-child(2) { --d: 120ms; }
  .js .final-inner > :nth-child(3) { --d: 240ms; }

  /* Lignes qui se tracent (offre + étapes) */
  .js .offer-list li, .js .steps-list li { position: relative; border-top-color: transparent; }
  .js .offer-list li::after, .js .steps-list li::after {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: var(--line); transform: scaleX(0); transform-origin: left;
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .steps-list li::after { background: rgba(255,255,255,.25); }
  .js .offer-list li.is-visible::after, .js .steps-list li.is-visible::after { transform: scaleX(1); }

  /* Colonne "Votre site" : la barre bleue se dessine de haut en bas */
  .js .compare-table td.col-site { box-shadow: none; position: relative; }
  .js .compare-table td.col-site::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue);
    transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms + 250ms);
  }
  .js .compare-table tr.is-visible td.col-site::after { transform: scaleY(1); }

  /* Réalisations : la vignette se dévoile comme un rideau */
  .js .work-thumb { clip-path: inset(0 0 100% 0 round var(--radius-l)); transition: clip-path 1.1s var(--ease), transform .3s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .work-item.is-visible .work-thumb { clip-path: inset(0 0 0 0 round var(--radius-l)); }
  .work-thumb span { transition: transform .4s var(--ease); }
  .work-item:hover .work-thumb span { transform: translateX(6px); }

  /* En-tête qui se resserre au défilement */
  .header-inner { transition: height .3s var(--ease); }
  .site-header.is-scrolled .header-inner { height: 64px; }
}

/* Mobile : la colonne du tableau est empilée, la barre redevient fixe */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .compare-table td.col-site::after { transform: scaleY(1); transition: none; border-radius: var(--radius-s) 0 0 var(--radius-s); }
}
