/* Phiphotohq — site public, façon galerie sur fond sombre */
:root {
  --bg: #0d0e0c;
  --bg-2: #151713;
  --line: #2a2d26;
  --text: #ebe7de;
  --muted: #9c9a90;
  --accent: #a8c256;       /* vert feuille, repris de la carte de visite */
  --accent-2: #f2c518;     /* jaune du contour du logo, utilisé avec parcimonie */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(13, 14, 12, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; display: flex; align-items: center; min-height: 40px; }
.brand-logo { height: 40px; width: auto; }
.brand-word { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .01em; }
.site-nav a {
  text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 8px 0;
}
.site-nav a:hover { color: var(--text); }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-img--empty { background: radial-gradient(120% 90% at 70% 20%, #33421a 0%, #161a10 55%, var(--bg) 100%); }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,12,.15) 0%, rgba(13,14,12,.35) 55%, var(--bg) 100%); }
.hero-text { position: relative; padding: 0 var(--gutter) clamp(32px, 7vh, 72px); max-width: 900px; }
.hero h1 { font-size: clamp(48px, 9vw, 112px); font-weight: 600; letter-spacing: -.01em; }
.hero-logo { height: clamp(72px, 14vw, 170px); width: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.55)); }
.hero p { margin: 8px 0 0; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); opacity: .85; }

.series { padding: clamp(40px, 7vw, 88px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.series-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-title { font-size: clamp(32px, 4vw, 44px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; cursor: pointer; min-height: 40px;
}
.chip:hover { color: var(--text); border-color: #45493e; }
.chip.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card--text .card-media { display: flex; align-items: center; justify-content: center; padding: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, #171a13, var(--bg)); }
.card-quote { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.25; text-align: center; color: var(--text); opacity: .9; }
.card-body h3 { font-size: 26px; margin: 2px 0 4px; }
.card:hover .card-body h3 { color: #fff; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.card-meta { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); }

/* ---------- Page d'une série ---------- */
.serie { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 64px; }
.serie-head { max-width: 680px; margin: 0 auto clamp(36px, 6vw, 72px); }
.serie-head .eyebrow { display: block; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 28px; padding: 6px 0; }
.back:hover { color: var(--text); }
.serie-head h1 { font-size: clamp(38px, 6vw, 64px); margin: 8px 0 6px; }
.serie-date { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.serie-text p { margin: 0 0 1em; }
.ext-link a { color: var(--accent); text-underline-offset: 4px; }

.photos { display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 7vw, 96px); }
.photo { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.photo-frame { position: relative; cursor: zoom-in; max-width: 100%; }
.photo-frame img { max-height: 86vh; width: auto; height: auto; max-width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.photo figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); text-align: center; max-width: 640px; }

.serie-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(56px, 9vw, 110px); padding-top: 28px; border-top: 1px solid var(--line); }
.serie-nav a { text-decoration: none; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.serie-nav a span { display: block; font: 400 12px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.serie-nav .next { text-align: right; }
.serie-nav a:hover { color: #fff; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 72px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 36px 0 8px; color: var(--text); }
.legal p { color: #cfcbc1; margin: 0 0 .9em; }
.legal a { color: var(--accent); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px var(--gutter) 40px; color: var(--muted); font-size: 13px; text-align: center; }
.site-footer p { margin: 0 auto 8px; max-width: 720px; }
.site-footer a { color: var(--text); }

/* ---------- Protection des images ---------- */
.protect, .protect img, .lightbox img {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.shield { position: absolute; inset: 0; background: transparent; }

/* ---------- Visionneuse plein écran ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 7, 6, .97);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { position: relative; max-width: 96vw; max-height: 90vh; }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; }
.lightbox button {
  position: absolute; background: rgba(20,22,18,.6); color: var(--text); border: 1px solid var(--line);
  width: 52px; height: 52px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: rgba(40,44,36,.9); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); letter-spacing: .1em; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 62vh; }
  .serie-nav { grid-template-columns: 1fr; }
  .serie-nav .next { text-align: left; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } }
@media print { .photos, .card-media, .hero-img { display: none !important; } }
