:root {
  --ink: #111;
  --muted: #707070;
  --line: #e9e9e9;
  --soft: #f4f4f4;
  --bg: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- En-tête ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  position: relative;
}

.logo {
  font-family: "Kaushan Script", "Brush Script MT", cursive;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
  display: inline-block;
}

nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; align-items: center; }
nav li { position: relative; }
nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 8px 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 190px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Structure ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }

.page-title {
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  font-size: 2.6rem;
  margin: 40px 0 6px;
}
.page-intro { color: var(--muted); max-width: 620px; margin: 0 0 40px; }

.hero { margin: 8px 0 56px; }
.hero .ph { aspect-ratio: 16 / 8; }
.hero-text { text-align: center; margin-top: 40px; }
.hero-text h1 {
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  margin: 0;
  transform: rotate(-1.5deg);
}
.hero-text p { color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; margin: 18px 0 28px; }

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 12px 30px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.is-disabled { color: var(--muted); border-color: var(--line); cursor: default; pointer-events: none; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Images (espaces réservés) ---------- */
.ph {
  margin: 0;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5a5a5;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grilles ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.grid .ph { aspect-ratio: 4 / 5; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cat { text-decoration: none; display: block; }
.cat .ph { aspect-ratio: 1 / 1; margin-bottom: 14px; transition: opacity 0.2s; }
.cat:hover .ph { opacity: 0.85; }
.cat h2 { font-family: "Kaushan Script", cursive; font-weight: 400; font-size: 1.7rem; margin: 0; }
.cat span { color: var(--muted); font-size: 0.9rem; }

.product .ph { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.product h3 { font-weight: 400; font-size: 1.05rem; margin: 0; }
.product .meta { color: var(--muted); font-size: 0.88rem; margin: 2px 0 12px; }
.product .price { font-weight: 400; }

/* ---------- Texte & formulaire ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col .ph { aspect-ratio: 4 / 5; }
.prose p { max-width: 560px; }

form { display: grid; gap: 22px; max-width: 640px; }
label { display: grid; gap: 6px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; }
input, select, textarea {
  font: inherit;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  background: transparent;
  border-radius: 0;
  width: 100%;
}
textarea { min-height: 130px; resize: vertical; border: 1px solid var(--ink); padding: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Pied de page ---------- */
footer { border-top: 1px solid var(--line); text-align: center; padding: 34px 24px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }
footer a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 24px 20px; z-index: 20; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sub { position: static; display: flex; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero .ph { aspect-ratio: 4 / 3; }
  .logo { font-size: 1.6rem; }
}

/* ---------- Visionneuse ---------- */
.grid .ph img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(255,255,255,0.96); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Ajustements (v5) : typographie simple, accueil plein écran ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo {
  font-family: inherit;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: none;
}
.page-title, .cat h2 {
  font-family: inherit;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.page-title { font-size: 1.8rem; margin: 40px 0 28px; }
.cat h2 { font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; }
main > .grid:first-of-type, main > .cats:first-of-type { margin-top: 28px; }

main.home { max-width: none; padding: 0; }
main.home .hero { margin: 0; }
main.home .hero .ph { aspect-ratio: auto; height: calc(100svh - 84px); min-height: 380px; }

.prose p:first-child { font-size: 1.35rem; line-height: 1.5; font-weight: 300; max-width: 520px; }
.two-col { align-items: center; }

@media (max-width: 820px) {
  main.home .hero .ph { height: calc(100svh - 76px); }
  .logo { font-size: 0.9rem; }
}
main > .two-col:first-of-type { margin-top: 28px; }

/* ---------- Adresse et carte ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.studio h2 { font-weight: 400; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 6px; }
.studio p { margin: 0 0 18px; font-size: 1.1rem; line-height: 1.5; }
.studio iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1); background: var(--soft); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- En-tête (v8) : nom et menu un peu plus gros, plus serrés vers les bords ---------- */
.site-header { max-width: none; padding: 26px 32px; }
.logo { font-size: 1.25rem; letter-spacing: 0.2em; }
nav ul { gap: 24px; }
nav a { font-size: 0.9rem; letter-spacing: 0.13em; }
@media (max-width: 820px) {
  .site-header { padding: 20px 20px; }
  .logo { font-size: 1rem; }
  nav a { font-size: 0.95rem; }
}

/* ---------- Menu : ne jamais couper les mots, bouton Menu sous 1100 px ---------- */
nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 32px 20px; z-index: 20; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sub { position: static; display: flex; border: 0; padding: 0 0 0 16px; min-width: 0; }
}

/* ---------- Menu un peu plus petit (v14) ---------- */
.logo { font-size: 1.12rem; }
nav ul { gap: 20px; }
nav a { font-size: 0.8rem; letter-spacing: 0.12em; }
@media (max-width: 1100px) { nav a { font-size: 0.9rem; } .logo { font-size: 1rem; } }

/* ---------- Bouton menu : trois fines lignes, sans encadré ---------- */
.nav-toggle {
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: none; border: 0; border-radius: 0;
  color: var(--ink);
  width: 44px; height: 44px; padding: 0; margin-right: -11px;
  position: relative; cursor: pointer;
  font-size: 0; letter-spacing: 0; text-transform: none;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
