:root {
  --bg: #14112b;
  --bg-2: #1b1738;
  --surface: #221d44;
  --surface-2: #2b2552;
  --line: #3a335f;
  --text: #eeebf8;
  --muted: #a7a1c8;
  --laser: #ff4b3e;
  --laser-soft: #ff8a6b;
  --glow: rgba(255, 75, 62, .35);
  --ok: #5fd39a;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans);
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(255, 75, 62, .10), transparent 60%),
                    radial-gradient(700px 500px at -10% 30%, rgba(120, 100, 255, .08), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--laser-soft); }
button { font: inherit; color: inherit; }
::selection { background: var(--laser); color: #fff; }
:focus-visible { outline: 2px solid var(--laser-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(20, 17, 43, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 51, 95, .6);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand img { image-rendering: pixelated; border-radius: 6px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; padding: 4px 10px; border-radius: 999px; font: 600 12px var(--mono); color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--laser); color: #fff; }
@media (max-width: 760px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- Mise en page ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-title {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.02em;
}
.section-title::before { content: "▍"; color: var(--laser); margin-right: 6px; }
.hint { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.fine { color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn.primary { background: var(--laser); border-color: var(--laser); color: #fff; box-shadow: 0 6px 24px var(--glow); }
.btn.primary:hover { background: #ff5f50; }
.btn.ghost { background: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px);
  align-items: center; padding-top: clamp(32px, 7vw, 80px);
}
.hero-portrait { position: relative; }
.hero-portrait img {
  width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 120px rgba(255, 75, 62, .12);
}
.kicker { font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--laser-soft); margin: 0 0 12px; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: .92; margin: 0 0 20px; letter-spacing: -.045em; }
.tagline { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero-portrait { max-width: 260px; }
}

.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; }
.socials a:hover { color: var(--text); border-color: var(--line); background: var(--surface); }
.socials svg, .follow svg { width: 16px; height: 16px; }

/* ---------- Bio ---------- */
.bio-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.bio-text p { margin: 0 0 16px; font-size: 18px; }
.bio-text p:first-child { font-size: 22px; font-weight: 600; }
.skills { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.skills h3 { margin: 0 0 14px; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--laser-soft); }
.skills ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.skills li { display: grid; gap: 2px; }
.skills b { font-size: 15px; }
.skills span { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .bio-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- X ---------- */
.follow { padding: 8px 14px; font-size: 14px; margin-bottom: 20px; }
#x .hint { margin-top: -6px; }
.x-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.x-grid:has(.tweet-slot[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .x-grid { grid-template-columns: minmax(0, 1fr); } }
.tweet { padding: 18px 20px; }
.tweet header { display: flex; align-items: center; gap: 12px; }
.tweet header img { width: 44px; height: 44px; border-radius: 50%; image-rendering: pixelated; border: 1px solid var(--line); }
.tweet header div { display: grid; line-height: 1.3; }
.tweet header span { color: var(--muted); font-size: 14px; }
.tweet-x { margin-left: auto; color: var(--muted); }
.tweet-x:hover { color: var(--text); }
.tweet-x svg { width: 20px; height: 20px; display: block; }
.tweet-text { font-size: 18px; line-height: 1.5; margin: 14px 0; overflow-wrap: anywhere; }
.tweet-text a { text-decoration: none; }
.tweet-text a:hover { text-decoration: underline; }
.tweet-media { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; }
.tweet-media.n2, .tweet-media.n3, .tweet-media.n4 { grid-template-columns: 1fr 1fr; }
.tweet-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.tweet footer { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.tweet footer a { margin-left: auto; text-decoration: none; }
.scam { padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(247, 162, 59, .45); background: rgba(247, 162, 59, .07); }
.scam h3 { margin: 0 0 8px; font-size: 17px; color: #f7a23b; }
.scam h3::before { content: "⚠ "; }
.scam p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.scam-strong { font-weight: 600; }
.warn a { color: #f7a23b; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* ---------- Parcours (frise) ---------- */
.timeline { position: relative; }
.ruler { margin: 4px 0 22px; user-select: none; }
.ruler-track { position: relative; height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.ruler-cursor { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: linear-gradient(90deg, var(--laser), var(--laser-soft)); border-radius: 999px; box-shadow: 0 0 14px var(--glow); transition: left .12s linear, width .12s linear; }
.ruler-years { position: relative; height: 28px; margin-top: 6px; }
.ruler-years button {
  position: absolute; transform: translateX(-50%); background: none; border: 0; padding: 4px 2px;
  font: 12px var(--mono); color: var(--muted); cursor: pointer; pointer-events: auto;
}
.ruler-years button:first-child { transform: none; }
.ruler-years button:last-child { transform: translateX(-100%); }
.ruler-years button:hover, .ruler-years button.on { color: var(--text); }
.ruler { pointer-events: none; }
.ruler-years { pointer-events: auto; }

.track-wrap { position: relative; margin: 0 calc(var(--gutter) * -1); }
.track {
  list-style: none; margin: 0; padding: 8px var(--gutter) 24px;
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track.dragging * { user-select: none; }
.track-wrap::before, .track-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--gutter); z-index: 1; pointer-events: none;
}
.track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.track-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.exp {
  flex: 0 0 min(340px, 82vw); scroll-snap-align: start; position: relative;
  padding: 26px 22px 22px; padding-top: 40px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s, opacity .2s; opacity: .62;
}
.exp.on { opacity: 1; border-color: rgba(255, 75, 62, .6); transform: translateY(-2px); }
.exp::before { /* liaison entre les cartes */
  content: ""; position: absolute; top: 20px; left: -19px; width: 19px; height: 2px; background: var(--line);
}
.exp:first-child::before { display: none; }
.exp .node { position: absolute; top: 14px; left: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.exp.on .node { border-color: var(--laser); background: var(--laser); box-shadow: 0 0 12px var(--glow); }
.exp .when { position: absolute; top: 10px; left: 46px; right: 16px; font: 600 13px var(--mono); color: var(--laser-soft); display: flex; justify-content: space-between; gap: 8px; }
.exp .when small { color: var(--muted); font-weight: 400; }
.exp h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.25; }
.exp .org { font-weight: 600; color: var(--text); }
.exp .org small { color: var(--muted); font-weight: 400; }
.exp p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.exp .now { align-self: flex-start; margin-top: auto; padding-top: 10px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.exp .now::before { content: "● "; }

.arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-60%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(34, 29, 68, .92); font-size: 26px; line-height: 1; cursor: pointer; color: var(--text);
  display: grid; place-items: center; padding-bottom: 4px; transition: opacity .2s, background .15s;
}
.arrow:hover { background: var(--surface-2); }
.arrow:disabled { opacity: 0; pointer-events: none; }
.arrow.prev { left: max(4px, calc(var(--gutter) - 22px)); }
.arrow.next { right: max(4px, calc(var(--gutter) - 22px)); }
@media (hover: none) { .arrow { display: none; } }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dots button.on { width: 22px; background: var(--laser); }

/* ---------- Vidéos ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; margin-bottom: 36px; }
.featured .meta .badge { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--laser-soft); }
.featured .meta h3 { font-size: clamp(22px, 3vw, 30px); margin: 8px 0; line-height: 1.15; }
.featured .meta p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .featured { grid-template-columns: minmax(0, 1fr); } }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; opacity: .9; }
.player button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; padding: 0; }
.player button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--laser) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
  box-shadow: 0 8px 30px var(--glow); transition: transform .2s;
}
.player:hover img { transform: scale(1.03); opacity: 1; }
.player:hover button::after { transform: translate(-50%, -50%) scale(1.08); }
.player .dur { position: absolute; right: 8px; bottom: 8px; font: 600 12px var(--mono); background: rgba(0, 0, 0, .75); padding: 2px 6px; border-radius: 4px; pointer-events: none; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vgroup h3 { font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.vcard h4 { margin: 10px 0 2px; font-size: 16px; line-height: 1.35; }
.vcard p { margin: 0; color: var(--muted); font-size: 14px; }
.vcard.extra { display: none; }
#videos.all .vcard.extra { display: block; }
.more { margin: 28px auto 0; display: flex; }

/* ---------- Blog ---------- */
.lang a { padding: 4px 10px; border-radius: 999px; font: 600 12px var(--mono); color: var(--muted); text-decoration: none; }
.lang a[aria-pressed="true"] { background: var(--laser); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(255, 75, 62, .55); }
.post-card img, .post-cover-ph { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--bg-2); }
.post-cover-ph { display: grid; place-items: center; font-size: 34px; color: var(--laser); background: radial-gradient(circle at 70% 30%, rgba(255, 75, 62, .22), transparent 60%), var(--bg-2); }
.post-card-body { padding: 16px 18px 20px; display: grid; gap: 8px; }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font: 12px var(--mono); }
.badge { font: 700 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--laser-soft); }
.blog-more { margin-top: 26px; display: flex; justify-content: center; }
.blog-page main { padding-bottom: 20px; }
.blog-head { padding-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.chips a small { opacity: .7; margin-left: 4px; }
.chips a[aria-current="true"] { background: var(--surface-2); color: var(--text); border-color: var(--laser-soft); }

.post { max-width: 720px; margin: 0 auto; padding-top: clamp(28px, 5vw, 56px); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }
.post-header { margin: 18px 0 28px; display: grid; gap: 14px; }
.post-header h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font: 13px var(--mono); color: var(--muted); }
.translation { justify-self: start; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.post-cover { margin: 0 0 28px; }
.post-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 26px; line-height: 1.25; margin: 1.9em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose a { color: var(--laser-soft); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin: .35em 0; }
.prose li p { margin: 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--laser); color: var(--text); font-size: 20px; font-style: italic; }
.prose blockquote p { margin: .4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::after { content: "· · ·"; color: var(--muted); letter-spacing: .6em; }
.prose code { font: .9em var(--mono); background: var(--surface); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose strong { color: #fff; }
.original { margin: 2.4em 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.35; }
.post-nav a small { color: var(--muted); font-weight: 400; }
.post-nav a.next { text-align: right; }
.post-nav a:hover { border-color: var(--laser-soft); }
@media (max-width: 560px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav a.next { text-align: left; } .prose { font-size: 17px; } }

/* ---------- Call ---------- */
.call-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .call-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.price { font-size: 18px; margin: 18px 0; }
.price strong { font: 700 26px var(--mono); color: #f7a23b; margin-right: 6px; }
.steps { padding-left: 1.2em; color: var(--muted); margin: 0; }
.steps li { margin: 4px 0; }
.call-box { padding: clamp(18px, 3vw, 28px); min-height: 220px; }
.call-box h3 { margin: 0 0 4px; font-size: 18px; }
.call-box .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.days button {
  flex: 0 0 auto; min-width: 72px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); cursor: pointer; text-align: center; line-height: 1.25;
}
.days button small { display: block; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.days button b { font-size: 18px; }
.days button[aria-pressed="true"] { border-color: var(--laser); background: rgba(255, 75, 62, .12); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.times button { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font: 600 15px var(--mono); }
.times button:hover { border-color: var(--laser-soft); }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); margin-bottom: 16px; }
.chosen b::first-letter { text-transform: uppercase; }
.linkbtn { background: none; border: 0; color: var(--laser-soft); text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; }
.invoice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.invoice .qr { width: 200px; background: #fff; padding: 10px; border-radius: 12px; }
.invoice .qr svg { display: block; width: 100%; height: auto; }
.invoice code { display: block; font: 12px/1.4 var(--mono); color: var(--muted); word-break: break-all; max-height: 3.2em; overflow: hidden; margin: 10px 0; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.waiting::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #f7a23b; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 520px) { .invoice { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.done h3 { color: var(--ok); font-size: 22px; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; }
.done dt { color: var(--muted); }
.done dd { margin: 0; word-break: break-all; }

/* ---------- Formulaires ---------- */
.form { padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--laser-soft); box-shadow: 0 0 0 3px rgba(255, 138, 107, .18); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--laser-soft); }

/* ---------- Pied de page ---------- */
.footer {
  max-width: var(--max); margin: clamp(64px, 10vw, 120px) auto 0; padding: 24px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
