/* Studio Lumière — identité chambre noire / studio photo */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --charcoal: #1B1918;
  --charcoal-soft: #26221F;
  --ivory: #F2ECE1;
  --ivory-dim: #C9C2B4;
  --safelight: #C1443C;
  --safelight-dim: #8E332D;
  --brass: #B08D57;
  --sage: #6B7266;
  --line: rgba(242, 236, 225, 0.14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(27, 25, 24, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--safelight);
  display: inline-block;
  transform: translateY(-2px);
}

nav.site a {
  text-decoration: none;
  color: var(--ivory-dim);
  font-size: 14px;
  margin-left: 28px;
}
nav.site a:hover { color: var(--ivory); }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero .kicker {
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  max-width: 14ch;
  margin: 0 0 22px;
}

.hero p.lede {
  max-width: 46ch;
  color: var(--ivory-dim);
  font-size: 17px;
}

/* filmstrip — motif fonctionnel, sépare les sections */
.filmstrip {
  display: flex;
  gap: 6px;
  margin: 34px 0 0;
  padding-top: 20px;
}
.filmstrip .frame {
  width: 34px;
  height: 24px;
  border: 1px solid var(--line);
  position: relative;
}
.filmstrip .frame::before,
.filmstrip .frame::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  top: 50%;
  transform: translateY(-50%);
}
.filmstrip .frame::before { left: -3px; }
.filmstrip .frame::after { right: -3px; }

/* ---------- sections ---------- */

section { padding: 56px 0; border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 32px; }
.section-head .kicker { font-size: 13px; color: var(--brass); margin-bottom: 8px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
}

/* ---------- services grid ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--charcoal);
  padding: 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.service-card:hover { background: var(--charcoal-soft); }
.service-card.selected {
  background: var(--charcoal-soft);
  box-shadow: inset 3px 0 0 var(--safelight);
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 8px;
}
.service-card p {
  color: var(--ivory-dim);
  font-size: 14px;
  margin: 0 0 16px;
}
.service-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--sage);
}
.service-meta strong { color: var(--brass); font-weight: 500; }

/* ---------- booking flow ---------- */

.booking-step { display: none; }
.booking-step.active { display: block; }

.field-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.field label { font-size: 13px; color: var(--ivory-dim); }
.field input, .field textarea, .field select {
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--safelight);
  outline-offset: 1px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.slot-btn {
  border: 1px solid var(--line);
  background: var(--charcoal-soft);
  color: var(--ivory);
  padding: 10px 6px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius);
}
.slot-btn:hover { border-color: var(--brass); }
.slot-btn.selected { background: var(--safelight); border-color: var(--safelight); color: var(--ivory); }
.slot-empty { color: var(--sage); font-size: 14px; }

.btn {
  display: inline-block;
  background: var(--safelight);
  color: var(--ivory);
  border: none;
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--radius);
}
.btn:hover { background: var(--safelight-dim); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ivory-dim);
}
.btn.ghost:hover { border-color: var(--ivory-dim); color: var(--ivory); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.step-actions { display: flex; gap: 12px; margin-top: 8px; }

.message {
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.message.error { border-color: var(--safelight); color: var(--safelight); }
.message.success { border-color: var(--brass); color: var(--brass); }

.confirmation h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--brass);
}

footer.site {
  padding: 32px 0;
  color: var(--sage);
  font-size: 13px;
}

/* ---------- admin ---------- */

body.admin { background: var(--ivory); color: var(--charcoal); }
body.admin header.site { background: var(--charcoal); }
body.admin .panel {
  background: #fff;
  border: 1px solid #E4DDCE;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
body.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.admin th, body.admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #E4DDCE; }
body.admin th { color: var(--sage); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
body.admin tr.cancelled { opacity: 0.45; text-decoration: line-through; }
body.admin .tag { font-size: 12px; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--line); }
body.admin .tag.confirmee { border-color: var(--brass); color: #8a6a35; }
body.admin .tag.annulee { border-color: var(--safelight); color: var(--safelight); }
body.admin .field input { background: #fff; color: var(--charcoal); }
body.admin .login-box { max-width: 360px; margin: 80px auto; }

.row-actions button { margin-right: 6px; font-size: 12px; padding: 6px 10px; }

@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  header.site .wrap { height: auto; padding: 16px 20px; flex-direction: column; gap: 10px; }
  nav.site a { margin: 0 10px; }
}
