/* Projets Aether Studio — disposition éditoriale, partagée par index.html et projets.html.
   Tout est préfixé .pf pour ne pas entrer en conflit avec Tailwind sur l'accueil. */

.pf, .pf-viewer {
  --pf-cream: #F4EFE4;
  --pf-ink: #1A1A14;
  --pf-grey: #5C5C54;
  --pf-soft: rgba(26, 26, 20, .84);
  --pf-display: 'Archivo', 'Anton', Georgia, serif;
  --pf-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.pf { display: grid; gap: 96px; font-family: var(--pf-body); color: var(--pf-ink); }
.pf *, .pf-viewer * { box-sizing: border-box; }
.pf img, .pf video, .pf-viewer img, .pf-viewer video { display: block; max-width: 100%; }

/* Ligne projet : média + texte, en alternance gauche/droite */
.pf-row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.pf-row.pf-wide { grid-template-columns: 7fr 5fr; }
.pf-row.pf-flip > .pf-media-col { order: 2; }
.pf-row[hidden] { display: none; }
.pf-media-col { position: relative; min-width: 0; }
.pf-media-col.pf-vertical { max-width: 380px; width: 100%; justify-self: center; }
.pf-stack { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.pf-stack .pf-media:first-child { grid-row: span 2; height: 100%; }

.pf-media { position: relative; overflow: hidden; background: var(--pf-ink); border: 1px solid var(--pf-ink); cursor: pointer; }
.pf-media img, .pf-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pf-media:hover img, .pf-media:hover video { transform: scale(1.03); }
.pf-media:focus-visible, .pf-btn:focus-visible, .pf-filters button:focus-visible, .pf-viewer button:focus-visible { outline: 3px solid var(--pf-ink); outline-offset: 3px; }
.pf-play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; pointer-events: none;
  background: var(--pf-cream); color: var(--pf-ink); border: 1px solid var(--pf-ink); padding: 10px 14px;
  font: 700 10px/1 var(--pf-body); letter-spacing: .16em; text-transform: uppercase;
}
.pf-play svg, .pf-btn svg { width: 10px; height: 10px; fill: currentColor; flex: none; }
.pf-r-9x16 { aspect-ratio: 9 / 16; }
.pf-r-16x9 { aspect-ratio: 16 / 9; }
.pf-r-1 { aspect-ratio: 1; }

.pf-text { display: grid; gap: 16px; align-content: center; min-width: 0; }
.pf-head { display: flex; align-items: center; gap: 14px; }
.pf-num { font: 700 11px/1 var(--pf-body); letter-spacing: .16em; color: var(--pf-grey); }
.pf-head i { flex: 1; max-width: 120px; height: 1px; background: rgba(26, 26, 20, .2); }
.pf-cat { font: 700 10px/1.4 var(--pf-body); letter-spacing: .18em; text-transform: uppercase; color: var(--pf-grey); }
.pf-title { font-family: var(--pf-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; margin: 0; overflow-wrap: break-word; }
.pf-title em { font-style: italic; color: var(--pf-grey); }
.pf-desc { margin: 0; color: var(--pf-soft); font-size: 15px; line-height: 1.65; max-width: 520px; }
.pf-deliv { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.pf-deliv li { display: flex; gap: 10px; }
.pf-deliv li::before { content: '→'; font-weight: 700; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  background: var(--pf-ink, #1A1A14); color: var(--pf-cream, #F4EFE4); border: 1px solid var(--pf-ink, #1A1A14);
  font: 700 10.5px/1 'Inter', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; padding: 14px 18px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.pf-btn:hover { background: transparent; color: var(--pf-ink, #1A1A14); }
.pf-btn.pf-ghost { background: transparent; color: var(--pf-ink, #1A1A14); }
.pf-btn.pf-ghost:hover { background: var(--pf-ink, #1A1A14); color: var(--pf-cream, #F4EFE4); }

/* Filtres (page projets) */
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filters button {
  cursor: pointer; background: transparent; color: #1A1A14; border: 1px solid #1A1A14; padding: 10px 16px;
  font: 700 10px/1 'Inter', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
}
.pf-filters button[aria-pressed=true] { background: #1A1A14; color: #F4EFE4; }
.pf-filters button span { opacity: .55; margin-left: 6px; }
.pf-empty { color: rgba(26, 26, 20, .84); }

/* Visionneuse plein écran */
.pf-viewer { position: fixed; inset: 0; z-index: 20000; background: rgba(17, 17, 9, .97); color: var(--pf-cream); display: none; flex-direction: column; font-family: var(--pf-body); }
.pf-viewer.pf-open { display: flex; }
.pf-viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid rgba(244, 239, 228, .12); }
.pf-viewer-top h2 { font-family: var(--pf-display); font-weight: 800; text-transform: uppercase; font-size: 22px; margin: 0; }
.pf-tabs { display: inline-flex; border: 1px solid rgba(244, 239, 228, .5); }
.pf-tabs[hidden] { display: none; }
.pf-tabs button { cursor: pointer; background: transparent; color: var(--pf-cream); border: 0; padding: 10px 14px; font: 700 10px/1 var(--pf-body); letter-spacing: .16em; text-transform: uppercase; }
.pf-tabs button[aria-selected=true] { background: var(--pf-cream); color: var(--pf-ink); }
.pf-close { cursor: pointer; background: transparent; border: 1px solid rgba(244, 239, 228, .4); color: var(--pf-cream); width: 42px; height: 42px; font-size: 22px; line-height: 1; }
.pf-viewer-body { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 24px; overflow: auto; }
.pf-viewer-body.pf-gallery { align-items: flex-start; }
.pf-viewer-body video { max-width: 100%; max-height: calc(100vh - 140px); background: #000; }
.pf-gal { columns: 3 260px; column-gap: 8px; width: 100%; max-width: 1200px; }
.pf-gal img { width: 100%; height: auto; margin-bottom: 8px; break-inside: avoid; background: #222; }

@media (max-width: 900px) {
  .pf { gap: 72px; }
  .pf-row, .pf-row.pf-wide { grid-template-columns: 1fr; gap: 24px; }
  .pf-row.pf-flip > .pf-media-col { order: 0; }
  .pf-viewer-top { padding: 12px 16px; flex-wrap: wrap; }
  .pf-viewer-body { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pf-media img, .pf-media video { transition: none; } }
