/* Maurice — site vitrine. Palette « Noir & Blanc doux » de l'app (src/theme/tokens.json). */
:root {
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-muted: #F4F4F4;
  --fg: #0A0A0A; --muted: #707070; --border: #E2E2E2;
  --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --font-heading: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0A0A0A; --surface: #141414; --surface-muted: #1C1C1C; --fg: #FAFAFA; --muted: #9A9A9A; --border: #2A2A2A; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.75rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, 880px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 720px); }
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; filter: brightness(0); }
@media (prefers-color-scheme: dark) { .brand img { filter: brightness(0) invert(1); } }
nav.top-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
nav.top-links a { text-decoration: none; color: var(--muted); }
nav.top-links a:hover { color: var(--fg); }
.hero { padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(2rem, 6vw, 4rem); }
.hero--plain .lead { max-width: 52ch; }
.eyebrow { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }

/* Liste des applications éditées par Gabin */
.apps { display: grid; gap: 1rem; margin-top: 1.25rem; }
.app-card { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.app-card:hover { border-color: var(--fg); transform: translateY(-2px); }
.app-card:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.app-card img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.app-card h3 { margin: 0 0 0.4rem; }
.app-card p { color: var(--muted); margin: 0 0 0.6rem; }
.app-meta { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 480px) { .app-card { flex-direction: column; gap: 1rem; } }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 40ch; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.hero-grid img { width: clamp(120px, 22vw, 200px); height: auto; border-radius: 22%; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
@media (max-width: 640px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid img { order: -1; width: 112px; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 600; text-decoration: none; border: 1px solid var(--fg); }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--ghost { color: var(--fg); background: transparent; }
.btn--disabled { color: var(--muted); border-color: var(--border); cursor: default; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1rem; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.note { background: var(--surface-muted); border-radius: var(--radius-md); padding: 1rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-heading); font-weight: 600; }
.table-wrap { overflow-x: auto; }
ol, ul { padding-left: 1.4rem; } li { margin-bottom: 0.35rem; }
footer.bottom { margin-top: 4rem; padding-block: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
footer.bottom .links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.5rem; }
footer.bottom a { color: var(--muted); }

/* Carrousel de captures — cartes côte à côte, défilement par à-coups */
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shots-head h2 { margin-bottom: 0.25rem; }
.shots-head .meta { margin: 0; }
.shots-nav { display: flex; gap: 0.5rem; padding-bottom: 0.25rem; }
.shots-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color 0.15s, opacity 0.15s; }
.shots-btn:hover:not(:disabled) { border-color: var(--fg); }
.shots-btn:disabled { opacity: 0.35; cursor: default; }
.shots-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 244px; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-block: 1.25rem 0.25rem; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: var(--radius-md); }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.shots figcaption { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); text-align: center; }

.shots-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.shots-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--border); cursor: pointer; transition: background 0.15s, width 0.15s; }
.shots-dot.is-active { background: var(--fg); width: 22px; }
.shots-dot:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Au doigt, on balaie : les flèches ne servent à rien et les pastilles suffisent. */
@media (hover: none) and (pointer: coarse) { .shots-nav { display: none; } }
@media (max-width: 480px) { .shots { grid-auto-columns: min(244px, 68vw); } }
@media (prefers-reduced-motion: reduce) { .shots { scroll-behavior: auto; } }

/* Tableaux : en cartes empilées sur écran étroit */
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
  td { border: 0; padding: 0.25rem 0; }
  td::before { content: attr(data-label); display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
  td:first-child { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; padding-bottom: 0.4rem; }
  td:first-child::before { display: none; }
}
