//* ==========================================
   1. STYLE GLOBAL, POLICES & RESET
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Importation de la police Redaction 50 */
@font-face {
  font-family: 'Redaction_50';
  src: url('polices/Redaction_50/Redaction50-Regular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Redaction_50';
  src: url('polices/Redaction_50/Redaction50-Italic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Redaction_50';
  src: url('polices/Redaction_50/Redaction50-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: 'Redaction_50', Courier, Georgia, serif;
  background-color: #000000;
  color: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-container {
  min-height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   2. EN-TÊTE / NAVIGATION (STABLE & ROUGE AU SURVOL)
   ========================================== */
.header-grid {
  position: relative;
  display: flex;
  justify-content: flex-end;
  height: 50px;
  min-height: 50px;
  border-bottom: 1px solid #FFFFFF;
  background-color: #000000;
  z-index: 1000;
}

.logo-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1005;
}

.logo-text {
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.logo-text:hover {
  color: #ff0000;
}

/* Liens principaux */
.nav-links {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-item, .nav-info {
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 100%;
  border-left: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item:hover, .nav-info:hover {
  background-color: #1a1a1a;
  color: #ff0000;
}

/* Menu Déroulant */
.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background-color: #000000;
  border: 1px solid #FFFFFF;
  border-top: none;
  z-index: 1100;
  box-sizing: border-box;
}

/* Zone tampon invisible sous le menu pour éviter la fermeture brusque */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid #FFFFFF;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #1a1a1a;
  color: #ff0000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Sous-Menu Vertical Photographie */
.photo-submenu {
  background-color: #000000;
  border-bottom: 1px solid #FFFFFF;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.submenu-title {
  display: block;
  padding: 12px 16px;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 13px;
  cursor: default;
  box-sizing: border-box;
}

.submenu-items {
  display: block;
  background-color: #111111;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.submenu-items a {
  padding: 10px 24px !important;
  font-size: 12px !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #222222 !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.submenu-items a:hover {
  color: #ff0000 !important;
}

.submenu-items a:last-child {
  border-bottom: none !important;
}

.dropdown-content > a:last-child {
  border-bottom: none;
}

/* ==========================================
   3. PAGE D'ACCUEIL (DIAPORAMA & HERO)
   ========================================== */
.home-body {
  background-color: #000000;
  overflow: hidden;
}

.hero-section {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Redaction_50', Courier, Georgia, serif;
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: bold;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   4. GRILLE DE PHOTOS
   ========================================== */
.contenu-page {
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  min-height: calc(100vh - 50px);
  overflow-x: hidden;
  width: 100%;
}

.container_project {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 800px;
  width: 100%;
  align-items: center;
  margin: 50px auto;
}

.image_item {
  width: 100%;
  max-width: 700px;
  background-color: transparent;
  padding: 0;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.image_item.de-gauche {
  transform: translateX(-120px);
  align-self: center;
}

.image_item.de-droite {
  transform: translateX(120px);
  align-self: center;
}

.image_item.visible {
  opacity: 1;
  transform: translateX(0);
}

.image_item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid #FFFFFF;
}

/* ==========================================
   5. PAGE AUDIO & VIDÉO / EPSAA
   ========================================== */
.container_project_video {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #000000;
}

.video_row {
  display: flex;
  width: 100%;
  min-height: 400px;
  background-color: #000000;
  border-bottom: 1px solid #FFFFFF;
  box-sizing: border-box;
}

.video_row.inverse {
  flex-direction: row-reverse;
}

.video_info {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video_row:not(.inverse) .video_info {
  border-right: 1px solid #FFFFFF;
}

.video_row.inverse .video_info {
  border-left: 1px solid #FFFFFF;
}

.video_info h2 {
  font-family: serif;
  font-size: 2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.video_info .description-text, .video_info p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
}

.gallery_scroll_wrapper, 
.video_wrapper,
.audio_wrapper {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  background-color: #000000;
}

.video_row:not(.inverse) .gallery_scroll_wrapper,
.video_row:not(.inverse) .video_wrapper,
.video_row:not(.inverse) .audio_wrapper {
  border-left: 1px solid #FFFFFF;
}

.video_row.inverse .gallery_scroll_wrapper,
.video_row.inverse .video_wrapper,
.video_row.inverse .audio_wrapper {
  border-right: 1px solid #FFFFFF;
}

.gallery_scroll_wrapper {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  justify-content: flex-start;
}

.gallery_scroll_wrapper::-webkit-scrollbar {
  height: 4px;
}
.gallery_scroll_wrapper::-webkit-scrollbar-track {
  background: #111111;
}
.gallery_scroll_wrapper::-webkit-scrollbar-thumb {
  background: #FFFFFF;
}

.gallery_img {
  height: 100%;
  max-height: 340px;
  width: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
  scroll-snap-align: center;
  flex-shrink: 0;
}

.video_wrapper video {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.audio_cover {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #FFFFFF;
  display: block;
  margin-bottom: 20px;
}

.custom-audio-player {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 260px;
  gap: 15px;
  background: transparent !important;
  padding: 5px 0;
}

.audio-btn {
  background: none !important;
  border: none !important;
  color: #FFFFFF !important;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  outline: none;
}

.audio-timeline {
  flex: 1;
  height: 2px;
  background-color: #333333;
  position: relative;
  cursor: pointer;
}

.audio-progress {
  height: 100%;
  width: 0%;
  background-color: #FFFFFF;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

/* ==========================================
   6. PAGE INFO - COLONNES
   ========================================== */
.info-subnav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #FFFFFF;
  background-color: #000000;
}

.subnav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  border-right: 1px solid #FFFFFF;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subnav-link:last-child {
  border-right: none;
}

.subnav-link:hover {
  background-color: #1a1a1a;
  color: #ff0000;
}

.info-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: #000000;
  flex: 1; 
  width: 100%;
}

.info-section-block {
  padding: 50px 40px;
  border-right: 1px solid #FFFFFF;
}

.info-section-block:last-child {
  border-right: none;
}

.info-section-block h2 {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 30px;
}

.info-section-block p, .formation-subtitle, .experience-subtitle, .experience-details li {
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
}

.formation-item, .experience-item {
  margin-top: 20px;
  margin-bottom: 40px;
}

.formation-title, .experience-title {
  font-weight: bold;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.4;
}

.experience-details {
  list-style-type: square;
  padding-left: 20px;
}

.contact-item-group {
  margin-top: 20px;
}

.contact-item {
  margin-bottom: 25px;
}

.contact-link {
  font-family: 'Redaction_50', Courier, Georgia, serif;
  font-size: 16px;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-link:hover {
  color: #ff0000;
}

/* ==========================================
   7. LIGHTBOX
   ========================================== */
.lightbox_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox_overlay.active {
  display: flex;
}

.lightbox_overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #FFFFFF;
}

.lightbox_close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #FFFFFF;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2010;
}

.lightbox_close:hover {
  color: #ff0000;
}


@media screen and (max-width: 768px) {
  .header-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    height: 45px;
    border-bottom: 1px solid #FFFFFF;
    flex-direction: row-reverse; /* Inverse l'ordre visuel pour caler LAITA à droite et le menu à gauche, ou inversement */
  }
  
  .logo-link {
    padding: 0 12px;
    border: none;
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    height: 100%;
    width: auto;
  }

  .nav-item, .nav-info {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: none !important;
    border-left: 1px solid #FFFFFF !important;
    font-size: 11px;
    background: transparent;
    white-space: nowrap;
  }

  .dropdown-content {
    position: absolute;
    left: 0;
    top: 45px;
    background: #000000;
    border: 1px solid #FFFFFF;
    padding: 10px;
  }

  /* Reste des blocs mobile */
  .video_row, .video_row.inverse {
    flex-direction: column !important;
  }

  .video_info, .gallery_scroll_wrapper, .video_wrapper, .audio_wrapper {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #FFFFFF !important;
    padding: 20px !important;
  }

  .info-subnav, .info-main-content {
    grid-template-columns: 1fr;
  }

  .image_item.de-gauche, .image_item.de-droite {
    transform: none !important;
  }
}
@media screen and (max-width: 768px) {
  .header-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    height: 45px;
    border-bottom: 1px solid #FFFFFF;
    position: relative;
    background-color: #000000;
  }
  
  .logo-link {
    padding: 0 12px;
    border: none;
    display: flex;
    align-items: center;
    order: 1;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    height: 100%;
    width: auto;
    order: 2;
  }

  .nav-item, .nav-info {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: none !important;
    border-left: 1px solid #FFFFFF !important;
    font-size: 11px;
    background: transparent;
    white-space: nowrap;
  }

  /* Correction du menu déroulant pour qu'il reste bien dans l'écran à droite */
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    position: absolute;
    right: 0;
    left: auto;
    top: 45px;
    width: 180px;
    background: #000000;
    border: 1px solid #FFFFFF;
    padding: 0;
    z-index: 999;
  }

  .dropdown-content a {
    padding: 10px 14px;
    font-size: 11px;
  }

  .submenu-items a {
    padding: 8px 16px !important;
    font-size: 10px !important;
  }

  /* Photos plus petites et aérées sur mobile */
  .container_project {
    gap: 30px;
    margin: 30px auto;
    padding: 0 20px;
  }

  .image_item {
    max-width: 85%;
    transform: none !important;
  }

  /* Reste des blocs mobile */
  .video_row, .video_row.inverse {
    flex-direction: column !important;
  }

  .video_info, .gallery_scroll_wrapper, .video_wrapper, .audio_wrapper {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #FFFFFF !important;
    padding: 20px !important;
  }

  .info-subnav, .info-main-content {
    grid-template-columns: 1fr;
  }
}