/*
 * Profane Home — styles page d'accueil
 * Fichier : profane-home.css
 * À placer dans : wp-content/themes/blocksy/
 */

/* Reset global pour cette page */
body.profane-home * { box-sizing: border-box; margin: 0; padding: 0; }

body.profane-home {
  height: 100vh;
  overflow: hidden;
  background: #f5f2ec;
  color: #1a1a18;
  font-family: 'Cormorant Garamond', serif;
}

/* Neutralise les wrappers Blocksy */
body.profane-home #page,
body.profane-home .site,
body.profane-home .site-content,
body.profane-home main {
  height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* ── Variables ── */
body.profane-home {
  --bg:     #f5f2ec;
  --text:   #1a1a18;
  --muted:  #8a8880;
  --line:   rgba(26,26,24,0.12);
  --purple: #7c3aed;
}

/* ── Layout principal ── */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ────────────────────────────
   PANNEAU GAUCHE
──────────────────────────── */
#left {
  width: 33.333%;
  flex-shrink: 0;
  position: relative;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background: #0e0e0c;
}

#left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.35s ease;
}
#left-img.fade { opacity: 0; }

/* Ticker */
#ticker-wrap {
  position: absolute;
  top: 1.6rem;
  left: 0; right: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

#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-size: 2.2rem; font-weight: 400; color: #fff; letter-spacing: 0.02em; mix-blend-mode: difference; }
.ticker-sub  { font-size: 1.3rem; font-weight: 300; font-style: italic; color: #fff; mix-blend-mode: difference; }
.ticker-sep  { font-size: 2rem; font-weight: 300; color: #fff; opacity: 0.4; mix-blend-mode: difference; }

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

/* Overlay info projet */
#left-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

#left-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }
#left-title { font-size: 2rem; font-weight: 300; font-style: italic; color: #fff; line-height: 1.15; }
#left-code  { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 0.5rem; letter-spacing: 0.06em; font-weight: 300; }

/* ────────────────────────────
   PANNEAU DROIT
──────────────────────────── */
#right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Zone images flottantes */
#float-zone {
  position: absolute;
  top: 4rem;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.float-img {
  position: absolute;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.float-img.in  { opacity: 1; }
.float-img.out { opacity: 0; }

/* Header */
#header {
  padding: 0 2.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

#update-badge { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

#update-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

#update-text { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 300; white-space: nowrap; }

.v-sep { width: 1px; height: 1.2rem; background: var(--line); flex-shrink: 0; }

#contact-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }

.hov-link {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.hov-link:hover { color: var(--text); }

/* ── Liste projets ── */
#list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0;
}
#list::-webkit-scrollbar { display: none; }

body.profane-home #list a.project-row {
  all: unset !important;
  display: grid !important;
  grid-template-columns: 90px 1fr 130px 80px !important;
  align-items: center !important;
  padding: 0.28rem 2.5rem !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.proj-code { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); font-weight: 300; transition: color 0.15s; }
.proj-name { font-size: 1.2rem; font-weight: 400; color: var(--text); padding-right: 1rem; transition: color 0.15s, font-style 0.1s; }
.proj-tag  { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 300; transition: color 0.15s; }
.proj-year { font-size: 11px; color: var(--muted); font-weight: 300; text-align: right; transition: color 0.15s; }

.project-row:hover .proj-code,
.project-row:hover .proj-name,
.project-row:hover .proj-tag,
.project-row:hover .proj-year { color: var(--purple); }
.project-row:hover .proj-name { font-style: italic; }

body.profane-home #list a {
  all: unset;
  display: grid;
  grid-template-columns: 90px 1fr 130px 80px;
  align-items: center;
  padding: 0.28rem 2.5rem;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}