/* Polices d'écriture hébergées avec le site (licence libre SIL OFL) */
@font-face {
  font-family: "Pirata One";
  src: url("fonts/pirata-one.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #0d0b0e;
  --bg-2: #17131a;
  --line: #2a2330;
  --text: #ece6dc;
  --muted: #a69cad;
  --accent: #c2185b;      /* rose sang */
  --accent-2: #8e44ad;    /* violet */
  --radius: 14px;
  --display: "Pirata One", Georgia, serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(13, 11, 14, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-size: 1.8rem; text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Accueil ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 8vw, 110px) clamp(16px, 4vw, 48px);
  max-width: 1280px; margin: 0 auto;
}
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; }
h1 { font-size: clamp(3.4rem, 9vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h3 { font-size: 1.7rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 34ch; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  border: 2px solid var(--accent); transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }

.hero-art { position: relative; height: clamp(380px, 48vw, 560px); }
.hero-art img {
  position: absolute; width: 52%; aspect-ratio: 9/16; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.6);
  border: 1px solid var(--line);
}
.hero-art img:nth-child(1) { left: 0; top: 8%; transform: rotate(-6deg); z-index: 1; }
.hero-art img:nth-child(2) { left: 24%; top: 0; z-index: 3; }
.hero-art img:nth-child(3) { right: 0; top: 12%; transform: rotate(6deg); z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: inherit; font-weight: 500; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
  transition: all .2s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Galerie ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.item {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  aspect-ratio: 3/4; padding: 0; font: inherit; color: inherit; text-align: left;
}
.item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item:hover img { transform: scale(1.06); }
.item .info {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.item .info h3 { font-size: 1.5rem; }
.item .info span { color: var(--muted); font-size: .85rem; }
.item .badge { position: absolute; top: 12px; left: 12px; }
.item.hide { display: none; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff;
}
.badge.vendu { background: #555; }
.badge.commande { background: var(--accent-2); }
.badge:empty { display: none; }

.more { text-align: center; color: var(--muted); margin-top: 32px; }
.more a { color: var(--accent); }

.item .count {
  position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: var(--text);
}
.filter-dispo { border-color: var(--accent); color: var(--text); }
.filter-dispo.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Services ---------- */
.services h2 { margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--accent);
}
.card:nth-child(even) { border-top-color: var(--accent-2); }
.card p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Événements ---------- */
.events-label {
  font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin: 34px 0 14px;
}
.events-list { display: grid; gap: 14px; }
.events-empty { color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
.events-empty a { color: var(--accent); }
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.event-date {
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
  border-right: 1px solid var(--line); padding-right: 20px;
}
.event-date .j { font-family: var(--display); font-size: 2.2rem; color: var(--text); white-space: nowrap; }
.event-date .m { text-transform: uppercase; font-weight: 700; font-size: .8rem; color: var(--accent); letter-spacing: 1px; }
.event-date .a { font-size: .8rem; color: var(--muted); }
.event-body h4 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0 0 4px; }
.event-body p { color: var(--muted); margin: 0 0 4px; }
.event-body .event-lieu { color: var(--text); font-weight: 500; }
.event-body a { color: var(--accent); font-weight: 500; }
.event-photos { display: flex; gap: 8px; }
.event-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photo { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; max-width: 440px; border: 1px solid var(--line); }
.about p { color: var(--muted); font-size: 1.08rem; }
.about h2 { margin-bottom: 16px; }
.about-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.about-strip img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); width: 100%; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact p { color: var(--muted); margin: 14px auto 30px; max-width: 46ch; }

.footer { text-align: center; padding: 30px 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

/* ---------- Fenêtre œuvre ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 4, 6, .95);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lb-body { display: grid; grid-template-columns: auto minmax(240px, 360px); gap: 32px; align-items: center; margin: 0; max-width: 1100px; }
.lb-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#lb-img { max-height: 76vh; max-width: 60vw; border-radius: 10px; }
.lb-thumbs { display: flex; gap: 8px; }
.lb-thumbs:empty { display: none; }
.lb-thumbs img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .5; border: 2px solid transparent; }
.lb-thumbs img.on { opacity: 1; border-color: var(--accent); }
.lb-body figcaption h3 { font-size: 2.4rem; margin: 10px 0 4px; }
.lb-body .sub { margin: 0 0 6px; color: var(--muted); font-style: italic; }
.lb-body .sub:empty { display: none; }
.lb-body .meta { color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.lb-body p { color: var(--muted); }
.lb-body .prix { font-family: var(--display); font-size: 2rem; color: var(--text); margin: 8px 0 18px; }
.lb-body .prix.barre { text-decoration: line-through; color: var(--muted); }
.lb-body .prix:empty { display: none; }
.lb-close, .lb-nav {
  position: absolute; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1;
}
.lb-close { top: 18px; right: 18px; font-size: 1.1rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Téléphone ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 420px; max-width: 420px; width: 100%; margin: 0 auto; }
  .about { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item .info h3 { font-size: 1.2rem; }
  .lb-body { grid-template-columns: 1fr; gap: 14px; overflow-y: auto; max-height: 100%; padding: 60px 0 20px; }
  .lb-photo { width: 100%; }
  #lb-img { width: 100%; max-width: 100%; height: 55vh; object-fit: contain; margin: 0 auto; }
  .item .count { display: none; }
  .event { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
  .event-date { padding-right: 12px; }
  .event-date .j { font-size: 1.7rem; }
  .event-photos { grid-column: 1 / -1; }
  .event-photos img { width: 80px; height: 80px; }
  .item .badge { top: 8px; left: 8px; }
  .lb-body figcaption h3 { font-size: 1.9rem; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
}
