/* The Kligraph — site vitrine. Palette tirée du logo et des encres : noir d'encre, papier, magenta, or, bleu d'encre. */
:root {
  --paper: #fbf8f6;
  --ink: #141114;
  --ink-soft: #5c535a;
  --mist: #f1e9ec;
  --line: #e3d6dc;
  --magenta: #c8217a;
  --magenta-deep: #7d1a4f;
  --gold: #b8933e;
  --blue: #5fa8d3;
  --panel: #ffffff;
  --radius: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141114;
    --ink: #f4eef1;
    --ink-soft: #b9adb4;
    --mist: #211b1f;
    --line: #35292f;
    --magenta: #f06aaf;
    --magenta-deep: #ffb5d6;
    --gold: #d9b45c;
    --blue: #8fc8ea;
    --panel: #1b1619;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .4em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* En-tête sur fond d'encre, comme le logo */
.top { background: #000; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; }
.brand img { display: block; height: 44px; width: auto; }
.top nav { display: flex; gap: 20px; align-items: center; font-size: .95rem; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; color: #d9cdd3; }
.top nav a:hover { color: #fff; }
.lang { border: 1px solid #4a3f45; border-radius: 999px; padding: .3em .85em; }
@media (max-width: 700px) { .top nav a:not(.lang) { display: none; } }

/* Héros : une œuvre à l'encre pleine largeur et la promesse */
.hero { position: relative; background: #000; color: #fff; overflow: hidden; }
.hero .art { position: absolute; inset: 0; background: url("/img/calame-voies-amour.webp") center 40% / cover no-repeat; opacity: .55; }
.hero .wrap { position: relative; padding: 72px 20px 64px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 96px 20px 88px; } }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 500; font-style: italic; max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero .lead { font-size: 1.2rem; color: #efe6ea; max-width: 44ch; margin: 1em 0 1.4em; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: .8em 1.35em; border-radius: 999px; font-weight: 500; text-decoration: none; border: 2px solid var(--magenta); }
.cta.primary { background: var(--magenta); color: #fff; }
.cta.primary:hover { background: #a8186a; border-color: #a8186a; }
.cta.ghost { color: #fff; border-color: #fff; }
.cta.ghost:hover { background: rgba(255,255,255,.12); }
main .cta.ghost { color: var(--ink); border-color: var(--ink); }
main .cta.ghost:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero figure { margin: 0; justify-self: center; width: min(100%, 420px); }
.hero figure img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6); transform: rotate(-2deg); }
.hero figcaption { color: #d9cdd3; font-size: .95rem; margin-top: 12px; text-align: center; }

/* Bandeau de faits */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { border-left: 3px solid var(--magenta); padding-left: 14px; }
.facts strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.facts small { color: var(--ink-soft); font-size: .95rem; }

section { padding: 60px 0 10px; }
.split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: .9fr 1.4fr; gap: 48px; } }
.split h2 { max-width: 14ch; }
.intro p { font-size: 1.1rem; }

/* Galerie : les œuvres, grandes, avec une légende qui dit ce qui est écrit */
.gallery { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .gallery.three { grid-template-columns: 1fr 1fr 1fr; } }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption { padding: 12px 14px 14px; font-size: .98rem; }
.gallery figcaption strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600; }
.gallery figcaption .ar { font-size: 1.15rem; direction: rtl; display: block; color: var(--magenta-deep); margin: 2px 0; }
.gallery figcaption span { color: var(--ink-soft); }

/* Étapes : vrai enchaînement, donc numérotées */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--magenta); color: #fff; display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 700; }
.steps strong { display: block; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why { grid-template-columns: 1fr 1fr; } }
.why li { border-top: 1px solid var(--line); padding-top: 12px; }
.why strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 600; }
.why p { margin: 0; color: var(--ink-soft); }

/* Boutique */
.shop { background: #000; color: #fff; border-radius: 12px; padding: 36px 28px; margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .shop { grid-template-columns: 1fr 1fr; } }
.shop h2 { color: #fff; }
.shop p { color: #d9cdd3; }
.shop img { display: block; width: 100%; height: auto; border-radius: 8px; }
.shop .price { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--gold); }

.final { padding: 64px 0 24px; }
.final h2 { font-size: clamp(2rem, 5vw, 3rem); max-width: 20ch; }
.final p { color: var(--ink-soft); font-size: 1.1rem; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 48px; color: var(--ink-soft); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer a { color: var(--ink); }
