@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  --black: #000000;
  --red: #a71b1a;
  --white: #ffffff;
  --nav-width: 80px;
  --nav-expanded: 280px;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* ─── NOISE ─────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── SIDE NAV ─────────────────────────────────────── */
#sidenav {
  position: fixed; top: 0; left: 0;
  width: var(--nav-width); height: 100vh;
  background: #0a0a0a;
  border-right: 2px solid var(--red);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: width 0.35s cubic-bezier(0.77,0,0.175,1);
  overflow: hidden;
}
#sidenav:hover { width: var(--nav-expanded); }

.nav-logo {
  padding: 32px 12px 16px;
  border-bottom: 1px solid #222;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px; flex-shrink: 0;
  overflow: hidden; position: relative;
}
/* Small logo: visible when nav is collapsed */
.nav-logo-small {
  width: 52px; height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.25s, transform 0.25s;
  position: relative;
}
/* Full logo: hidden when collapsed, shown on hover */
.nav-logo-big {
  width: 160px;
  object-fit: contain;
  position: absolute;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s 0.05s, transform 0.25s 0.05s;
  pointer-events: none;
}
#sidenav:hover .nav-logo-small {
  opacity: 0;
  transform: translateX(10px);
}
#sidenav:hover .nav-logo-big {
  opacity: 1;
  transform: translateX(0);
}

.nav-links {
  flex: 1; display: flex; flex-direction: column; padding: 24px 0;
}
.nav-item {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px; cursor: pointer;
  text-decoration: none; color: #888;
  transition: color 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.nav-item:hover, .nav-item.active {
  color: var(--white); background: rgba(167,27,26,0.08);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 3px; height: 100%; background: var(--red);
}
.nav-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-label {
  font-family: 'Anton', sans-serif;
  font-size: 13px; letter-spacing: 0.18em; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s 0.1s;
}
#sidenav:hover .nav-label { opacity: 1; }

.nav-social {
  padding: 16px 10px; border-top: 1px solid #222;
  display: flex; flex-direction: column; gap: 10px;
}
/* Collapsed: show only Instagram icon centered */
.social-row {
  display: flex; gap: 8px; align-items: center;
  justify-content: center;
}
.social-icon {
  display: none;
  width: 32px; height: 32px; background: #1a1a1a;
  border: 1px solid #333; border-radius: 4px;
  align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0; text-decoration: none; color: #888; font-size: 14px;
}
.social-icon:hover {
  border-color: var(--red); background: rgba(167,27,26,0.15); color: var(--white);
}
/* Only Instagram visible when collapsed */
.social-icon.instagram { display: flex; }
/* All icons visible when expanded */
#sidenav:hover .social-icon { display: flex; }

/* ─── MAIN ─────────────────────────────────────────── */
#main { margin-left: var(--nav-width); min-height: 100vh; }

/* ─── PAGE HEADER ──────────────────────────────────── */
.page-hero {
  padding: 80px 60px 60px;
  background: #050505;
  border-bottom: 1px solid #111;
  display: flex; align-items: flex-end; gap: 20px;
  min-height: 220px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(167,27,26,0.08), transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(167,27,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,27,26,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-num {
  font-family: 'Anton', sans-serif;
  font-size: 120px; color: rgba(167,27,26,0.1);
  line-height: 1; flex-shrink: 0; position: relative;
}
.page-hero-title {
  position: relative;
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
}
.page-hero-title::after {
  content: ''; display: block;
  width: 60px; height: 3px;
  background: var(--red); margin-top: 12px;
}

/* ─── PAGE CONTENT ─────────────────────────────────── */
.page-content { padding: 60px; }

/* ─── BUTTONS ──────────────────────────────────────── */
.btn {
  font-family: 'Anton', sans-serif;
  font-size: 13px; letter-spacing: 0.2em;
  padding: 14px 32px; border: none; cursor: pointer;
  text-decoration: none; text-transform: uppercase;
  transition: all 0.2s; display: inline-block;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover {
  background: #c42020; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(167,27,26,0.4);
}
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.btn-red-outline { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-red-outline:hover { background: var(--red); color: var(--white); }

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  background: #050505; border-top: 1px solid #111;
  padding: 40px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-logo { font-family: 'Anton', sans-serif; font-size: 24px; }
.footer-copy { font-size: 12px; color: #444; letter-spacing: 0.1em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12px; color: #444; text-decoration: none;
  letter-spacing: 0.1em; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ─── REVEAL ────────────────────────────────────────── */


/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 60px 24px 40px; min-height: 160px; }
  .page-content { padding: 40px 24px; }
  footer { padding: 30px 24px; flex-direction: column; text-align: center; }
}

/* ─── MOBILE RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {

  /* Nav devient une barre en bas sur mobile */
  #sidenav {
    width: 100% !important;
    height: 64px;
    top: auto; bottom: 0; left: 0;
    flex-direction: row;
    border-right: none;
    border-top: 2px solid var(--red);
    overflow: visible;
  }

  .nav-logo { display: none; }

  .nav-links {
    flex-direction: row;
    padding: 0;
    flex: 1;
    justify-content: space-around;
    align-items: center;
  }

  .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    justify-content: center;
    flex: 1;
  }

  .nav-icon {
    width: 28px; height: 28px;
    font-size: 18px;
  }

  .nav-label {
    font-size: 8px;
    letter-spacing: 0.1em;
    opacity: 1 !important;
  }

  .nav-social { display: none; }

  /* Main prend toute la largeur, padding bas pour la nav */
  #main {
    margin-left: 0;
    padding-bottom: 80px;
  }

  /* Page hero */
  .page-hero {
    padding: 40px 20px 30px;
    min-height: 130px;
    gap: 12px;
  }
  .page-hero-num { font-size: 70px; }
  .page-hero-title { font-size: 36px; }

  /* Page content */
  .page-content { padding: 30px 20px; }

  /* Footer */
  footer {
    padding: 24px 20px 100px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
