/* ==========================================================================
   Spark Pro — feuille de style
   Ordre : polices → tokens → base → en-tête → boutons → hero (+ maquette) →
   sections → composants → pied de page → animation d'arrivée → responsive
   ========================================================================== */

/* ---------- Police auto-hébergée (Bricolage Grotesque, variable) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../assets/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../assets/fonts/BricolageGrotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Bleu de travail, plâtre, acier, étincelle */
  --bleu: #1B2D48;
  --bleu-2: #22385A;
  --platre: #ECEBE7;
  --platre-2: #E3E1DB;
  --blanc: #F7F6F2;
  --acier: #9FAAB8;
  --acier-2: #5B6573;
  --ambre: #F5A524;
  --ambre-2: #FFBE4F;
  --erreur: #B42318;

  --rule-dark: rgba(27, 45, 72, 0.22);
  --rule-light: rgba(255, 255, 255, 0.12);

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 80rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --col-gap: clamp(1rem, 2.5vw, 2.5rem);
  --header-h: 4.5rem;
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --cut: 2.25rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-travel: cubic-bezier(0.65, 0, 0.35, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@property --btn-bg {
  syntax: "<color>";
  inherits: false;
  initial-value: #F5A524;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--bleu);
  background: var(--platre);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

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

::selection { background: var(--ambre); color: var(--bleu); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ambre);
  color: var(--bleu);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; }

/* Surfaces : grain de matière sur toutes les grandes zones, reflet sur les bleus */
.hero, .section, .site-footer {
  position: relative;
  isolation: isolate;
}
.hero::before, .section::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  background-size: 220px 220px;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.is-dark {
  background: var(--bleu);
  color: var(--blanc);
}
.is-dark::before {
  opacity: 0.11;
  mix-blend-mode: screen;
}
.is-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(255, 255, 255, 0.075), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 60%);
  pointer-events: none;
}
.section-tint { background: var(--platre-2); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 45, 72, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--blanc);
  border-bottom: 1px solid var(--rule-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--ambre);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-list {
  display: flex;
  gap: 1.75rem;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--acier);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover,
.nav-link[aria-current="true"] { color: var(--blanc); }
.nav-link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ambre);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--blanc);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.nav-toggle-bar {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: background 0.15s;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: top 0.2s, rotate 0.2s;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.site-header.is-open .nav-toggle-bar { background: transparent; }
.site-header.is-open .nav-toggle-bar::before { top: 0; rotate: 45deg; }
.site-header.is-open .nav-toggle-bar::after { top: 0; rotate: -45deg; }

/* ---------- Boutons (plaque chanfreinée) ---------- */
.btn {
  --btn-bg: var(--ambre);
  --btn-cut: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--bleu);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(45deg, var(--btn-bg) calc(100% - var(--btn-cut)), transparent calc(100% - var(--btn-cut)));
  transition: --btn-bg 0.18s, translate 0.12s;
}
.btn:hover { --btn-bg: var(--ambre-2); }
.btn:active { translate: 0 1px; }
.btn-small {
  --btn-cut: 8px;
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.cta-note {
  font-size: 0.95rem;
  color: var(--acier-2);
}
.is-dark .cta-note { color: var(--acier); }

/* ---------- Hero ---------- */
.hero {
  z-index: 1; /* la maquette déborde sur la section suivante */
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: clamp(2rem, 4vw, 3.5rem);
}
.hero-title {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 8.6vw, 8.5rem);
  font-weight: 800;
  font-stretch: 94%;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.line-inner { display: block; }
.line-light {
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero-rule {
  grid-column: 1 / span 9;
  position: relative;
  height: 2px;
}
.hero-rule-bar {
  position: absolute;
  inset: 0;
  background: var(--ambre);
  transform-origin: left center;
}
.spark {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 1.4rem;
  height: 1.4rem;
  fill: var(--ambre);
  translate: -50% -50%;
  filter: drop-shadow(0 0 8px rgba(245, 165, 36, 0.85));
}

.hero-aside {
  grid-column: 5 / span 5;
  display: grid;
  gap: 1.75rem;
}
.lede {
  max-width: 34ch;
  font-size: clamp(1.2rem, 1.1vw + 0.8rem, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
}

/* Maquette de téléphone : exemple de site livré, posée à droite du hero et débordant en bas */
.hero-phone {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  bottom: -4.5rem;
  width: 17rem;
  display: grid;
  gap: 0.9rem;
  z-index: 2;
}
.phone-caption {
  font-size: 0.85rem;
  color: var(--acier);
  text-align: right;
}
.phone {
  position: relative;
  padding: 0.55rem;
  background: #0B1220;
  border-radius: 2.5rem;
  box-shadow:
    0 50px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone::before { /* îlot caméra */
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 2;
  width: 5.25rem;
  height: 1.3rem;
  translate: -50% 0;
  background: #0B1220;
  border-radius: 1rem;
}
.phone-screen {
  aspect-ratio: 9 / 17.5;
  overflow: hidden;
  border-radius: 2rem;
  background: #FFFFFF;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: 2.5rem;
  align-items: start;
}
.section-head {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 1.25rem;
}
.section-head::before {
  content: "";
  width: 3rem;
  height: 2px;
  margin-bottom: 0.25rem;
  background: var(--ambre);
}
.section-head h2 {
  max-width: 14ch;
  text-wrap: balance;
  font-size: clamp(2rem, 3.4vw + 0.4rem, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section-head p {
  max-width: 36ch;
  font-size: 1.125rem;
  color: var(--acier-2);
}
.is-dark .section-head p { color: var(--acier); }
.section-body { grid-column: 7 / -1; }

/* Variante tableau : titre en haut, rangées pleine largeur */
.section-table .section-head {
  grid-column: 1 / span 7;
  position: static;
  margin-bottom: 1rem;
}
.section-table .section-head h2 { max-width: 18ch; }
.section-table .section-body { grid-column: 1 / -1; }

/* Pictogrammes (traits, une couleur) */
.icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Inclus ---------- */
.feature-list { border-top: 1px solid var(--rule-dark); }
.feature {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.feature h3 {
  margin-bottom: 0.45rem;
  text-wrap: balance;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.feature p {
  max-width: 52ch;
  color: var(--acier-2);
}

/* ---------- Métiers (tableau) ---------- */
.trade-list { border-top: 1px solid var(--rule-dark); }
.trade {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "icon title desc";
  column-gap: 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.trade .icon {
  grid-area: icon;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.35rem;
}
.trade h3 {
  grid-area: title;
  text-wrap: balance;
  font-size: clamp(1.75rem, 2vw + 0.8rem, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.trade p {
  grid-area: desc;
  margin-top: 0.55rem;
  font-size: 1.2rem;
  color: var(--acier-2);
}

/* ---------- Réalisations ---------- */
.work-list {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}
.work {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  row-gap: 1.5rem;
  align-items: end;
}
.work .browser { grid-column: 1 / span 8; }
.work .work-text { grid-column: 9 / -1; }
.work-flip .browser {
  grid-column: 5 / -1;
  order: 2;
}
.work-flip .work-text {
  grid-column: 1 / span 4;
  order: 1;
}
.browser {
  display: block;
  overflow: hidden;
  background: #0B1220;
  border-radius: 0.7rem;
  box-shadow:
    0 45px 70px -40px rgba(27, 45, 72, 0.65),
    0 0 0 1px rgba(27, 45, 72, 0.22);
  transition: translate 0.25s var(--ease-out), box-shadow 0.25s;
}
.browser:hover {
  translate: 0 -4px;
  box-shadow:
    0 55px 80px -40px rgba(27, 45, 72, 0.7),
    0 0 0 1px rgba(27, 45, 72, 0.22);
}
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  padding: 0 1rem;
}
.browser-url {
  padding: 0.2rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--acier);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 633;
  object-fit: cover;
}
.work-text {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}
.work-text h3 {
  font-size: clamp(1.5rem, 1.4vw + 0.8rem, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.work-scope {
  font-size: 0.95rem;
  color: var(--acier-2);
}
.work-facts {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.75rem 2.25rem;
  justify-content: start;
  margin-top: 0.75rem;
}
.work-facts div {
  display: grid;
  gap: 0.1rem;
}
.work-facts dt {
  font-size: 0.85rem;
  color: var(--acier-2);
}
.work-facts dd {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.work-link {
  justify-self: start;
  margin-top: 0.4rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s;
}
.work-link:hover { text-decoration-color: var(--ambre); }

/* ---------- Tarif (trois formules en escalier, sur devis) ---------- */
.tier-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  align-items: stretch;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--bleu-2);
  border-top: 4px solid var(--ambre);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
/* Marches : la formule la plus simple part plus bas, la plus complète occupe toute la hauteur */
.tier:nth-child(1) { margin-top: 6rem; }
.tier:nth-child(2) { margin-top: 3rem; }
/* Brossé : fines lignes horizontales */
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.tier > * { position: relative; }
.tier-name {
  font-size: clamp(1.6rem, 1.6vw + 0.6rem, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.tier-desc {
  padding-bottom: 1.15rem;
  color: var(--acier);
  border-bottom: 1px solid var(--rule-light);
}
.price-list {
  display: grid;
  gap: 0.8rem;
  font-size: 1.05rem;
}
.price-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.check {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--ambre);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tier-ref {
  margin-top: auto;
  padding-top: 1.15rem;
  font-size: 0.95rem;
  color: var(--acier);
  border-top: 1px solid var(--rule-light);
}
.tier-ref a {
  font-weight: 600;
  color: var(--blanc);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.tier-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: 2.75rem;
}
.price-note {
  max-width: 52ch;
  font-size: 0.95rem;
  color: var(--acier);
}

/* ---------- Contact ---------- */
.section-head .contact-alt {
  font-size: 1rem;
  color: var(--bleu);
}
.contact-alt a {
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.contact-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--blanc);
  border-top: 4px solid var(--bleu);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-size: 0.975rem;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--bleu);
  background: #FFFFFF;
  border: 1px solid rgba(27, 45, 72, 0.38);
  border-radius: 0;
  transition: border-color 0.15s;
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input:hover,
.field textarea:hover { border-color: rgba(27, 45, 72, 0.65); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ambre);
  outline-offset: 0;
  border-color: var(--bleu);
}
.field input::placeholder,
.field textarea::placeholder { color: #6B7482; }
.field-hint {
  font-size: 0.9rem;
  color: var(--acier-2);
}
.field-error {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--erreur);
}
.field-error:empty { display: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--erreur); }
.form-status {
  padding: 1rem 1.15rem;
  background: rgba(27, 45, 72, 0.06);
  border-left: 3px solid var(--ambre);
}
.form-status:empty { display: none; }
.form-status.is-error {
  color: var(--erreur);
  border-left-color: var(--erreur);
  background: rgba(180, 35, 24, 0.06);
}
.form-status:focus { outline: none; }
.btn:disabled { cursor: progress; opacity: 0.7; }
/* Piège à robots Web3Forms : invisible pour les humains */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--rule-light);
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}
.footer-mark {
  grid-column: 1 / -1;
  margin: 0 0 1rem -0.04em;
  font-size: clamp(3.2rem, 12.6vw, 12.5rem);
  font-weight: 300;
  font-stretch: 94%;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(247, 246, 242, 0.1);
  white-space: nowrap;
  user-select: none;
}
.footer-brand p {
  max-width: 34ch;
  margin-top: 0.75rem;
  color: var(--acier);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav a {
  font-weight: 500;
  color: var(--acier);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--blanc); }
.legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--acier);
  border-top: 1px solid var(--rule-light);
}
.legal summary {
  width: max-content;
  font-weight: 600;
  color: var(--blanc);
  cursor: pointer;
}
.legal-body {
  display: grid;
  gap: 1rem;
  max-width: 64ch;
  margin-top: 1rem;
}
.legal a { color: var(--blanc); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--acier);
}

/* ---------- Animation d'arrivée (la seule de la page) ----------
   État initial masqué uniquement si JS est présent ; sinon tout est visible.
   L'étincelle traverse le hero, laisse un filet derrière elle et révèle le titre,
   puis le texte et la maquette prennent place. */
html.js .line-inner { transform: translateY(112%); }
html.js .hero-rule-bar { transform: scaleX(0); }
html.js .spark { left: 0; opacity: 0; }
html.js .hero-aside { opacity: 0; transform: translateY(14px); }
html.js .hero-phone { opacity: 0; transform: translateY(28px); }

html.play .line-inner { animation: rise 0.85s var(--ease-out) forwards; }
html.play .line:nth-child(1) .line-inner { animation-delay: 0.15s; }
html.play .line:nth-child(2) .line-inner { animation-delay: 0.27s; }
html.play .line:nth-child(3) .line-inner { animation-delay: 0.39s; }
html.play .hero-rule-bar { animation: draw 1s var(--ease-travel) 0.1s forwards; }
html.play .spark {
  animation:
    travel 1s var(--ease-travel) 0.1s forwards,
    flare 0.55s ease-out 1.1s forwards;
}
html.play .hero-aside { animation: settle 0.7s var(--ease-out) 0.95s forwards; }
html.play .hero-phone { animation: settle 0.9s var(--ease-out) 1.15s forwards; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes travel {
  from { left: 0; opacity: 1; }
  to { left: 100%; opacity: 1; }
}
@keyframes flare {
  0% { scale: 1; }
  40% { scale: 2.1; filter: drop-shadow(0 0 18px rgba(245, 165, 36, 1)); }
  100% { scale: 1; }
}
@keyframes settle { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .line-inner,
  html.js .hero-rule-bar,
  html.js .hero-aside,
  html.js .hero-phone {
    transform: none;
    opacity: 1;
    animation: none;
  }
  html.js .spark {
    left: 100%;
    opacity: 1;
    animation: none;
  }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 75rem) {
  .hero-aside { grid-column: 4 / span 5; }
  .hero-phone { width: 13.5rem; }
  .phone { border-radius: 2rem; }
  .phone-screen { border-radius: 1.6rem; }
}

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.5rem;
    background: var(--bleu);
    border-bottom: 1px solid var(--rule-light);
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-link[aria-current="true"]::after { display: none; }
  .nav-link[aria-current="true"] { color: var(--ambre); }
  .nav-cta {
    align-self: flex-start;
    margin-top: 1.25rem;
  }

  .hero-rule { grid-column: 1 / -1; }
  .hero-aside { grid-column: 1 / -1; }
  .hero-phone {
    position: static;
    grid-column: 1 / -1;
    width: 15rem;
    margin-top: 0.5rem;
  }
  .phone-caption {
    order: 2;
    text-align: left;
  }
  .phone { border-radius: 2.2rem; }
  .phone-screen { border-radius: 1.75rem; }

  .section-grid { row-gap: 2.25rem; }
  .section-head,
  .section-body,
  .section-table .section-head,
  .section-table .section-body {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 0;
  }
  .trade {
    grid-template-columns: 2.75rem 1fr;
    grid-template-areas: "icon title" "icon desc";
    column-gap: 1.25rem;
    padding: 2rem 0;
  }
  .work .browser,
  .work .work-text,
  .work-flip .browser,
  .work-flip .work-text {
    grid-column: 1 / -1;
    order: 0;
  }
  .tier-list { grid-template-columns: 1fr; }
  .tier:nth-child(1),
  .tier:nth-child(2) { margin-top: 0; }
  .trade .icon { margin-top: 0.25rem; }
  .trade p { font-size: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .hero-title { font-stretch: 90%; }
  .line-light { font-size: 0.84em; }
  .field-row { grid-template-columns: 1fr; }
  :root { --cut: 1.5rem; }
}

/* ---------- Page 404 ---------- */
.nf-code {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ambre);
}
