/* Bois & Givre — deux matières côte à côte : le bois chaud (bouleau, brûlure) et le verre froid (givre, ardoise). */
/* Polices hébergées sur le site (aucun appel à Google Fonts), sous-ensemble latin, licence SIL OFL. */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/young-serif-latin.woff2") format("woff2");
}
:root {
  --frost: #eef3f5;
  --frost-deep: #d6e4ea;
  --paper: #fbfcfc;
  --ink: #1c2830;
  --muted: #56646c;
  --line: #cfdbe0;
  --birch: #e6cfa4;
  --birch-deep: #d9bb87;
  --burn: #3d2412;
  --slate: #2c5566;
  --slate-ink: #ffffff;
  --glass: #9db8c2;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frost: #121b20; --frost-deep: #1a262d; --paper: #172228; --ink: #e6eef1;
    --muted: #9fb0b8; --line: #2b3a42; --slate: #8cc2d4; --slate-ink: #10191e;
    --glass: #3f5b66; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --frost: #121b20; --frost-deep: #1a262d; --paper: #172228; --ink: #e6eef1;
  --muted: #9fb0b8; --line: #2b3a42; --slate: #8cc2d4; --slate-ink: #10191e;
  --glass: #3f5b66; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--frost); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--slate); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--slate); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--frost) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--frost); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.35rem; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--slate); }
.nav .cta-link { font-weight: 600; color: var(--slate); }

/* Accueil : le bois à gauche, le verre à droite */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-block: 14px 18px; }
.hero h1 em { font-style: normal; color: var(--slate); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: var(--radius); font: 600 1rem var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid var(--slate); }
.btn-primary { background: var(--slate); color: var(--slate-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { background: var(--frost-deep); }

.diptych { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; aspect-ratio: 5 / 4; max-width: 100%; }
.panel { border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; position: relative; }
.panel span { position: absolute; left: 12px; bottom: 10px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.wood {
  background:
    repeating-linear-gradient(94deg, transparent 0 16px, rgba(61,36,18,.05) 16px 17px, transparent 17px 37px),
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,.25), transparent 60%),
    var(--birch);
}
.wood span { color: var(--burn); }
.glass { background: linear-gradient(150deg, var(--glass), color-mix(in srgb, var(--glass) 55%, #ffffff)); }
.glass span { color: #ffffff; }
.panel > img, .thumb > img, .thumb > .coasters {
  position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain;
}
.diptych .glass > img { inset: 5% 8% 13%; width: 84%; height: 82%; }

/* Sections */
section { padding-block: 72px; }
.section-head { display: grid; gap: 10px; max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--muted); margin: 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }

/* Créations */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.item { display: grid; gap: 12px; min-width: 0; }
.item .thumb { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; position: relative; }
.item .thumb.tall > img { inset: 4%; width: 92%; height: 92%; }
.item h3 { font-size: 1.3rem; }
.item p { margin: 0; color: var(--muted); font-size: .97rem; }
.item .price { font-weight: 600; color: var(--ink); font-size: .95rem; }
.thumb > .coasters { display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 6%; }
.coasters img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.plaque-thumb svg { width: 86%; height: auto; }
.plaque-thumb svg * { stroke: var(--burn); }
.plaque-thumb svg text { fill: var(--burn); stroke: none; }
.note-photos { margin-top: 26px; font-size: .92rem; color: var(--muted); }

/* Sur mesure */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.4rem; color: var(--slate); border: 1.5px solid var(--slate); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.builder { background: var(--frost); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.builder .wood { padding: 28px; }
.builder .wood svg { width: 100%; height: auto; }
.builder .wood svg * { stroke: var(--burn); }
.builder .wood svg text { fill: var(--burn); stroke: none; }
.builder form { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; padding: 18px; }
.builder .hint { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--muted); }

label { display: grid; gap: 5px; font-size: .88rem; color: var(--muted); }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-width: 0; width: 100%; }
textarea { min-height: 130px; resize: vertical; }

/* Atelier */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); margin: 0 0 14px; max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--paper); padding: 20px; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-info p { color: var(--muted); }
.email { font-family: var(--display); font-size: 1.35rem; color: var(--ink); user-select: all; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form .full { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--slate); min-height: 1.4em; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Pages légales */
.legal { max-width: 72ch; padding-block: 56px 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-block: 10px 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero, .custom, .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-block: 40px 56px; }
}
@media (max-width: 600px) {
  .nav a:not(.cta-link) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .quote-form, .builder form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  section { padding-block: 56px; }
}
