/* hom — le site public (gethom.app) : la découverte, l'installation et les invitations.
   Identité : anthracite chaud, crème, ambre en accent ponctuel ; le toit du symbole répété en rangs espacés,
   et un soleil qui s'allume sous un toit quand quelqu'un est chez soi. Trait constant, bouts arrondis. */

:root {
  --ink: #1f1d1a;
  --ink-2: #2a2620;
  --ink-3: #35302a;
  --cream: #f4efe6;
  --cream-2: #fbf8f2;
  --cream-3: #e9e2d5;
  --amber: #d9984a;
  --sage: #7fa98b;
  --mute-on-dark: #a39c8f;
  --mute-on-light: #6e675c;
  --round: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 26px;
  --nav-h: 68px;
  color-scheme: light dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--ink);
  color: var(--cream);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* --- Tons de section : on alterne la nuit (anthracite) et le jour (crème) --- */
.tone-dark { background: var(--ink); color: var(--cream); --muted: var(--mute-on-dark); --line: rgba(244, 239, 230, 0.12); --surface: var(--ink-2); --stroke: rgba(244, 239, 230, 0.16); }
.tone-light { background: var(--cream); color: var(--ink); --muted: var(--mute-on-light); --line: rgba(31, 29, 26, 0.12); --surface: var(--cream-2); --stroke: rgba(31, 29, 26, 0.13); }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

h1, h2, h3, .display { font-family: var(--round); letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(44px, 8.4vw, 104px); font-weight: 700; }
h2 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber);
}
.kicker svg { width: 26px; height: 14px; }
/* Sur la crème, l'ambre seul manque de contraste pour un petit texte : on le fonce. */
.tone-light .kicker { color: #9a5f1c; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 46ch; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 650 17px/1 var(--text); text-decoration: none; white-space: nowrap;
  background: var(--cream); color: var(--ink);
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.2s;
}
.tone-light .btn { background: var(--ink); color: var(--cream); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--stroke); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* --- Navigation --- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--cream);
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.nav.scrolled { background: rgba(31, 29, 26, 0.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 rgba(244, 239, 230, 0.08); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.nav-home { display: flex; align-items: center; text-decoration: none; }
.lockup { height: 34px; width: auto; }
.lockup .word { stroke: currentColor; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 550; color: var(--mute-on-dark); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.current { color: var(--cream); background: rgba(244, 239, 230, 0.08); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; background: var(--cream); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav .btn.nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 22px;
    background: rgba(31, 29, 26, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s;
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: rgba(31, 29, 26, 0.97); }
  .nav-links a { padding: 14px 12px; font-size: 18px; }
}

/* --- Le dessin Laine : rangs de toits en HTML (un par ligne), soleils sous un toit --- */
.laine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.laine-row {
  position: absolute; left: calc(var(--step) * -2); right: calc(var(--step) * -2); height: var(--row-h);
  background: var(--tile) var(--shift) 0 / var(--step) var(--row-h) repeat-x;
}
.laine-sun {
  position: absolute; left: calc(var(--x) - var(--sun-w) / 2); top: calc(var(--sun-y) - var(--sun-h));
  width: var(--sun-w); height: var(--sun-h); border-radius: var(--sun-h) var(--sun-h) 0 0;
  background: var(--amber); box-shadow: 0 0 var(--glow) calc(var(--glow) / 4) rgba(217, 152, 74, 0.4);
  opacity: var(--rest);
}

/* --- Accueil --- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero .laine {
  z-index: -1;
  /* Le motif reste à droite : jamais derrière le titre ni le texte. */
  -webkit-mask-image: linear-gradient(to right, transparent 38%, #000 82%), linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 38%, #000 82%), linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-composite: intersect;
}
.hero-inner { padding: calc(var(--nav-h) + 60px) 0 120px; display: grid; gap: 34px; }
.hero h1 { max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-mark { width: clamp(84px, 11vw, 120px); height: auto; }
.hero-mark .roof { stroke-dasharray: 1; stroke-dashoffset: 0; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; color: var(--mute-on-dark); font-size: 13px; text-decoration: none;
}
.scroll-cue svg { width: 22px; height: 22px; }

/* --- Sections --- */
.chapter { position: relative; padding: clamp(96px, 14vw, 160px) 0; overflow: hidden; }
.chapter-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.feature-list { list-style: none; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.feature-list .ico svg { width: 22px; height: 22px; }
.feature-list p { color: var(--muted); font-size: 16px; }

/* Séparateur : un petit rang de toits */
.toits { width: 168px; height: auto; color: currentColor; opacity: 0.85; }

/* --- Tablette de démonstration --- */
.device {
  position: relative; border-radius: 34px; padding: 14px; background: #0f0e0c;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}
.screen {
  position: relative; border-radius: 22px; overflow: hidden; background: #171613; color: var(--cream);
  aspect-ratio: 4 / 3; display: grid; grid-template-rows: auto 1fr; isolation: isolate;
  --accent: var(--amber);
}
.screen-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 30% 70%, rgba(255, 196, 120, 0.22), transparent 70%);
  opacity: 0; transition: opacity 0.8s;
}
.screen.warm .screen-glow { opacity: 1; }
.app-hero {
  position: relative; margin: 14px 14px 0; border-radius: 16px; overflow: hidden; min-height: 32%;
  padding: 16px 18px; display: flex; align-items: flex-end; justify-content: space-between;
  background: #1b1916 url('/img/laine-nuit.svg') right center / cover;
}
.app-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 60%); }
.app-hero > * { position: relative; }
.app-hero b { display: block; font: 700 clamp(17px, 2.3vw, 24px)/1.1 var(--round); }
.app-hero small { color: rgba(244, 239, 230, 0.75); font-size: 12px; }
.app-clock { font: 250 clamp(26px, 4vw, 40px)/1 var(--text); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; align-content: start; }
.tile {
  display: grid; gap: 4px; align-content: space-between; text-align: left; min-height: 92px;
  padding: 12px; border-radius: 14px; background: #24211d; box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.06);
  transition: background 0.35s, color 0.35s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tile:active { transform: scale(0.95); }
.tile svg { width: 22px; height: 22px; color: var(--mute-on-dark); transition: color 0.35s; }
.tile b { font-size: 13px; font-weight: 650; line-height: 1.2; }
.tile small { font-size: 11px; color: var(--mute-on-dark); }
.tile.on { background: #f3dfc0; color: #2a2118; }
.tile.on svg { color: #b86f22; }
.tile.on small { color: #6b5338; }
.tile.wide { grid-column: span 2; }
.bar { height: 6px; border-radius: 3px; background: rgba(244, 239, 230, 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v, 40%); background: var(--accent); border-radius: inherit; transition: width 0.6s; }
.tile.on .bar { background: rgba(42, 33, 24, 0.15); }
.try { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.try svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile { min-height: 76px; } .screen { aspect-ratio: auto; } }

/* --- Atelier « Crée ton foyer » --- */
.studio { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; justify-items: center; } .studio form { width: 100%; } }
.studio form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field > span { font-weight: 650; font-size: 15px; }
.field input[type='text'] {
  height: 54px; padding: 0 18px; border-radius: 16px; border: 0; outline: 0;
  background: var(--surface); color: inherit; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 18px;
  transition: box-shadow 0.2s;
}
.field input[type='text']:focus { box-shadow: inset 0 0 0 2px var(--amber); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); transform: scale(1.06); }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.wall {
  position: relative; height: 64px; border-radius: 14px; overflow: hidden; text-align: left;
  padding: 0 10px 7px; display: flex; align-items: flex-end; font-size: 13px; font-weight: 650; color: var(--cream);
  background-color: #171613; box-shadow: inset 0 0 0 1.5px var(--line);
}
.wall span { position: relative; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.wall[aria-pressed='true'] { box-shadow: inset 0 0 0 2.5px var(--amber); }

.phone {
  width: min(340px, 100%); aspect-ratio: 9 / 18.5; border-radius: 48px; padding: 12px; background: #0f0e0c;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
}
.phone .screen { aspect-ratio: auto; height: 100%; border-radius: 37px; grid-template-rows: auto auto 1fr auto; }
.phone-wall { position: absolute; inset: 0; z-index: -1; background-color: #171613; transition: opacity 0.4s; }
.phone-top { display: flex; justify-content: space-between; padding: 16px 26px 0; font-size: 12px; font-weight: 650; }
.phone-hello { padding: 34px 22px 18px; display: grid; gap: 6px; }
.phone-hello small { color: var(--mute-on-dark); font-size: 13px; }
.phone-hello b { font: 700 30px/1.05 var(--round); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.phone-hello .foyer { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--accent); font-weight: 650; transition: color 0.3s; }
.phone-hello .foyer svg { width: 22px; height: 22px; }
.phone .tiles { grid-template-columns: 1fr 1fr; padding: 0 16px; gap: 9px; }
.phone .tile { min-height: 74px; background: rgba(36, 33, 29, 0.86); backdrop-filter: blur(6px); }
.phone .tile.on { background: color-mix(in srgb, var(--accent) 30%, #f6ead8); }
.phone .tile.on svg { color: color-mix(in srgb, var(--accent) 70%, #000); }
.phone-dock { margin: 14px; padding: 10px 14px; border-radius: 20px; display: flex; justify-content: space-around; background: rgba(15, 14, 12, 0.7); backdrop-filter: blur(8px); }
.phone-dock i { width: 22px; height: 22px; border-radius: 7px; background: rgba(244, 239, 230, 0.18); }
.phone-dock i:first-child { background: var(--accent); transition: background 0.3s; }

/* --- Écrans reliés --- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .screens { grid-template-columns: 1fr; } }
.card {
  border-radius: var(--radius); padding: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 14px; align-content: start;
}
.card p { color: var(--muted); font-size: 16px; }
.pairing { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; }
.pairing .tv {
  width: 78%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--ink-3);
}
.qr { width: 30%; aspect-ratio: 1; border-radius: 6px; background: var(--cream); padding: 6%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.qr i { background: var(--ink); border-radius: 1px; }
.qr i.o { background: transparent; }
.pairing .scan {
  position: absolute; right: 6%; bottom: 0; width: 26%; aspect-ratio: 9 / 18; border-radius: 14px; background: var(--ink);
  box-shadow: 0 0 0 3px var(--ink-3), 0 18px 30px -12px rgba(0, 0, 0, 0.45); display: grid; place-items: center;
  transform: translate(10%, 20%) rotate(8deg);
}
.pairing .scan svg { width: 46%; color: var(--sage); opacity: 0; transform: scale(0.6); }
.pairing .joined {
  position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); opacity: 0; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600;
  display: inline-flex; gap: 8px; align-items: center;
}
.pairing .joined i { width: 14px; height: 7px; border-radius: 7px 7px 0 0; background: var(--amber); }
.devices-row { display: flex; gap: 14px; align-items: flex-end; height: 210px; justify-content: center; }
.devices-row .d { background: var(--ink); border-radius: 12px; box-shadow: 0 0 0 4px var(--ink-3); display: grid; place-items: center; }
.devices-row .d svg { width: 40%; color: var(--amber); }
.big-sun { display: grid; place-items: center; height: 210px; }

/* --- Cercles --- */
.circles { display: grid; gap: 28px; }
.circle-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.circle-tabs button { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.circle-tabs button[aria-selected='true'] { background: var(--cream); color: var(--ink); }
.circle-stage { border-radius: 32px; padding: clamp(24px, 4vw, 44px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 26px; }
.circle-draw { --n: 5; width: 100%; max-width: calc(var(--n) * 130px); margin: 0 auto; }
.circle-svg { display: block; width: 100%; height: auto; color: var(--cream); overflow: visible; }
.circle-names { list-style: none; margin: 10px 0 0; padding: 0 calc(800% / (56 * var(--n) + 16)); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.circle-names li { text-align: center; font-size: clamp(11px, 1.4vw, 15px); font-weight: 600; opacity: 0.7; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-names li.me { opacity: 1; }
.circle-names li[data-new] { color: var(--amber); }
.circle-svg .roof { transition: opacity 0.4s; }
.circle-svg .sun { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 0.9s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.circle-svg .sun.off { opacity: 0; transform: translateY(14px) scale(0.6); }
.circle-svg .slot { stroke: currentColor; stroke-opacity: 0.2; stroke-width: 4; stroke-linejoin: round; }
.circle-svg .new { animation: grow 0.8s cubic-bezier(0.2, 0.9, 0.2, 1.2) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes grow { from { opacity: 0; transform: translateY(20px) scale(0.6); } }
.status { min-height: 1.6em; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.status i { width: 16px; height: 8px; border-radius: 8px 8px 0 0; background: var(--amber); flex: none; }
.invite-row { display: flex; flex-wrap: wrap; gap: 12px; }
.invite-row input {
  flex: 1 1 220px; height: 52px; padding: 0 18px; border-radius: 999px; border: 0; outline: 0;
  background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px;
}
.invite-row input:focus { box-shadow: inset 0 0 0 2px var(--amber); }
.invite-link {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.invite-link code { font: 14px/1.4 var(--mono); color: var(--cream); overflow-wrap: anywhere; flex: 1 1 260px; }
.circle-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .circle-perks { grid-template-columns: 1fr; } }

/* --- Chez toi, vraiment --- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
.promise .card svg { width: 40px; height: 40px; color: var(--amber); }
.link-diagram { width: 100%; max-width: 760px; height: auto; margin: 0 auto 56px; color: var(--ink); }
.link-diagram .wire { stroke-dasharray: 2 14; animation: wire 1.6s linear infinite; }
@keyframes wire { to { stroke-dashoffset: -16; } }

/* --- Partager --- */
.share { text-align: center; display: grid; justify-items: center; gap: 26px; }
.share h2 { max-width: 16ch; }
.share .lead { margin: 0 auto; }
.share .note { font-size: 14px; color: var(--muted); min-height: 1.4em; }
#partager .laine {
  -webkit-mask-image: radial-gradient(60% 70% at 50% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(60% 70% at 50% 100%, #000 10%, transparent 70%);
  z-index: 0;
}
.share > * { position: relative; z-index: 1; }

/* --- Page Installer --- */
.page-head { padding: calc(var(--nav-h) + 70px) 0 56px; position: relative; overflow: hidden; isolation: isolate; }
.page-head .laine { z-index: -1; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 65%); mask-image: linear-gradient(to left, #000 10%, transparent 65%); }
.page-head h1 { font-size: clamp(40px, 7vw, 80px); max-width: 14ch; }
.page-head .lead { margin-top: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
}
.tabs button svg { width: 18px; height: 18px; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--cream); box-shadow: none; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
.panel h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.panel .lead { margin-bottom: 26px; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before {
  content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); font-weight: 700;
}
.tone-dark .steps li::before { background: var(--cream); color: var(--ink); }
.steps li p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.path, kbd { font: inherit; font-weight: 650; }
.command {
  display: flex; align-items: center; gap: 12px; margin: 6px 0; padding: 14px 14px 14px 18px; border-radius: 16px;
  background: var(--ink); color: var(--cream); font: 14px/1.5 var(--mono); overflow-x: auto;
}
.command code { flex: 1; white-space: nowrap; }
.command button { flex: none; padding: 7px 12px; border-radius: 10px; font: 600 13px var(--text); background: rgba(244, 239, 230, 0.12); }
.note { color: var(--muted); font-size: 15px; }
.req { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.req span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* --- Page d'invitation --- */
.invite { padding: calc(var(--nav-h) + 60px) 0 96px; display: grid; gap: 28px; max-width: 680px; position: relative; }
.invite h1 { font-size: clamp(38px, 6vw, 64px); max-width: 16ch; }
.choice { display: grid; gap: 16px; }
.choice .card ol { padding-left: 22px; display: grid; gap: 6px; color: var(--muted); }
.copied { color: var(--muted); font-size: 15px; }
.link-box {
  width: 100%; font: 14px/1.4 var(--mono); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--ink); color: var(--cream); resize: none; overflow-wrap: anywhere;
}

/* --- Pied de page --- */
.footer { padding: 72px 0 48px; border-top: 1px solid rgba(244, 239, 230, 0.08); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .brand { grid-column: 1 / -1; } }
.footer .brand { display: grid; gap: 16px; align-content: start; }
.footer .brand p { color: var(--mute-on-dark); font-size: 15px; max-width: 30ch; }
.footer h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-on-dark); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--cream); opacity: 0.85; font-size: 15px; }
.footer a:hover { opacity: 1; color: var(--amber); }
.fil { height: 40px; overflow: hidden; opacity: 0.4; }
.fil i {
  display: block; height: 100%; width: calc(100% + 33.6px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33.6' height='39.6' viewBox='0 0 56 66'%3E%3Cpath d='M0 38L19 18Q28 8.5 37 18L56 38' stroke='%238a8174' stroke-width='9' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") left center / 33.6px 39.6px repeat-x;
}

/* --- Apparitions au fil de la page, et mouvements --- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
  [data-reveal].seen { opacity: 1; transform: none; }

  .hero-mark .roof { stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards; }
  .hero-mark .sun { opacity: 0; transform: translateY(18px); transform-box: fill-box; animation: rise 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards; }
  .laine-sun.live { animation: veille var(--d) ease-in-out var(--delay) infinite; opacity: 0; }
  .scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }
  .fil i { animation: fil 7s linear infinite; }

  .pairing.play .scan { animation: approach 3.6s cubic-bezier(0.3, 0.7, 0.2, 1) infinite; }
  .pairing.play .scan svg { animation: check 3.6s ease infinite; }
  .pairing.play .joined { animation: joined 3.6s ease infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes veille { 0%, 100% { opacity: 0; } 12%, 46% { opacity: 1; } 62% { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes fil { to { transform: translateX(-33.6px); } }
@keyframes approach { 0% { transform: translate(40%, 40%) rotate(14deg); } 35%, 85% { transform: translate(-60%, -10%) rotate(-4deg); } 100% { transform: translate(40%, 40%) rotate(14deg); } }
@keyframes check { 0%, 40% { opacity: 0; transform: scale(0.6); } 50%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes joined { 0%, 50% { opacity: 0; transform: translate(-50%, 8px); } 58%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
