/*
 * Profane — styles page projet
 * Fichier : profane-projet.css
 * À placer dans : wp-content/themes/blocksy/
 */

/* ── Polices locales ── */
@font-face {
  font-family: 'SeaweedSans';
  src: url('https://profane.fr/wp-content/themes/blocksy/static/fonts/SeaweedSans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Garabosse';
  src: url('https://profane.fr/wp-content/themes/blocksy/static/fonts/Garabosse-Perle.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NouvelleGrotesquerie';
  src: url('https://profane.fr/wp-content/themes/blocksy/static/fonts/NouvelleGrotesquerie-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Cache barre admin */
body.profane-projet #wpadminbar { display: none !important; }
body.profane-projet { margin-top: 0 !important; }

/* Reset */
body.profane-projet * { box-sizing: border-box; margin: 0; padding: 0; }

body.profane-projet {
  background: #f5f2ec;
  color: #1a1a18;
  font-family: 'Garabosse', serif;
  min-height: 100vh;
  --bg:     #f5f2ec;
  --text:   #1a1a18;
  --muted:  #8a8880;
  --line:   rgba(26,26,24,0.12);
  --accent: #7c3aed;
}

body.profane-projet #page,
body.profane-projet .site,
body.profane-projet .site-content,
body.profane-projet #header,
body.profane-projet .ct-header,
body.profane-projet main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Neutralise liens Blocksy */
body.profane-projet #projet-app a,
body.profane-projet #projet-app a:visited {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ── */
#projet-app {
  display: flex;
  min-height: 100vh;
}

/* ── GAUCHE ── */
#proj-left {
  width: 33.333%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #0e0e0c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#back-link {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  padding: 1.6rem 1.5rem;
  gap: 1rem;
  cursor: pointer;
}

#back-arrow {
  font-family: 'SeaweedSans', sans-serif;
  font-size: 2rem;
  color: #fff;
  mix-blend-mode: difference;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

#back-link:hover #back-arrow { transform: translateX(-5px); }

#back-ticker-wrap { overflow: hidden; flex: 1; }

#back-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding-right: 3rem;
}

.ticker-main { font-family: 'SeaweedSans', sans-serif; font-size: 2.2rem; color: #fff; letter-spacing: 0.02em; mix-blend-mode: difference; }
.ticker-sub  { font-family: 'SeaweedSans', sans-serif; font-size: 1.3rem; color: #fff; mix-blend-mode: difference; }
.ticker-sep  { font-family: 'SeaweedSans', sans-serif; font-size: 2rem; color: #fff; opacity: 0.4; mix-blend-mode: difference; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#proj-cover {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.82; display: block;
}

/* ── DROITE ── */
#proj-right { flex: 1; overflow-y: auto; scrollbar-width: none; }
#proj-right::-webkit-scrollbar { display: none; }

#proj-content { padding: 4rem 3.5rem 6rem; max-width: 680px; }

#proj-header { margin-bottom: 2.5rem; }

#proj-code {
  font-family: 'NouvelleGrotesquerie', sans-serif;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.6rem;
}

#proj-title {
  font-family: 'Garabosse', serif;
  font-size: 3.5rem; font-style: italic;
  line-height: 1.05; color: var(--text); margin-bottom: 0.4rem;
}

#proj-short {
  font-family: 'NouvelleGrotesquerie', sans-serif;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

#proj-meta { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 2.5rem; }

.meta-row { display: flex; gap: 1.5rem; align-items: baseline; }

.meta-key {
  font-family: 'NouvelleGrotesquerie', sans-serif;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); width: 90px; flex-shrink: 0;
}

.meta-val { font-family: 'Garabosse', serif; font-size: 1rem; color: var(--text); }

.proj-sep { width: 100%; height: 1px; background: var(--line); margin-bottom: 2.5rem; }

#proj-desc {
  font-family: 'Garabosse', serif;
  font-size: 1.1rem; line-height: 1.75;
  color: var(--text); margin-bottom: 3rem;
}
#proj-desc p { margin-bottom: 1.2em; }

#proj-ressources { margin-bottom: 3.5rem; }

.ressources-label {
  font-family: 'NouvelleGrotesquerie', sans-serif;
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}

.ressource-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none !important; color: var(--text) !important;
  transition: color 0.15s;
}
.ressource-link:first-of-type { border-top: 1px solid var(--line); }
.ressource-link:hover { color: var(--accent) !important; }

.ressource-arrow { font-size: 1rem; transition: transform 0.2s ease; }
.ressource-link:hover .ressource-arrow { transform: translate(2px, -2px); }

.ressource-title {
  font-family: 'Garabosse', serif;
  font-size: 1rem; letter-spacing: 0.04em;
}

#proj-galerie { display: flex; flex-direction: column; gap: 1rem; }

.galerie-img { width: 100%; display: block; border-radius: 2px; }
