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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity; /* Snap doux - suggère mais ne force pas */
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0;
  scroll-padding-block: 0;
}

body {
  font-family: 'Roboto Mono', monospace;
  background: #000;
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

/* ---------------- HEADER ---------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(to bottom, rgba(200,200,200,0.25), rgba(200,200,200,0));
}

/* Dégradé fixe en bas de l'écran */
.footer-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(200,200,200,0.25), rgba(200,200,200,0));
  pointer-events: none;
  z-index: 1700;
}

/* ---------------- LANG NAV ---------------- */
.lang-nav ul {
  display: flex;
  list-style: none;
  height: 100%;
  gap: 0.8vw;
  flex: 1;
  max-width: 70%;
}

.lang-nav li {
  position: relative;
  min-width: 40px;
  width: 60px;
  padding-left: 15px;
  margin-right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: solid 1.5px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  overflow-y: visible;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 1;
}

.lang-nav li.active {
  width: auto;
  flex-grow: 1;
  flex-shrink: 0;
  max-width: 900px;
}

.lang-nav a {
  text-decoration: none;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.6s ease;
  padding-top: 30px;
  white-space: nowrap;
}

.lang-nav li.active a {
  color: white;
}

.lang-text-wrapper {
  font-size: 14px;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(-12px);
  white-space: nowrap;
  transition:
    max-width 1s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.9s ease 0.1s,
    transform 0.9s ease 0.1s;
}

.lang-nav li.active .lang-text-wrapper {
  max-width: 850px !important;
  opacity: 1;
  transform: translateX(0);
}

.lang-text {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap !important;
  max-width: 850px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sur mobile seulement, permettre les retours à la ligne */
@media (max-width: 768px) {
  .lang-text {
    white-space: normal;
    word-wrap: break-word;
  }
}

.lang-nav li.active .lang-text {
  opacity: 1;
}

/* ---------------- ABOUT BUTTON ---------------- */
.about-button {
  display: flex;
  align-items: center;
  height: 100%;
}

.about-button a {
  font-weight: normal;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding-top: 24px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.about-button a::before {
  content: '[';
  margin-right: 2px;
}

.about-button a::after {
  content: ']';
  margin-left: 2px;
}

.about-button a:hover {
  color: white;
}

/* ---------------- LANDING PAGE ---------------- */
.landing-page {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  position: relative;
  z-index: 10;
  scroll-snap-align: start;
  scroll-snap-stop: normal; /* Permet de glisser naturellement */
}

.landing-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ticker au centre de la landing page */
.ticker-center {
  width: 100vw;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.5s ease;
}

/* Dégradé derrière le ticker central */
.ticker-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(200,200,200,0), rgba(200,200,200,0.2) 50%, rgba(200,200,200,0));
  z-index: -1;
  pointer-events: none;
}

.ticker-content-center {
  display: flex;
  white-space: nowrap;
  position: absolute;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ticker-item-center {
  color: #39ff14;
  font-family: 'Doto', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #39ff14, 0 0 5px #39ff14;
  cursor: pointer;
  padding: 0 20px;
  transition: all 0.3s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(57, 255, 20, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.ticker-item-center:hover {
  text-shadow: 0 0 20px #39ff14, 0 0 30px #39ff14, 0 0 40px #39ff14;
  transform: scale(1.15);
}

.ticker-separator-center {
  color: #39ff14;
  font-family: 'VT323', monospace;
  font-size: 32px;
  padding: 0 15px;
  opacity: 0.6;
}

/* ---------------- TICKER QUI SE DÉPLACE ---------------- */
.ticker-moving {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 1600;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.ticker-content-moving {
  display: flex;
  white-space: nowrap;
  position: absolute;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ticker-item-moving {
  color: #39ff14;
  font-family: 'Doto', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #39ff14, 0 0 5px #39ff14;
  cursor: pointer;
  padding: 0 20px;
  transition: all 0.3s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(57, 255, 20, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.ticker-item-moving:hover {
  text-shadow: 0 0 20px #39ff14, 0 0 30px #39ff14, 0 0 40px #39ff14;
  transform: scale(1.15);
}

.ticker-separator-moving {
  color: #39ff14;
  font-family: 'VT323', monospace;
  font-size: 32px;
  padding: 0 15px;
  opacity: 0.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ---------------- SCROLL STRUCTURE ---------------- */
.image-section {
  position: relative;
  z-index: 5;
}

.scroll-container {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ---------------- HINT TEXTS ---------------- */
.hint-text {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(0.6rem, 0.4rem + 0.3vw, 0.7rem);
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
  max-width: 100px;
  word-wrap: break-word;
}

.hint-left {
  left: 20px;
  text-align: left;
}

.hint-right {
  right: 20px;
  text-align: right;
}

.hint-text.visible {
  opacity: 1;
}

/* Responsive hint texts */
@media (max-width: 768px) {
  .hint-left {
    left: 10px;
  }
  
  .hint-right {
    right: 10px;
  }
  
  .hint-text {
    font-size: clamp(0.55rem, 0.35rem + 0.25vw, 0.65rem);
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .hint-left {
    left: 5px;
  }
  
  .hint-right {
    right: 5px;
  }
  
  .hint-text {
    max-width: 70px;
  }
}

.snap-slide {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal; /* Permet de glisser naturellement */
}

/* ---------------- PROJECT SLIDES ---------------- */
.project-slide {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---------------- HORIZONTAL SCROLL ---------------- */
.horizontal-scroll {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100%;
  width: 100%;
  scroll-snap-type: x proximity; /* Snap doux horizontal - suggère mais ne force pas */
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc(50vw - 50%);
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  will-change: scroll-position;
  scroll-padding: 0 calc(50vw - 50%);
}

/* Meilleure fluidité sur mobile */
@media (max-width: 1024px) {
  .horizontal-scroll {
    scroll-snap-type: x proximity; /* Aussi doux sur mobile */
    touch-action: pan-x pan-y;
  }
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* ---------------- HORIZONTAL SLIDES ---------------- */
.h-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: normal; /* Permet de glisser naturellement entre les images */
}

.h-slide a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* ---------------- MEDIA (Images + Vidéos) ---------------- */
.h-slide img,
.h-slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
  opacity: 0.4;
  transform: scale(0.98);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  will-change: opacity, transform;
  backface-visibility: hidden; /* Optimisation pour les animations */
  -webkit-backface-visibility: hidden;
}

.h-slide img {
  cursor: pointer;
}

.h-slide video {
  cursor: default;
}

.h-slide a:hover img,
.h-slide img:active {
  transform: scale(1.05);
}

/* ---------------- IMAGE SIZE CLASSES ---------------- */
/* Tailles pour mobile (par défaut) - légèrement agrandies */
.img-small, video.img-small {
  width: 60vw;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}

.img-medium, video.img-medium {
  width: 75vw;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.img-large, video.img-large {
  width: 85vw;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

/* Tailles pour desktop - réduites encore pour meilleur équilibre */
@media (min-width: 769px) {
  .img-small, video.img-small {
    width: min(38vw, 800px);
    min-width: 35vw;
    max-height: 85vh;
  }

  .img-medium, video.img-medium {
    width: min(52vw, 1000px);
    min-width: 48vw;
    max-height: 90vh;
  }

  .img-large, video.img-large {
    width: min(62vw, 1200px);
    min-width: 58vw;
    max-height: 95vh;
  }
}



/* ---------------- TICKER FOOTER (Style LED/Métro) ---------------- */
.ticker-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #000;
  overflow: hidden;
  z-index: 1500;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-ticker 60s linear infinite;
  will-change: transform;
}

.ticker-item {
  color: #39ff14;
  font-family: 'Doto', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 0 20px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px #39ff14, 0 0 5px #39ff14;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(57, 255, 20, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.ticker-item:hover {
  color: #39ff14;
  text-shadow: 0 0 20px #39ff14, 0 0 30px #39ff14, 0 0 40px #39ff14;
  transform: scale(1.15);
}

.ticker-separator {
  color: #39ff14;
  font-family: 'VT323', monospace;
  font-size: 28px;
  padding: 0 15px;
  opacity: 0.6;
  font-weight: 400;
  line-height: 1;
}

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

/* ---------------- MODAL ---------------- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: none;
  color: white;
  text-align: left;
  max-width: 90ch;
  padding: 0 1rem;
  z-index: 1000;
}

.modal-description {
  font-size: clamp(0.75rem, 0.5rem + 0.4vw, 0.9rem);
  line-height: 1.4;
  margin: 20px auto 1rem;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  color: white;
  word-wrap: break-word;
  white-space: normal;
  max-width: 90ch;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.15em;
  letter-spacing: -0.01em;
}

.modal-meta p {
  font-size: clamp(0.7rem, 0.5rem + 0.3vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
  word-wrap: break-word;
  white-space: normal;
}

.modal-contacts {
  margin-top: 1rem;
}

.modal-contacts-title {
  font-size: clamp(0.7rem, 0.5rem + 0.3vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}

.modal-contact-link {
  display: block;
  font-size: clamp(0.7rem, 0.5rem + 0.3vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.modal-contact-link:hover {
  opacity: 0.5;
}

/* ---------------- ABOUT SLIDE ---------------- */
#about-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  padding: 6rem 2rem 2rem;
  position: relative;
}

#about-slide .about-wrapper {
  max-width: 80ch;
}

.about-text-container {
  position: absolute;
  max-width: min(80ch, 90vw);
  padding: 0 1rem;
}

#about-slide .about-text {
  font-size: clamp(0.75rem, 0.5rem + 0.4vw, 0.9rem);
  line-height: 1.4;
  color: white;
  word-wrap: break-word;
  white-space: normal;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-spacing: -0.15em;
  letter-spacing: -0.01em;
  margin-top: 20px;
  margin-bottom: 1.5rem;
}

.about-contacts {
  margin-top: 1rem;
}

.about-contacts-title {
  font-size: clamp(0.7rem, 0.5rem + 0.3vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}

.about-contact-link {
  display: block;
  font-size: clamp(0.7rem, 0.5rem + 0.3vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.about-contact-link:hover {
  opacity: 0.5;
}

/* ---------------- RESPONSIVE ---------------- */

/* Tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Optimisation scroll tablette */
  html {
    scroll-snap-type: none; /* Snap géré par JS */
  }
  
  .horizontal-scroll {
    scroll-snap-type: none; /* Snap géré par JS */
    scroll-padding: 0 12vw;
  }
  
  /* Header tablette */
  header {
    padding: 0 15px;
  }
  
  .lang-nav ul {
    max-width: 80%;
    gap: 0.6vw;
  }

  .lang-nav li {
    width: 50px;
    margin-right: 0;
    padding-left: 10px;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .lang-nav li.active {
    max-width: 450px;
  }
  
  .lang-nav a {
    font-size: 15px;
    padding-top: 28px;
  }
  
  .lang-text-wrapper {
    max-width: 450px;
  }
  
  .lang-text {
    font-size: 13px;
    max-width: 450px;
  }
  
  .about-button a {
    font-size: 15px;
    padding-top: 22px;
  }

  /* Images tablette - réduites proportionnellement */
  img.osaka-1, img.osaka-3, img.sbb-1, img.sbb-3, img.techno-1, img.techno-2, img.c4d-1, img.c4d-3 {
    width: 55vw !important;
    max-height: 75vh !important;
  }

  img.osaka-2, img.sbb-2, video.techno-video, img.c4d-2 {
    width: 65vw !important;
    max-height: 80vh !important;
  }

  /* Modal tablette */
  .modal-content {
    max-width: 90%;
    padding: 0 1.5rem;
  }
  
  /* Modal description hérite du clamp() de base */
  
  /* About tablette */
  #about-slide {
    padding: 5rem 1.5rem 2rem;
  }
  
  #about-slide .about-text {
    max-width: 85%;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  /* Optimisation scroll mobile - snap géré par JS */
  html {
    scroll-snap-type: none; /* Snap géré par JS pour plus de contrôle */
    scroll-padding-top: 0;
  }
  
  body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
  }
  
  .horizontal-scroll {
    scroll-snap-type: none; /* Snap géré par JS */
    scroll-padding: 0 8vw;
    -webkit-overflow-scrolling: touch; /* Accélération matérielle pour iOS */
    scroll-behavior: smooth;
  }
  
  /* Optimisation des animations sur mobile - transitions plus rapides pour l'interpolation continue */
  .h-slide img,
  .h-slide video {
    transition: none; /* Pas de transition CSS, l'interpolation JS est déjà fluide */
  }
  
  .h-slide a:hover img,
  .h-slide img:active {
    transform: scale(1.02); /* Zoom plus subtil sur mobile */
  }
  
  /* Header mobile complet */
  header {
    padding: 0 10px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .lang-nav {
    flex: 1;
    max-width: 70%;
  }
  
  .lang-nav ul {
    max-width: 90%;
    gap: 0;
    height: 50px;
  }

  .lang-nav li {
    min-width: 32px;
    width: 40px;
    padding-left: 10px;
    margin-right: 0;
    height: 50px;
  }

  .lang-nav li.active {
    width: auto;
    flex-grow: 1;
    max-width: 180px;
  }
  
  .lang-nav a {
    font-size: 12px;
    padding-top: 20px;
    white-space: nowrap;
  }
  
  .lang-text-wrapper {
    max-width: 160px;
    margin-top: 3px;
  }
  
  .lang-text {
    font-size: 10px;
    /* margin-top: 2px; */
    line-height: 1.2;
    padding-bottom: 4px;
  }
  
  .about-button {
    flex-shrink: 0;
    margin-left: 10px;
  }
  
  .about-button a {
    font-size: 12px;
    padding-top: 15px;
  }

  /* Images mobile - réduites proportionnellement */
  img.osaka-1, img.osaka-3, img.sbb-1, img.sbb-3, img.techno-1, img.techno-2, img.c4d-1, img.c4d-3 {
    width: 65vw !important;
    max-height: 70vh !important;
  }

  img.osaka-2, img.sbb-2, video.techno-video, img.c4d-2 {
    width: 75vw !important;
    max-height: 75vh !important;
  }

  /* Modal mobile */
  
  .modal-content {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100vw - 3rem);
    width: calc(100vw - 3rem);
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-description {
    font-size: clamp(0.65rem, 0.4rem + 0.3vw, 0.75rem);
  }
  
  .modal-meta p {
    font-size: clamp(0.65rem, 0.4rem + 0.3vw, 0.75rem);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    white-space: normal;
  }
  
  .modal-contacts-title,
  .modal-contact-link {
    font-size: clamp(0.65rem, 0.4rem + 0.3vw, 0.75rem);
  }

  /* About section mobile complet */
  #about-slide {
    padding: 4rem 1.5rem 2rem;
    justify-content: flex-start;
  }
  
  .about-text-container {
    max-width: calc(100vw - 3rem) !important;
    width: calc(100vw - 3rem) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 5rem !important;
    padding-bottom: 3rem !important;
  }
  
  #about-slide .about-text {
    font-size: clamp(0.65rem, 0.4rem + 0.3vw, 0.75rem);
  }
  
  .about-contacts-title,
  .about-contact-link {
    font-size: clamp(0.65rem, 0.4rem + 0.3vw, 0.75rem);
  }
  
  #about-slide .about-wrapper {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  /* Optimisation scroll très petit - snap géré par JS */
  html {
    scroll-snap-type: none; /* Snap géré par JS pour plus de contrôle */
    scroll-padding-top: 0;
  }
  
  body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
  }
  
  .horizontal-scroll {
    scroll-snap-type: none; /* Snap géré par JS */
    scroll-padding: 0 5vw;
    -webkit-overflow-scrolling: touch; /* Accélération matérielle pour iOS */
    scroll-behavior: smooth;
  }
  
  /* Optimisation des animations sur très petits écrans - interpolation continue */
  .h-slide img,
  .h-slide video {
    transition: none; /* Pas de transition CSS, l'interpolation JS est déjà fluide */
  }
  
  .h-slide a:hover img,
  .h-slide img:active {
    transform: scale(1.01); /* Zoom encore plus subtil sur très petits écrans */
  }
  
  /* Header très petit complet */
  header {
    height: 45px;
    padding: 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .lang-nav {
    flex: 1;
    max-width: 75%;
  }
  
  .lang-nav ul {
    gap: 0;
    height: 45px;
    max-width: 95%;
  }
  
  .lang-nav li {
    min-width: 28px;
    width: 35px;
    padding-left: 6px;
    margin-right: 0;
    height: 45px;
  }

  .lang-nav li.active {
    width: auto;
    flex-grow: 1;
    max-width: 140px;
  }
  
  .lang-nav a {
    font-size: 10px;
    padding-top: 16px;
    white-space: nowrap;
  }
  
  .lang-text-wrapper {
    max-width: 100px;
    margin-top: 2px;
  }
  
  .lang-text {
    font-size: 8px;
    margin-top: 1px;
    line-height: 1.1;
    padding-bottom: 4px;
  }
  
  .about-button {
    flex-shrink: 0;
    margin-left: 8px;
  }
  
  .about-button a {
    font-size: 10px;
    padding-top: 12px;
  }

  /* Images très petites - réduites pour éviter superposition */
  img.osaka-1, img.osaka-3, img.sbb-1, img.sbb-3, img.techno-1, img.techno-2, img.c4d-1, img.c4d-3 {
    width: 70vw !important;
    max-height: 65vh !important;
  }

  img.osaka-2, img.sbb-2, video.techno-video, img.c4d-2 {
    width: 80vw !important;
    max-height: 70vh !important;
  }

  /* Modal très petit */
  .modal-content {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100vw - 2rem);
    width: calc(100vw - 2rem);
    padding: 0.75rem;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .modal-description {
    font-size: clamp(0.6rem, 0.35rem + 0.25vw, 0.7rem);
  }
  
  .modal-meta p {
    font-size: clamp(0.6rem, 0.35rem + 0.25vw, 0.7rem);
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    white-space: normal;
  }
  
  .modal-contacts-title,
  .modal-contact-link {
    font-size: clamp(0.6rem, 0.35rem + 0.25vw, 0.7rem);
  }

  /* About très petit */
  #about-slide {
    padding: 3rem 1rem 1rem;
    justify-content: flex-start;
  }
  
  .about-text-container {
    max-width: calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 4rem !important;
    padding-bottom: 3rem !important;
  }
  
  #about-slide .about-text {
    font-size: clamp(0.6rem, 0.35rem + 0.25vw, 0.7rem);
  }
  
  .about-contacts-title,
  .about-contact-link {
    font-size: clamp(0.6rem, 0.35rem + 0.25vw, 0.7rem);
  }
  
  #about-slide .about-wrapper {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* Orientation paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
  /* Optimisation scroll paysage - plus souple */
  html {
    scroll-snap-type: y proximity;
  }
  
  .snap-slide {
    scroll-snap-align: center;
  }
  
  .landing-page {
    scroll-snap-align: center;
  }
  
  .horizontal-scroll {
    scroll-snap-type: none; /* Snap géré par JS */
    scroll-padding: 0 5%;
  }
  
  /* Header paysage */
  header {
    height: 40px;
    padding: 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .lang-nav {
    flex: 1;
    max-width: 80%;
  }
  
  .lang-nav ul {
    height: 40px;
  }
  
  .lang-nav li {
    min-width: 30px;
    margin-right: 10px;
    height: 40px;
  }
  
  .lang-nav a {
    padding-top: 12px;
    font-size: 10px;
    white-space: nowrap;
  }
  
  .lang-text-wrapper {
    max-width: 140px;
    margin-top: 2px;
  }
  
  .lang-text {
    font-size: 8px;
    margin-top: 1px;
    padding-bottom: 4px;
  }
  
  .about-button {
    flex-shrink: 0;
    margin-left: 8px;
  }
  
  .about-button a {
    font-size: 8px;
    padding-top: 10px;
  }

  /* About paysage */
  #about-slide {
    padding: 3rem 1rem 1rem;
  }
  
  #about-slide .about-text {
    max-width: 85%;
  }
}

/* Desktop moyen et grand */
@media (min-width: 1025px) {
  /* Header desktop */
  .lang-nav li.active {
    max-width: 800px;
  }

  .lang-text-wrapper {
    max-width: 750px;
  }
}

/* Grands écrans */
@media (min-width: 1440px) {
  /* Header grand écran */
  .lang-nav ul {
    max-width: 80%;
  }

  .lang-nav li.active {
    max-width: 900px;
  }

  .lang-text-wrapper {
    max-width: 850px;
  }
  
  .lang-text {
    font-size: 15px;
  }
  
  .about-button a {
    font-size: 18px;
    padding-top: 24px;
  }

  /* Modal grand écran */
  .modal-content {
    max-width: 80ch;
  }
  
  /* About grand écran */
  #about-slide .about-text {
    max-width: 90ch;
  }
}

/* Très grands écrans (4K+) */
@media (min-width: 1920px) {
  .lang-nav ul {
    max-width: 85%;
  }

  .lang-nav li.active {
    max-width: 1200px;
  }

  .lang-text-wrapper {
    max-width: 1150px;
  }
}

