/* ============================================================
   realisations.css — Styles pour la page réalisations
   Valérian Labruyère · 2026
   ============================================================ */

:root {
  --red: #C0392B;
  --red-light: #E74C3C;
  --red-pale: #fdf1f0;
  --white: #FFFFFF;
  --off-white: #F8F7F5;
  --dark: #1A1A1A;
  --grey: #6B6B6B;
  --grey-light: #E8E5E2;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 100;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--red); }
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--red); }
.nav-back svg { transition: transform 0.2s; }
.nav-back:hover svg { transform: translateX(-3px); }

/* ── HERO PAGE ── */
.page-hero {
  background: var(--white);
  padding: calc(var(--nav-h) + 60px) 5vw 60px;
  border-bottom: 1px solid var(--grey-light);
}
.page-hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.page-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 1rem;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--grey);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.7;
}

/* ── LISTE REALISATIONS ── */
.realisations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.real-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--grey-light);
  align-items: stretch;
}
.real-item:last-child { border-bottom: none; }

.real-item .real-img  { order: 1; }
.real-item .real-text { order: 2; }
.real-item.reverse .real-img  { order: 2; }
.real-item.reverse .real-text { order: 1; }

.real-img {
  position: relative;
  overflow: hidden;
  background: var(--grey-light);
  min-height: 300px;
}

/* Photo normale : remplit toute la zone */
.real-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo avec data-scale : centree, proportions respectees */
.real-img img[data-scale] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  object-fit: contain;
}

.real-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--grey);
  font-size: 0.85rem;
}
.real-img-placeholder svg { opacity: 0.3; }
.real-img-placeholder span { font-style: italic; opacity: 0.6; }

.real-text {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.real-item:nth-child(even) .real-text { background: var(--off-white); }
.real-item:nth-child(even) .real-img  { background: #e0ddd9; }

.real-number {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.real-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.real-desc {
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Liste a puces — tiret cadratin rouge, meme style que le texte */
ul {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
ul li {
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 300;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.8;
}
ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 400;
}

.real-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.real-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: var(--red-pale);
  color: var(--red);
  border: 1px solid rgba(192,57,43,0.15);
}

/* ── GUIDE ── */
.add-hint {
  background: var(--white);
  border: 2px dashed var(--grey-light);
  border-radius: 8px;
  margin: 60px 5vw;
  padding: 2.5rem;
  text-align: center;
}
.add-hint h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 0.5rem;
}
.add-hint p { font-size: 0.85rem; color: var(--grey); line-height: 1.8; }
.add-hint code {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  color: var(--red);
}

/* ── FOOTER ── */
footer {
  background: #111;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .real-item { grid-template-columns: 1fr; }
  .real-item .real-img,
  .real-item.reverse .real-img  { order: 1; }
  .real-item .real-text,
  .real-item.reverse .real-text { order: 2; }
  .real-text { padding: 2rem 1.5rem; }
  .real-img-placeholder { min-height: 260px; }
}