/* ORPHIC GALLERY — première version (14/10/2026). La nuit d'Orphic, le bleu du titre, le blanc cassé du papier. */
:root {
  --fond: #0b0c10; --fond-2: #13151b; --encre: #f2f4f8; --encre-2: #a7adbb; --sourd: #6b7180; --filet: rgba(255, 255, 255, 0.08);
  --bleu: #a3dbff; --nuit: #5b9dff; --photo: #a3dbff; --film: #f0a53c; --plan: #b48cff;
  --tete: 68px; --cote: 196px; --rayon: 14px;
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--fond); color: var(--encre); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ── EN TÊTE : la marque, les métiers, le burger ─────────────────────────────────────────────────── */
.tete { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--tete); display: flex; align-items: center; gap: 28px; padding: 0 22px;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.96), rgba(11, 12, 16, 0.78)); backdrop-filter: blur(14px); border-bottom: 1px solid var(--filet); }
.marque { display: flex; align-items: center; gap: 12px; flex: none; color: var(--encre); text-decoration: none; }
.marque img { filter: invert(1); }
.marque span { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; letter-spacing: 0.24em; line-height: 1; }
.marque small { margin-top: 4px; font-size: 8px; font-weight: 500; letter-spacing: 0.42em; color: var(--encre-2); }
.metiers { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.metiers::-webkit-scrollbar { display: none; }
.metiers button, .services button { all: unset; cursor: pointer; white-space: nowrap; transition: color 160ms, background 160ms; }
.metiers button { padding: 9px 14px; border-radius: 18px; font-size: 13px; letter-spacing: 0.02em; color: var(--encre-2); }
.metiers button:hover { color: var(--encre); }
.metiers button[aria-pressed="true"] { color: var(--fond); background: var(--encre); }
.book-bouton { flex: none; padding: 10px 16px; border-radius: 21px; border: 1px solid rgba(163, 219, 255, 0.35); color: var(--bleu); text-decoration: none; font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; transition: background 160ms, color 160ms; }
.book-bouton:hover { background: rgba(163, 219, 255, 0.08); }
.book-bouton[aria-current="page"] { color: var(--fond); background: var(--bleu); border-color: var(--bleu); }
.burger { flex: none; display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--filet); border-radius: 21px; background: transparent; cursor: pointer; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--encre); border-radius: 1px; }

/* ── LE CÔTÉ : les services ──────────────────────────────────────────────────────────────────────── */
.services { position: fixed; top: var(--tete); left: 0; bottom: 0; width: var(--cote); z-index: 10; display: flex; flex-direction: column; gap: 2px; padding: 28px 18px; border-right: 1px solid var(--filet); }
.services-titre { margin: 0 0 12px 10px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sourd); }
.services button { padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--encre-2); }
.services button:hover { color: var(--encre); background: rgba(255, 255, 255, 0.04); }
.services button[aria-pressed="true"] { color: var(--encre); background: rgba(91, 157, 255, 0.14); box-shadow: inset 2px 0 0 var(--nuit); }

/* ── LE MUR : les travaux, en colonnes ───────────────────────────────────────────────────────────── */
.mur { padding: calc(var(--tete) + 22px) 22px 120px calc(var(--cote) + 22px); }
.grille { list-style: none; margin: 0; padding: 0; columns: 4 260px; column-gap: 14px; }
.travail { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--fond-2); cursor: zoom-in;
  animation: arrive 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.travail img { display: block; width: 100%; height: auto; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.travail:hover img { transform: scale(1.035); }
.travail figcaption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 34px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); font-size: 12.5px; opacity: 0; transition: opacity 200ms; }
.travail:hover figcaption, .travail:focus-visible figcaption { opacity: 1; }
.travail figcaption small { color: var(--encre-2); }
.sorte { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 12px; font-size: 10.5px; letter-spacing: 0.06em;
  background: rgba(11, 12, 16, 0.6); backdrop-filter: blur(6px); }
.sorte::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--c); }
.travail[data-sorte="photo"] { --c: var(--photo); } .travail[data-sorte="film"] { --c: var(--film); } .travail[data-sorte="plan"] { --c: var(--plan); }
.lecture { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lecture span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 26px; background: rgba(11, 12, 16, 0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.25); }
.lecture span::before { content: ""; margin-left: 4px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vide { margin: 80px 0; text-align: center; color: var(--sourd); }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }

/* ── LE BOOK : l'ouverture, puis chaque œuvre en grand, numérotée ───────────────────────────────── */
.book { padding: var(--tete) 0 140px var(--cote); }
.book-ouverture { min-height: calc(100vh - var(--tete)); display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; position: relative; }
.book-sur { margin: 0 0 18px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--sourd); }
.book-ouverture h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8.4vw, 132px); line-height: 0.95; letter-spacing: -0.02em; }
.book-ouverture h1 em { color: var(--bleu); }
.book-dit { max-width: 520px; margin: 28px 0 0; font-size: 16px; line-height: 1.6; color: var(--encre-2); }
.book-defiler { position: absolute; left: 8vw; bottom: 40px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sourd); }
.book-oeuvres { list-style: none; margin: 0; padding: 0 5vw; display: grid; gap: 14vh; }
.oeuvre { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 24px; cursor: zoom-in; }
.oeuvre img { display: block; width: 100%; height: auto; border-radius: 4px; transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.oeuvre:hover img { transform: scale(1.015); }
.oeuvre .cadre img { max-height: calc(100vh - var(--tete) - 60px); object-fit: cover; }
.oeuvre .cadre { position: relative; overflow: hidden; border-radius: 4px; }
.oeuvre .legende { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.oeuvre .numero { font-family: var(--serif); font-size: 15px; color: var(--sourd); }
.oeuvre .titre { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; }
.oeuvre .quoi { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-2); }
.oeuvre[data-forme="large"] .cadre { grid-column: 1 / 11; } .oeuvre[data-forme="large"] .legende { grid-column: 11 / 13; }
.oeuvre[data-forme="droite"] .cadre { grid-column: 6 / 13; grid-row: 1; } .oeuvre[data-forme="droite"] .legende { grid-column: 2 / 6; grid-row: 1; text-align: right; }
.oeuvre[data-forme="gauche"] .cadre { grid-column: 1 / 8; } .oeuvre[data-forme="gauche"] .legende { grid-column: 8 / 12; }
.oeuvre[data-forme="centre"] .cadre { grid-column: 3 / 11; } .oeuvre[data-forme="centre"] .legende { grid-column: 3 / 11; grid-row: 2; flex-direction: row; align-items: baseline; gap: 16px; }
.oeuvre { opacity: 0; translate: 0 40px; transition: opacity 900ms, translate 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.oeuvre.vue-ici { opacity: 1; translate: 0 0; }
.book-fin { padding: 18vh 0 0; text-align: center; }
.book-fin a { font-family: var(--serif); font-size: 28px; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--filet); padding-bottom: 6px; }
.book-fin a:hover { color: var(--bleu); }

/* ── LES FILTRES FLOTTANTS, au centre en bas ─────────────────────────────────────────────────────── */
.filtres { position: fixed; left: calc(50% + var(--cote) / 2); bottom: 24px; translate: -50% 0; z-index: 20; display: flex; gap: 6px; padding: 6px;
  border-radius: 28px; background: rgba(19, 21, 27, 0.82); backdrop-filter: blur(16px); border: 1px solid var(--filet); box-shadow: 0 18px 40px -16px #000; }
.filtres button { all: unset; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 22px; font-size: 13px; color: var(--sourd); transition: color 160ms, background 160ms; }
.filtres .point { width: 8px; height: 8px; border-radius: 4px; border: 1.5px solid currentColor; }
.filtres button[aria-pressed="true"] { color: var(--encre); background: rgba(255, 255, 255, 0.07); }
.filtres button[data-sorte="photo"][aria-pressed="true"] .point { background: var(--photo); border-color: var(--photo); }
.filtres button[data-sorte="film"][aria-pressed="true"] .point { background: var(--film); border-color: var(--film); }
.filtres button[data-sorte="plan"][aria-pressed="true"] .point { background: var(--plan); border-color: var(--plan); }

/* ── LE CONTACT FLOTTANT, en bas à droite ────────────────────────────────────────────────────────── */
.contact { position: fixed; right: 22px; bottom: 24px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 26px;
  color: var(--fond); background: var(--bleu); text-decoration: none; font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 34px -12px rgba(91, 157, 255, 0.7); transition: translate 200ms; }
.contact:hover { translate: 0 -2px; }
.contact svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ── LE TIROIR DU BURGER : les sites d'Orphic, le contact ────────────────────────────────────────── */
.tiroir { position: fixed; inset: 0; z-index: 40; }
.tiroir-fond { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); }
.tiroir-panneau { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; background: var(--fond-2);
  border-left: 1px solid var(--filet); animation: glisse 320ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tiroir-titre { margin: 4px 0 24px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sourd); }
.tiroir-panneau a { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--filet); color: var(--encre); text-decoration: none; font-family: var(--serif); font-size: 26px; }
.tiroir-panneau a small { font-family: var(--sans); font-size: 12px; color: var(--sourd); }
.tiroir-panneau a:hover { color: var(--bleu); }
.tiroir-panneau .tiroir-contact { margin-top: auto; border: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--bleu); }
.tiroir-fermer, .vue-fermer { all: unset; cursor: pointer; align-self: flex-end; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 19px; font-size: 22px; color: var(--encre-2); border: 1px solid var(--filet); }
@keyframes glisse { from { translate: 100% 0; } }

/* ── LA VUE EN GRAND ─────────────────────────────────────────────────────────────────────────────── */
.vue { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 60px 24px; background: rgba(5, 6, 9, 0.94); }
.vue figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.vue-image img { display: block; max-width: min(1200px, 92vw); max-height: 78vh; border-radius: 10px; }
.vue figcaption { font-size: 13px; color: var(--encre-2); }
.vue-fermer { position: absolute; top: 18px; right: 18px; }

/* ── SUR UN TÉLÉPHONE : les services passent sous l'en-tête, en bande ────────────────────────────── */
@media (max-width: 860px) {
  :root { --cote: 0px; }
  .tete { gap: 12px; padding: 0 14px; }
  .metiers { justify-content: flex-start; }
  .marque span { display: none; }
  .services { top: var(--tete); right: 0; bottom: auto; width: auto; height: 50px; flex-direction: row; align-items: center; gap: 4px; padding: 0 12px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--filet); background: rgba(11, 12, 16, 0.9); backdrop-filter: blur(14px); scrollbar-width: none; }
  .services-titre { display: none; }
  .services button { padding: 7px 12px; font-size: 13px; }
  .mur { padding: calc(var(--tete) + 64px) 12px 110px; }
  .grille { columns: 2 150px; column-gap: 10px; }
  .filtres { left: 50%; bottom: 16px; }
  .filtres button { padding: 9px 12px; font-size: 12.5px; }
  .contact { right: 14px; bottom: 82px; padding: 13px; }
  .contact span { display: none; }
  .book-bouton { padding: 9px 12px; font-size: 12px; }
  .book { padding: calc(var(--tete) + 50px) 0 120px; }
  .book-ouverture { min-height: 70vh; padding: 0 22px; }
  .book-defiler { left: 22px; }
  .book-oeuvres { padding: 0 12px; gap: 10vh; }
  .oeuvre { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .oeuvre .legende { text-align: left !important; flex-direction: column !important; }
}
@media (prefers-reduced-motion: reduce) { .oeuvre { opacity: 1; translate: none; transition: none; } .travail, .tiroir-panneau { animation: none; } .travail img { transition: none; } }
