/* ===========================================================
   DÉMO — Photographe "Studio Margaux Léon"
   Archétype VOLONTAIREMENT différent des autres démos :
   GALLERY-FIRST (les images d'abord), éditorial quasi
   monochrome, chrome minimal. Lightbox plein écran + galerie
   client par code. Display dramatique (Bodoni Moda) + sans
   (Archivo). But : prouver qu'on ne plaque pas un template.
   =========================================================== */

:root {
  --ph-ink:   #16130f;
  --ph-bg:    #f7f4ef;
  --ph-paper: #ffffff;
  --ph-soft:  #8a8276;
  --ph-line:  #e4ded3;
  --ph-disp:  "Bodoni Moda", Georgia, serif;
  --ph-sans:  "Archivo", -apple-system, sans-serif;
}

body.photo {
  margin: 0;
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-family: var(--ph-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.photo h1, body.photo h2, body.photo h3 {
  font-family: var(--ph-disp);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}
body.photo p { margin: 0 0 1rem; }
/* Les liens héritent de la couleur du texte — SAUF ceux stylés en bouton (sinon
   cette règle, plus spécifique, écrase la couleur du bouton → texte invisible). */
body.photo a:not(.ph-btn) { color: inherit; }

.ph-kicker { font-family: var(--ph-sans); text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.7rem; font-weight: 600; color: var(--ph-soft); margin: 0 0 0.8rem; }

/* ── Boutons ──────────────────────────────────────────────── */
.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ph-ink);
  cursor: pointer;
  font-family: var(--ph-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  background: transparent;
  color: var(--ph-ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.ph-btn--full { width: 100%; }
.ph-btn--solid { background: var(--ph-ink); color: #fff; border-color: var(--ph-ink); }
.ph-btn--solid:hover { transform: translateY(-2px); }
.ph-btn--outline:hover { background: var(--ph-ink); color: #fff; }
.ph-btn--light { background: #fff; color: var(--ph-ink); border-color: #fff; }
.ph-btn--light:hover { transform: translateY(-2px); }

/* ── Header ───────────────────────────────────────────────── */
.ph-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem clamp(1.2rem, 5vw, 3rem);
}
.ph-logo { font-family: var(--ph-disp); font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.ph-logo span { font-style: italic; }
.ph-nav { display: flex; gap: 1.8rem; margin: 0 auto 0 2rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ph-nav a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.ph-nav a:hover { color: #fff; }
.ph-header .ph-btn--solid { background: #fff; color: var(--ph-ink); border-color: #fff; }

/* ── Hero plein écran ─────────────────────────────────────── */
.ph-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(180deg, rgba(20,16,12,0.45) 0%, rgba(20,16,12,0.2) 40%, rgba(20,16,12,0.55) 100%), var(--hero);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0 clamp(1.2rem, 6vw, 5rem);
}
.ph-hero__inner { max-width: 820px; }
.ph-hero__eyebrow { font-family: var(--ph-sans); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.78rem; margin: 0 0 1.2rem; color: rgba(255,255,255,0.9); }
.ph-hero h1 { font-size: clamp(2.8rem, 9vw, 6rem); color: #fff; margin-bottom: 2rem; }
.ph-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Boutons sur fond sombre du hero : texte/bordure clairs (sinon invisibles). */
.ph-hero .ph-btn--outline { color: #fff; border-color: rgba(255,255,255,0.75); }
.ph-hero .ph-btn--outline:hover { background: #fff; color: var(--ph-ink); border-color: #fff; }
.ph-hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.4rem; opacity: 0.8; animation: ph-bob 1.8s ease-in-out infinite; }
@keyframes ph-bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ── Sections ─────────────────────────────────────────────── */
.ph-sec-head { text-align: center; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.ph-sec-head h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.ph-portfolio, .ph-seances { padding: clamp(3.5rem, 9vw, 6rem) clamp(1.2rem, 5vw, 3rem); max-width: 1280px; margin: 0 auto; }

/* ── Filtres ──────────────────────────────────────────────── */
.ph-filters { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.ph-filter {
  border: none; background: none; cursor: pointer;
  font-family: var(--ph-sans);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ph-soft);
  padding: 0.5rem 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ph-filter:hover { color: var(--ph-ink); }
.ph-filter.is-on { color: var(--ph-ink); border-color: var(--ph-ink); }

/* ── Grille portfolio ─────────────────────────────────────── */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.ph-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border: none;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: var(--ph-line);
  overflow: hidden;
}
.ph-tile[hidden] { display: none; }
.ph-tile::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,12,0); transition: background 0.25s ease; }
.ph-tile:hover::after { background: rgba(20,16,12,0.28); }
.ph-tile__cat {
  position: absolute; bottom: 0.7rem; left: 0.7rem; z-index: 1;
  font-family: var(--ph-sans);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ph-tile:hover .ph-tile__cat { opacity: 1; transform: none; }

/* ── Séances ──────────────────────────────────────────────── */
.ph-seances { background: var(--ph-paper); max-width: none; }
.ph-seances > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.ph-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.ph-offer { border: 1px solid var(--ph-line); padding: 2rem 1.6rem; display: flex; flex-direction: column; }
.ph-offer h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.ph-offer__price { font-family: var(--ph-sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-soft); margin-bottom: 1rem; }
.ph-offer__desc { color: var(--ph-soft); font-size: 0.95rem; flex: 1; margin-bottom: 1.4rem; }

/* ── Avis ─────────────────────────────────────────────────── */
.ph-reviews { background: var(--ph-ink); color: #f3efe7; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 3rem); }
.ph-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
.ph-review { margin: 0; text-align: center; }
.ph-review blockquote { font-family: var(--ph-disp); font-style: italic; font-size: 1.3rem; line-height: 1.5; margin: 0 0 1rem; color: #fff; }
.ph-review figcaption { font-family: var(--ph-sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b8b0a3; }

/* ── Galerie client ───────────────────────────────────────── */
.ph-client { padding: clamp(3.5rem, 9vw, 6rem) clamp(1.2rem, 5vw, 3rem); max-width: 1100px; margin: 0 auto; }
.ph-client__head { text-align: center; max-width: 600px; margin: 0 auto; }
.ph-client__head h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.ph-client__sub { color: var(--ph-soft); margin-bottom: 1.6rem; }
.ph-client__form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.ph-client__input {
  border: 1px solid var(--ph-line);
  background: var(--ph-paper);
  padding: 0.85rem 1.1rem;
  font-family: var(--ph-sans);
  font-size: 1rem;
  min-width: 220px;
  letter-spacing: 0.1em;
}
.ph-client__input:focus { outline: none; border-color: var(--ph-ink); }
.ph-client__hint { font-size: 0.82rem; color: var(--ph-soft); }

.ph-private { margin-top: 3rem; }
.ph-private[hidden] { display: none; }
.ph-private__title { font-family: var(--ph-disp); font-size: 1.6rem; text-align: center; margin-bottom: 1.4rem; }
.ph-private__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.ph-private__note { text-align: center; color: var(--ph-soft); font-size: 0.9rem; margin-top: 1.2rem; }

/* ── À propos ─────────────────────────────────────────────── */
.ph-about { background: var(--ph-paper); border-top: 1px solid var(--ph-line); }
.ph-about__inner { max-width: 680px; margin: 0 auto; text-align: center; padding: clamp(3.5rem, 9vw, 6rem) clamp(1.2rem, 5vw, 2rem); }
.ph-about__inner h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.ph-about__inner p { color: var(--ph-soft); font-size: 1.08rem; }
.ph-about__contact { font-family: var(--ph-sans); font-size: 0.85rem; letter-spacing: 0.06em; margin: 1.4rem 0 1.8rem; }

/* ── Footer ───────────────────────────────────────────────── */
.ph-foot { background: var(--ph-ink); color: #b8b0a3; text-align: center; padding: 2.4rem 1.2rem; }
.ph-foot__name { font-family: var(--ph-disp); font-size: 1.5rem; color: #fff; margin-bottom: 0.3rem; }

/* ── Pastille de validation ───────────────────────────────── */
.ph-check {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ph-ink);
  color: #fff;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  animation: ph-pop 0.3s ease;
}

/* ===========================================================
   Lightbox
   =========================================================== */
.lb[hidden] { display: none; }
.lb {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15,12,9,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lb__img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); animation: ph-pop 0.25s ease; }
.lb__x { position: absolute; top: 1rem; right: 1.3rem; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: 0.85; }
.lb__x:hover { opacity: 1; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 3rem; height: 3rem;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer; border-radius: 50%;
  transition: background 0.2s;
}
.lb__nav:hover { background: rgba(255,255,255,0.25); }
.lb__nav--prev { left: clamp(0.6rem, 3vw, 2rem); }
.lb__nav--next { right: clamp(0.6rem, 3vw, 2rem); }

/* ===========================================================
   Réservation de séance (modale)
   =========================================================== */
@keyframes ph-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.bk[hidden] { display: none; }
.bk {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.bk__overlay { position: absolute; inset: 0; background: rgba(15,12,9,0.6); }
.bk__panel {
  position: relative;
  background: var(--ph-bg);
  padding: clamp(1.6rem, 5vw, 2.4rem);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 70px -20px rgba(15,12,9,0.6);
  animation: ph-pop 0.25s ease;
  max-height: 92vh; overflow-y: auto;
}
.bk__x { position: absolute; top: 0.7rem; right: 1rem; border: none; background: none; font-size: 1.9rem; line-height: 1; color: var(--ph-soft); cursor: pointer; }
.bk__title { font-size: 1.7rem; margin-bottom: 1rem; }
.bk__label { display: block; font-family: var(--ph-sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ph-soft); font-weight: 600; margin: 0.6rem 0 0.5rem; }
.bk__input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--ph-line);
  background: var(--ph-paper);
  padding: 0.8rem 1rem;
  font-family: var(--ph-sans);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.bk__input:focus { outline: none; border-color: var(--ph-ink); }
.bk__fields { margin-top: 0.3rem; }
.bk__step[hidden] { display: none; }
.bk [data-bk-step="done"] { text-align: center; }
.bk__confirm { margin: 0.6rem 0 1rem; line-height: 1.5; }
.bk__note { font-size: 0.82rem; color: var(--ph-soft); margin-bottom: 1.4rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .ph-nav { display: none; }
}
