/* Atelier Teisseire — plâtre, encre, terre cuite. Lecture éditoriale, légendes en cartouche de plan. */
:root {
  --bg: #f4f0e8; --panel: #fbf9f4; --line: #d8d0c2;
  --fg: #1d1b18; --muted: #6a6359; --accent: #b4532a; --accent-ink: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110f; --panel: #1b1a17; --line: #2f2c27;
    --fg: #efe8dc; --muted: #a59d90; --accent: #e07a4b; --accent-ink: #12110f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110f; --panel: #1b1a17; --line: #2f2c27;
  --fg: #efe8dc; --muted: #a59d90; --accent: #e07a4b; --accent-ink: #12110f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 400; }
h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 400; }
h3 { font-size: 24px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 9vw, 104px); }
.band + .band { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; }
.brand small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--fg); }

/* Ouverture */
.hero { padding-block: clamp(40px, 7vw, 80px) 0; }
.hero-head { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr; align-items: end; }
.hero-head > * { min-width: 0; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-figure { margin: clamp(32px, 5vw, 56px) 0 0; }
.hero-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }

/* Cartouche (légende façon plan d'architecte) */
.cartouche { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cartouche span { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); }
.cartouche span:last-child { border: 0; }

/* Savoir-faire */
.services { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--fg); }
.service { padding: 24px 24px 8px 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.service + .service { padding-left: 24px; border-left: 1px solid var(--line); }
.service .num { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.service p { color: var(--muted); font-size: 16px; }

/* Galerie */
.gallery { display: grid; gap: 28px 24px; grid-template-columns: repeat(12, 1fr); margin-top: 40px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--panel); }
.g-wide { grid-column: span 7; }
.g-narrow { grid-column: span 5; }
.g-narrow img { height: 100%; }
.gallery figure.g-narrow { display: flex; flex-direction: column; }
.gallery figure.g-narrow img { flex: 1; aspect-ratio: auto; min-height: 0; }

/* Set Walk */
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-head img { width: 64px; height: 64px; border-radius: 15px; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1.25fr; align-items: center; margin-top: 8px; }
.split > * { min-width: 0; }
.split .text { display: flex; flex-direction: column; gap: 18px; }
.split ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.split li { padding-left: 22px; position: relative; color: var(--muted); }
.split li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--accent); }
.split li strong { color: var(--fg); font-weight: 600; }
.shot { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.shots figure { margin: 0; min-width: 0; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Méthode */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); margin-top: 40px; counter-reset: etape; }
.step { min-width: 0; padding-top: 18px; border-top: 1px solid var(--fg); }
.step::before { counter-increment: etape; content: "0" counter(etape); display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: end; }
.contact > * { min-width: 0; }
.mail { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 36px); text-decoration: none; border-bottom: 1px solid var(--accent); overflow-wrap: anywhere; }
.mail:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--fg); background: transparent; color: var(--fg); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Pages de texte */
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 26px; margin-top: 22px; }
.prose a { color: var(--accent); }
.todo { background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 1px 6px; border-radius: 4px; }

@media (max-width: 860px) {
  .hero-head, .split, .contact { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service + .service { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .g-wide, .g-narrow { grid-column: span 12; }
  .gallery figure.g-narrow img { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .hero-figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .topbar { position: static; } nav { gap: 4px 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
