/* =============================================
   OLIVIER HUSSER - OLÉA | Production Audiovisuelle
   style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Raleway:wght@200;300;400;500;600&display=swap');

/* === ROOT VARIABLES === */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #212121;
  --bg-card: #252525;
  --accent: #c8a96e;
  --accent-dim: #9a7e4f;
  --text-primary: #e8e2d9;
  --text-secondary: #a09890;
  --text-muted: #6b6360;
  --border: rgba(200, 169, 110, 0.2);
  --border-subtle: rgba(255,255,255,0.06);
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', sans-serif;
  --max-width: 1200px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

p {
  margin-bottom: 1.2em;
  color: var(--text-primary);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* === HERO HEADER === */
.hero {
  width: 100%;
  overflow: hidden;
  margin-top: 0;
  background: #1a1a1a;
  display: block;
}

/* Force image to display at full natural size, no darkening from any parent CSS */
.hero .hero-img,
img.hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  filter: none !important;
  opacity: 1 !important;
  -webkit-filter: none !important;
  box-shadow: none;
}

/* Title block BELOW the banner */
.hero-title-block {
  background: var(--bg-primary);
  padding: 1.8rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  /* Centrage explicite */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  text-align: center;
  width: 100%;
  display: block;
}

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* === SECTION SPACING === */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
}

/* === PROFILE SECTION === */
.profile-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}

.profile-img-wrap {
  position: sticky;
  top: 90px;
}

.profile-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.profile-role {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
  line-height: 2;
}

.profile-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.profile-content p {
  text-align: justify;
  hyphens: auto;
  color: var(--text-secondary);
}

.profile-content p a {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

/* === PARCOURS SECTION === */
.parcours-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.text-image-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.text-image-block.reverse {
  direction: rtl;
}

.text-image-block.reverse > * {
  direction: ltr;
}

.text-image-block p {
  text-align: justify;
  hyphens: auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.text-image-block img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* === CLIENTS SECTION === */
.clients-section {
  padding: 4rem 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
}

.clients-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s ease;
}

.clients-grid img:hover {
  filter: grayscale(0%);
}

/* === CITATION === */
.citation-section {
  padding: 2rem 0 4rem;
}

.citation-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* === VROADWAY SECTION === */
.vroadway-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.vroadway-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vroadway-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

.vroadway-text p {
  text-align: justify;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.yt-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* === VIDEO PAGE === */
.videos-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  text-align: center;
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.video-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.video-item:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.video-item .yt-embed {
  border: none;
  box-shadow: none;
}

/* === IMAGES PAGE === */
.images-section {
  padding: 4rem 0;
}

.masonry {
  columns: 2;
  column-gap: 1rem;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/2;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.9);
}

.mosaic-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.mosaic-item::after {
  content: '⊕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  background: rgba(26,26,26,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mosaic-item:hover::after {
  opacity: 1;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,15,15,0.96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.lightbox-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.lightbox-counter {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.next-section {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-contact {
  margin-bottom: 1rem;
}

.footer-contact a {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* === HAMBURGER / MOBILE NAV === */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .profile-img-wrap {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }

  .text-image-block,
  .text-image-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .vroadway-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 50vh;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* === BANNER HEIGHT RESPONSIVE === */
/* The banner img height is set inline to 200px (works on all screens).
   On larger screens we increase it via CSS - inline style sets the floor. */
@media (min-width: 600px) {
  img.hero-img {
    height: 280px !important;
  }
}
@media (min-width: 1024px) {
  img.hero-img {
    height: 380px !important;
  }
}
