/* ================================================================
   RELIQ — reliq.studiopaprika.fr
   Musée éditorial, galerie privée la nuit.
   Thème Nuit par défaut, thème Jour via prefers-color-scheme.
   ================================================================ */

:root {
  --fond: #0A0A0A;
  --texte: #FFFFFF;
  --texte-2: rgba(255, 255, 255, 0.64);
  --or: #C9B37E;
  --filet: rgba(255, 255, 255, 0.14);
  --filet-or: rgba(201, 179, 126, 0.38);
  --grain-opacite: 0.05;

  --serif: 'Space Grotesk', system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --fond: #E9E7E1;
    --texte: #0E0E0E;
    --texte-2: rgba(14, 14, 14, 0.64);
    --or: #8C7642;
    --filet: rgba(14, 14, 14, 0.16);
    --filet-or: rgba(140, 118, 66, 0.45);
    --grain-opacite: 0.04;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain photographique (décor pur, aucune interaction) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacite);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: var(--texte); }

.conteneur {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Cartel (petits libellés de musée) ---------------- */

.cartel-libelle {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or);
}

.numero {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--or);
}

/* ---------------- En-tête ---------------- */

.entete {
  border-bottom: 1px solid var(--filet);
  position: relative;
  z-index: 10;
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  min-height: 44px;
}

.marque img { width: 28px; height: 28px; }

.entete nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.entete nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.entete nav a:hover,
.entete nav a[aria-current="page"] { color: var(--or); }

/* ---------------- Hero ---------------- */

.hero {
  padding: 96px 0 88px;
  text-align: center;
  border-bottom: 1px solid var(--filet);
}

.hero .icone {
  width: 88px;
  height: 88px;
  margin: 0 auto 40px;
  border: 1px solid var(--filet-or);
  padding: 8px;
}

.hero h1 {
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* compense la dernière lettre pour un vrai centrage */
  line-height: 1;
  text-transform: uppercase;
}

.hero .filet-hero {
  width: 72px;
  height: 1px;
  background: var(--or);
  margin: 36px auto;
}

.hero .accroche {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto;
}

.hero .sous-accroche {
  color: var(--texte-2);
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 16px;
}

.badge-bientot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding: 14px 26px;
  min-height: 48px;
  border: 1px solid var(--filet-or);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--or);
  cursor: default;
  user-select: none;
}

.badge-bientot::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--or);
}

/* ---------------- Sections ---------------- */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--filet);
}

.tete-section {
  margin-bottom: 56px;
}

.tete-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 14px;
}

.tete-section .intro {
  color: var(--texte-2);
  max-width: 620px;
  margin-top: 18px;
}

/* ---------------- Salles ---------------- */

.salles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.salle {
  border: 1px solid var(--filet);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.salle .tete-salle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.salle h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.salle .medium {
  color: var(--texte-2);
  font-size: 14px;
  margin-top: -12px;
}

/* Cover générative 2:3 — saturation faible, une teinte par salle */
.cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 1px solid var(--filet);
}

.cover .titre-cover {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
}

.cover .a-venir {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cover .n1 {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
}

.cover-terre    { background: linear-gradient(160deg, hsl(22, 24%, 44%) 0%, hsl(22, 21%, 24%) 62%, #0A0A0A 100%); }
.cover-encre    { background: linear-gradient(160deg, hsl(245, 22%, 46%) 0%, hsl(245, 19%, 25%) 62%, #0A0A0A 100%); }
.cover-verdigris{ background: linear-gradient(160deg, hsl(160, 21%, 40%) 0%, hsl(160, 18%, 22%) 62%, #0A0A0A 100%); }
.cover-acier    { background: linear-gradient(160deg, hsl(205, 23%, 44%) 0%, hsl(205, 20%, 24%) 62%, #0A0A0A 100%); }

.note-salles {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--filet);
  color: var(--texte-2);
  max-width: 680px;
}

.note-salles strong { color: var(--texte); font-weight: 500; }

/* ---------------- Fonctionnalités ---------------- */

.catalogue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--filet);
  border-left: 1px solid var(--filet);
}

.piece-catalogue {
  border-right: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
  padding: 26px 24px 30px;
}

.piece-catalogue h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.piece-catalogue p {
  color: var(--texte-2);
  font-size: 15px;
}

/* ---------------- Privé par conception ---------------- */

.prive {
  text-align: center;
}

.prive .declaration {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: 0.06em;
  max-width: 880px;
  margin: 22px auto 0;
  line-height: 1.4;
}

.prive .declaration em {
  font-style: normal;
  color: var(--or);
}

.prive .detail-prive {
  color: var(--texte-2);
  max-width: 560px;
  margin: 24px auto 0;
}

/* ---------------- Captures ---------------- */

.galerie-captures {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.cadre {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cadre .ecran {
  border: 1px solid var(--filet-or);
  padding: 8px;
  background: #0A0A0A;
}

.cadre object,
.cadre img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  display: block;
  object-fit: cover;
}

/* Placeholder générique tant que la capture n'existe pas */
.cadre .cover {
  aspect-ratio: 1320 / 2868;
  height: 100%;
}

.cadre figcaption {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--texte-2);
  text-align: center;
}

/* ---------------- Pages texte (support, confidentialité, mentions) ---------------- */

.page-texte {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.page-texte header.tete-page { margin-bottom: 56px; }

.page-texte h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 14px;
}

.page-texte .date {
  color: var(--texte-2);
  margin-top: 14px;
  font-size: 15px;
}

.page-texte section { margin-top: 52px; }

.page-texte h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--or);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--filet);
  margin-bottom: 20px;
}

.page-texte h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 26px 0 6px;
}

.page-texte p { color: var(--texte-2); margin-bottom: 12px; }
.page-texte p strong { color: var(--texte); font-weight: 500; }
.page-texte ul { color: var(--texte-2); padding-left: 20px; margin-bottom: 12px; }
.page-texte li { margin-bottom: 6px; }

.page-texte a { color: var(--or); text-decoration-color: var(--filet-or); }

.bouton-mail {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--filet-or);
  color: var(--or);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}

.bouton-mail:hover { background: rgba(201, 179, 126, 0.08); }

.mention-tmdb {
  border: 1px solid var(--filet);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--texte-2);
  margin-top: 16px;
}

/* ---------------- Pied de page ---------------- */

.pied {
  padding: 56px 0 64px;
}

.pied .conteneur {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.pied nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 0;
  margin-right: 12px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.pied nav a:hover { color: var(--or); }

.pied .signature {
  color: var(--texte-2);
  font-size: 13px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1023px) {
  .salles { grid-template-columns: repeat(2, 1fr); }
  .salle .cover { max-width: 340px; }
  .catalogue { grid-template-columns: repeat(2, 1fr); }
  .galerie-captures { grid-template-columns: repeat(3, 1fr); }
}

/* Écrans larges mais bas (paysage déplié type pliable, fenêtres basses) :
   le hero ne dépend pas de 100vh, on resserre juste le rythme vertical
   pour qu'il reste lisible sans être écrasé. */
@media (min-width: 600px) and (max-height: 700px) {
  .hero { padding: 48px 0 56px; }
  .hero .icone { width: 64px; height: 64px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(56px, 10vw, 110px); }
  .hero .filet-hero { margin: 24px auto; }
  .hero .accroche { font-size: clamp(18px, 2.2vw, 22px); }
  .badge-bientot { margin-top: 28px; }
  .section { padding: 64px 0; }
  .tete-section { margin-bottom: 40px; }
}

@media (max-width: 599px) {
  body { font-size: 16px; }

  .conteneur { padding: 0 20px; }

  .entete .conteneur { min-height: 56px; }
  .marque { letter-spacing: 0.26em; font-size: 13px; }
  .entete nav a { padding: 0 10px; font-size: 10px; }

  .hero { padding: 64px 0 60px; }
  .hero .icone { width: 68px; height: 68px; margin-bottom: 32px; }

  .section { padding: 64px 0; }
  .tete-section { margin-bottom: 40px; }

  .salles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .salle { padding: 16px 14px 18px; }
  .salle h3 { font-size: 13px; letter-spacing: 0.08em; }
  .salle .medium { font-size: 12px; }
  .cover .titre-cover { font-size: 11px; }
  .catalogue { grid-template-columns: 1fr; }
  .galerie-captures { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .page-texte { padding: 56px 20px 72px; }
}
