/* Sparktacus : 974 mineral. Tokens basalte/lave. */

/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  --basalt:  #14110e;
  --basalt2: #211c17;
  --basalt3: #2c261f;
  --stone:   #efe9e0;
  --stone2:  #e6ddcf;
  --stone3:  #d4c9b8;
  --stone-bg:#ddd1b8; /* fond section claire : sable chaud sourd, repose l'oeil (cf .block-light) */
  --muted:   #b7ab9c;
  --faint:   #9a8f80;
  --lava:    #e0531f;
  --lava2:   #ff6a33;
  --lagon:   #2a8089;

  --font-sans:  'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-accent:'Fraunces', Georgia, serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 48px);

  /* easing system : un seul langage de mouvement */
  --ease:     cubic-bezier(.2, .8, .2, 1);
  --ease-in:  cubic-bezier(.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-slow: 560ms;

  /* spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* section rhythm */
  --block-py: clamp(72px, 10vw, 128px);
}

/* =====================================================================
   RESET + BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--basalt3) var(--basalt);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--basalt); }
::-webkit-scrollbar-thumb { background: var(--basalt3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

::selection { background: rgba(224, 83, 31, .28); color: var(--stone); }

body {
  margin: 0;
  background: var(--basalt);
  color: var(--stone);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* Focus visible universel : WCAG AA */
:focus-visible {
  outline: 2px solid var(--lava2);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* =====================================================================
   ATOMS : eyebrow, accent, headings
   ===================================================================== */
.ey {
  display: block;
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lava2);
  margin-bottom: var(--sp-4);
}

/* Fraunces italique : un seul segment par section */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--lava2);
}

/* Accent sur fond clair (section methode) */
.accent-dark {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--lava);
}

/* =====================================================================
   DUOTONE : applique a toute image en fond de section
   ===================================================================== */
.duotone { position: relative; overflow: hidden; }
.duotone > img {
  filter: grayscale(1) contrast(1.08) brightness(.82);
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(224,83,31,.28), rgba(20,17,14,0) 55%);
  mix-blend-mode: screen;
}

/* =====================================================================
   REVEAL AU SCROLL : stagger via --delay CSS custom property
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-dot { animation: none; }
  .bubble { animation: none; }
  @keyframes notifIn { from, to { opacity: 1; transform: none; } }
}

/* =====================================================================
   BOUTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 13px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  white-space: nowrap;
  position: relative;
}

.btn:active { transform: scale(.97); }

.btn-lava {
  background: var(--lava);
  color: #1a1410;
  box-shadow: 0 2px 14px rgba(224, 83, 31, .25);
}
.btn-lava:hover {
  background: var(--lava2);
  box-shadow: 0 4px 20px rgba(255, 106, 51, .35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(239, 233, 224, .38);
  color: var(--stone);
}
.btn-ghost:hover {
  border-color: rgba(239, 233, 224, .75);
  background: rgba(239, 233, 224, .05);
}

/* =====================================================================
   HEADER : sticky
   ===================================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--basalt) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--lava);
  border-bottom: 1px solid var(--basalt3);
  transition: background var(--dur-base) var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: var(--sp-5);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 36px; width: auto; }

/* Nav desktop */
.links {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
}

.links a {
  font: 500 12px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
}

/* Underline anime au hover : detail invisible */
.links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--lava2);
  transition: right var(--dur-base) var(--ease);
}
.links a:hover { color: var(--stone); }
.links a:hover::after { right: 0; }

/* ===== Burger button ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--basalt3);
  border-radius: 4px;
  transition: border-color var(--dur-fast) var(--ease);
}
.burger:hover { border-color: var(--muted); }

.burger-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--stone);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform var(--dur-base) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

/* Etat ouvert : X */
.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== Menu mobile ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--basalt2);
  border-top: 1px solid transparent;
  transition:
    max-height var(--dur-slow) var(--ease),
    border-color var(--dur-base) var(--ease);
}

.mobile-menu.open {
  max-height: 300px;
  border-top-color: var(--basalt3);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--pad);
  gap: var(--sp-1);
}

.mobile-links a {
  font: 500 14px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--basalt3);
  transition: color var(--dur-fast) var(--ease);
}
.mobile-links a:last-child { border-bottom: none; }
.mobile-links a:hover { color: var(--stone); }

/* Affichage responsive */
@media (max-width: 680px) {
  .links { display: none; }
  .burger { display: flex; }
}
@media (min-width: 681px) {
  .mobile-menu { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Gradient bas fort pour lisibilite du texte */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(20, 17, 14, .18) 0%,
    rgba(20, 17, 14, .42) 38%,
    rgba(20, 17, 14, .90) 68%,
    var(--basalt) 100%
  );
}

.hero-in {
  padding-block: clamp(40px, 6vh, 64px);
  position: relative;
  width: 100%;
}

/* Badge de lieu : positionne proprement dans le flux */
.hero-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(20px, 3vh, 36px);
}

.place {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: 500 11px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(233, 221, 202, .85);
  border: 1px solid rgba(233, 221, 202, .25);
  padding: 5px 11px;
  border-radius: 3px;
  background: rgba(20, 17, 14, .35);
  backdrop-filter: blur(6px);
}

.place-icon {
  flex-shrink: 0;
  color: var(--lava2);
}

.hero .ey {
  margin-bottom: var(--sp-5);
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  max-width: 18ch;
}

.hero .lead {
  margin-top: var(--sp-5);
  max-width: 54ch;
  font-size: clamp(16px, 2vw, 19px);
  color: #ddd2c2;
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}

/* Scroll hint : invite subtile */
.scroll-hint {
  margin-top: clamp(32px, 4vh, 56px);
  color: rgba(239, 233, 224, .4);
}

.scroll-dot {
  animation: scrollBounce 2.4s var(--ease-in) infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%       { transform: translateY(8px); opacity: .9; }
}

@media (max-width: 680px) {
  .place { display: none; }
  .hero-meta { display: none; }
}

/* =====================================================================
   ENGAGEMENTS
   ===================================================================== */
.engage {
  background: var(--basalt2);
}

.engage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.engage-item {
  padding: 28px 22px;
  border-right: 1px solid var(--basalt3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.engage-item:last-child { border-right: none; }

.engage .l {
  font: 500 10px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lava2);
}

.engage .v {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}

.engage .v small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--sp-1);
  line-height: 1.5;
}

@media (max-width: 780px) {
  .engage-grid { grid-template-columns: 1fr 1fr; }
  .engage-item:nth-child(2) { border-right: none; }
  .engage-item:nth-child(3) { border-top: 1px solid var(--basalt3); }
  .engage-item:nth-child(4) { border-top: 1px solid var(--basalt3); border-right: none; }
}

@media (max-width: 480px) {
  .engage-grid { grid-template-columns: 1fr; }
  .engage-item { border-right: none; border-top: 1px solid var(--basalt3); }
  .engage-item:first-child { border-top: none; }
}

/* =====================================================================
   SECTION BLOCK : base pour toutes les sections
   ===================================================================== */
.block {
  padding-block: var(--block-py);
}

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

.block-h {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
  max-width: 22ch;
  margin-top: var(--sp-3);
}

.block-sub {
  margin: var(--sp-4) 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Encart definition Sparkan : entree de dictionnaire, signature de marque */
.sparkan-def {
  margin: var(--sp-6) 0 0;
  max-width: 58ch;
  padding: var(--sp-4) var(--sp-5);
  border-left: 2px solid var(--lava);
  background: var(--basalt2);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.sparkan-def-term {
  display: block;
  font: 600 12px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lava2);
  margin-bottom: var(--sp-2);
}

/* =====================================================================
   MODULES (Ce qu'ils prennent en charge)
   Layout : 3 colonnes avec trait vertical, rupture de la grille-bord
   ===================================================================== */
.mods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
}

.mod {
  padding: 36px 32px;
  border-top: 1px solid var(--basalt3);
  border-right: 1px solid var(--basalt3);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: background var(--dur-base) var(--ease);
  overflow: hidden;
}

.mod:last-child { border-right: none; }

/* Barre lave en haut au hover : detail invisible */
.mod::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--lava);
  transition: right var(--dur-slow) var(--ease);
}

.mod:hover { background: var(--basalt2); }
.mod:hover::before { right: 0; }

.mod-n {
  font: 500 11px var(--font-mono);
  letter-spacing: .14em;
  color: var(--lava2);
  margin-bottom: var(--sp-5);
  display: block;
}

.mod-body { flex: 1; }

.mod h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.mod p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 780px) {
  .mods { grid-template-columns: 1fr; }
  .mod { border-right: none; }
  .mod:first-child { border-top: 1px solid var(--basalt3); }
}

/* =====================================================================
   DEMOS
   ===================================================================== */
.demo-intro {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--basalt3);
}

.demo {
  margin-top: var(--sp-6);
  border: 1px solid var(--basalt3);
  border-radius: 8px;
  background: var(--basalt2);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease);
}
.demo:hover { border-color: rgba(44, 38, 31, .9); }

.demo-bar {
  padding: 10px 18px;
  border-bottom: 1px solid var(--basalt3);
  font: 500 11px var(--font-mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--basalt);
}

.demo-bar-label { flex: 1; }

.demo-badge {
  font: 500 10px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--basalt3);
  padding: 2px 7px;
  border-radius: 2px;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 8px var(--lava);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--lava); }
  50%       { box-shadow: 0 0 16px var(--lava2); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-dot { animation: none; }
}

/* Inbox emails */
.inbox {
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 240px;
}

.mail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 3px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--basalt3);
  border-radius: 5px;
  background: var(--basalt);
  transition:
    transform var(--dur-slow) var(--ease),
    opacity var(--dur-slow) var(--ease),
    border-color var(--dur-base);
}

.mail .from {
  font: 500 11px var(--font-mono);
  color: var(--muted);
  grid-column: 1;
  grid-row: 1;
}

.mail .subj {
  font-size: 14px;
  color: var(--stone);
  grid-column: 2;
  grid-row: 1;
}

.mail .cat {
  font: 500 10px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  grid-column: 3;
  grid-row: 1;
  white-space: nowrap;
}
.mail.sorted .cat { opacity: 1; }

.cat.urgent { color: #ffd0c2; border: 1px solid var(--lava); background: rgba(224, 83, 31, .14); }
.cat.devis  { color: #cfeae0; border: 1px solid var(--lagon); background: rgba(42, 128, 137, .14); }
.cat.info   { color: var(--muted); border: 1px solid var(--basalt3); }

.mail .draft {
  grid-column: 2 / 4;
  grid-row: 2;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), margin-top var(--dur-base);
}
.mail.sorted .draft { max-height: 40px; margin-top: 5px; }

/* Dialogues : appel + assistant */
.call, .chat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.call:empty::before, .chat:empty::before {
  content: "Cliquez sur le bouton pour lancer la démo";
  margin: auto;
  color: var(--faint);
  font: 500 12px var(--font-mono);
  letter-spacing: .04em;
  text-align: center;
}

.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--basalt3);
  animation: bubbleIn .26s var(--ease-out);
}

.bubble .who {
  display: block;
  font: 500 10px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--faint);
}

.bubble.agent, .bubble.bot {
  align-self: flex-start;
  background: var(--basalt);
  border-color: rgba(224, 83, 31, .3);
}
.bubble.agent .who, .bubble.bot .who { color: var(--lava2); }

.bubble.client, .bubble.user {
  align-self: flex-end;
  background: var(--basalt3);
  color: var(--stone);
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Notif reservation */
.notif {
  margin: 0 var(--sp-5) var(--sp-2);
  border: 1px solid rgba(224, 83, 31, .35);
  background: rgba(224, 83, 31, .07);
  border-radius: 8px;
  padding: 16px 18px;
  animation: notifIn .38s var(--ease-out);
}
.notif[hidden] { display: none; }

@keyframes notifIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

.notif-h {
  font: 600 13px var(--font-sans);
  color: var(--lava2);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.notif-h::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 8px var(--lava);
  flex-shrink: 0;
}

.notif-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
}

.notif-fields li { font-size: 14px; color: var(--stone); }

.notif-fields .k {
  display: block;
  font: 500 10px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

@media (max-width: 600px) { .notif-fields { grid-template-columns: 1fr 1fr; } }

/* Actions en bas des demos */
.demo-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--basalt3);
  flex-wrap: wrap;
  background: var(--basalt);
}

.demo-note {
  font: 500 11px var(--font-mono);
  color: var(--lava2);
  flex: 1;
  text-align: right;
}

/* =====================================================================
   METHODE : bande claire (le seul moment de novelty)
   Fond --stone sur tout le reste basalte : contraste de rythme maximal
   ===================================================================== */
.block-light {
  background: var(--stone-bg);
  border-bottom: none;
  border-top: none;
  color: var(--basalt);
}

.block-light .ey { color: var(--lava); }

.block-light .block-h { color: var(--basalt); }

/* Steps en rangee : layout editorial different des mods */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid rgba(20, 17, 14, .15);
  margin-top: clamp(36px, 4vw, 56px);
}

.step {
  padding: 32px 28px 32px 0;
  border-right: 1px solid rgba(20, 17, 14, .12);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step:first-child { padding-left: 0; }
.step:not(:first-child) { padding-left: 28px; }
.step:last-child { border-right: none; }

.s-n {
  font: 700 13px var(--font-mono);
  letter-spacing: .1em;
  color: var(--lava);
  margin-bottom: var(--sp-5);
  display: block;
}

.step-body {}

.step h3 {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--basalt);
  margin-bottom: var(--sp-3);
}

.step p {
  margin: 0;
  font-size: 14px;
  color: rgba(20, 17, 14, .65);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) {
    padding-top: 32px;
    border-top: 1px solid rgba(20, 17, 14, .12);
    padding-left: 0;
  }
  .step:nth-child(4) {
    padding-top: 32px;
    border-top: 1px solid rgba(20, 17, 14, .12);
  }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; padding-left: 0; padding-right: 0; }
  .step:not(:first-child) { border-top: 1px solid rgba(20, 17, 14, .12); padding-left: 0; }
}

/* =====================================================================
   TRAVAILLER AVEC NOUS
   Layout deux colonnes avec col gauche plus etroite
   ===================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.work-left .block-h { max-width: 18ch; }

.work-body p {
  margin: 0 0 var(--sp-5);
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--stone);
  max-width: 54ch;
  line-height: 1.65;
}

.work-body p:first-child { color: var(--stone); }
.work-body p:not(:first-child) { color: #ddd2c2; }

@media (max-width: 780px) {
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-left .block-h { max-width: 22ch; }

.email-line {
  margin-top: var(--sp-7);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--muted);
  font-size: 15px;
}

.email-img { vertical-align: middle; }

.phone-line {
  margin-top: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--muted);
  font-size: 15px;
}

.phone-link {
  color: var(--stone);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast) var(--ease);
}
.phone-link:hover { color: var(--lava2); }

/* Formulaire */
.cform {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--basalt2);
  border: 1px solid var(--basalt3);
  border-radius: 8px;
  padding: 28px;
}

.cform label {
  display: block;
  font: 500 10px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  margin-top: var(--sp-5);
}
.cform label:first-of-type { margin-top: 0; }

.cform input, .cform textarea {
  display: block;
  width: 100%;
  font: 400 15px var(--font-sans);
  color: var(--stone);
  background: var(--basalt);
  border: 1px solid var(--basalt3);
  border-radius: 4px;
  padding: 11px 13px;
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
}

.cform input:focus, .cform textarea:focus {
  border-color: var(--lava);
  box-shadow: 0 0 0 3px rgba(224, 83, 31, .12);
}

.cform input::placeholder, .cform textarea::placeholder { color: var(--faint); }

.cform textarea { resize: vertical; min-height: 100px; }

.cform .btn {
  margin-top: var(--sp-6);
  align-self: flex-start;
}

/* Etats du formulaire */
.cform.is-loading .btn { opacity: .6; pointer-events: none; }
.cform.is-success { border-color: rgba(42, 128, 137, .4); }

.cform-note {
  margin: var(--sp-4) 0 0;
  font: 500 12px var(--font-mono);
  color: var(--lava2);
  line-height: 1.5;
  min-height: 18px;
}

.cform-note.success { color: var(--lagon); }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-ftr {
  background: var(--basalt2);
  border-top: 1px solid var(--basalt3);
  padding-block: clamp(32px, 4vw, 48px);
}

.ftr-in {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: var(--sp-5) clamp(32px, 4vw, 56px);
  align-items: start;
}

.ftr-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  grid-column: 1;
  grid-row: 1;
}
.ftr-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.ftr-tagline {
  font: 500 11px var(--font-mono);
  letter-spacing: .08em;
  color: var(--faint);
  line-height: 1.4;
}

.ftr-social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

.ftr-social-label {
  font: 500 11px var(--font-mono);
  letter-spacing: .06em;
  color: var(--muted);
}

.ftr-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--basalt3);
  border-radius: 10px;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.ftr-social-link svg { display: block; }
.ftr-social-link:hover {
  color: var(--lava);
  border-color: var(--lava);
  background: rgba(224, 83, 31, .08);
  transform: translateY(-1px);
}
.ftr-social-link:focus-visible {
  outline: 2px solid var(--lava);
  outline-offset: 2px;
}

.ftr-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  grid-column: 2;
  grid-row: 1;
}

.ftr-nav a {
  font: 500 11px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}
.ftr-nav a:hover { color: var(--stone); }

.ftr-legal {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  grid-column: 3;
  grid-row: 1;
}

.ftr-legal a {
  font: 400 11px var(--font-mono);
  letter-spacing: .04em;
  color: var(--faint);
  transition: color var(--dur-fast) var(--ease);
}
.ftr-legal a:hover { color: var(--muted); }

.ftr-bottom {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--basalt3);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.ftr-meta {
  font: 500 11px var(--font-mono);
  letter-spacing: .06em;
  color: var(--faint);
}

.ftr-copy {
  font: 400 11px var(--font-mono);
  color: var(--faint);
  opacity: .7;
}

@media (max-width: 680px) {
  .ftr-in {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .ftr-brand { grid-column: 1 / -1; grid-row: 1; }
  .ftr-nav   { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
  .ftr-legal { grid-column: 2; grid-row: 2; }
  .ftr-bottom { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 400px) {
  .ftr-in { grid-template-columns: 1fr; }
  .ftr-nav   { grid-column: 1; grid-row: 2; }
  .ftr-legal { grid-column: 1; grid-row: 3; flex-direction: row; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
  .ftr-bottom { grid-row: 4; }
}

/* =====================================================================
   BOUTON REMONTER EN HAUT
   ===================================================================== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lava);
  color: #1a1410;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    background var(--dur-fast) var(--ease),
    visibility 0s var(--dur-base);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    background var(--dur-fast) var(--ease),
    visibility 0s;
}

.to-top:hover { background: var(--lava2); }

/* =====================================================================
   HERO : etincelle cuivre reactive au curseur (hero-fx.js)
   MODE OVERLAY : la photo hero-basalte.webp reste le FOND (z-index -2).
   Le canvas est AU-DESSUS (z-index -1) en mix-blend-mode:screen : il
   n'ajoute que la lumiere du spark cuivre, le reste (noir) laisse passer
   la photo. display:none par defaut => si WebGL2 absent ou reduced-motion,
   la photo reste seule (etat nominal, zero regression).
   ===================================================================== */
.hero { isolation: isolate; }    /* confine le blend du canvas au hero */
.hero > #hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;                   /* AU-DESSUS de la photo (-2), sous le contenu */
  display: none;                 /* active par JS seulement si WebGL2 OK */
  pointer-events: none;
  mix-blend-mode: screen;        /* l'etincelle cuivre s'ajoute en lumiere sur la photo */
}
@media (prefers-reduced-motion: reduce) {
  .hero > #hero-fx { display: none !important; }
}

/* =====================================================================
   SCHEMA SPARKAN : anatomie (definition + radial + corvees)
   Choregraphie declenchee au scroll via .reveal.in (observer existant)
   ===================================================================== */
.sk-fig {
  margin: 0 auto;
  max-width: 720px;
  background: linear-gradient(180deg, var(--basalt2) 0%, var(--basalt) 100%);
  border: 1px solid var(--basalt3);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
}

.sk-def {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.sk-def-term {
  display: block;
  font: 600 12px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lava2);
  margin-bottom: var(--sp-2);
}

/* ---- anatomie radial ---- */
.sk-radial {
  position: relative;
  height: 300px;
  margin: clamp(20px, 4vw, 32px) 0 var(--sp-2);
}
.sk-core {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: 150px; height: 82px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--lava2) 0%, var(--lava) 58%, #b63d14 100%);
  color: #fff;
  border: 1px solid var(--lava2);
  border-radius: 14px;
  font: 800 22px var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sk-attr {
  position: absolute;
  width: 44%;
  z-index: 1;
  background: var(--basalt2);
  border: 1px solid var(--basalt3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--stone2);
  transition: border-color var(--dur-base) var(--ease);
}
.sk-attr b { color: var(--lava2); font-weight: 700; }
.sk-attr small {
  display: block;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 3px;
}
.sk-attr:hover { border-color: var(--muted); }
.sk-tl { left: 0;  top: 4px; }
.sk-tr { right: 0; top: 4px; }
.sk-bl { left: 0;  bottom: 4px; }
.sk-br { right: 0; bottom: 4px; }

/* ---- corvees qu'il vous enleve ---- */
.sk-chores {
  margin-top: var(--sp-2);
  border-top: 1px dashed var(--basalt3);
  padding-top: var(--sp-5);
}
.sk-chores-lab {
  display: block;
  text-align: center;
  font: 500 11px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lava2);
  margin-bottom: var(--sp-4);
}
.sk-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.sk-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--basalt2);
  border: 1px solid var(--basalt3);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--stone2);
}
.sk-minus { color: var(--lava2); font-weight: 700; font-size: 16px; line-height: 1; }

/* ---- choregraphie : etat initial cache, joue quand .in present ---- */
.sk-core, .sk-attr, .sk-chores-lab, .sk-list li { opacity: 0; }

.sk-fig.in .sk-core {
  animation: skCorePop .55s var(--ease) .15s forwards,
             skBreathe 3.6s ease-in-out 1.1s infinite;
}
.sk-fig.in .sk-tl { animation: skInTL .55s var(--ease) .5s forwards; }
.sk-fig.in .sk-tr { animation: skInTR .55s var(--ease) .8s forwards; }
.sk-fig.in .sk-bl { animation: skInBL .55s var(--ease) 1.1s forwards; }
.sk-fig.in .sk-br {
  animation: skInBR .55s var(--ease) 1.4s forwards,
             skGate 2.4s ease-in-out 2.2s infinite;
}
.sk-fig.in .sk-chores-lab { animation: skFade .5s var(--ease) 1.7s forwards; }
.sk-fig.in .sk-list li { animation: skUp .5s var(--ease) forwards; }
.sk-fig.in .sk-list li:nth-child(1) { animation-delay: 1.85s; }
.sk-fig.in .sk-list li:nth-child(2) { animation-delay: 2.0s; }
.sk-fig.in .sk-list li:nth-child(3) { animation-delay: 2.15s; }
.sk-fig.in .sk-list li:nth-child(4) { animation-delay: 2.3s; }

@keyframes skFade { to { opacity: 1; } }
@keyframes skCorePop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.62); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes skBreathe {
  0%, 100% { box-shadow: 0 0 0 5px rgba(224, 83, 31, .10), 0 0 18px 0 rgba(255, 106, 51, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(224, 83, 31, .16), 0 0 28px 3px rgba(255, 106, 51, .32); }
}
@keyframes skInTL { from { opacity: 0; transform: translate(26px, 20px); }   to { opacity: 1; transform: translate(0, 0); } }
@keyframes skInTR { from { opacity: 0; transform: translate(-26px, 20px); }  to { opacity: 1; transform: translate(0, 0); } }
@keyframes skInBL { from { opacity: 0; transform: translate(26px, -20px); }  to { opacity: 1; transform: translate(0, 0); } }
@keyframes skInBR { from { opacity: 0; transform: translate(-26px, -20px); } to { opacity: 1; transform: translate(0, 0); } }
@keyframes skUp   { from { opacity: 0; transform: translateY(10px); }         to { opacity: 1; transform: translateY(0); } }
@keyframes skGate {
  0%, 100% { border-color: var(--basalt3); box-shadow: none; }
  50%      { border-color: var(--lava2); box-shadow: 0 0 16px rgba(224, 83, 31, .30); }
}

/* ---- responsive : reempilement en colonne ---- */
@media (max-width: 640px) {
  .sk-radial {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin: var(--sp-5) 0 var(--sp-2);
  }
  .sk-core {
    position: static;
    transform: scale(.7);
    width: 100%;
    max-width: 220px;
    height: 64px;
    margin: 0 auto var(--sp-1);
  }
  .sk-attr { position: static; width: 100%; }
  .sk-fig.in .sk-core {
    animation: skCorePopM .55s var(--ease) .15s forwards,
               skBreathe 3.6s ease-in-out 1.1s infinite;
  }
  .sk-fig.in .sk-tl { animation: skUp .5s var(--ease) .5s forwards; }
  .sk-fig.in .sk-tr { animation: skUp .5s var(--ease) .75s forwards; }
  .sk-fig.in .sk-bl { animation: skUp .5s var(--ease) 1.0s forwards; }
  .sk-fig.in .sk-br {
    animation: skUp .5s var(--ease) 1.25s forwards,
               skGate 2.4s ease-in-out 2.1s infinite;
  }
  .sk-list { grid-template-columns: 1fr; }
}
@keyframes skCorePopM { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

/* ---- mouvement reduit : tout visible, zero animation ---- */
@media (prefers-reduced-motion: reduce) {
  .sk-core, .sk-attr, .sk-chores-lab, .sk-list li { opacity: 1 !important; animation: none !important; }
  .sk-core { transform: translate(-50%, -50%) !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .sk-core { transform: none !important; }
}

/* =====================================================================
   REFERENCES (Ils nous ont fait confiance) : cartes projets cliquables
   ===================================================================== */
.refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.ref {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--basalt2);
  border: 1px solid var(--basalt3);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease);
}

/* Barre lave en haut au hover : meme langage que .mod */
.ref::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--lava);
  transition: right var(--dur-slow) var(--ease);
}

.ref:hover {
  transform: translateY(-4px);
  border-color: var(--basalt3);
  background: #241e18;
}
.ref:hover::before { right: 0; }

.ref-meta {
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--sp-3);
}

.ref-name {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}

.ref-desc {
  flex: 1;
  margin: 0 0 var(--sp-5);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 13px var(--font-mono);
  letter-spacing: .04em;
  color: var(--lava2);
}
.ref-link svg { transition: transform var(--dur-base) var(--ease); }
.ref:hover .ref-link svg { transform: translateX(4px); }

@media (max-width: 780px) {
  .refs { grid-template-columns: 1fr; }
}
